But I like to have the following:
when typing:
talker.
a list should popup, showing me the available methods and variables.
I'm developing method autocompletion for the jEdit Ruby Editor Plugin,
using the "if it quacks, it waddles" approach. Unfortunately you'll
have to wait a couple of weeks for me to get it finished.
if I scroll to a method, a window should popup, to show me the help-text
of the method.
I've added a search documentation feature to the plugin, which does a
search via ri and reports back the results in a dialog. You can get
jEdit and the Ruby Editor Plugin from:
But I like to have the following:
when typing:
talker.
a list should popup, showing me the available methods and variables.
I'm developing method autocompletion for the jEdit Ruby Editor Plugin,
using the "if it quacks, it waddles" approach. Unfortunately you'll
have to wait a couple of weeks for me to get it finished.
Read his message again, he wants something like "if it exists, then it
...."
···
--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ruby-ide.com
CTO Scriptolutions Ruby, PHP, Python IDE 's
But I like to have the following:
when typing:
talker.
a list should popup, showing me the available methods and variables.
I'm developing method autocompletion for the jEdit Ruby Editor Plugin,
using the "if it quacks, it waddles" approach. Unfortunately you'll
have to wait a couple of weeks for me to get it finished.
ok
if I scroll to a method, a window should popup, to show me the help-text
of the method.
I've added a search documentation feature to the plugin, which does a
search via ri and reports back the results in a dialog. You can get
jEdit and the Ruby Editor Plugin from: Ruby Editor Plugin for jEdit
--
Nikolai Weibull: now available free of charge at http://bitwi.se/\!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
> Ilias Lazaridis wrote:
>> But I like to have the following:
>> when typing:
>> talker.
>> a list should popup, showing me the available methods and variables.
> I'm developing method autocompletion for the jEdit Ruby Editor Plugin,
> using the "if it quacks, it waddles" approach. Unfortunately you'll
> have to wait a couple of weeks for me to get it finished.
Read his message again, he wants something like "if it exists, then it
...."
I think what I'm developing is close to what Ilias wants ...
Initially I create a cache of available modules/classes/methods. I
infer the possible classes of a variable based on how you've
previously used it, then provide a popup of all methods available on
the inferred set of classes. I have this roughly working at present.
Just need to write the code to keep the cache updated as you edit the
ruby files.
Java, despite it's shortcomings as a language, does run on GNU/Linux,
Mac OS X, Solaris and Windows. Why do you require that the editor you
use be written in Ruby or C/C++?
Initially I create a cache of available modules/classes/methods. I
infer the possible classes of a variable based on how you've
previously used it, then provide a popup of all methods available on
the inferred set of classes. I have this roughly working at present.
Just need to write the code to keep the cache updated as you edit the
ruby files.
How do you handle the parsing ?
Do you require the files and hope that there is no side affect, or do
you use something like parsetree ?
How do you do handle binary extensions ? This seems to be the biggest
part of the problem. I previously tried to convert the ri database (which
are simple yaml files) but i run into the problem that the database
format is not stable at the moment.
···
--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ruby-ide.com
CTO Scriptolutions Ruby, PHP, Python IDE 's
Java, despite it's shortcomings as a language, does run on GNU/Linux,
Mac OS X, Solaris and Windows. Why do you require that the editor you
use be written in Ruby or C/C++?
> Initially I create a cache of available modules/classes/methods.
How do you handle the parsing ?
Do you require the files and hope that there is no side affect, or do
you use something like parsetree ?
I'm using the JRuby parser to determine the structure, and regular
expressions to find the start offset of each module/class/method.
JRuby defines a NodeVisitor interface to be implemented by visitors of
the JRuby AST. Each node calls the visit method appropriate to its
type. Here is the NodeVisitor interface:
Big thanks to the JRuby team for their work!
How do you do handle binary extensions ?
I don't yet.
This seems to be the biggest part of the problem. I previously tried to
convert the ri database (which are simple yaml files) but i run into the
problem that the database format is not stable at the moment.
Jeez. Your goal, as stated, was "I like to try ruby a little bit more."
How about actually writing Ruby code instead of worrying about when/if
you might need to edit the IDE in the future.
···
On Apr 7, 2005 4:04 AM, Ilias Lazaridis <ilias@lazaridis.com> wrote:
Rob . wrote:
> Ilias Lazaridis wrote:
>
>>Rob . wrote:
>>
>>>You can get jEdit and the Ruby Editor Plugin from:
>>>Ruby Editor Plugin for jEdit
>>
>>jedit is written in java.
>>
>>I would need an IDE written in ruby or C/C++.
>
> Java, despite it's shortcomings as a language, does run on GNU/Linux,
> Mac OS X, Solaris and Windows. Why do you require that the editor you
> use be written in Ruby or C/C++?
You won't get tight integration like IDEA and Java, but it's a very
productive environment. (Although there's talk that the next version,
7.0 will permit Intellisense and such. Adding language-specific
support to vim is trivial.)
You won't get tight integration like IDEA and Java, but it's a very
productive environment. (Although there's talk that the next version,
7.0 will permit Intellisense and such. Adding language-specific
support to vim is trivial.)
I hope you find what you're looking for.
I've overflown the links, and it looks very intresting.