Skip to content

Instantly share code, notes, and snippets.

@alejandromangione
Last active May 25, 2019 19:10
Show Gist options
  • Save alejandromangione/6781a8b32579cee6d345fcb1d9409699 to your computer and use it in GitHub Desktop.
Save alejandromangione/6781a8b32579cee6d345fcb1d9409699 to your computer and use it in GitHub Desktop.
Using solargraph on WSL
Error: spawn solargraph ENOENT
	at notFoundError ...

After see this erro I try to figurate out and here is the soluction for VSCode using WSL

Create a .bat file

solargraph.bat

@echo off
bash -c "~/.rbenv/shims/solargraph %*"
@echo on

On VSCode Settings add

{
  "solargraph.commandPath": "C:\\path\\to\\solargraph.bat",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment