Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / IDE
- - By Nanaya Date 2013-03-05 15:42 Edited 2013-03-19 20:00
Hi,

Here a simple maybe already asked : what IDE are using to code in ruby/gosu ?

I'm looking for good (completion, syntaxe correction, etc.), that support opening window (and so Gosu), and UTF-8 caracter (ÀÁÂÄ, ç, etc.).
Any idea ?
To be perfect, a free one is better.

Thanks

EDIT : Finally, I'm using Eclipse (with some plugins) : iso-8859-1 support, completion, realtime console. Just what I need.
Parent - - By erisdiscord Date 2013-03-05 17:56
I have yet to find a full IDE that doesn't just get in my way.

TextMate (Mac) and Notepad++ (Windows) are both great free code editors (not full IDEs). They do some completion and syntax highlighting, but they don't do as much as Aptana, Visual Studio or Eclipse. You can write your own completions and macros for TextMate, though.

Not exactly what you asked for, but I hope it helps.
Parent - - By Nanaya Date 2013-03-05 18:11 Edited 2013-03-06 00:09
Yes, it does, not completly. In fact, I'd like to find a full IDE. Aptana was pretty good, but, can't encode my french accented characters. Annoying.

For now, I'll try easyeclipse, with a few plugin. But, without radrail, who is the one preventing me to use UTF-8 characters.

If anyone as a better one (among the free one), please tell me.
Parent - - By Spooner Date 2013-03-06 00:16
I have used Rubymine extensively, which is excellent, but it is only free for non-commercial, open-source work (and you have to formally apply to get that license). At the moment I'm mainly using Sublime Text though, to write Ruby and Python (free if you don't mind getting an occasional popup asking you to buy it).
Parent - - By Nanaya Date 2013-03-06 00:22
It's seems pretty hard to get the open-source licence. Haven't tried Rubymine, but if it was possible to get the licence (knowing that I code just for my own pleasure, open-source of course), well I coulde try.
Why did you move from Rubymine ?
Is Sublime Text can run program to test them ?
Parent - By Spooner Date 2013-03-06 00:28
I did have a free license to Rubymine, but it lapsed and I haven't had any luck (or response) in trying to renew it. I'm also doing work in Python as well as Ruby, so I might as well use the same system for both.

ST does run code (Ctrl-B) with its own output window, though I generally just use a console to run the code and/or spec.
Parent - By Spooner Date 2013-03-06 00:31
I have to say I'll probably buy Rubymine once I get a bit more contracting under my belt. It was definitely a lot better than Sublime, because it was very Ruby-friendly (e.g. integrating with git, github, rake, etc). Thing is I'm mainly working on quite small Ruby projects, so I don't really need it at the moment.
Parent - - By allcaps Date 2013-07-28 04:46
Spooner, do you know of a way to get Sublime text to correctly run a Gosu game from it's build system?  It looks like it runs from the console output, but the game window never opens.  I was trying arcadia out because it correctly runs gosu games, but I like Sublime a lot more.
Parent - By Spooner Date 2013-07-28 09:53
No idea, sorry. I've never actually tried that; I always just have a console window open to run builds.
Parent - By RavensKrag Date 2013-08-01 18:09
Does adding this to your project file not work?
This is the only way I ever launch ruby files through Sublime, and it works just fine for me.


"build_systems":
  [
    {
      "cmd":
      [
        "ruby",
        "main.rb"
      ],
      "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
      "name": "run",
      "selector": "source.ruby",
      "working_dir": "/PROJECT/DIR/GOES/HERE"
    }
  ]


Using the real project directory, of course :P
This also assumes that the file you want to run is called "main.rb", not necessarily the file you're currently in.
Parent - - By jlnr (dev) Date 2013-03-06 00:48
In case anyone wants to toy around with this...

I have written a generator for TextMate that takes Gosu's yard docs and outputs a bundle with tab completion:

.draw_rot<tab> -> .draw_rot(x, y, z, angle, center_x, center_y, ...) etc.

It probably only works for Gosu because the interface is tiny, but can't many editors import .tmbundle extensions nowadays? Should I build and upload a .tmbundle?

https://github.com/jlnr/gosu/blob/master/rake/tmbundle.rb
Parent - - By erisdiscord Date 2013-03-06 00:50
If you made a TextMate bundle part of the official Gosu distribution, I would be so happy.
Parent - - By Nanaya Date 2013-03-06 12:49 Edited 2013-03-19 20:01
+1 for tmbundle !
That would be greate.

How does it work (+bundle in general) ?
How do I "use" it ?
(Guessing I've got to require the rb file first ? Could some IDE directly use it ?)
Parent - By jlnr (dev) Date 2013-06-30 16:32
See the post below - it is not nearly a replacement for an IDE though.
Parent - - By jlnr (dev) Date 2013-06-30 16:31
Since the official distribution is a ruby gem, I have instead linked it from the front page: http://www.libgosu.org/RubyGosu.tmbundle.zip

I am still planning to turn this into a general converter from yard output to TextMate bundle…one day :)
Parent - - By erisdiscord Date 2013-07-01 15:14
TextMate 2 is complaining about that bundle.

The bundle “RubyGosu” could not be installed because it is malformed.
The bundle lacks mandatory keys in its property list file.


but it doesn't actually say which keys are missing. Hrmph.
Parent - By jlnr (dev) Date 2013-07-01 20:59
Thanks, I'll take a look. I've only used it in TextMate 1 so far.
Parent - - By chase4926 Date 2013-04-10 16:15
Not an IDE, but Geany is a fantastic replacement for Notepad++ or GEdit.

I use it for all of the programming.
Parent - By SPK Date 2013-04-10 18:25
Sublime Text 2 is all I need.
Parent - By jahmaican Date 2013-07-10 10:24
In fact Geany could be considered a very basic IDE. Does the most things you could ever need with scripting languages.
Parent - - By jahmaican Date 2013-12-13 11:30
I found out about a great editor recently, called Komodo Edit. Takes a while to load, but it's beautiful, highly configurable and intuitive yet powerful.
Download:
http://www.activestate.com/komodo-edit/downloads

Run command you'll need is ruby %F, you can bind it to a hotkey easily.

Here, have a screenshot:
Parent - By Nanaya Date 2013-12-13 13:22
Thanks, I'll try it one day (currently on others stuff to deal with).
Up Topic Gosu / Gosu Exchange / IDE

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill