PDA

View Full Version : [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...


realitygaps
2008-04-15, 20:22
I came across a program called Geany (http://geany.uvena.de/), through the ubuntu command line history meme that has been going around recently.

On a whim I tried compiling in scratchbox and suprisingly it worked for me with no dependencies (perhaps I had everything installed already - 2gb root partition).

It seems to run on the n810/os2008 with no problems and I find it to be a great editor with syntax highlighting for multiple languages.

It seems once you save a file as .rb it runs the ruby interpreter on the execute function - but runs python with .py files - I imagine this works also for the other languages that geany supports.

As my n810 just arrived from the developer program and I have already had a few celebratory drinks i thought the 'right thing' to do was to just release this package immediately and clean it up afterwards. So here you go:

http://gplsystems.com/maemo/geany_0.9-1_armel.deb

UPDATE:
Here is the 0.13 (debian sid) release - http://gplsystems.com/maemo/geany_0.13-1_armel.deb


Install this as root (sudo gainroot with becomeroot installed) with:
dpkg -i geany_0.9-1_armel.deb

lts not properly packaged - i'll add it to my apt repository (gplsystems.com) as soon as i get the time (probably this weekend or the next) but I thought some people might enjoy a rough port in the meantime.

Also apologies to anyone who contacted me recently about the hebrew input plugin for maemo - i have not had a maemo device recently so have not been able to do any porting/development but now that I have the n810 I plan to get involved again :) the keyboard makes all the difference!

Hope someone finds this useful, let me know if there are any problems, I plan to make the one click install/apt repository upload over the next week or so as soon as I find the time.

fiferboy
2008-04-15, 20:36
Thanks! I was just today thinking that someone needed to do this. Of course, it would be nicer with a desktop file to launch from the menu and full hildonization, but this is certainly a start.

Bundyo
2008-04-15, 20:38
Hmm, correct if i'm wrong but wasn't Geany version 0.13 already?

realitygaps
2008-04-15, 20:38
I'm working on that, I have a desktop icon on my device already - when I package properly on the weekend I'll make sure that is working.

As far as hildonisation its all a learning process for me right now, so if I figure that out it will be in the package eventually - otherwise maybe someone can help :)

realitygaps
2008-04-15, 20:44
Thanks bundyo, by mistake I uploaded the debian stable version as opposed to the sid version.

Here is the 0.13 (debian sid) release - http://gplsystems.com/maemo/geany_0.13-1_armel.deb

OSEmuTech
2008-04-15, 20:55
Cool! I couldn't get SciTE to work correctly on Chinook, so have been trying to find an IDE solution using emulators (Basilisk II, DOSbox, Bochs) the last 24 hours. Thanks! And the Xvkbd virtual keyboard works great with it.

http://fkwjcw.bay.livefilestore.com/y1p27A0pF0A3D-GfNofEqTYUKzqgIrNd6n6mn8SsdTzYCRfCAQbQ79D23GtvlZVu QOPYvbLiij7JOCSdKm-gbrfXQ/geany.png

realitygaps
2008-04-15, 21:00
I love free software & open source :)
its so great to get a response so quickly and be able to share....

pipeline
2008-04-15, 23:12
Yes this is a great editor, thanks! I'm doing c# development and right away it understands syntax highlighting and can parse out the symbols in the current file for calltips... thats without doing anything.

Now time to see what else this thing can do.... :)

omg... projects? :)

BruceL
2008-04-16, 08:32
Thanks realitygaps! This was much needed.

Is there any chance you (or anyone else who can easily build something) could build the GDB plugin at http://yetanothergeek.justfree.com/geanydebug/ ?

That would be amazing for our little NITs.

realitygaps
2008-04-16, 10:05
Hi BruceL, I made a tar.gz of the geanydebug plugin for Geany IDE compiled for chinook in scratchbox.

http://gplsystems.com/maemo/geanydebug-maemo-0.0.1.tar.gz (http://gplsystems.com/maemo/geanydebug-maemo-0.0.1.tar.gz)

-- Untar the tar.gz file into your home directory (as a user)
-- It will create a /home/user/.geany/plugins directory with the geanydebug plugin inside

I haven't tested this at all (my n810 is at home today) - but perhaps it will work. It says on the geanydebug website "Note: The plugin is currently working for Linux/PC only!" so don't be suprised if it doesn't.

realitygaps
2008-04-16, 10:32
I also uploaded the Version Control plugin from http://users.cosmostv.by/yurand/geanyvc/

http://gplsystems.com/maemo/geanyvc.so

This seems to work fine if you place it in the /home/user/.geany/plugins/ directory

It supports Git, Subversion, CVS, Bazaar etc....

BruceL
2008-04-16, 20:40
Yes! Thanks!
I'll try them tonight.

FGol
2008-04-18, 17:58
Dumb question alert: I have an N810... how do I enter special characters like braces or greater than / less than symbols? The pop up keyboard doest seem to pop up and the chr key doesn't seem functional. Is it me?

Thanks,
Frank

tabletrat
2008-04-18, 18:27
Dumb question alert: I have an N810... how do I enter special characters like braces or greater than / less than symbols? The pop up keyboard doest seem to pop up and the chr key doesn't seem functional. Is it me?

Thanks,
Frank

No, not just you (or a dumb question) I posted the same question yesterday on a couple of threads like this (http://www.internettablettalk.com/forums/showthread.php?t=19256) but no answer yet.

fiferboy
2008-04-18, 18:30
Frank, it is not just you. Geany is a GTK application, and this is just a straight compile for Maemo. The interface does not respect hildon input methods, which means it will not use popup keyboard or the "Chr" key on the N810. There needs to be some hildonization in order to improve functionality.

I compiled a version with basic hildon elements (proper menu and toolbar) but it screwed up my scratchbox install when I removed it. I might give it another go if no progress is made soon.

pipeline
2008-04-18, 21:45
To help further this cool program along... (ok i did it for me)... i built a package with menu icon, and button bindings for fullscreen and the +/- keys i bound to collapse folds and expand folds.

If you had to previously install geany in red pill mode, you might have to uninstall in redpill mode as well before installing my build. My build should not need red pill mode to install.

(Updated to 0.14 just released... and included plugins)
I built two packages, one with locales and one without (just english-us)... if your englishUS just grab that one since its smaller.
EnglishUS Version (http://wardenclyffetower.com/MaemoFiles/utils/geany-0.14-chinook-rel11-englishUS.deb)
All Locales Version (http://wardenclyffetower.com/MaemoFiles/utils/geany-0.14-chinook-rel11.all.deb)

I've also uploaded source (although all i did was simple edits to keybindings.c) here : Download Source (http://wardenclyffetower.com/MaemoFiles/source/maemo-geany-0.14.tar.gz)

- This could still use simplification to dialogs (to fit)
- i could not get the default build functionality to work (launching my custom mono command)... its like it cant shell
- Also seems you cant launch it with a .geany project file... so might be fun to hack a new command line parameter to do that

Thanks realitygaps for this great find :) Let me know if you want to coordinate any changes into your future packages.

OSEmuTech
2008-04-18, 22:40
Cool! Full screen works. And launching Geany as root (using Personal Menu or X-Term) has the nice GTK+ look. I hope (and pray) that this program is developed further.

BTW: I thought xvkbd was allowing the press of the return key to create a new line. I installed a bunch of extra stuff on my N800 later that night and found that I couldn't "CR-LF" to the next line of source. Is anyone using xvkbd with Geany (for creating ";" or using on a N800 without BT keyboard) and able to have the return key go to the next line?

http://fkwjcw.bay.livefilestore.com/y1p27A0pF0A3D9CXp2zIRzhjFjPESDUdX60J4Taxxm-RhPhILW2KrcfDn19Ag6jNkC3J6mflKU5HGfqjNdVtyCSxQ/geany_full.png

BruceL
2008-04-19, 06:52
The return key doesn't work with my bluetooth keyboard either. I think the problem may be related to the Scite editor because it (Scite) forms the basis for Geany and because Scite has the same problem with the return key.

Munk
2008-04-19, 07:26
From Fgo - Dumb question alert: I have an N810... how do I enter special characters like braces or greater than / less than symbols? The pop up keyboard doest seem to pop up and the chr key doesn't seem functional. Is it me?

On my N810 I simply hold down the "ctrl" button WHILE pressing the comma or period to get the less than or greater than. It doesn't work to press the ctrl key THEN the comma, etc.

The quote option wasn't working on my nit for some reason so I just copied and pasted your text. Sorry.

pipeline
2008-04-19, 22:59
Is anyone using xvkbd with Geany (for creating ";" or using on a N800 without BT keyboard) and able to have the return key go to the next line?


I think the problem may be related to the Scite editor because it (Scite) forms the basis for Geany and because Scite has the same problem with the return key.

Ahh, yea... you guys are right... the source editor is same Scintilla control in Scite. On my 810 the keyboard is glitchy (cant do certain symbols) but i didnt realise there no vkbd support for 800.

The author just updated to version 0.14 so i did another build and included the plugins this time (ver 0.14) :

English-US Version (http://wardenclyffetower.com/MaemoFiles/utils/geany-0.14-chinook-rel11-englishUS.deb)
All Locales Version (http://wardenclyffetower.com/MaemoFiles/utils/geany-0.14-chinook-rel11.all.deb)

Theres a new keyboard shortcuts option in help menu (run it in fullscreen mode) where you might be able to inject workaround for cr/lf issue. I'll try to ask Scintilla developers if they can think of a workaround for vkbd issue.

Munk : you can get to all special symbols except Ctrl'd chars in editor. Fn and Shift work if you keep button (fn or shift) held down. For ctrl chars you could jot down the first time in scribble area at bottom in message window and copy/paste but that's not good for real development and hurts to think virt kbd works in parts of the program but not the main window :(

OSEmuTech
2008-04-19, 23:26
Since I have tomorrow off, I'm just about to flash my N800 with OS 2007. I know that SciTE does except the CR-LF under OS 2007 and hopefully one of these builds of Geany can run under Bora as well (or I'll try compiling something).

I'm just going to be upset that the latest Evince won't run on Bora either. And knowing my luck, neither will TiEmu, Numpty Physics, Gweled, ...

I need to buy a second N800 so I'm not spending my days off switching Maemo versions.

realitygaps
2008-04-20, 01:00
Thanks pipeline you made the package much better, im glad to have found the app if you want to continue packaging it i think you are doing a great job and I have very little time at present :)

skibur
2008-04-20, 01:38
Is there any N800 with OS2008 support?

OSEmuTech
2008-04-20, 01:52
Um. I have a very used one for sale. Just $400! :p

All N800s come with OS 2007, but can be freely upgraded to OS 2008.

Just download and run the Nokia Internet Tablet Software Update Wizard: http://www.nokiausa.com/A4410958

skibur
2008-04-20, 02:40
Sorry, I mean does Geany IDE work on N800 with OS2008? Is there a .deb packet for it?

OSEmuTech
2008-04-20, 02:52
:p

Geany will work on a N800 with OS2008 just as well as on a N810, except that you will need a bluetooth keyboard or a virtual keyboard like xvkbd or xkbd.

But apparently, nobody can get the program to create a new line (via the return key) so from what I understand the program is awesome and cool, but kind of useless right now.

The debs are listed in a couple of posts in this thread. The latest ones by Pipeline are here: http://www.internettablettalk.com/forums/showpost.php?p=172108&postcount=20

skibur
2008-04-20, 03:11
I can return to the next line using my BT IGO, but I need to press the return key like multiple times. :(

skibur
2008-04-20, 03:19
I just created my first "Hello World" app. Its pretty cool, but the return key needs to be pressed 5 times very fast to actually go to the next line.

pipeline
2008-04-20, 03:59
Odd.. i can use return just fine with 810 keyboard i would think the same would be true for bt keyboard... perhaps different keycode though since nokia might have reversed that with DPad Enter. Geany detects my dpad enter as 'Return' and my enter keypad key as 'KP_Enter'... separate key codes.

You could remap a key like Dpad Enter (Return) to be paste and then just copy a newline and use dpad enter for return as workaround on 800. You'd do that in help menu/keyboard shortcuts.

BruceL
2008-04-20, 06:27
I had thought that return didn't work at all, but after reading the above posts I have found that it does work if you press it several times rapidly. It must be some sort of timing issue because repeatedly pressing it SLOWLY does nothing even after 30+ keypresses. You have to do it really fast. WEIRD!

Munk
2008-04-20, 07:09
Could someone help me get geany working through "Personal Menu" as root? With personal menu I find that it wont run when "root" option is selected but if I select the terminal option, it asks for the root password which I thought was "rootme". Basically if I run geany through xterminal after I "sudo gainroot" it works great but launching it through the normal menu's it looks different and doesn't quit fit in the 800x480 display quite right. Oh also it doesn't have rights to save a file.

Am I making any sense?

fiferboy
2008-04-20, 10:36
You have to edit your "sudoers" file to allow geany to launch as root. The Personal Menu thread has more information on how to do this.

FGol
2008-04-29, 13:09
Dumb question alert: I have an N810... how do I enter special characters like braces or greater than / less than symbols? The pop up keyboard doest seem to pop up and the chr key doesn't seem functional. Is it me?

Thanks,
Frank

Well I found a work around... I picked up an iGo BT Stowaway Keyboard (that doesn't say it works for the N* ITT but it works very well.) I gives me braces, and all the important special characters. I successfully coded up a quick Hello World and Greany built and ran it. Cool!

Frank :D

GriNN
2008-08-21, 04:15
Hi,

I know some Java and am teaching myself C++. This app seems perfect for that, since I can just grab my N810 open a C++ for dummies manual pdf and Geany, then switch between them and you know...learn stuff on the subway.

I wrote a happy little Hello World program but I couldn't get it to compile and run. Is there soemthing I am missing? I would take it as a great and wonderful personal favour if someone would be so kind as to spell out exactly what one has to do to compile and run a piece of code.

Thanks.

GriNN
2008-08-21, 04:37
Oh, I should point out that the code was clean and that Geany was set to read C++ and that I used the template for a .cpp file.

BruceL
2008-08-21, 04:54
Have you installed gcc, g++ and make?
You can also install gdb for debugging and if you have debian ddd is a great GUI based debugger.

Good luck!

GriNN
2008-08-21, 05:09
Aha. I had a feeling I couldn't get away with installing just Geany. Thanks... as you can probably tell, I am *very* new with all this.

(You should have seen me on that first day with eclipse)

Cheers

GriNN
2008-08-31, 22:40
Hello again,

Ok...so I installed g++ using "apt-get install g++". Then I set geany to run as root from the personal menu (which looks way nicer) as per the steps outlined in the personal menu thread. Then I went into the geany preferences to give the correct path to xterm.

Now when I choose build from the build menu it says compiled correctly, and when I choose run it launches xterm...but xterm closes immediately. As in it closes before it can show anything.

So I just need help with this last thing and I'll be on my way. What am I missing?

Thanks

jaeezzy
2008-09-01, 05:45
Hi, I'm trying to find curly braces in geany but I couldn't. I'm using n810 and the chr key doesn't seem to work. Also I could compile my simple console C++ application in it but while pressing the execute menu item it shows "Failed to execute the terminal program" so should I do. I have all the gcc's , g++'s and make files. So, please help me. Thanks..

Stokstaartje
2008-09-05, 13:52
What needs to be set when running Geany, installed via the App Manager, to be able to safe files? Or has that been answered already? Missed it...

stacia
2009-02-13, 00:10
The link seems to be down, and also Geany is at a newer version now. Does anyone have a copy of the deb, preferably an updated one?

pipeline
2009-02-13, 00:21
Hmm i had a post earlier but its links were broke so i fixed them.

My build of geany-0.14 is available here :
English (US) Build (1.4meg) (http://wardenclyffetower.com/MaemoFiles/utils/geany-0.14-chinook-rel11-englishUS.deb)
All locales Build (2 Meg) (http://wardenclyffetower.com/MaemoFiles/utils/geany-0.14-chinook-rel11.all.deb)

I dont think anyone has built 0.15 (yet)

stangri
2009-02-13, 09:07
Why is it not in the extras? Any chance this will be properly packaged and added into repository? I'm concerned about installing it with dpkg, as I might be unable to resolve dependencies should I need to uninstall it.

pipeline
2009-02-13, 11:52
There are no dependencies other whats in the default firmware.

Besides my knowing how to upload something to extras, it also does not support software keyboard... so not really usable to most n800 users, except as a viewer.

stangri
2009-02-14, 07:49
Can this be installed with apt-get then?

qwerty12
2009-04-01, 16:32
Thought this could do with an update so I've uploaded the latest version, 0.16, to extras-devel.

Unfortunately, hildon- input-method and the return key are still ****ed up to hell (and this hurts me as I have an N800 only...); but...

Thanks to pipeline for the 26x26 and 64x64 menu icons. And the keybindings.c.
I've hildonized the menu and the toolbar and MicroB is opened when opening a link, hildon file choosers in use, beep working and some other things.

TODO *cough* wishlist:

Get h-i-m working
Make preferences dialog fit


http://qwerty12.maemobox.org/geany1.png
http://qwerty12.maemobox.org/geany2.png
http://qwerty12.maemobox.org/geany3.png
http://qwerty12.maemobox.org/geany4.png

It's in both diablo and chinook extras:
http://maemo.org/downloads/product/OS2008/geany/

Source here (http://repository.maemo.org/extras-devel/pool/chinook/free/source/g/geany/): my modifications can be found in the debian/patches folder.

pipeline
2009-04-01, 22:28
Thanks qwerty, this is my favorite program for viewing/editing code. Your ports are really polished... glad your revisiting this one.

Just a tip for those who prefer their comments to be green instead of red :
- In /usr/share/geany/ folder find the filetypes for your language (such as filetypes.cpp or filetypes.cs),
- edit that file and towards the top there are 'comment' and 'commentline' entries
- change the hex code from '0xd00000' to '0x00aa00'
- those are just RGB color codes so middle two bytes are green values

qwerty12
2009-07-31, 15:43
Here's an half-assed attempt to get h-i-m working in it. It's not done well; hence me not bothering to upload it to Diablo extras-devel.

http://qwerty12.qole.org/geany_0.16-0maemo1_armel.deb

http://qwerty12.qole.org/imgdump/geany.png

dantonic
2009-09-02, 20:17
Hello again,

Ok...so I installed g++ using "apt-get install g++". Then I set geany to run as root from the personal menu (which looks way nicer) as per the steps outlined in the personal menu thread. Then I went into the geany preferences to give the correct path to xterm.

Now when I choose build from the build menu it says compiled correctly, and when I choose run it launches xterm...but xterm closes immediately. As in it closes before it can show anything.

So I just need help with this last thing and I'll be on my way. What am I missing?

Thanks

I'm having this exact problem. the .o and exec file gets created after building and compiling fine, and even when trying to run the prog from the command line, I get nothing:

/home/user # cd /media/mmc1/docs/"cisp 360"
/media/mmc1/Docs/cisp 360 # ls
gcc-3.4.install test.c
geany_run_script.sh test.o
test
/media/mmc1/Docs/cisp 360 # test
/media/mmc1/Docs/cisp 360 #

BruceL
2009-09-02, 20:24
Hi, I'm glad you got most of the way there!
I think there are two things missing:
First, make sure you have execute permissions on the executable file.

chmod a+x test.o

Next, run it like this:

./test.o

I don't know why Geany isn't running it correctly, but perhaps the above will help. (I use the command line myself.)

Good luck!

dantonic
2009-09-02, 21:26
Hi, I'm glad you got most of the way there!
I think there are two things missing:
First, make sure you have execute permissions on the executable file.

chmod a+x test.o

Next, run it like this:

./test.o

I don't know why Geany isn't running it correctly, but perhaps the above will help. (I use the command line myself.)

Good luck!

Hi,thanks for the reply.
I'm not well versed in linux, but anyway this is what i tried:
/media/mmc1/docs/cisp 360 # chmod a+x test.o
/media/mmc1/docs/cisp 360 # /test.o
/bin/sh: /test.o: not found
/media/mmc1/docs/cisp 360 # ls
gcc-3.4.install test.c
geany_run_script.sh test.o
test
/media/mmc1/docs/cisp 360 #

BruceL
2009-09-02, 21:33
There is a '.' before the /test.o
In linux, if you want to execute a file that isn't in the path you need to prefix it with './' (dot slash). It's a safety precaution I believe.

Also, if ./test.o doesn't work, try it with the 'test' file; I'm not sure how Geany made things.

dantonic
2009-09-09, 18:57
There is a '.' before the /test.o
In linux, if you want to execute a file that isn't in the path you need to prefix it with './' (dot slash). It's a safety precaution I believe.

Also, if ./test.o doesn't work, try it with the 'test' file; I'm not sure how Geany made things.

I've tried every combination, ./test.o ./test test test.o

I always get the error: /bin/sh: ./test(.o) permission denied

any ideas about what could be going on?

I've also tried this as root. Not sure why it wont let me run it.

BruceL
2009-09-09, 19:11
the command

chmod a+x test(.o)

should give you permission.

Type "ls -l" (no quotes) in that folder to see if you have executable permissions. The file should look something like this:

-rw-rw-r-x 1 ebrulon cbssw 25 Apr 15 11:08 test.o

the 'x' in the '-rw-rw-r-x' means that you have executable permissions. It could also look something like '-rwxrwxrwx' the 'x's are executable permissions. (r and w are read and write.)

Also, are there any files that end with '.out' in the folder? The executable could have that extension.

Bruce

dantonic
2009-09-09, 19:53
the command

chmod a+x test(.o)

should give you permission.

Type "ls -l" (no quotes) in that folder to see if you have executable permissions. The file should look something like this:

-rw-rw-r-x 1 ebrulon cbssw 25 Apr 15 11:08 test.o

the 'x' in the '-rw-rw-r-x' means that you have executable permissions. It could also look something like '-rwxrwxrwx' the 'x's are executable permissions. (r and w are read and write.)

Also, are there any files that end with '.out' in the folder? The executable could have that extension.

Bruce

thanks for the response. Trying the chmod command and the ls -l to check for change in execution permissions. The permissions do not change, it stays at -rw-r--r-- for all files in that folder.

tried it for test and test.o

I appreciate your help, any other ideas? another way to change permissions? looks like that's the problem.
no files ending with .out

BruceL
2009-09-09, 20:07
To change permissions you must own the file. When you do 'ls -l' does it say 'user' or 'root' as owner. In the above example 'ebrulon' is me (the owner) and 'cbssw' is the group I am in. Since it is best to build files as user, do this:

1) make sure you are root
2) cd to the parent of your project folder.
3) chown -R user <name-of-your-project-folder>

This should recursively CHange the OWNership of the folder and all its contents to user.

THEN try chmod a-x again.

The command chgrp does the same thing for the file's group.

This does eventually get easier, BTW.

Jaffa
2009-09-09, 20:55
If you can't change the permissions, is the file in /media/mmc*, which is mounted noexec

dantonic
2009-09-09, 21:48
ok, so thanks to both of you for starters. I was saving to my mmc card. I tried to save to the mydocs folder of the OS, and I do have permissions in there, and am able to run it.

Is it impossible to run such a file from a storage partition such as my mmc1 card?

Jaffa
2009-09-09, 21:55
Is it impossible to run such a file from a storage partition such as my mmc1 card?

No, it's Maemo - nothing's impossible[TM] ;-).

You have three basic options:


Don't use the MMC, use the root fs. Problem goes away.
Run it using /lib/ld-linux.so.2 ./test. This bypasses the noexec flag.
Modify /etc/fstab and remove noexec for /media/mmc1.