basgren / railways

A plugin for RubyMine and IntelliJ IDEA Ultimate that adds a panel with routes of Ruby on Rails application.
MIT License
46 stars 18 forks source link

BUNDLE_GEMFILE ignored #22

Open ddnexus opened 8 years ago

ddnexus commented 8 years ago

Railways ignores the BUNDLE_GEMFILE variable, and it tries to load the regular Gemfile, which in some project maybe wrong, hence stopping it to work with some error.

Is there any possibility to bypass that problem?

basgren commented 8 years ago

Thanks. I'll take a look if it's possible. Could you please describe me your use case? Do you have Gemfile that's not in project root?

Also could you please run rake routes task from IDE (in RubyMine it can be done by Ctrl + Alt + R, then type routes) and let me know if RubyMine takes BUNDLE_GEMFILE into account when running rake tasks. Railways plugin uses standard RubyMine API to run rake tasks, so the solution might be not easy if the issue is in the API.

Thank you

ddnexus commented 8 years ago

I have multiple gemfiles in the project root but they have different names (there are a few compelling reasons to have that setup in our envs).

The routes from RubyMine can be pulled correctly by using the Arguments field (setting there the BUNDLE_GEMFILE=my_file_name) and the Environment picker provided.

Thanks

ddnexus commented 5 years ago

What is the status of this? Thanks.

hurricup commented 5 years ago

you should probably see https://youtrack.jetbrains.com/issue/RUBY-16865

ddnexus commented 5 years ago

@hurricup Thanks. Commented and voted!