-
Hello, I have a problem/question for my setup as I do not understand what is happening exactly. I use following workspace config in vscode: In the backend folder I have a pyproject.toml with some settings and a "hmi" folder with my python code. The "Python language server" output looks like this:
I install my package in editable mode from the backend folder with pip install -e. Now when I open a python file from my src folder the language server creates another instance with following output:
It seems that the file is analysed with this "default" service instance. It seems like this is leading to pylance/pylint ignoring all other settings. I would like to know:
Edit: Also it seems that since version 2024.9.1 I am not able to disable typeCheckingMode. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your typecheckingmode problem is likely this: Default instances are created whenever a file that's opened doesn't fall under a workspace root. Can you turn on 'trace' mode for logging? It will show the actual analysis and for what file path. |
Beta Was this translation helpful? Give feedback.
Your typecheckingmode problem is likely this:
https://github.com/microsoft/pylance-release/wiki/Settings.json-overridden-by-Pyrightconfig.json-or-Pyproject.toml
Default instances are created whenever a file that's opened doesn't fall under a workspace root. Can you turn on 'trace' mode for logging? It will show the actual analysis and for what file path.