[Geany-Users] List all variables in javascript file ?

Lex Trotman elextr at xxxxx
Tue Feb 18 00:34:25 UTC 2014


On 18 February 2014 08:46, Alain Meunier <deco33 at hotmail.fr> wrote:
> Hello,
>
> Is it possible to list all the vars in a javascript/lua/python app ?
>
> The symbols just list the functions. Vars would be cool too.. :)
>
> Any hints ? thanks

Don't know enough Lua to know if its possible.  Others may wish to comment.

Because Python does not have declarations the only way of identifying
"variables" is from assign statements, and it depends on the execution
paths which is the "defining" assign for each variable.  And where the
assign occurs defines if the name is an addition is to a class, an
instance or a local variable.  This means suggestions such as "use the
first assign found for a variable" or "show all assigns for the
variable" are actually unlikely to be useful in practice.  So it is
unlikely that this will improve in basic Geany, but plugins that use
external support (such as Jedi) may provide more assistance.
Contributions of such plugins are welcome.

Javascript has many of the same problems as Python (despite having
"var") so although there has been some progress in this area, it is
currently buggy and unknown when it may become available.
Contributions are welcome.

Cheers
Lex

>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>


More information about the Users mailing list