No Ruby interpreter configured for default project, after update

Answered

idea.log

2019-03-20 11:09:12,556 [ 8428] INFO - .ruby.ruby.run.RubyCommandLine - Executing [bash -lc "/Users/xpto/.rvm/bin/rvm default do ruby -e \"ENV.each{|k,v| print %Q<#{k}=#{v}\0>}\""], working dir =[null]
2019-03-20 11:09:13,264 [ 9136] WARN - t.rvm.RvmVersionManagerHandler - Error getting rvm environment java.lang.Exception: malformed: at com.intellij.util.EnvironmentUtil.parseEnv(EnvironmentUtil.java:296)


EnvironmentUtil.java (https://github.com/JetBrains/intellij-community/blob/master/platform/util/src/com/intellij/util/EnvironmentUtil.java)

private static Map<String, String> parseEnv(String text) throws Exception {
String[] lines = text.split("\0");

return parseEnv(lines);
}

----------------
so when the command line is executed, the env is concatenated separated by "\0" and the code in util.jar according to github it is split by "\0" in String[] lines = text.split ("\0");
makes sense...
however when I went to look at the RubyMine util.jar I found:

String[] lines = text.split("\000");

1 comment

Hello,

since you've also created an issue on our tracker (https://youtrack.jetbrains.com/issue/RUBY-23845) let's continue the discussing there.

0

Please sign in to leave a comment.