-
Notifications
You must be signed in to change notification settings - Fork 771
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
Symlink support #131
Comments
In fact, the problem only occurs if we have symlinks. I updated the title and description. |
@judej @jakebailey I created a repository to simulate the problem. To see: |
Also running into this issue. On OSX/Mac |
@judej @jakebailey added the log in the description. |
Getting same issue in MacOS. Pylance isn't recognising the extraPaths property. |
We need to add support for symlinks. Marked as enhancement |
FWIW, the next release includes some better handling of symlinks (microsoft/pyright@4bd1c58) which I believe should fix most of these issues. Specifically, when the import resolver iterates over the contents of a directory and encounters a symlink, it will follow the symlink to check to see if it's a file/directory (and therefore recognize them as importable modules). I believe that covers explicitly the original issue (a directory containing symlinks). |
This issue has been fixed in version 2021.3.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202131-10-march-2021 Since symlinks are tricky, if you encounter some issues with this support we'd appreciate a new issue to pin things down. 🙂 |
@jakebailey unfortunately it did not solve the autocomplete problem: #1031 Would it be possible to prioritize this? Thanks for the great job! |
Environment data
Expected behaviour
Fill the configuration in settings.json:
Packages inside
/home/user/lib
are symlinks to real path.Type in the code:
I hope the autocomplete will suggest all packages that start with my inside the
/home/user/lib
folder.Actual behaviour
The autocomplete doesn't suggest packages inside the /home/user/lib folder.
Logs
In this case,
/home/wesleybl/lib/my
is a symbolic link.The text was updated successfully, but these errors were encountered: