forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-lintingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Milestone
Description
Environment data
- VS Code version: 1.22.2
- Extension version (available under the Extensions sidebar): 2018.3.1
- OS and version: OSX 10.13.4
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
- Relevant/affected Python packages and their versions: n/a
Actual behavior
All python files in project show this error in addition to normal pylint errors (if there are any):
[prospector - pylint] fatal:No module named Users/aaa/bbb/ccc/models.py
The path is correct for the file, except for the lack of a leading '/'
Looks like the path is getting mangled (see the logs below). Let me know if there's anything else I can help with in tracking this issue down.
Expected behavior
No error
Steps to reproduce:
- Create environment in pipenv
- Create
__init__.py
file and create models.py file with some python code in them - Add folder to VS Code
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
##########Linting Output - prospector##########
{
"summary": {
"started": "2018-04-19 14:36:19.127187",
"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-04-19 14:36:19.299807",
"time_taken": "0.17",
"formatter": "json"
},
"messages": [
{
"source": "pylint",
"code": "unused-import",
"location": {
"path": "/Users/aaa/bbb/ccc/models.py",
"module": "models",
"function": null,
"line": 1,
"character": 0
},
"message": "Unused models imported from django.db"
},
{
"source": "pylint",
"code": "fatal",
"location": {
"path": "/Users/aaa/bbb/Users/aaa/bbb/ccc/models.py",
"module": "/Users/aaa/bbb/Users/aaa/bbb/ccc/models.py",
"function": null,
"line": 1,
"character": 0
},
"message": "No module named Users/aaa/bbb/ccc/models.py"
}
]
}
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
None
Metadata
Metadata
Assignees
Labels
area-lintingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug