Skip to content

Commit 9953ac9

Browse files
authored
#1131 fix for #1121 did not fix vscode behavior on ubuntu (#1149)
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
1 parent d553003 commit 9953ac9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.vscode/settings.default.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"editor.wordBasedSuggestions": false,
1313
"files.trimTrailingWhitespace": true,
1414
},
15+
"python.analysis.extraPaths": [
16+
"./third_party"
17+
],
1518
"python.analysis.typeCheckingMode": "basic",
1619
"python.languageServer": "Pylance",
1720
"files.exclude": {

0 commit comments

Comments
 (0)