Code Completion 'smalltalk like' script for RubyMine

Hi folks,

I previously posted about RM's Code Completion and how it could be improved.

In particular, I was wondering that in case of no inferred type it should suggest methods from all classes of the codebase.

This is the very same behaviour that eCompletion, oCompletion (Smalltalk) and NetBeans (Ruby) exibit.

My team has prepared a RubyMine script that, after some tests, help us to (partially) recover that behavior:

here:

https://github.com/morenocarullo/rubymine-smalltalk-autocomplete

we have uploaded the script.

Any suggestions are welcome!

Cheers,
-- Moreno

3 comments
Comment actions Permalink

Hello Morrento,

Thanks a lot for you script, the major problem is has - that all the dynamic methods are loaded on startup and changes within your code won't reflect changes in completion variants.
Even if we adopt your script to use RubyMine built-in name indexes we'll still won't be able to fix the problem described.
In the next version most likely we'll add special variant of completion, with all the symbols from project. By the way do you know about hippie completion? http://www.jetbrains.com/ruby/webhelp/hippie-completion-expanding-words.html

Regards,
Oleg

0
Comment actions Permalink

Yes exactly,

that is the major problem that is in the README also - that said this proof-of-concept is enough for us.

No, Hippie completion is not ok since I see that is cycles through the current class' relevant strings, not the strings withing the entire project.

However, this:

>> In the next version most likely we'll add special variant of completion, with all the symbols from project.

will be perfect for us.

Are you thinking to release it with RM 4.0?

Thanks,
Moreno

0
Comment actions Permalink

Yes, we've got it working and it will be available in RubyMine 4.0

0

Please sign in to leave a comment.