Closed as not planned
Description
Type: Bug
Behaviour
Whenever I save a python file, vscode gets stuck executing formatters.
Steps to reproduce:
- Save any Python file.
Diagnostic data
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Failed to import test module: tests
Traceback (most recent call last):
File "/nix/store/kjgslpdqchx1sm7a5h9xibi5rrqcqfnl-python3-3.12.8/lib/python3.12/unittest/loader.py", line 429, in _find_test_path
package = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/kjgslpdqchx1sm7a5h9xibi5rrqcqfnl-python3-3.12.8/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
__import__(name)
File "/home/yajo/prodevel/test16-odoo/odoo/custom/src/partner-contact/partner_contact_department/tests/__init__.py", line 3, in <module>
from . import test_recursion
File "/home/yajo/prodevel/test16-odoo/odoo/custom/src/partner-contact/partner_contact_department/tests/test_recursion.py", line 3, in <module>
from odoo.exceptions import UserError
ModuleNotFoundError: No module named 'odoo'
2025-03-05 13:50:30.784 [error] Test Discovery named pipe /run/user/1000/python-test-discovery-4cb9f4f4593c2be6e0a9 error: TypeError: Cannot read properties of null (reading 'path')
at e (/home/yajo/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/out/client/extension.js:2:931360)
at t.PythonResultResolver._resolveDiscovery (/home/yajo/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/out/client/extension.js:2:916088)
at t.PythonResultResolver.resolveDiscovery (/home/yajo/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/out/client/extension.js:2:915172)
at /home/yajo/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/out/client/extension.js:2:966891
at b.callback (/home/yajo/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/out/client/extension.js:2:930904)
at Object.thunk (/home/yajo/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/out/client/extension.js:2:1993657)
2025-03-05 13:50:55.222 [info] El experimento \"pythonRecommendTensorboardExt\" está activo
2025-03-05 13:50:55.222 [info] El experimento \"pythonSurveyNotificationcf\" está activo
2025-03-05 13:50:55.222 [info] El experimento \"pythonTerminalEnvVarActivation\" está activo
2025-03-05 13:50:55.222 [info] El experimento \"pythonTestAdapter\" está activo
2025-03-05 13:50:55.222 [info] Native locator: Refresh started
2025-03-05 13:50:55.688 [info] > pyenv which python
2025-03-05 13:50:55.688 [info] cwd: ~/prodevel/test16-odoo/odoo/custom/src/partner-contact
2025-03-05 13:50:57.835 [info] > python3 -c "import sys;print(sys.executable)"
2025-03-05 13:51:07.734 [info] > pyenv which python
2025-03-05 13:51:07.734 [info] cwd: ~/prodevel/test16-odoo/odoo/custom/src/odoo
2025-03-05 13:52:28.980 [info] Poetry environment manager found at: /etc/profiles/per-user/yajo/bin/poetry
2025-03-05 13:53:05.916 [info] Native locator: Refresh finished in 134215 ms
2025-03-05 13:53:14.458 [info] Ruta de acceso del intérprete de Python: /etc/profiles/per-user/yajo/bin/python
2025-03-05 13:53:14.460 [info] Iniciando el servidor de lenguaje Pylance.
2025-03-05 13:53:43.137 [info] Iniciando el servidor de lenguaje Pylance.
Extension version: 2025.0.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Linux x64 6.12.10-zen1
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.9
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
- Value of the
python.languageServer
setting: Default
User Settings
Multiroot scenario, following user settings may not apply:
languageServer: "Pylance"
terminal
• activateEnvironment: false
Installed Extensions
Extension Name | Extension Id | Version |
---|---|---|
catppuccin-vsc | Cat | 3.16.1 |
code-spell-checker | str | 4.0.39 |
code-spell-checker-spanish | str | 2.3.5 |
copilot | Git | 1.276.1399 |
copilot-chat | Git | 0.24.2025021302 |
debugpy | ms- | 2025.0.1 |
direnv | mkh | 0.17.0 |
EditorConfig | Edi | 0.17.1 |
even-better-toml | tam | 0.21.2 |
gitblame | wad | 11.1.2 |
gitlab-workflow | Git | 6.1.1 |
jinjahtml | sam | 0.20.0 |
js-debug | ms- | 1.97.1 |
js-debug-companion | ms- | 1.1.3 |
language-gettext | mro | 0.5.0 |
nix-env-selector | arr | 1.0.11 |
nix-extension-pack | pin | 3.0.0 |
nix-ide | jno | 0.4.12 |
OdooSnippets | jig | 1.5.0 |
pre-commit-helper | ela | 0.5.0 |
python | ms- | 2025.0.0 |
rainbow-csv | mec | 3.17.0 |
rewrap | stk | 17.8.0 |
tasks | act | 0.16.0 |
vscode-js-profile-table | ms- | 1.0.10 |
vscode-language-pack-es | MS- | 1.97.2025021209 |
vscode-pylance | ms- | 2025.2.1 |
vscode-xml | red | 0.28.2025021408 |
vscode-yaml | red | 1.14.0 |
vsliveshare | ms- | 1.0.5948 |
System Info
Item | Value |
---|---|
CPUs | 13th Gen Intel(R) Core(TM) i7-1360P (16 x 1040) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
Load (avg) | 5, 5, 4 |
Memory (System) | 15.29GB (5.99GB free) |
Process Argv | --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --crash-reporter-id b63bfa16-331f-4806-adea-efa40e7321e8 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | gnome |
XDG_CURRENT_DESKTOP | GNOME |
XDG_SESSION_DESKTOP | gnome |
XDG_SESSION_TYPE | wayland |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249601
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
cp15370_c:31242498
copilothoveron:31248524