I knew the symbols on the left would only be shown for the current file, but my 
test was to do a "Go to definition" for a function that wasn't in a 
currently-open file. This should work if you load a global tags file, right?  
i.e.  fileA.c has a call to a functionB in fileB.c- if you open fileA.c, 
right-click the call to functionB and select "Go to definition"- it should open 
fileB.c and go to the line number of functionB's definition (as found in 
mycode.c.tags), right? Just making sure I'm understanding the expected behavior.

-Kevin

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lex 
Trotman
Sent: Wednesday, February 22, 2012 6:33 PM
To: Geany general discussion list
Subject: Re: [Geany] Backport request: fix for segfault when generating tags on 
0.20

On 23 February 2012 13:20, Worth, Kevin <[email protected]> wrote:
> Yes, generated using
>
> find . -name '*.[ch]' | xargs geany -g -P mycode.c.tags
>
> (tested it on a single file as well w/o the find/xargs combo, i.e. geany -g 
> -P mycode.c.tags somedir/somefile.c)
>
> No luck. :(

Only symbols from open files show in the symbols pane, but loaded tags
should still do autocompletions etc.

Loading tags is for libraries etc and you don't want all of GTK
showing in the symbols pane, you would never find your own symbols.

Cheers
Lex


>
> -Kevin
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of 
> Matthew Brush
> Sent: Wednesday, February 22, 2012 6:17 PM
> To: [email protected]
> Subject: Re: [Geany] Backport request: fix for segfault when generating tags 
> on 0.20
>
> On 12-02-22 06:11 PM, Worth, Kevin wrote:
>> Yep. This isn't the first program I haven't been able to use the latest of 
>> due to GTK oldness.
>>
>> Also an update to this: I was able to finally generate a C tags file, but it 
>> doesn't seem to work even after I load it  (the tags file looks fine, but I 
>> can't seem to get any symbol definitions to work).  Came up with an 
>> alternate approach- make a new project, open all my .c files, and let geany 
>> generate the tags as it opens the files. It's not that big of a project, and 
>> it saves me the headache of spending more time messing with something that I 
>> assume is working in 0.21.
>>
>
> Is the tags file named properly?
>
> Ex: myproject.c.tags
>
> Cheers,
> Matthew Brush
> _______________________________________________
> Geany mailing list
> [email protected]
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
> _______________________________________________
> Geany mailing list
> [email protected]
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
_______________________________________________
Geany mailing list
[email protected]
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
_______________________________________________
Geany mailing list
[email protected]
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany

Reply via email to