Hi everyone,
Before starting this mail, I would like to tell you that I discovered Geany in the Ubuntu repos around one and a half years back. It was so light-weight, nearly non-existent dependencies (a few). I was taken back by the simplicity, and lightness of this software. I started propagating it and found many taker. When I did my summer internship at Microsoft - India, I suggested geany to some of the regular developers who were heavily loaded with work and were fed up with hundreds of open files in Visual Studio (its bulky). Even many people in MS liked it. Open Source in MS :)
Coming to the point. I am running Ubuntu 8.04.2 on my laptop. The highest version of Ubuntu possible on this Ubuntu version is 0.14, since 0.15 requires a gtk version not in 8.04. Intrepid has 0.15, but it has some problems with my hardware and other reason is that 8.04 is a LTS. Hardy has 0.13 in repos and I installed 0.14 from getdeb.net ( a crude way, I know)
I have noticed that PHP has autocomplete in 0.14 but Python does not. Python's default syntax highlighting looks more complete than that of PHP. I use PHP and Python a lot, so Geany is a good choice from a long time. When I found autocomplete, my joy knew no bounds, but is this autocomplete restricted to PHP? Is Python autocomplete available in higher versions? 0.16 is the latest, but I didnt find anything in the changelog.
For Python autocomplete, do I have to do a "feature request"? I just wanted to know whether its already in higher versions since I cant install it due to gtk dependency. If it's not implemented, I wish to request this feature. I am also ready to help the developers with this work.
Regards, Manish Sinha
Blog : http://blog.manishsinha.net Tech: http://manishtech.wordpress.com Twitter: http://www.twitter.com/manishsinha
Hi,
On Thu, 26 Feb 2009 17:51:43 +0530 Manish Sinha mail@manishsinha.net wrote:
Coming to the point. I am running Ubuntu 8.04.2 on my laptop. The highest version of Ubuntu possible on this Ubuntu version is 0.14, since 0.15 requires a gtk version not in 8.04. Intrepid has 0.15, but it has some problems with my hardware and other reason is that 8.04 is a LTS. Hardy has 0.13 in repos and I installed 0.14 from getdeb.net ( a crude way, I know)
Geany 0.16 is depending on Gtk 2.8.x. I've got current svn version running on Xubuntu 8.04.2. If there is no suitable package avaialble, maybe you can compile it on your own: http://www.geany.org/manual/index.html#installation
I have noticed that PHP has autocomplete in 0.14 but Python does not. Python's default syntax highlighting looks more complete than that of PHP. I use PHP and Python a lot, so Geany is a good choice from a long time. When I found autocomplete, my joy knew no bounds, but is this autocomplete restricted to PHP? Is Python autocomplete available in higher versions? 0.16 is the latest, but I didnt find anything in the changelog. For Python autocomplete, do I have to do a "feature request"? I just wanted to know whether its already in higher versions since I cant install it due to gtk dependency. If it's not implemented, I wish to request this feature. I am also ready to help the developers with this work.
There is a basic autocompletion support inside 0.16. I guess it was introduced with 0.15 but I'm to lazy to look it up. Anyway, from my point of view and my few lines of Python code I'm writing it's sufficient.
Cheers, Frank
Frank Lanitz wrote:
There is a basic autocompletion support inside 0.16. I guess it was introduced with 0.15 but I'm to lazy to look it up. Anyway, from my point of view and my few lines of Python code I'm writing it's sufficient.
Thanks for the info Frank. I know Python codes are small enough for any autocomplete, but the problem comes when you have used a variable names and then try to use it again. Or maybe you have a variable in another module and when importing, it should come in scope. That's too comes under autocomplete.
Can you give me any pointers on the source code where the Python autocomplete is implemented. Maybe I can contribute a bit, since you may be having other areas to work on.
Regards, Manish
On Thu, Feb 26, 2009 at 11:36 AM, Frank Lanitz frank@frank.uvena.de wrote:
Hi,
On Thu, 26 Feb 2009 17:51:43 +0530 Manish Sinha mail@manishsinha.net wrote:
Coming to the point. I am running Ubuntu 8.04.2 on my laptop. The highest version of Ubuntu possible on this Ubuntu version is 0.14, since 0.15 requires a gtk version not in 8.04. Intrepid has 0.15, but it has some problems with my hardware and other reason is that 8.04 is a LTS. Hardy has 0.13 in repos and I installed 0.14 from getdeb.net ( a crude way, I know)
Geany 0.16 is depending on Gtk 2.8.x. I've got current svn version running on Xubuntu 8.04.2. If there is no suitable package avaialble, maybe you can compile it on your own: http://www.geany.org/manual/index.html#installation
Hi Manish,
I'm currently fetching Geany 0.16 from a Personal Package Archive on Launchpad:
https://edge.launchpad.net/~klaus-vormweg/+archive/ppa
Klaus has hardy build of 0.16, so you're in luck :)
Just grab sources.list entry for Hardy using the drop-down, add the entry via "System -> Administration -> Software Sources -> Third Party Software", and you'll be laughing.
Best, Maris
Mars wrote:
Hi Manish,
I'm currently fetching Geany 0.16 from a Personal Package Archive on Launchpad:
https://edge.launchpad.net/~klaus-vormweg/+archive/ppa https://edge.launchpad.net/%7Eklaus-vormweg/+archive/ppa
Klaus has hardy build of 0.16, so you're in luck :)
Just grab sources.list entry for Hardy using the drop-down, add the entry via "System -> Administration -> Software Sources -> Third Party Software", and you'll be laughing.
Best, Maris
Thanks a lot Maris, I got it and it working properly. Awesome!
The issue of this mail was more than just getting 0.16! I wanted to know how to contribute to Geany 0.16 Python autocomplete. I have the source code for 0.16 on my system and want to enhance the feature. Can you give me a few pointers on how to do so. Which files have this code for doing so. Any docs in any form would be welcome :)
Cheers, Manish
On Fri, 27 Feb 2009 00:12:22 +0530, Manish wrote:
Hey,
The issue of this mail was more than just getting 0.16! I wanted to know how to contribute to Geany 0.16 Python autocomplete. I have the source code for 0.16 on my system and want to enhance the feature. Can you give me a few pointers on how to do so. Which files have this code for doing so. Any docs in any form would be welcome :)
Glad to hear you are now on 0.16, this makes things easier :).
Geany has a file named python.tags, probably located in /usr/share/geany on your system. This files contains the available symbol names for Python. It is created by the script at [1]. However, this is far from being good. For instance, the symbol completion is not context-sensitive, i.e. it doesn't take into account of which class the current object is when showing completions. It is a more or less a basic or stupid completion without any scope information.
To improve this the key is to parse the object before the dot when starting an auto completion. But to get it's name is obviously not enough as we need to know it's type and there it becomes tricky. If you really want to step in and improve things, dig into src/editor.c in editor_start_auto_complete() and then find your way down to the internals :). In case you need any help, feel welcome to ask.
Anyway, the current state of Python auto completion isn't that bad, IMO. It still helps to quickly complete a few often used methods and constants.
[1] http://geany.svn.sf.net/viewvc/geany/trunk/scripts/create_py_tags.py?view=ma...
Regards, Enrico