-
Notifications
You must be signed in to change notification settings - Fork 133
"Unresolved import" for some files in sub-directories in a workspace #1223
Comments
Here is the result of the "trace". python-output.txt Interestingly, "litex_boards" only appears in the list of search paths, and doesn't appear anywhere else. |
Can you give the trace when on the daily build? Should be 0.3.16 at the moment. I changed the way that the search paths are printed to better reflect what we actually use. |
Do you mean the daily python-language-server build? This is running on the daily vscode build:
How can I install the daily pls build? |
Sorry, I meant the language server daily, not VS Code or the extension. Set: "python.analysis.downloadChannel": "daily" And reload to trigger a download. Don't worry if it complains about the option not existing. |
Here is the output from the daily python language server: python-output-daily.txt |
Great, thanks. Just wanted to make sure that |
Following up on this. Cloned the repo via:
Then did:
To grab a PYTHONPATH line to put in Is this better than what you had observed? |
Without feedback I'm going to close this; I think this was mostly handled except for the above linked issues to do with the single-name problem. |
Opening a new issue as recommended from #1099 (comment)
Some Python packages are not able to be read by the Python Language Server. They report "unresolved import", despite the fact that Python is able to read them just fine.
The repository in question is https://github.com/xobs/teardown2019-workshop. It contains submodules, which either get added to a .env file (via
python3 lxbuildenv.py > .env
) or by manually adding them to thepython.autoComplete.extraPaths
setting.python3
is able to seelitex_boards.partner.platforms.fomu_evt
, however the Python Language Server cannot.This is running in python.org python3.exe version 3.7.3. There is no virtualenv, venv, conda, pip modules, or anything like that.
The language server version is
Microsoft Python Language Server version 0.2.96.0
The line that is giving the error is https://github.com/xobs/teardown2019-workshop/blob/master/workshop.py#L28
An example of the "extraPaths" setting that didn't work is at https://github.com/xobs/teardown2019-workshop/blob/master/workshop.py#L10
The text was updated successfully, but these errors were encountered: