Autocompletion for chef plugin doesn't work

I have installed the Chef integration plugin, marked my cookbook as a cookbook, but yet, no autocompletions are being shown. What am i missing? :s

0
12 comments

Hello,

do you have the chef dk installed and selected as project SDK? Or do you have the 'chef' gem installed in your 'ruby' project SDK?

0

ChefDK is installed and is the chef version selected in general in rubymine. What I do notice is that RubyMine Gem manager is complaining about missing gems, which I can't put to ignore, maybe that's part of the problem. Installing hte gems doesn't work (probably due to file permissions).

0

Could you please attach piece of code and screenshot to understand what exactly you expect and it isn't completed.

0

Hi,

The screenshot in attachment shows that I don't get autocomplete e.g. for the git resource. I expect autocomplete to suggest action, but it doesn't.
Screen Shot 2015-07-13 at 16.09.03.png
For completeness, also the Ruby SDK and Gems screen from preferences:
Screen Shot 2015-07-13 at 16.10.35.png

0

Is there a debug log I can get to help trace this?

0

Well, I've investigated this problem and seems to managed to reproduce it and fix, see RUBY-16950

Please wait for update on http://plugins.jetbrains.com/plugin/7548

0

Thank you so much, I'll await an update eagerly. Chef integration is pretty much the only reason for me to buy rubymine, so this would be a deal breaker.

Thanks again!

0
Avatar
Permanently deleted user

I realize this is an old post.  But I'm having exactly same issue on windows.  

ChefDK installed and rubymine pointed at ChefDK embedded ruby (C:\opscode\chefdk).  Note:  It seems like from other posts that RubyMine should auto detect when ChefDK plugin is installed (here) but that didn't occur. I added reference manually.

Chef shows up under External Libraries and some references resolve (Chef::Log for example).  However, build in chef resources do not.



I am evaluating the product and this feature is key to my decision to purchase as well.

Please Advise

0

Hello Chad,

could you please specify what kind of Chef resources are expected to be completed but they don't?

0
Avatar
Permanently deleted user

Hi Dmitry,

Ok,  So I now realize that I'm working in the context of a custom resource.  So the auto complete DOES work in most places.  ;)

What I observe is that given a custom resource inside an action block I don't see the autocomplete.  

For example:

I expected to see directory 

 

Outside of the action

Thanks

 

 

0

@Chad, 

please vote for the corresponding issue about custom resources support:

https://youtrack.jetbrains.com/issue/RUBY-16637 

0
Avatar
Permanently deleted user

Will do.  Thanks

0

Please sign in to leave a comment.