Hi,
I tried to follow the instructions in http://geany.uvena.de/manual/index.html#global-tags, and executed these commands: 'geany -g -P /var/tmp/x.cpp.tags file_a.h', 'geany -P -g /var/tmp/x.cpp.tags file_a.h' and 'geany -g /var/tmp/x.cpp.tags -P file_a.h'.
However, 'geany' opens the 'file_a.h', and no '/var/tmp/x.cpp.tags' file is generated.
I also tried '--no-preprocessing' and the result was the same.
When I try 'geany -g /var/tmp/x.cpp.tags file_a.h', the '/var/tmp/x.cpp.tags' is generated, and 'geany' does not open.
What should I do to use the '-P' correctly?
In time, I am using version 0.11.
Thanks a lot, Rodrigo
On Wed, 10 Oct 2007 09:38:02 -0300, "Rodrigo Canellas" rodrigo.canellas@gmail.com wrote:
Hi,
I tried to follow the instructions in http://geany.uvena.de/manual/index.html#global-tags, and executed these commands: 'geany -g -P /var/tmp/x.cpp.tags file_a.h', 'geany -P -g /var/tmp/x.cpp.tags file_a.h' and 'geany -g /var/tmp/x.cpp.tags -P file_a.h'.
However, 'geany' opens the 'file_a.h', and no '/var/tmp/x.cpp.tags' file is generated.
I also tried '--no-preprocessing' and the result was the same.
When I try 'geany -g /var/tmp/x.cpp.tags file_a.h', the '/var/tmp/x.cpp.tags' is generated, and 'geany' does not open.
What should I do to use the '-P' correctly?
In time, I am using version 0.11.
That's the problem. The option -P was added after the release, so Geany 0.11 doesn't know it.
Regards, Enrico
Enrico,
I downloaded the subversion version, as explained in 'http://geany.uvena.de/Download/SVN', and the tags file is generated.
I type 'geany' in a 'xterm' window and this report is printed (among other information):
" ** INFO: Loaded /home/rcanellas/.geany/tags/certisign.cpp.tags (C++). ** INFO: Loaded /home/rcanellas/.geany/tags/certisign.h.tags (C). "
So the files are being automatically loaded, as I moved them to '~/.geany/tags'.
However, when I open one of the '.cpp' or '.h' used to generate the tags files, and try to 'Go to tag definition' or 'Go to tag declaration', 'geany' shows "Advanced declaration <symnol-name> not found" (actually the message is displayed in Portuguese, so I translated it).
I generated the 'certisign.h.tags' like this:
- 'cd' to the directory of the header files - typed 'CFLAGS=-I$PWD; geany -g -P certisign.h.tags $PWD/*.h' - moved the certisign.h.tags file to '~/.geany/tags'
I also tried 'CFLAGS=-I./; geany -g -P certisign.h.tags *.h', with the same results.
I did the same for the 'certisign.cpp.tags' file.
Can you see what I am doing wrong?
Thanks a lot, Rodrigo
2007/10/10, Enrico Tröger enrico.troeger@uvena.de:
On Wed, 10 Oct 2007 10:07:40 -0300, "Rodrigo Canellas" rodrigo.canellas@gmail.com wrote:
Hi,
I got this error compiling 0.12 pre:
" . . . Making all in po make[2]: Entrando no diretório `/var/tmp/geany-0.12pre/po' file=`echo be | sed 's,.*/,,'`.gmo \ && rm -f $file && -o $file be.po /bin/sh: -o: not found make[2]: ** [be.gmo] Erro 127 make[2]: Saindo do diretório `/var/tmp/geany-0.12pre/po'
Make sure you have installed the gettext and intltool packages as well as their dev packages. Which distribution do you use?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
2007/10/10, Enrico Tröger enrico.troeger@uvena.de:
On Wed, 10 Oct 2007 09:38:02 -0300, "Rodrigo Canellas" rodrigo.canellas@gmail.com wrote:
Hi,
I tried to follow the instructions in http://geany.uvena.de/manual/index.html#global-tags, and executed these commands: 'geany -g -P /var/tmp/x.cpp.tags file_a.h', 'geany -P -g /var/tmp/x.cpp.tags file_a.h' and 'geany -g /var/tmp/x.cpp.tags -P file_a.h'.
However, 'geany' opens the 'file_a.h', and no '/var/tmp/x.cpp.tags' file is generated.
I also tried '--no-preprocessing' and the result was the same.
When I try 'geany -g /var/tmp/x.cpp.tags file_a.h', the '/var/tmp/x.cpp.tags' is generated, and 'geany' does not open.
What should I do to use the '-P' correctly?
In time, I am using version 0.11.
That's the problem. The option -P was added after the release, so Geany 0.11 doesn't know it.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On 10/10/07 17:03:55, Rodrigo Canellas wrote:
[...] However, when I open one of the '.cpp' or '.h' used to generate the tags files, and try to 'Go to tag definition' or 'Go to tag declaration', 'geany' shows "Advanced declaration <symnol-name> not found" (actually the message is displayed in Portuguese, so I translated it).
Currently Geany global tags files don't store the filename the tag was parsed from. This has been requested before, so perhaps we may add an option to do this. ('Go to tag definition' should still work for any tags parsed from files in the current session).
Regards, Nick
Nick,
I am curious: if a tag file is not to be used to code completion, or to find a symbol declaration/definition, what would be its use?
Thanks, Rodrigo
2007/10/10, Nick Treleaven nick.treleaven@btinternet.com:
On 10/10/07 17:03:55, Rodrigo Canellas wrote:
[...] However, when I open one of the '.cpp' or '.h' used to generate the tags files, and try to 'Go to tag definition' or 'Go to tag declaration', 'geany' shows "Advanced declaration <symnol-name> not found" (actually the message is displayed in Portuguese, so I translated it).
Currently Geany global tags files don't store the filename the tag was parsed from. This has been requested before, so perhaps we may add an option to do this. ('Go to tag definition' should still work for any tags parsed from files in the current session).
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On 10/10/07 18:32:24, Rodrigo Canellas wrote:
Nick,
I am curious: if a tag file is not to be used to code completion, or to find a symbol declaration/definition, what would be its use?
It is used for code completion (assuming you're editing a file with a compatible filetype). It's used for everything tag-related, (e.g. calltips for C-like files), only at the moment the tag files don't store the filename. The format is very similar to Anjuta's global tags, and I guess they wanted to avoid saving the full filename for each tag. (Perhaps there could be an index of filenames instead, if anyone wants to work on it).
Regards, Nick