The good news: After using SciTE and being quite happy with it, I came across Geany and was quite pleased with the feature set and capabilities. The bad news: My development system at work is running RHEL5, meaning the latest version I can use is 0.20 (IT dictates our development distro) The worse news: Tags (one of the features I really wanted to use Geany for) cannot be generated- any "geany -g" command dies with a segfault. The salt in the sound: In the Bugs section of the 0.21 changelog: "Fix generating tag files (-g) and --ft-names segfault"
Fortunately, I've verified that the below commit can be backported to 0.20 tree and it resolves the issue (built 0.20 branch with this commit cherry-picked; ChangeLog just had to be merged).
Also while I was browsing changes I noticed that some fixes were completed after the release of 0.20.0, but there was never any 0.20.1 tag/release.
Is it possible to have a 0.20.1 maintenance release for those of us stuck on ancient versions of GTK to get this major feature working again? If not I'll just use my locally-built copy.
Thanks! -Kevin
--- commit e38f3b560a277e4a22ff50ef5bc348e8fbf3d7c0 Author: Nick Treleaven nick.treleaven@btinternet.com Date: Thu Mar 17 18:00:20 2011 +0000
Fix generating tag files and --ft-names option by ensuring GTK is initialized before calling ui_get_mime_icon().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5604 ea778897-0a13-0410-b9d1-a72fbfd435f5 ---
On 23 February 2012 12:21, Worth, Kevin kevin.worth@hp.com wrote:
The good news: After using SciTE and being quite happy with it, I came across Geany and was quite pleased with the feature set and capabilities.
The bad news: My development system at work is running RHEL5, meaning the latest version I can use is 0.20 (IT dictates our development distro)
For info, due to RHEL 5 having only GTK 2.10 and 0.21 requiring GTK 2.12.
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.
-Kevin
-----Original Message----- From: geany-bounces@uvena.de [mailto:geany-bounces@uvena.de] On Behalf Of Lex Trotman Sent: Wednesday, February 22, 2012 5:45 PM To: Geany general discussion list Subject: Re: [Geany] Backport request: fix for segfault when generating tags on 0.20
On 23 February 2012 12:21, Worth, Kevin kevin.worth@hp.com wrote:
The good news: After using SciTE and being quite happy with it, I came across Geany and was quite pleased with the feature set and capabilities.
The bad news: My development system at work is running RHEL5, meaning the latest version I can use is 0.20 (IT dictates our development distro)
For info, due to RHEL 5 having only GTK 2.10 and 0.21 requiring GTK 2.12. _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
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
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. :(
-Kevin
-----Original Message----- From: geany-bounces@uvena.de [mailto:geany-bounces@uvena.de] On Behalf Of Matthew Brush Sent: Wednesday, February 22, 2012 6:17 PM To: geany@uvena.de 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 Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 23 February 2012 13:20, Worth, Kevin kevin.worth@hp.com 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: geany-bounces@uvena.de [mailto:geany-bounces@uvena.de] On Behalf Of Matthew Brush Sent: Wednesday, February 22, 2012 6:17 PM To: geany@uvena.de 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 Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
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: geany-bounces@uvena.de [mailto:geany-bounces@uvena.de] 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 kevin.worth@hp.com 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: geany-bounces@uvena.de [mailto:geany-bounces@uvena.de] On Behalf Of Matthew Brush Sent: Wednesday, February 22, 2012 6:17 PM To: geany@uvena.de 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 Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
_______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 12-02-22 05:21 PM, Worth, Kevin wrote:
[...]
Is it possible to have a 0.20.1 maintenance release for those of us stuck on ancient versions of GTK to get this major feature working again? If not I’ll just use my locally-built copy.
Hi,
Geany is a small project with fairly low number of developers which is I think why we don't backport and have maintenance releases (often). However, even the development code is usually quite stable, and since you are capable of patching and building your own, that's probably the best route to take.
*Or* do what I do and bring your own computer to work :)
Cheers, Matthew Brush
Am 23.02.2012 02:21, schrieb Worth, Kevin:
Is it possible to have a 0.20.1 maintenance release for those of us stuck on ancient versions of GTK to get this major feature working again? If not I’ll just use my locally-built copy.
Most likely I'm afraid there will be no official 0.20.1 release of Geany due to missing resources.
Cheers, Frank
Am 23.02.2012 14:16, schrieb Frank Lanitz:
Am 23.02.2012 02:21, schrieb Worth, Kevin:
Is it possible to have a 0.20.1 maintenance release for those of us stuck on ancient versions of GTK to get this major feature working again? If not I’ll just use my locally-built copy.
Most likely I'm afraid there will be no official 0.20.1 release of Geany due to missing resources.
Thinking about it again with git its much easier. If the patch is working correctly I think at least I can start a branch on github where we can backport the things. Did you already file a bug against RH so either they can patch it on there own or a main. release is going in?
Cheers, Frank
I don't have a bug filed with RH (I don't think geany is part of the official package set)- I pulled the rpm I was using originally from http://pkgs.repoforge.org/geany/
Kevin Worth Software Engineer HP Networking kevin.worth@hp.com 916.785.4528
-----Original Message----- From: geany-bounces@uvena.de [mailto:geany-bounces@uvena.de] On Behalf Of Frank Lanitz Sent: Thursday, February 23, 2012 5:28 AM To: Geany general discussion list Subject: Re: [Geany] Backport request: fix for segfault when generating tags on 0.20
Am 23.02.2012 14:16, schrieb Frank Lanitz:
Am 23.02.2012 02:21, schrieb Worth, Kevin:
Is it possible to have a 0.20.1 maintenance release for those of us stuck on ancient versions of GTK to get this major feature working again? If not I'll just use my locally-built copy.
Most likely I'm afraid there will be no official 0.20.1 release of Geany due to missing resources.
Thinking about it again with git its much easier. If the patch is working correctly I think at least I can start a branch on github where we can backport the things. Did you already file a bug against RH so either they can patch it on there own or a main. release is going in?
Cheers, Frank
_______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany