Closed fabioz closed 4 years ago
And also:
2020/08/24 16:53:36.167 [debug] [renderer-23116] [jupyterWindow] Lab server:
[W 16:53:36.167 LabApp] 404 GET /api/contents/c%3A/Users/avaissi/Robots/project%20new/resources/keywords.robot?content=0&1598277216165 (127.0.0.1): c:/Users/avaissi/Robots/project new/resources/keywords.robot is outside root contents directory
[W 16:53:36.167 LabApp] c:/Users/avaissi/Robots/project new/resources/keywords.robot is outside root contents directory
2020/08/24 16:53:36.170 [debug] [renderer-23116] [jupyterWindow] Lab server:
[W 16:53:36.167 LabApp] 404 GET /api/contents/c%3A/Users/avaissi/Robots/project%20new/resources/keywords.robot?content=0&1598277216165 (127.0.0.1) 0.98ms referer=http://127.0.0.1:11614/lab
2020/08/24 16:53:36.180 [debug] [renderer-23116] [jupyterWindow] Lab server:
[W 16:53:36.180 LabApp] 404 GET /api/contents/.lsp_symlink/c%3AUsers/avaissi/Robots/project%20new/resources/keywords.robot?type=notebook&content=1&1598277216178 (127.0.0.1): .lsp_symlink/c:Users/avaissi/Robots/project new/resources/keywords.robot is outside root contents directory
[W 16:53:36.180 LabApp] .lsp_symlink/c:Users/avaissi/Robots/project new/resources/keywords.robot is outside root contents directory (edited)
I've done some checks and after seeing the log a bit more, the issue doesn't seem to be related to symlink resolution, rather, the pythonpath is being set to:
C:\\Users\\avaissi\\Robots\\project new\\resources
and then the workspace is set to: c:/Users/avaissi/Robots/project%20new/.virtual_documents
, when it's time to resolve the keyword.robot
it properly finds it in C:\\Users\\avaissi\\Robots\\project new\\resources
, which is outside of the .virtual_documents
folder.
So, it seems to do the right thing on the language server. I'll add some test-cases to the language server side just to make sure that link-resolution doesn't happen, but there doesn't seem like there's much to do on its side.
This is related to resolving the following: