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
2020/04/29 09:02:09 rpc_logger.go:29: Incoming request for "initialize" (ID 1): {"rootPath":"C:\\Users\\Radek Simko\\tf-test","capabilities":{"workspace":{"applyEdit":true,"executeCommand":{},"workspaceFolders":true,"didChangeConfiguration":{},"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"documentHighlight":{},"synchronization":{"willSaveWaitUntil":true,"willSave":true,"didSave":true},"rename":{},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true},"documentationFormat":["markdown","plaintext"]}},"hover":{"contentFormat":["markdown","plaintext"]},"publishDiagnostics":{"relatedInformation":true},"typeDefinition":{"linkSupport":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":[]}}},"implementation":{"linkSupport":true},"definition":{"linkSupport":true},"references":{},"rangeFormatting":{},"colorProvider":{},"completion":{"completionItem":{"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"formatting":{}}},"rootUri":"file:///C:/Users/Radek%20Simko/tf-test","initializationOptions":{},"workspaceFolders":[{"name":"tf-test","uri":"file:///C:/Users/Radek%20Simko/tf-test"}],"clientInfo":{"name":"Sublime Text LSP"},"processId":5256}
2020/04/29 09:02:09 exec.go:114: Running C:\ProgramData\chocolatey\bin\terraform.exe ["version"] in "\\C:\\Users\\Radek Simko\\tf-test"...
2020/04/29 09:02:09 rpc_logger.go:45: Error for "initialize" (ID 1): [-32098] failed to get version: chdir \C:\Users\Radek Simko\tf-test: The filename, directory name, or volume label syntax is incorrect.
Expected Behavior
LS starts and initializes the directory correctly.
Actual Behavior
LS failed to finish initialization due to Windows-style paths being interpreted incorrectly.
Steps to Reproduce
Open a folder in Sublime Text on Windows with the above config
Open file with the above config from that folder
Watch LS log
The text was updated successfully, but these errors were encountered:
This appears to be related to the fact that the client (Sublime Text LSP in this case) sends a URI which has an extra (IMO meaningless) slash / on Windows:
file:///C:/Users/Radek%20Simko/tf-test
which then resolves to
\C:\Users\Radek Simko\tf-test
when we'd expect it to be resolved to
C:\Users\Radek Simko\tf-test
I will try to understand how does the third slash get added to the URI in case of Sublime Text and check if other popular clients behave the same way - then in theory we could just use a different prefix on Windows (file:///).
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.
ghost
locked and limited conversation to collaborators
Jun 12, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Server Version
Terraform Version
OS Version
Client Version
Terraform Configuration Files
Log Output
Expected Behavior
LS starts and initializes the directory correctly.
Actual Behavior
LS failed to finish initialization due to Windows-style paths being interpreted incorrectly.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: