You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 htmlbeautifier command from my shell (having chruby'd to the correct version), including the vscode terminal, but vscode errors with couldn't run htmlbeautifier 'spawn htmlbeautifier ENOENT', presumably because it's still using the system ruby.
Any ideas on how to get this working?
I have both the chruby.sh and auto.shsourced in my .zshrc.
The text was updated successfully, but these errors were encountered:
harrygr
changed the title
I'm having some trouble with a VSCode extension that executes a ruby command: [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier) (via the [vscode-erb-beautify](https://github.com/aliariff/vscode-erb-beautify) extension).
Integrate with vscode
Jun 27, 2022
This is likely due to VSCode not executing commands in a shell, but executing them as separate processes (JetBrains RubyMine used to do this). VSCode would need to change how they execute commands wrt the project. Or you could try installing the Ruby VSCode extension by Peng Lv which claims to support auto-detecting the project's ruby version and integrates with RVM, rbenv, chruby, and asdf.
I don't have an issue with chruby in vscode. I don't even have the Ruby VSCode extension set up. I just have my vscode terminal load as it would in iterm.
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
htmlbeautifier
command from my shell (having chruby'd to the correct version), including the vscode terminal, 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?
I have both the
chruby.sh
andauto.sh
source
d in my.zshrc
.Originally posted by @harrygr in #480
The text was updated successfully, but these errors were encountered: