https://github.com/javascriptdude/vscode-python_bug_230919
Bug related to symlinks in PYTHONPATH
https://github.com/javascriptdude/vscode-python_bug_230919
Last synced: about 1 month ago
JSON representation
Bug related to symlinks in PYTHONPATH
- Host: GitHub
- URL: https://github.com/javascriptdude/vscode-python_bug_230919
- Owner: JavaScriptDude
- Created: 2023-09-20T02:52:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-21T21:53:55.000Z (over 1 year ago)
- Last Synced: 2025-02-12T07:54:35.022Z (3 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vscode-python_bug_230919
Bug related to symlinks in PYTHONPATHVisual Studio Code should be able to reconsile all python libraries found in PYTHONPATH whether they are a symbolic link or otherwise.
VSCode has recently made changes that breaks support for symbolic links and this repo illustrates this issue.
This repo is a contrived example of a common project setup usecase I deal with.
To set up:
* downlaod this repo
* Open in visual studio code on Linux
* Open VSCode Terminal and set up symlink to a library:
```
# Note: you should be in the workspace root
% ln -s `pwd`/other/lib2/src/lib2.py `pwd`/lib/lib2.py
```Open `src/lib1.py` in vscode
It should load without any warnings however it presently shows:
```
lib1.py
Import "lib2" could not be resolved" [Ln 8, Col 8]
```