I've tried a couple of nightly builds, and no javascript functions show up in the symbols sidebar. Is this a known problem?
Dennis
On Mon, 27 Apr 2009 09:20:59 -0700, Dennis wrote:
Hi,
I've tried a couple of nightly builds, and no javascript functions show up in the symbols sidebar. Is this a known problem?
Any example code?
In general, the parsing code for embedded JavaScript code in HTML files is very simple, in particular it must match the following regular expression:
^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*\(
Did it work with previous releases? Just curious because you explicitly mention you tried different nightlies.
Regards, Enrico
I'm pretty sure it worked in .16
Now any file I open no longer shows the javascript functions. it just says "No tags found". These are actually .jsp files but I've listed *.jsp as an HTML extension in filetype_extensions.conf.
The regex you list below doesn't work for me unless I kill one of the two backslashes before the last character:
^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*(
2009/4/27 Enrico Tröger enrico.troeger@uvena.de
On Mon, 27 Apr 2009 09:20:59 -0700, Dennis wrote:
Hi,
I've tried a couple of nightly builds, and no javascript functions show up in the symbols sidebar. Is this a known problem?
Any example code?
In general, the parsing code for embedded JavaScript code in HTML files is very simple, in particular it must match the following regular expression:
^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*\(
Did it work with previous releases? Just curious because you explicitly mention you tried different nightlies.
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
On Tue, 28 Apr 2009 15:13:50 -0700, Dennis wrote:
I'm pretty sure it worked in .16
Now any file I open no longer shows the javascript functions. it just says "No tags found". These are actually .jsp files but I've listed *.jsp as an HTML extension in filetype_extensions.conf.
The regex you list below doesn't work for me unless I kill one of the two backslashes before the last character:
^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*(
This is weird, if I remove one of the two last backslashes, the regex doesn't compile anymore and I get the followng warning: "Unmatched ( or ("
So I'm wondering how you did test it. Are we talking about Windows, Linux or any other OS? How does your code look like, any example file?
Furthermore, there were no related changes to the code since 0.16 (I think).
Regards, Enrico
On windows. I didn't change any code (I've not been able to compile on windows recently, but I haven't gotten to that yet).
I wasn't thinking about escaping issues, I just put that regex into geany's search...
2009/4/29 Enrico Tröger enrico.troeger@uvena.de
On Tue, 28 Apr 2009 15:13:50 -0700, Dennis wrote:
I'm pretty sure it worked in .16
Now any file I open no longer shows the javascript functions. it just says "No tags found". These are actually .jsp files but I've listed *.jsp as an HTML extension in filetype_extensions.conf.
The regex you list below doesn't work for me unless I kill one of the two backslashes before the last character:
^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*(
This is weird, if I remove one of the two last backslashes, the regex doesn't compile anymore and I get the followng warning: "Unmatched ( or ("
So I'm wondering how you did test it. Are we talking about Windows, Linux or any other OS? How does your code look like, any example file?
Furthermore, there were no related changes to the code since 0.16 (I think).
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
On Wed, 29 Apr 2009 10:10:46 -0700, Dennis wrote:
On windows. I didn't change any code (I've not been able to compile on windows recently, but I haven't gotten to that yet).
I wasn't thinking about escaping issues, I just put that regex into geany's search...
Ah ok, don't do that! This regex is used in the source code, it can't be used in the search dialogs (at least it doesn't make any sense) :).
Still no example code to test with :(.
But if you are using the Windows nightly builds, it might be related to that since they are cross-compiled while the release builds are natively compiled on Windows. I'll try this later but some example to test with would be very helpful.
Regards, Enrico
On Wed, 29 Apr 2009 19:26:15 +0200, Enrico wrote:
On Wed, 29 Apr 2009 10:10:46 -0700, Dennis wrote:
On windows. I didn't change any code (I've not been able to compile on windows recently, but I haven't gotten to that yet).
I wasn't thinking about escaping issues, I just put that regex into geany's search...
Ah ok, don't do that! This regex is used in the source code, it can't be used in the search dialogs (at least it doesn't make any sense) :).
Still no example code to test with :(.
But if you are using the Windows nightly builds, it might be related to that since they are cross-compiled while the release builds are natively compiled on Windows. I'll try this later but some example to
Ok, tested and verified: it's broken on the nightly builds but works fine on natively compiled builds. So, it's a minor issue especially since Geany 0.17 will be released soon (probably this weekend).
I'll have a look whether I can fix the cross-compiled builds wrt this issue but I won't spend much time on it, sorry.
Regards, Enrico
On Wed, 29 Apr 2009 19:48:17 +0200, Enrico wrote:
Ok, tested and verified: it's broken on the nightly builds but works fine on natively compiled [..]
I'll have a look whether I can fix the cross-compiled builds wrt this issue but I won't spend much time on it, sorry.
And now fixed.
The Windows nightlies were built without any regex implementation. I changed that so that they are now built with the included regex implementation (which is already done for native Windows builds) and it seems to work.
Thanks for reporting, Dennis.
Regards, Enrico
Actually, I got the problem solved. It was a configuration problem on my end. Something I did for .16 in my Application Data\geany must have been the problem, because I moved that geany directory out of the way and the javascript symbols are showing up now.
2009/4/29 Enrico Tröger enrico.troeger@uvena.de
On Wed, 29 Apr 2009 10:10:46 -0700, Dennis wrote:
On windows. I didn't change any code (I've not been able to compile on windows recently, but I haven't gotten to that yet).
I wasn't thinking about escaping issues, I just put that regex into geany's search...
Ah ok, don't do that! This regex is used in the source code, it can't be used in the search dialogs (at least it doesn't make any sense) :).
Still no example code to test with :(.
But if you are using the Windows nightly builds, it might be related to that since they are cross-compiled while the release builds are natively compiled on Windows. I'll try this later but some example to test with would be very helpful.
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
It look like by default *.jsp is associated with java, and (I don't know why) the javascript functions show up, but the html isn't styled. But when I switched *.jsp to be associated with HTML, no more javascript functions. So I'm glad you found something!
Dennis
On Wed, Apr 29, 2009 at 12:54 PM, Dennis Sacks dennis.sacks@gmail.comwrote:
Actually, I got the problem solved. It was a configuration problem on my end. Something I did for .16 in my Application Data\geany must have been the problem, because I moved that geany directory out of the way and the javascript symbols are showing up now.
2009/4/29 Enrico Tröger enrico.troeger@uvena.de
On Wed, 29 Apr 2009 10:10:46 -0700, Dennis wrote:
On windows. I didn't change any code (I've not been able to compile on windows recently, but I haven't gotten to that yet).
I wasn't thinking about escaping issues, I just put that regex into geany's search...
Ah ok, don't do that! This regex is used in the source code, it can't be used in the search dialogs (at least it doesn't make any sense) :).
Still no example code to test with :(.
But if you are using the Windows nightly builds, it might be related to that since they are cross-compiled while the release builds are natively compiled on Windows. I'll try this later but some example to test with would be very helpful.
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
And the latest nightly build fixes this. Thanks!! When I try to do a build on windows xp from svn I get errors - I'm attaching the full output from make as a text file.
Gcc version:
$ gcc -v Using built-in specs. Target: mingw32 Configured with: ../gcc-4.3.2/configure --prefix=/mingw --build=mingw32 --enable-languages=c,ada,c++,fortran,objc,obj-c++ --with-bugurl= http://www.tdragon.net/recentgcc/bugs.php --disable-nls --disable-win32-registry --enable-libgomp --disable-werror --enable-threads --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections' --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-exceptions --with-pkgversion='4.3.2-tdm-2 mingw32' Thread model: win32 gcc version 4.3.2 (4.3.2-tdm-2 mingw32)
This below is just an excerpt of the first error I see:
make[1]: Entering directory `/c/noscan/SVN/geany/plugins' makefile.win32:70: deps.mak: No such file or directory gcc -MM -O2 -Wall -pipe -mms-bitfields -DHAVE_CONFIG_H -I.. -I../src -I../scintilla/include -I../tagmanager/include -I/c/libs/include/gtk-2.0 -I/c/libs/lib/gtk-2.0/include -I/c/libs/include/atk-1.0 -I/c/libs/include/pango-1.0 -I/c/libs/include/cairo -I/c/libs/include/glib-2.0 -I/c/libs/lib/glib-2.0/include -I/c/libs/include/gettext -I/c/libs/include *.c >deps.mak make[1]: Leaving directory `/c/noscan/SVN/geany/plugins' make[1]: Entering directory `/c/noscan/SVN/geany/plugins' gcc -O2 -Wall -pipe -mms-bitfields -DHAVE_CONFIG_H -I.. -I../src -I../scintilla/include -I../tagmanager/include -I/c/libs/include/gtk-2.0 -I/c/libs/lib/gtk-2.0/include -I/c/libs/include/atk-1.0 -I/c/libs/include/pango-1.0 -I/c/libs/include/cairo -I/c/libs/include/glib-2.0 -I/c/libs/lib/glib-2.0/include -I/c/libs/include/gettext -I/c/libs/include -o htmlchars.dll.o -c htmlchars.c In file included from htmlchars.c:32: ../src/plugindata.h:389: error: expected ':', ',', ';', '}' or '__attribute__' before 'G_GNUC_NULL_TERMINATED' In file included from htmlchars.c:36:
On Wed, Apr 29, 2009 at 1:01 PM, Dennis Sacks dennis.sacks@gmail.comwrote:
It look like by default *.jsp is associated with java, and (I don't know why) the javascript functions show up, but the html isn't styled. But when I switched *.jsp to be associated with HTML, no more javascript functions. So I'm glad you found something!
Dennis
On Wed, Apr 29, 2009 at 12:54 PM, Dennis Sacks dennis.sacks@gmail.comwrote:
Actually, I got the problem solved. It was a configuration problem on my end. Something I did for .16 in my Application Data\geany must have been the problem, because I moved that geany directory out of the way and the javascript symbols are showing up now.
2009/4/29 Enrico Tröger enrico.troeger@uvena.de
On Wed, 29 Apr 2009 10:10:46 -0700, Dennis wrote:
On windows. I didn't change any code (I've not been able to compile on windows recently, but I haven't gotten to that yet).
I wasn't thinking about escaping issues, I just put that regex into geany's search...
Ah ok, don't do that! This regex is used in the source code, it can't be used in the search dialogs (at least it doesn't make any sense) :).
Still no example code to test with :(.
But if you are using the Windows nightly builds, it might be related to that since they are cross-compiled while the release builds are natively compiled on Windows. I'll try this later but some example to test with would be very helpful.
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
On Wed, 29 Apr 2009 13:36:02 -0700, Dennis wrote:
Hey,
When I try to do a build on windows xp from svn I get errors - I'm attaching the full output from make as a text file.
it seems you still have a GTK 2.6 environment, which is pretty much outdated. Since Geany 0.16 we depend on GTK 2.8 (which is also already really old :D).
Yesterday, I updated the information on http://www.geany.org/Support/BuildingOnWin32. As mentioned on this site, the easiest way is to download and use the GTK bundle which contains almost everything necessary.
Regards, Enrico