-
Notifications
You must be signed in to change notification settings - Fork 767
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
Language server crashes on broken symlinks #1102
Comments
It seems like you have a symlink in your workspace that points to that file, can you check to see if that's the case? Also note that we don't support Python 2, so you may not have good functionality. In any case, I didn't think |
More likely, this was a broken symlink. Those were rare and our code didn't fully handle that case in the places that manually work with symlinks (rather than relying on them working transparently). |
Removing the broken symlink resolved the issue. Thanks for the quick response @jakebailey. I mistakenly thought this corresponded with a version update (updated the title to reflect the actual issue). |
This is still a bug that I intend to fix, so I'll leave this open (see the linked PR). |
You're not too far off; we recently added support for symlinks. Previously, they were ignored. |
This will be fixed in the next version. |
This issue has been fixed in version 2021.3.4, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202134-31-march-2021 |
Environment data
Expected behaviour
Language server does not crash
Actual behaviour
The issue persists across reboots along with a fresh install of pylance/vscode.
Logs
The text was updated successfully, but these errors were encountered: