-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Prospector gets file paths wrong #199
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
Comments
Unfortulately WSL isn't supported at this stage. |
Hopefully this will be resolved soon. Please follow the #534 for updates. |
From @zersiax on October 10, 2017 10:9 @DonJayamanne From step 2 in my reproduce steps, WSL is completely out of the picture, so I don't think this is a WSL issue? |
What's the path to your python virtual environment? |
From @zersiax on October 10, 2017 18:29 Python I'm working on is my Windows OS's global python install, which is added to the OS PATH environment variable. Wouldn't the extension pick it up at that point? |
Yes it would. |
For some reason Prospector is passing into Pylint the file's path with the directory structured duplicated, e.g. #######Linting Output - prospector##########
{
"summary": {
"started": "2018-01-11 14:55:40.524661",
"libraries": [],
"strictness": null,
"profiles": "default, no_doc_warnings, no_test_warnings, strictness_medium, strictness_high, strictness_veryhigh, no_member_warnings",
"tools": [
"dodgy",
"mccabe",
"pep8",
"profile-validator",
"pyflakes",
"pylint"
],
"message_count": 2,
"completed": "2018-01-11 14:55:41.418668",
"time_taken": "0.89",
"formatter": "json"
},
"messages": [
{
"source": "pylint",
"code": "syntax-error",
"location": {
"path": "c:\\Users\\brcan\\Desktop\\bunk\\tester.py",
"module": "tester",
"function": null,
"line": 5,
"character": 0
},
"message": "invalid syntax (<string>, line 5)"
},
{
"source": "pylint",
"code": "fatal",
"location": {
"path": "c:\\Users\\brcan\\Desktop\\bunk\\Users\\brcan\\Desktop\\bunk\\tester.py",
"module": "c:\\Users\\brcan\\Desktop\\bunk\\Users\\brcan\\Desktop\\bunk\\tester.py",
"function": null,
"line": 1,
"character": 0
},
"message": "No module named Users\\brcan\\Desktop\\bunk\\tester.py"
}
]
} |
I'm seeing a similar issue (on linux). With prospector enabled everything appears to work. However, the first message for each file is similar to the following:
Two things to note:
I'm not seeing any duplication in the reported path. |
From @zersiax on October 9, 2017 22:17
Environment data
VS Code version: Latest Insider as of now
Python Extension version: Latest version available in Marketplace
Python Version: 3.6
OS and version: Windows 10 build 16299
Actual behavior
In my problems view, I'm seeing errors about "no module named" followed by the path to the current file I'm in, e.g., c:\users\name\project\app\views.py). However, this code runs fine using the same Python context and gives no such errors.
Expected behavior
I shouldn't see these errors since they aren't errors.
Steps to reproduce:
Copied from original issue: DonJayamanne/pythonVSCode#1289
The text was updated successfully, but these errors were encountered: