Skip to content

Commit

Permalink
#1131 fix for #1121 did not fix vscode behavior on ubuntu (#1149)
Browse files Browse the repository at this point in the history
So while migrating to pyproject.toml fixed editable installation behavior on Ubuntu,
Pylance was still unable to figure out imports as vscode does not understand the
import script .venv/lib/python3.10/site-packages/__editable___yapf_0_40_2_finder.py
created by an editable install triggered by pip install -m venv .venv

Using https://microsoft.github.io/pyright/#/import-resolution?id=setuptools
suggestions of compat and strict mode did not resolve issues either.

So instead I revert to manually adding third_party to the python.analysis.extraPaths
setting in settings.json
  • Loading branch information
Spitfire1900 authored Oct 10, 2023
1 parent d553003 commit 9953ac9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"editor.wordBasedSuggestions": false,
"files.trimTrailingWhitespace": true,
},
"python.analysis.extraPaths": [
"./third_party"
],
"python.analysis.typeCheckingMode": "basic",
"python.languageServer": "Pylance",
"files.exclude": {
Expand Down

0 comments on commit 9953ac9

Please sign in to comment.