Discussion:
Implementing auto indenting and intellisense for ruby classes in freeride
Paul Thirumalai
2007-05-11 23:03:35 UTC
Permalink
Hi All
I am trying to implement auto indenting and intellisense in freeride. Could
someone point me to teh correct plugin I should be looking at to modify. Or
am I totally in teh wrong direction and should actually be doing something
else, other than creating/modfying a plugin.

Thanks
Paul
Marcin Raczkowski
2007-05-12 01:16:56 UTC
Permalink
Post by Paul Thirumalai
Hi All
I am trying to implement auto indenting and intellisense in freeride.
Could someone point me to teh correct plugin I should be looking at to
modify. Or am I totally in teh wrong direction and should actually be
doing something else, other than creating/modfying a plugin.
Thanks
Paul
try ruby2ruby and parsetree, but work on freeride is mostly stoped - so
ttry netbeans instead ^^
Jonathan Maasland
2007-05-12 07:04:42 UTC
Permalink
First off I'd like to mention that after a period of well over half a
year I'm starting to program again. I've suffered from a pretty severe
depression and am still trying to cope with it. Hopefully the next month
or two I'll be able to create something useful for FreeRIDE again. (note
the hopefully)

Secondly, I started looking at ParseTree just yesterday so I can't
really say I'm speaking from experience but it seems like a nice
interface to parse Ruby files with. Currently we are using an old(er)
version of Ripper which unfortunately can't parse all the Ruby files in
the standard distro. I've worked on Ripper (a long time ago) and it's
not easily modified code. That said it is waaaay faster than ParseTree.
You could take a look at the plugins/rubyide_tools_source_parser
directory to see how Ripper is currently being used. When a new project
is created all existing ruby files are parsed and classes modules and
methods are displayed in the project_explorer.

IntelliSense is a really great idea and has been proposed here before.
However, it's a really complex beast to overcome. I mean sure it's easy
to create a dropdown list for every method but you want to minimize the
list to the context in which it is requested. Not only would you have to
parse the current source file every step of the way, you'd also be
presented with the occasional unfinished lines (read parsing errors).
What would you do in that case? Like I said, it's a really great idea
but I don't think it's achievable just yet.

If you want to contribute to FreeRIDE maybe you could take a look the
debugger and some of the problems (most notably WinXP-SP2) there.

Sorry for the somewhat long email.

Hope this helps.

With a friendly greeting,
Jonathan
Post by Marcin Raczkowski
Post by Paul Thirumalai
Hi All
I am trying to implement auto indenting and intellisense in freeride.
Could someone point me to teh correct plugin I should be looking at to
modify. Or am I totally in teh wrong direction and should actually be
doing something else, other than creating/modfying a plugin.
Thanks
Paul
try ruby2ruby and parsetree, but work on freeride is mostly stoped - so
ttry netbeans instead ^^
_______________________________________________
Freeride-devel mailing list
http://rubyforge.org/mailman/listinfo/freeride-devel
Loading...