Closed WToorenburghIntiveo closed 6 years ago
I did a little digging through the code, and I found this line: https://github.com/castwide/vscode-solargraph/blob/master/src/extension.ts#L78
config.viewsPath = vscode.extensions.getExtension('castwide.solargraph').extensionPath + '/views';
My suspicion is that it needs to be wrapped in double quotes, like so:
config.viewsPath = "${vscode.extensions.getExtension('castwide.solargraph').extensionPath}/views";
I know pretty much nothing about typescript, so forgive me if I am barking up the wrong tree with this.
Thanks for the report. I'll fix it in the solargraph-utils package to ensure that command-line arguments are always escaped. Seeing as how the function accepts arguments as an array, I'm a little surprised it isn't already being done.
Version 0.11.3 of the extension should fix this issue.
Perfect! Suggestions are now working. Thank you for such a quick response!
Hey there,
OS: Windows 10 Pro 1709 build 16299.192 VSCode Version: 1.19.3 Solargraph extension: 0.11.1 Possibly relevant extensions: Ruby extension:
rebornix.ruby
version 0.16.0 Chef Extension for Visual Studio CodePendrica.chef
version 0.6.4 All extensions:I've been trying to get your extension to work, and I think I found a bug. Entering
Ctrl
+Space
to show suggestions was showing aLoading...
prompt that would never finish. When I opened Process Explorer to see if VSCode had a Ruby process running, there was nothing. RunningSolargraph: Restart Solargraph
showed a Ruby process running for a split second, then exiting.To make sure the Gem was working, I ran
solargraph server -p 0
in a Powershell prompt (having seen you suggest that as a method for testing in another issue), and pointed my browser to the localhost port. I saw the "Sinatra doesn’t know this ditty.", and corresponding output in the server log in my terminal, so that confirmed there wasn't anything the matter with the Gem.My username has a space in it, so my profile path does as well (
"C:\Users\<Firstname> <Lastname>\..."
). In the dev console, when running theSolargraph: Restart Solargraph
command, this error is thrown:[Extension Host] ERROR: "solargraph server" was called with arguments ["<Lastname>\\.vscode\\extensions\\castwide.solargraph-0.11.1/views"] Usage: "solargraph server"
. It seems like the command is getting split by the space in my profile folder name?Let me know if there's any further context I can provide!