EAP: Run/Debug Configuration, specify the Gemfile path
Hello,
I am working on a Ruby project that has a container folder, under which there are several inter-dependent subfolders (which are in fact git submodules), each of these modules has a Gemfile, that's used for testing during development. I found it very productive to work on it as a single project, and found no major drawback to that.
My problem: Run/Debug configuration allows me to run a script/test in one of the subfolders, set the working directory to the subforlder, but if i "Run the script in the context of the bundle", it complains there is no Gemfile (because it obviously looks for one in the main folder).
I wish there was a solution to, either: (a) look for the Gemfile in the set working directory or (b) manually specify the Gemfile for the specific Run/Debug configuration.
TIA,
cheers,
L.
Please sign in to leave a comment.
Agreed this is desirable behavior. Esspecially since rbenv+Bundler is much saner approroach then RVM to managing Rubies+Gemsets. If there is an open featiure request could you point to it?
Hi,
Actually you need to open several projects in 1 window. This feature isn't ready yet, as a workaround you can set "BUNDLE_GEMFILE" env variable with Gemfile location in run configuration settings. Workaround will start working in next 4.0 EAP, at the moment RubyMine always overrides BUNDLE_GEMFILE env variable with Gemfile from project root.
Hello, Roman.
First of all, thank you very much for you help, secondly, is it supposed to be supported in today's EAP: RM-112.477?
I rushed to try it, but all I get is still "No Gemfile found".
Glad to hear multiple projects are coming along the way!
cheers,
L.
Hello, I also have multiple Gemfile in a single project and facing the exaclty same problem.
I tried with BUNDLE_GEMFILE from Run configuration, but it still gives me error of No Gemfile found.
I am using RubyMine4.5.4 Build #RM-119.71.
Is the workaround of using BUNDLE_GEMFILE to handle multiple Gemfile still not implemented with this version?
Thanks,
Kim
Hello,
I have a same problem on rubymine8 in spite of specifying BUNDLE_GEMFILE.
I intend to wait for new feature to solve this problem leisurely.
Thanks,
Shinohara
We have a corresponding request on our tracker, please vote for it:
https://youtrack.jetbrains.com/issue/RUBY-16865