Cannot add Ruby SDK which is installed via asdf on MacOS
I get the follow error...
"Error configuring SDK: Could not get RubyGems environment for ruby-2.7.3"
I'm using the path that RubyMine finds automatically which matches "which ruby"
Anyone know how to get this setup?
Please sign in to leave a comment.
Hello Andy,
Could you please add debug logger identifier for asdf as it's described here: https://www.jetbrains.com/help/ruby/ruby-version-managers.html#how_debug_detection
Restart IDE and attach idea.log (if you want you can attach it to the issue on the tracker https://youtrack.jetbrains.com/issues/RUBY or send to rubymine-support@jetbrains.com)
I'm having the same issue with Ruby 2.6.6 and ASDF. I'm on Apple Silicon and MacOS 12.0.1, if that matters. ASDF is installed in ~/.local. Here's what I see when I grep my log file for 'asdf' after starting RubyMine:
if I try to add ~/.local/share/asdf/shims/ruby as a ruby version under Preferences > Ruby SDK and Gems, this appears in the logs:
As a workaround, I was able to directly add the ruby executable in ~/.local/share/asdf/installs/ruby/2.6.6/bin/ruby
Ryan, could you please add another 2 lines to Help - Diagnostic Tools - Debug Log Settings:
restart IDE, wait while indexing is finished and attach the fresh idea.log. You can submit a separate issue for that on our tracker:
https://youtrack.jetbrains.com/issues/RUBY