我正在使用以下组件运行 Vscode:
Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.20270
Pylance 2.6
我有以下目录结构:
src
m1.py
.vscode
settings.json
lib
m2.py
.vscode
settings.json
在开发 Python 代码时,我在这个环境中使用了多个 linter。Mypy
没有问题,但是pylance
无法解决导入问题。
我正在尝试导入模块m2.py
from m1.py
when pylance
失败了。我的settings.json
文件下的src
目录是:
{
"python.autoComplete.extraPaths": [
"*.lib"
]
}
谁能看到如何解决这个问题?
皮兰斯使用python.analysis.extraPaths
相对于python.autoComplete.extraPaths
.
{
"python.analysis.extraPaths": [
"*.lib"
]
}
你尝试过吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)