- Notifications
You must be signed in to change notification settings - Fork61
Description
(I didn't see an issue for this, so I guess it might be Windows specific?)
Given the following in a fileDemo.res whereTest is the moduleTest.res
Js.log(Test.x)
When doing CTRL + Mouse left click onTest I get:
Unable to open 'Test.res': Unable to read file '\\c:\Projects\rescript-project-template\src\Test.res' (Unknown (FileSystemError): Error: UNKNOWN: unknown error, stat '\\c:\Projects\rescript-project-template\src\Test.res').
I tried debugging in and got that in the definition case
rescript-vscode/server/src/server.ts
Line 345 inf773b36
| }elseif(msg.method===p.DefinitionRequest.method){ |
I get the uri being sent
rescript-vscode/server/src/server.ts
Line 360 inf773b36
| uri:result.definition.uri||msg.params.textDocument.uri, |
to beresult.definition.uri =file://c:/Projects/rescript-project-template/src/Test.resmsg.params.textDocument.uri =file:///c%3A/Projects/rescript-project-template/src/Demo.res.
If I add an extra slash to theresult.definition.uri so that it becomesfile:/// (like the other uri) then it jumps to the definition properly.
I don't know what the best way to resolve this is, though.