Replies: 2 comments 1 reply
-
|
This is likely due to VSCode not executing commands in a shell, but executing them as separate processes (JetBrains RubyMine used to do this). One workaround appears to be installing the Ruby VSCode extension by Peng Lv, which supports detecting the Ruby via RVM, rbenv, chruby, and asdf. Another workaround would be to try executing VSCode from the terminal in your project directory, so that in inherits the |
Beta Was this translation helpful? Give feedback.
-
|
Problem: Prettier was getting stuck while formatting code in a GUI-opened VSCode, and the root cause was found to be a bash environment issue. Solution:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having some trouble with a VSCode extension that executes a ruby command: htmlbeautifier (via the vscode-erb-beautify extension).
I have no trouble executing the
htmlbeautifiercommand from my shell (having chruby'd to the correct version), but vscode errors withcouldn't run htmlbeautifier 'spawn htmlbeautifier ENOENT', presumably because it's still using the system ruby.Any ideas on how to get this working?
Beta Was this translation helpful? Give feedback.
All reactions