Sign in to follow this  
Followers 0
mpcluever

List variables in SciTE

7 posts in this topic

#1 ·  Posted (edited)

For some reason, the SyntaxCheck Prod tool in SciTE isn't picking up variables that haven't been declared. Is it possible to list out all the $... variables that have been used in the script? When I start typipng $... it lists the all in a dropdown, is it possible to get at that list?

Similar to "List Functions"

Edited by mpcluever

Share this post


Link to post
Share on other sites



I doubt the syntax checker is missing undeclared variables. Are you sure they aren't declared inside one of your #include files where you don't see them?

:graduated:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

The syntax checker is not identifying any issues, however the script fails citing an undeclared variable.

Share this post


Link to post
Share on other sites

maybe somehow your script loops in a way that the variable tries to be used before the value is set?


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

For some reason, the SyntaxCheck Prod tool in SciTE isn't picking up variables that haven't been declared. Is it possible to list out all the $... variables that have been used in the script? When I start typipng $... it lists the all in a dropdown, is it possible to get at that list?

Similar to "List Functions"

Tidy can generate a nice XREF report with all used Variables and lines they are used in.

Show the example where au3check doesn't detect a variable not defined, but one thing to remember is that au3check doesn't really know the sequence of funcs/code executed so it could assume a variable is defined while it's not really yet.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

The syntax checker is not identifying any issues, however the script fails citing an undeclared variable.

Post the shortest demo script you can that reproduces this symptom for you.

Any chance it's happening with Execute(), or Eval()?

:graduated:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0