Hi,
sorry when this was probably addressed before (I couldn't find it neither in this mailing list nor with the help of g) and frankly the paragrapg in the manual, I could not understand.
Simply can't figure out why there are no symbols for *.js files available in the sidebar. Loading a python file *.py the symbols are directly available in the sidebar and accessible, dito even for geany's config files. How can I get that also for javascript files ? Wondering why it is not part of geany (javascript is not that unpopular a programming language in the web)
best regards Stefan
Sorry for the fuss, it's that geany gets confused with dojo specifics like dojo.declare and cant find any tags when it hits this. Any chance that geany understands dojo stuff soon ?
best Stefan
On Fri, Aug 27, 2010 at 7:59 PM, Stefan Zimmermann znafets@googlemail.comwrote:
Hi,
sorry when this was probably addressed before (I couldn't find it neither in this mailing list nor with the help of g) and frankly the paragrapg in the manual, I could not understand.
Simply can't figure out why there are no symbols for *.js files available in the sidebar. Loading a python file *.py the symbols are directly available in the sidebar and accessible, dito even for geany's config files. How can I get that also for javascript files ? Wondering why it is not part of geany (javascript is not that unpopular a programming language in the web)
best regards Stefan
On Fri, 27 Aug 2010 21:32:49 +0200, Stefan wrote:
Hi Stefan,
Sorry for the fuss, it's that geany gets confused with dojo specifics like dojo.declare and cant find any tags when it hits this. Any chance that geany understands dojo stuff soon ?
As usual it needs someone to implement it :). I have no idea what dojo is nor how it looks like and how it confuses the Javascript parser. But some more general information: the parser used is the (mostly) same as in the Ctags project (http://ctags.sourceforge.net/).
If you are a little familiar with C, have a look at the parser at http://geany.svn.sf.net/viewvc/geany/trunk/tagmanager/js.c?view=markup, maybe you can fix it and then we would be happy to receive a patch.
Regards, Enrico
Hi Enrico,
dojo is a very mature javascript library many big companies are implementing their web apps with http://www.dojotoolkit.org/
You will find IBM, Sun/Oracle, AOL, Cisco, Sitepen, Thomson Reuters and others among those companies relying on dojo's javascript tools. Chances are that geany get's a boost once it could handle the few quirks which come with dojo for the parser.
As I experimented with some source files using dojo, just commenting the dojo.declare statement and replacing it with var myfunc = function() already made geany understand a lot more about the symbols and display them, so can't be that much.
btw. as far as I can say already (and after one week of using geany now) I kind of seem to settle on it after a long long journey. Great job, just the right mix of speed, simplicity, features and configuration capability.
Once I figure out more about geany's internals I may help, but for now I am very busy with a dojo/python/C project for one of the big guys I mentioned before ;)
best Stefan
2010/8/29 Enrico Tröger enrico.troeger@uvena.de
On Fri, 27 Aug 2010 21:32:49 +0200, Stefan wrote:
Hi Stefan,
Sorry for the fuss, it's that geany gets confused with dojo specifics like dojo.declare and cant find any tags when it hits this. Any chance that geany understands dojo stuff soon ?
As usual it needs someone to implement it :). I have no idea what dojo is nor how it looks like and how it confuses the Javascript parser. But some more general information: the parser used is the (mostly) same as in the Ctags project (http://ctags.sourceforge.net/).
If you are a little familiar with C, have a look at the parser at http://geany.svn.sf.net/viewvc/geany/trunk/tagmanager/js.c?view=markup, maybe you can fix it and then we would be happy to receive a patch.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany