Bundler won't run

Answered

When I try to run Bundle Install in IntelliJ, nothing happens.  (I'm passing --path vendor/bundle as an argument.)

Afterward, I see the following in the log:

2016-01-08 11:12:06,533 [2572148]   INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - Argument for @NotNull parameter 'localPath' of com/intellij/util/PathMappingSettings.convertToRemote must not be null
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'localPath' of com/intellij/util/PathMappingSettings.convertToRemote must not be null
 at com.intellij.util.PathMappingSettings.convertToRemote(PathMappingSettings.java)
 at org.jetbrains.plugins.ruby.gem.gem.GemRunner.bundle(GemRunner.java:124)
 at org.jetbrains.plugins.ruby.gem.bundler.actions.AbstractBundlerAction.actionPerformed(AbstractBundlerAction.java:84)
 at org.jetbrains.plugins.ruby.gem.bundler.BundlerGemInfrastructure.runInstall(BundlerGemInfrastructure.java:110)
 at org.jetbrains.plugins.ruby.gem.module.ModuleGemInfrastructure.installMissing(ModuleGemInfrastructure.java:48)
 at org.jetbrains.plugins.ruby.gem.module.ModuleGemInfrastructure.updateModuleGemset(ModuleGemInfrastructure.java:59)
 at org.jetbrains.plugins.ruby.gem.module.GemRequirementsChangeWatcher$MissingGemsNotification$1.hyperlinkUpdate(GemRequirementsChangeWatcher.java:626)
 at com.intellij.notification.EventLog$NotificationHyperlinkInfo.navigate(EventLog.java:466)
 at com.intellij.execution.impl.EditorHyperlinkSupport$3.run(EditorHyperlinkSupport.java:143)
 at com.intellij.execution.impl.EditorHyperlinkSupport$1.mouseClicked(EditorHyperlinkSupport.java:83)
 at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.f(EditorImpl.java:5812)
 at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:5739)
 at java.awt.Component.processMouseEvent(Component.java:6535)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
 at java.awt.Component.processEvent(Component.java:6300)
 at java.awt.Container.processEvent(Container.java:2236)
 at java.awt.Component.dispatchEventImpl(Component.java:4891)
 at java.awt.Container.dispatchEventImpl(Container.java:2294)
 at java.awt.Component.dispatchEvent(Component.java:4713)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
 at java.awt.Container.dispatchEventImpl(Container.java:2280)
 at java.awt.Window.dispatchEventImpl(Window.java:2750)
 at java.awt.Component.dispatchEvent(Component.java:4713)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
 at java.awt.EventQueue.access$500(EventQueue.java:97)
 at java.awt.EventQueue$3.run(EventQueue.java:709)
 at java.awt.EventQueue$3.run(EventQueue.java:703)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
 at java.awt.EventQueue$4.run(EventQueue.java:731)
 at java.awt.EventQueue$4.run(EventQueue.java:729)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
 at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:866)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 15.0.2  Build #IU-143.1184.17
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_40-release
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2016-01-08 11:12:21,269 [2586884]  ERROR - llij.ide.plugins.PluginManager - Last Action: Register


Is this a bug, or am I doing something wrong?

10 comments

Looks like you do not have gem 'bundler' installed. Could you try

gem install bundler?

0

Bundler is installed.  I am able to run it from the command line.

$ which bundler

/usr/local/bin/bundler

0

Then you should set appropriate Ruby SDK in RubyMine. Settings -> Languages and Frameworks -> Ruby SDK and Gems

0

"Ruby SDK and gems" is not a choice.  (See screen capture).

The Ruby SDK is set up in the project.  I ran bundler by hand, then edited the run configuration to use bundler (i.e., checked "Run the scrip in the context of the bundle (bundle exec)") and I can run the script inside IntelliJ.  The only problem is that IntelliJ can't seem to run bundler itself.



Attachment(s):
Screen Shot 2016-01-08 at 11.36.34 AM.png
0

Is it RubyMine or IDEA with Ruby plugin? In case it's IDEA then Ruby SDK can be set by going to File | Project Structure (project and module SDK)

0

It is IDEA with the Ruby plugin.  The Ruby SDK is set in both places (both under project and module).  I also just updated to 15.0.3 and updated the Ruby plugin.  I'm seeing the same behavior.

0

I'm seeing a similar issue, except I'm not even getting the option to run 'bundler' at all inside of IDEA with the Ruby plugin. Any insight?

0

i am using native ruby (without rbenv, rvm, etc.) and when i head to the run\debug configurations an error message appear "Run Configuration Error: Cannot find bundler in ruby SDK". yet, everything works flawlessly on the command line using bundler.

i have no problem running "Tools | Bundler | Install".

any insights\resolution?

0

I'm not sure if this has been resolved yet, and I'm using RubyMine not IntelliJ Idea, but this seems to solve the issue for me as I was experiencing it as well in RubyMine:

1) Run -> Edit Configurations...

2) Then under the "Configuration" tab where it says Ruby SDK, click the radio button that says "Use Other SDK", instead of using "Use Project SDK".  As the "Other SDK" simply select the path to your general Ruby installation.  In my case it is /usr/local/bin/ruby installed with Homebrew.

I only use Bundler and per-project Gems.  Haven't installed RVM or Rbenv.

Bundler is installed as a Gem under the general installation.

0

There's a related issue, fix for which might help in this use-case: https://youtrack.jetbrains.com/issue/RUBY-22218

0

Please sign in to leave a comment.