Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Jump-to-definition not working on Windows #98

Closed
rescript-lang/rescript-editor-support
#83
@mewhhaha

Description

@mewhhaha

(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

}elseif(msg.method===p.DefinitionRequest.method){

I get the uri being sent

uri:result.definition.uri||msg.params.textDocument.uri,

to be
result.definition.uri =file://c:/Projects/rescript-project-template/src/Test.res
msg.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp