vscode-language-renpy icon indicating copy to clipboard operation
vscode-language-renpy copied to clipboard

renpy.jumpToFileLocation could not get a correct file path in multi-root workspaces

Open TachibanaKimika opened this issue 1 year ago • 1 comments

I encountered a problem when I tried to jump to definition. It seems that the path is incorrect.

image

The console shows the following error message:

ERR cannot open file:///f%3A/Test/proj_1/f%3A/Test/proj_2/char.rpy. Detail: 无法读取文件'f:\Test\proj_1\f:\Test\proj_2\char.rpy' (Error: 无法解析不存在的文件 'f:\Test\proj_1\f:\Test\proj_2\char.rpy'): Error: cannot open file:///f%3A/Test/proj_1/f%3A/Test/proj_2/char.rpy. Detail: 无法读取文件'f:\Test\proj_1\f:\Test\proj_2\char.rpy' (Error: 无法解析不存在的文件 'f:\Test\proj_1\f:\Test\proj_2\char.rpy')
    at u.$tryOpenDocument (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2334:37824)

My workspace is like this: image

TachibanaKimika avatar May 01 '23 10:05 TachibanaKimika