Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TachibanaKimika opened this issue May 1, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@TachibanaKimika
Copy link

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

@duckdoom4
Copy link
Collaborator

duckdoom4 commented May 7, 2023

Thanks for the report :). It seems the extension has combined the path of the first folder with the location of the file.

This will need some investigation and then be fixed.

@duckdoom4 duckdoom4 added bug Something isn't working good first issue Good for newcomers labels May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants