5 Replies Last post: Jan 15, 2009 5:02 PM by Oleg Shpynov  
Reggie Perry Newbie 31 posts since
Apr 17, 2007
Currently Being Moderated

Dec 13, 2008 5:46 AM

Auto-completion not working in IDEA Ruby plugin?

Hi there,

 

I am running the Ruby plugin version 2.0.214083 and I cannot seem to get auto-completion of any form working meaning that I press crtl-space and get nothing. Is this a feature only in RubyMine? Are the features between the plugin and RubyMine starting to diverge?

 

Thanks for the help.

 

-Reggie

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Dec 13, 2008 1:21 PM in response to: Reggie Perry
Re: Auto-completion not working in IDEA Ruby plugin?

Hi Reggie,

I am running the Ruby plugin version 2.0.214083 and I cannot seem to get auto-completion of any form working meaning that I press crtl-space and get nothing. Is this a feature only in RubyMine? Are the features between the plugin and RubyMine starting to diverge?

RubyMine and IntelliJ IDEA Ruby Plugin are made from the same codebase. Thus set of features are quite similar talking about pure ruby and rails. IntellIJ IDEA plugin has set of JRuby oriented  set of features to enable cross language autocompletion and navigation.

 

Do you have Ruby module or Java module?

If you have Ruby module please ensure you have selected Ruby SDK for your module, and if you have Java module, please ensure you have JRuby facet correctly configured.

 

Thanks,

Oleg

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Dec 15, 2008 2:23 PM in response to: Reggie Perry
Re: Auto-completion not working in IDEA Ruby plugin?

Hello,

 

At the moment we are working on rewriting Ruby sdk and gems management in RubyMine.

I suppose Rubymine cannot find gems for your Ruby 1.8.7 in your case.

Problem seems to be fixed after we finish this.

 

Thanks,

Oleg

Sebastian  Newbie 29 posts since
Nov 2, 2008
Currently Being Moderated
Jan 14, 2009 11:28 PM in response to: Oleg Shpynov
Re: Auto-completion not working in IDEA Ruby plugin?

Hello Oleg,

 

just to give you an idea how it should work.

The problem is that there is no common approach for require in the Ruby world.In Java you just import what you need in a file.

In Ruby you can do either this or import in central files which is frequently done in larger projects.

The next sample show how this could work.

 

Install the ramaze webframework

gem install ramaze  

or

jruby -S gem install ramaze

 

Create a sample application

ramaze --create sample

 

You will see that starting from the start.rb init.rb files are included, for example controller/init.rb

controller/init.rb in turn will include all controllers. The acquire is a ramaze extension but you can just replace it

with a number of

require 'foocontroller'

require 'barcontroller

 

I should be able to set such a starting point in my application and everything which is required should be available in all files as well.

 

Best Regards

 

Sebastian

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Jan 15, 2009 5:02 PM in response to: Sebastian
Re: Auto-completion not working in IDEA Ruby plugin?

Hello Sebastian,

I should be able to set such a starting point in my application and everything which is required should be available in all files as well

Sounds great. Will discuss it. I suppose it will be some ruby module settings to implicitly require several rb files automatically in every file opened in RubyMine / Ruby plugin.

 

Thanks,

Oleg

More Like This

  • Retrieving data ...