New to RubyMine and to ruby in general. Trying to run a Rails application within RubyMine in order to use debugging for that one. The app runs fine outside of RubyMine but when I make an attempt to run it within, following the RM guide , I get:
/bin/bash --login -c "env RBENV_VERSION=2.7.3 /home/user/.rbenv/libexec/rbenv exec rails server"
Traceback (most recent call last):
91: from bin/rails:3:in `<main>'
90: from bin/rails:3:in `load'
<... log traceback skipped ...>
2: from /home/user/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<main>'
1: from /home/user/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
I have nodejs installed and available in PATH:
$ node -v && npm -v && yarn -v
I have installed the execjs gem but that did not seem to help.
OS: Ubuntu 21.10 64bit
Build #RM-212.5457.52, built on October 14, 2021
Licensed to Yassen Damyanov
Subscription is active until December 18, 2021.
Runtime version: 11.0.12+7-b1504.40 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
GC: G1 Young Generation, G1 Old Generation
Non-Bundled Plugins: name.kropp.intellij.makefile (212.5457.62)
Current Desktop: Budgie:GNOME
Ruby v 2.7.3 (required by the Rails app); installed via rbenv:
$ ruby -v && gem -v && bundle -v
ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux]
Bundler version 2.1.4
Would much appreciate any help,