-
Notifications
You must be signed in to change notification settings - Fork 764
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
ENOTDIR: not a directory, scandir '/opt/spark/python/lib/py4j-0.10.9-src.zip' #1021
Comments
Thanks for the bug report. I see the cause of the error. It's a bug that was introduced in the last release. @heejaechang, this is in the new partial stub virtual file system code. The function |
This will be fixed in the next release. |
@erictraut thanks a lot for the quick response. May I know when the next release is going to be? In the meantime, I've reverted back to jedi to avoid the error |
We typically release a new version of Pylance each week on Wednesday. |
Many thanks! |
@erictraut thank you for taking care of it. I wrongly assumed all paths given will be a directory. |
Note that fix doesn't actually go and make zip files work; that'd be another enhancement to consider. We implemented it in MPLS (and likely via the VFS abstraction we can again; zip files are random accessable). |
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 If you need support for zip files specifically, we'd appreciate a new issue so we can take note of the enhancement request. |
Environment data
Expected behaviour
I have this error thrown back from Pylance and I have no understanding why it is happening.
In
.bashrc
, I do have this line (needed to run Spark).Actual behaviour
Pylance is tell me that there is an error ENOTDIR.
Logs
Python Language Server Log
Code Snippet / Additional information
XXX
The text was updated successfully, but these errors were encountered: