Upgraded from 2017.3 to 2019.2 and Rubymine is unable to find any SDK? I am using rvm

Completed

So I noticed I was still using an older version 2017.3 and decided to upgrade, woot!

However, when trying to run my tests after the upgrade, I got the weird error: "No SDK specified". 

Mmmmmm that is weird, because 1) it was ok in 2017.3 and I copied the configuration, 2) imho rubymine is able to determine the "SDK" from the .rvmrc file automatically? 

Does this no longer work? 

 

I tried adding a ruby manually, and selected the path `which ruby` indicated, and then I get the error that not all gems are installed. No they are in the gemset? How do I select the gemset? Why does rubymine no longer find this "automatically"? 

 

Does 2019.2 no longer support rvm? 

 

 

 

 

11 comments
Comment actions Permalink

Hello Nathan,

rvm is supported in 2019.2. Could you please specify whether after update the list of SDKs is completely empty or some of Rubies have been detected? Which OS are you on and what rvm version are you using? How was it installed? In addition, does the same happen in 2019.3 Beta?

0
Comment actions Permalink

After update the list is completely empty. I have been trying to find the correct way to recover it. To no avail for now. 

I am using macOS Catalina 10.15

I will try to update to 2019.3 beta

 

0
Comment actions Permalink

Updating to 2019.3 EAP makes no difference. I added the ruby version I am using in 2019.2 and the EAP of course reads my settings from 2019.2 and recovers that version as well, but does not discover any other. While I added the ruby version from rvm, rubymine is not discovering any gemsets. 

To re-iterate: I have a `.rvmrc` file in the folder, yet Rubymine is now unable to discover the ruby version and gemset from it. 

I am unable to simply discover the location of the rvm executable, because it is now a "function" in the command line. So `whereis rvm` does not return any results. 

 

Selecting the path ~/.rvm/bin/rvm as my "local version manager" actually has no effect at all? (not in 2019.2 or 2019.3EAP)

 

Please advice? Is there a way to go back to 2017.3? 

 

0
Comment actions Permalink

Could you please then do the following:

1. invoke Help | Debug log settings

2. add there a new line (without removing the previous)

#org.jetbrains.plugins.ruby.version.management.rvm.RvmSdkRefresher

3. reopen RubyMine and provide the updated idea.log (Help | Show log in)

0
Comment actions Permalink

Ha very weird, in the logfile i see the following error: 

 

      Refreshing sdks
      2019-11-12 14:00:02,830 [ 118149] DEBUG - management.rvm.RvmSdkRefresher - Found version manager in /Users/nathan/.rvm/bin/rvm
      2019-11-12 14:00:03,338 [ 118657] WARN - t.rvm.RvmVersionManagerHandler - Error getting rvm environment from script, error code 1; STDOUT: ; STDERR:  Required ruby-1.9.3-p194 is not installed.
      Ruby ruby-1.9.3-p194 is not installed.

 

Not sure why, I will attempt to install ruby 1.9.3 in rvm?? 

0
Comment actions Permalink

Could you please attach the full log of the session from its start? In addition, what is the output of `rvm list` command?

0
Comment actions Permalink

Output rvm list: 

 

rvm list
jruby-1.6.7.2 [ broken ]
jruby-1.6.8 [ broken ]
jruby-1.7.11 [ x86_64 ]
ruby-2.1.5 [ x86_64 ]
ruby-2.1.9 [ x86_64 ]
ruby-2.2.10 [ x86_64 ]
ruby-2.4.0 [ x86_64 ]
ruby-2.4.4 [ x86_64 ]
=> ruby-2.4.6 [ x86_64 ]
ruby-2.5.1 [ x86_64 ]

# => - current
# =* - current && default
# * - default

0
Comment actions Permalink

Logfile (is there any other way than to copy the complete file?) 

 

2019-11-12 14:18:09,117 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-11-12 14:18:09,135 [ 18] INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/zsh -l -i -c '/Applications/RubyMine 2019.3 EAP.app/Contents/bin/printenv.py' '/private/var/folders/9c/8wxsf9s53fd20rvtt0xt12800000gn/T/intellij-shell-env.tmp'
2019-11-12 14:18:09,309 [ 192] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 174 ms
2019-11-12 14:18:09,323 [ 206] INFO - #com.intellij.idea.Main - IDE: RubyMine (build #RM-193.5096.21, 07 Nov 2019 10:20)
2019-11-12 14:18:09,323 [ 206] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.15, x86_64)
2019-11-12 14:18:09,323 [ 206] INFO - #com.intellij.idea.Main - JRE: 11.0.4+10-b520.5 (JetBrains s.r.o)
2019-11-12 14:18:09,323 [ 206] INFO - #com.intellij.idea.Main - JVM: 11.0.4+10-b520.5 (OpenJDK 64-Bit Server VM)
2019-11-12 14:18:09,323 [ 206] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx2048m -XX:MaxPermSize=512m -XX:+UseCompressedOops -Djb.vmOptionsFile=/Users/nathan/Library/Preferences/RubyMine2019.3/rubymine.vmoptions -Didea.paths.selector=RubyMine2019.3 -Didea.executable=rubymine -Didea.platform.prefix=Ruby -Didea.home.path=/Applications/RubyMine 2019.3 EAP.app/Contents
2019-11-12 14:18:09,323 [ 206] INFO - #com.intellij.idea.Main - charsets: JNU=UTF-8 file=UTF-8
2019-11-12 14:18:09,714 [ 597] INFO - .intellij.util.EnvironmentUtil - shell environment loaded (32 vars)
2019-11-12 14:18:10,051 [ 934] INFO - ntellij.idea.ApplicationLoader - CPU cores: 12; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@12ae303b[Running, parallelism = 11, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@18bf19a9
2019-11-12 14:18:10,231 [ 1114] INFO - llij.ide.plugins.PluginManager - Plugin "Markdown support" misses optional descriptor plugin-intelliLang.xml
2019-11-12 14:18:10,268 [ 1151] WARN - llij.ide.plugins.PluginManager - Plugin "Markdown support" is incompatible (until build 162.SNAPSHOT < RM-193.5096.21)
2019-11-12 14:18:10,270 [ 1153] INFO - llij.ide.plugins.PluginManager - /Applications/RubyMine 2019.3 EAP.app/Contents/plugins/markdown overrides /Users/nathan/Library/Application Support/RubyMine2019.3/markdown
2019-11-12 14:18:10,363 [ 1246] WARN - llij.ide.plugins.PluginManager - Problems found loading plugins:
Plugin "Markdown" version was marked as incompatible
2019-11-12 14:18:10,385 [ 1268] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: CSS (193.5096.21), ChangeReminder (193.5096.21), CoffeeScript (193.5096.21), Configuration Script (193.5096.21), Database Tools and SQL (193.5096.21), Docker (193.5096.21), EditorConfig (193.5096.21), FTP/SFTP Connectivity (ex. Remote Hosts Access) (193.5096.21), Gherkin (193.5096.21), Git (193.5096.21), GitHub (193.5096.21), HTML Tools (193.5096.21), HTTP Client (193.5096.21), Haml (193.5096.21), IDE Settings Sync (193.5096.21), IDEA CORE (193.5096.21), IntelliLang (193.5096.21), JavaScript Debugger (193.5096.21), JavaScript Intention Power Pack (193.5096.21), JavaScript and TypeScript (193.5096.21), Less (193.5096.21), Machine Learning Code Completion (193.5096.21), Markdown (193.5096.21), Mercurial (193.5096.21), Native Debugging Support (193.5096.21), Perforce (193.5096.21), Performance Testing (193.5096.21), Puppet (193.5096.21), Refactor-X (193.5096.21), Ruby (193.5096.21), RubyMine Customization (193.5096.21), SSH Remote Run (193.5096.21), Sass (193.5096.21), Settings Repository (193.5096.21), Shell Script (193.5096.21), Slim (193.5096.21), Stylus (193.5096.21), Task Management (193.5096.21), Terminal (193.5096.21), TextMate bundles (193.5096.21), Time Tracking (193.5096.21), UML (193.5096.21), Vagrant (193.5096.21), YAML (193.5096.21), tslint (193.5096.21)
2019-11-12 14:18:10,385 [ 1268] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Markdown (0.9.7), Markdown Navigator (2.5.2), Subversion (193.5096.21)
2019-11-12 14:18:10,626 [ 1509] INFO - pi.util.registry.RegistryState - Registry values changed by user: dumb.aware.run.configurations = true
2019-11-12 14:18:10,639 [ 1522] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=2028
2019-11-12 14:18:10,686 [ 1569] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2019-11-12 14:18:10,692 [ 1575] INFO - pi.util.registry.RegistryState - Experimental features enabled for user: wsl.close.process.input, wsl.p9.support, wsl.p9.show.roots.in.file.chooser, inline.browse.button, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, copy.reference.popup, new.large.text.file.viewer, auto.indent.chain.call.on.first.char, ruby.force.explicit.bundle.exec, ruby.run.anything.remote.sdk.enabled, ruby.use.experimental.debugger, ruby.actions.in.run.anything.popup, ruby.docker.get.sdk.via.docker.cp
2019-11-12 14:18:10,699 [ 1582] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: #org.jetbrains.plugins.ruby.version.management.rvm.RvmSdkRefresher
2019-11-12 14:18:10,720 [ 1603] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Applications/RubyMine 2019.3 EAP.app/Contents/bin/fsnotifier
2019-11-12 14:18:10,737 [ 1620] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2019-11-12 14:18:10,745 [ 1628] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2019-11-12 14:18:11,166 [ 2049] INFO - pl$FileIndexDataInitialization - Initialization done: 529
2019-11-12 14:18:11,319 [ 2202] INFO - exImpl$StubIndexInitialization - Initialization done: 152
2019-11-12 14:18:11,487 [ 2370] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2019-11-12 14:18:11,495 [ 2378] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63343
2019-11-12 14:18:11,528 [ 2411] INFO - gs.impl.UpdateCheckerComponent - channel: eap
2019-11-12 14:18:11,573 [ 2456] INFO - cloudConfig.CloudConfigManager - === Start: JBA_NOT_CONNECTED (8ms) ===
2019-11-12 14:18:11,589 [ 2472] WARN - s.impl.EditorColorsManagerImpl - Cannot find scheme: WarmNeon from plugin: com.intellij.database
2019-11-12 14:18:11,616 [ 2499] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=null; restored: fontSize=12, fontScale=1.0
2019-11-12 14:18:11,769 [ 2652] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij]
2019-11-12 14:18:11,779 [ 2662] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: HtmlTools]
2019-11-12 14:18:11,784 [ 2667] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: JavaScript]
2019-11-12 14:18:11,784 [ 2667] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: JavaScript]
2019-11-12 14:18:11,793 [ 2676] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: org.jetbrains.plugins.ruby]
2019-11-12 14:18:11,798 [ 2681] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: org.jetbrains.plugins.ruby]
2019-11-12 14:18:11,798 [ 2681] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: org.jetbrains.plugins.ruby]
2019-11-12 14:18:12,212 [ 3095] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [/Users/nathan/work/globezenit/git/Sabic]
2019-11-12 14:18:12,612 [ 3495] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.plugins.ruby.version.management.system.RubySystemData
2019-11-12 14:18:13,234 [ 4117] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2019-11-12 14:18:13,406 [ 4289] INFO - PerformancePlugin - Performance Plugin is in silent mode
2019-11-12 14:18:13,670 [ 4553] INFO - .diagnostic.PerformanceWatcher - Pushing JS language level to 1 libraries took 37ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:13,683 [ 4566] INFO - llij.database.util.SqlDialects - SQL dialects initialized in 11 ms
2019-11-12 14:18:15,718 [ 6601] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 2284ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:16,013 [ 6896] INFO - cloudConfig.CloudConfigManager - === Start.updateInitStatus ===
2019-11-12 14:18:16,016 [ 6899] INFO - cloudConfig.CloudConfigManager - === StatusBar.update create ===
2019-11-12 14:18:16,017 [ 6900] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus ===
2019-11-12 14:18:16,053 [ 6936] INFO - m.intellij.ui.mac.touchbar.NST - nst library works properly, successfully created and released native touchbar object
2019-11-12 14:18:16,412 [ 7295] INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files ===
2019-11-12 14:18:16,426 [ 7309] WARN - t.rvm.RvmVersionManagerHandler - Error getting rvm environment from script, error code 1; STDOUT: ; STDERR: Required ruby-1.9.3-p194 is not installed.
Ruby ruby-1.9.3-p194 is not installed.

2019-11-12 14:18:16,456 [ 7339] INFO - tartup.impl.StartupManagerImpl - /Users/nathan/work/globezenit/git/Sabic/.idea case-sensitivity: expected=false actual=false
2019-11-12 14:18:16,484 [ 7367] INFO - #git4idea.commands.GitHandler - [.] git version
2019-11-12 14:18:16,497 [ 7380] INFO - #git4idea.commands.GitHandler - git version 2.21.0 (Apple Git-122)
2019-11-12 14:18:16,502 [ 7385] INFO - ea.config.GitExecutableManager - Git version for /usr/bin/git : 2.21.0
2019-11-12 14:18:16,662 [ 7545] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus.value: JBA_NOT_CONNECTED ===
2019-11-12 14:18:16,713 [ 7596] INFO - tor.impl.FileEditorManagerImpl - Project opening took 5042 ms
2019-11-12 14:18:16,730 [ 7613] DEBUG - management.rvm.RvmSdkRefresher - Refreshing sdks
2019-11-12 14:18:16,731 [ 7614] DEBUG - management.rvm.RvmSdkRefresher - Found version manager in /Users/nathan/.rvm/bin/rvm
2019-11-12 14:18:16,891 [ 7774] INFO - cloudConfig.CloudConfigManager - === End.updateInitStatus ===
2019-11-12 14:18:17,206 [ 8089] INFO - iment.WebServiceStatusProvider - Completion stats experiment: version=2, enabled=false
2019-11-12 14:18:17,410 [ 8293] WARN - t.rvm.RvmVersionManagerHandler - Error getting rvm environment from script, error code 1; STDOUT: ; STDERR: Required ruby-1.9.3-p194 is not installed.
Ruby ruby-1.9.3-p194 is not installed.

2019-11-12 14:18:17,411 [ 8294] DEBUG - management.rvm.RvmSdkRefresher - Got 0 sdk infos
2019-11-12 14:18:17,411 [ 8294] DEBUG - management.rvm.RvmSdkRefresher - Got 1 ruby sdks
2019-11-12 14:18:17,411 [ 8294] DEBUG - management.rvm.RvmSdkRefresher - Got 0 sks managed by me
2019-11-12 14:18:17,411 [ 8294] DEBUG - management.rvm.RvmSdkRefresher - 0 sdks should be created
2019-11-12 14:18:17,411 [ 8294] DEBUG - management.rvm.RvmSdkRefresher - 0 sdks should be removed
2019-11-12 14:18:17,900 [ 8783] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 4318ms; general responsiveness: ok; EDT responsiveness: 0/5 sluggish, 1/5 very slow
2019-11-12 14:18:19,781 [ 10664] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 1879ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:19,787 [ 10670] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 34 files to update
2019-11-12 14:18:19,901 [ 10784] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 114ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:19,943 [ 10826] INFO - cloudConfig.CloudConfigManager - === StatusBar.start another widget: com.intellij.cloudConfig.StatusBarInfoManager$InfoComponent@42ce985c ===
2019-11-12 14:18:20,572 [ 11455] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-11-12 14:18:20,772 [ 11655] INFO - .diagnostic.PerformanceWatcher - Pushing JS language level to 1 libraries took 1ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:21,011 [ 11894] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 404ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:21,045 [ 11928] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 33ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-12 14:18:21,054 [ 11937] INFO - e.GemRequirementsChangeWatcher - Initial scan started
2019-11-12 14:18:21,739 [ 12622] INFO - e.GemRequirementsChangeWatcher - Initial scan took: 685 ms
2019-11-12 14:18:22,133 [ 13016] INFO - ge.ExternalProjectsDataStorage - Load external projects data in 3 millis (read time: 2)
2019-11-12 14:18:22,452 [ 13335] INFO - tion.PackageJsonUpdateNotifier - processPackageJsonFiles [file:///Users/nathan/work/globezenit/git/Sabic/package.json]
2019-11-12 14:18:22,508 [ 13391] INFO - ion.PackageVersionRangeMatcher - Cannot check requests
com.intellij.execution.ExecutionException: Failed to run /usr/local/bin/node "/Applications/RubyMine 2019.3 EAP.app/Contents/plugins/JavaScriptLanguage/helpers/package-version-range-matcher/bin/batch-matcher" --package puppeteer 1.11.0 1.11.0

Standard error:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
Referenced from: /usr/local/bin/node
Reason: image not found


Process finished with exit code 134
at com.intellij.javascript.nodejs.packageJson.notification.PackageVersionRangeMatcher.runWithNode(PackageVersionRangeMatcher.java:252)
at com.intellij.javascript.nodejs.packageJson.notification.PackageVersionRangeMatcher.verifySemver4jResult(PackageVersionRangeMatcher.java:149)
at com.intellij.javascript.nodejs.packageJson.notification.PackageVersionRangeMatcher.handle(PackageVersionRangeMatcher.java:134)
at com.intellij.javascript.nodejs.packageJson.notification.PackageVersionRangeMatcher.match(PackageVersionRangeMatcher.java:118)
at com.intellij.javascript.nodejs.packageJson.notification.PackageVersionRangeMatcher.findMismatches(PackageVersionRangeMatcher.java:78)
at com.intellij.javascript.nodejs.packageJson.notification.PackageVersionRangeMatcher.isMatched(PackageVersionRangeMatcher.java:52)
at com.intellij.javascript.nodejs.packageJson.notification.PackageJsonDependenciesVerifier.verify(PackageJsonDependenciesVerifier.java:43)
at com.intellij.javascript.nodejs.packageJson.notification.PackageJsonUpdateNotifier.processPackageJsonFiles(PackageJsonUpdateNotifier.java:226)
at com.intellij.javascript.nodejs.packageJson.notification.PackageJsonUpdateNotifier.lambda$null$0(PackageJsonUpdateNotifier.java:135)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:231)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:371)
at com.intellij.util.Alarm$Request.run(Alarm.java:358)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:217)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:30)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:221)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:190)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

0
Comment actions Permalink

Could you please try setting one of your Ruby SDKs as the default ruby? (https://rvm.io/rubies/default) In addition, it'd be better to reinstall rubies marked as broken in order to avoid problems with their usage. Please restart then RubyMine and check how it goes.

0
Comment actions Permalink

Thanks! Setting the default rvm correctly solved my case/did the trick, now both 2019.2 and 2019.3 EAP are working correctly in detecting the rvm environment. 

0
Comment actions Permalink

Great, thanks for checking!

0

Please sign in to leave a comment.