-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
2018.3.0: Pylint: 'F0001:No module named "test.py"' appears in every file with a path that has a space #1239
Comments
Yup, I just noticed the exact same issue. |
I'm getting this error only from projects with spaces in their paths, either new or existing. Can anyone check if this is the case too? |
Excellent observation! This is the answer. I was able to reproduce. I was testing in a path with no space. I added a space. Immediate error. Should be an easy fix in the extension though, but otherwise there isn't anything we can do on our end unfortunately. |
We can reproduce on our end. We're trying to figure out the root cause. |
Getting same issue too. The latest update is full of bugs. |
I also experienced this problem. Assume that
but when I run it from the command line, I see: That means the module is resolved incorrectly when there's a space in the path so VS Code has to quote it. Pylint is confused about the quotes VS Code gives it and treat the path with quotes and Strangely, even when I run the command |
How can I uninstall or opt out of latest update? |
@chikaobuah We're in the process of fixing this. A hot fix will be release soon. |
You will also find the same error if your name contains any numbers. I removed numbers from my file name and it worked. |
Quick update: we are waiting for tests to complete on our fix and then we will push out a hotfix release. We are hoping to have all of this resolved in the next 30 minutes. |
OK, |
My first experience reporting such a bug. That was quick. Thanks! |
Since installing the 2018.3.0 version of this extension about an hour ago, I get
'F0001:No module named "test.py"'
at the top of every module from pylint (for line 1, character 1), withtest.py
being replaced with the file's filename.This happens even if the file is the only file in its dir. This also only happens with existing VS Code projects, but not new ones.
This is definitely related to this extension and pylint. Because when I copy my project to a new folder, then open it in VSC, these errors disappear. But the original project location still has these errors.
This makes it incredibly difficult to fix on my own, since I don't know where to look, with regards to VSC. It must be something to do with an internal VS Code database?
Edit: As noted here, this problem only happens with paths with spaces in them. I was able to reproduce this myself.
The text was updated successfully, but these errors were encountered: