Closed Joseph-Garvey closed 2 months ago
~Likely duplicate of https://github.com/microsoft/vscode-python/issues/23922 and https://github.com/microsoft/vscode-python/issues/23963~
Can you check if adding the following line to your user settings fixes it:
"python.locator": "js",
Same issue here - also using conda to provide my Python environment. Setting python.locator
doesn't fix the problem.
@Joseph-Garvey @toby-coleman Please can you try installing the pre-release version of the Python extension You might have to re-start VS Code after installing the extension. This should be fixed in there.
Please let me know how this goes.
Duplicate of https://github.com/microsoft/vscode-python/issues/23968 Please reply in the above issue.
Type: Bug
Behaviour
This issue has already been raised on another repo: https://github.com/palvarezc/cavendish-particle-tracks/issues/96 Went to run tests on https://github.com/palvarezc/cavendish-particle-tracks Tests ran successfully on Friday. Python extension auto-updated on Monday and tests can no longer be found. Rolling back a week of updates did not fix. Rolling back 2 months to 2024.8.0 it now works as expected. Sometimes it would output the following, other times it would stop discovering.
Steps to reproduce:
Python Output Log
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` XXX ```
Extension version: 2024.8.0 VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.19045 Modes:
python.languageServer
setting: DefaultUser Settings
``` languageServer: "Pylance" testing • pytestArgs: ""
• pytestEnabled: true
```
Installed Extensions
|Extension Name|Extension Id|Version| |---|---|---| |Arduino|vsciot-vscode.vscode-arduino|0.6.0| |Black Formatter|ms-python.black-formatter|2024.2.0| |C/C++|ms-vscode.cpptools|1.21.6| |C/C++ Extension Pack|ms-vscode.cpptools-extension-pack|1.3.0| |C/C++ Themes|ms-vscode.cpptools-themes|2.0.0| |CMake|twxs.cmake|0.0.17| |CMake Tools|ms-vscode.cmake-tools|1.18.44| |Git Graph|mhutchie.git-graph|1.30.0| |Git History|donjayamanne.githistory|0.6.20| |GitHub Actions|github.vscode-github-actions|0.26.3| |GitHub Copilot|GitHub.copilot|1.223.0| |GitHub Copilot Chat|GitHub.copilot-chat|0.18.2| |GitHub Pull Requests|GitHub.vscode-pull-request-github|0.94.0| |GitLens — Git supercharged|eamodio.gitlens|15.3.0| |HTML Preview|george-alisson.html-preview-vscode|0.2.5| |IntelliCode|VisualStudioExptTeam.vscodeintellicode|1.3.1| |IntelliCode API Usage Examples|VisualStudioExptTeam.intellicode-api-usage-examples|0.2.8| |isort|ms-python.isort|2023.10.1| |JavaScript Debugger|ms-vscode.js-debug|1.92.0| |JavaScript Debugger Companion Extension|ms-vscode.js-debug-companion|1.1.3| |Jira and Bitbucket (Atlassian Labs)|atlassian.atlascode|3.0.10| |Jupyter|ms-toolsai.jupyter|2024.7.0| |Jupyter Cell Tags|ms-toolsai.vscode-jupyter-cell-tags|0.1.9| |Jupyter Keymap|ms-toolsai.jupyter-keymap|1.1.2| |Jupyter Notebook Renderers|ms-toolsai.jupyter-renderers|1.0.19| |Jupyter Slide Show|ms-toolsai.vscode-jupyter-slideshow|0.1.6| |Markdown All in One|yzhang.markdown-all-in-one|3.6.2| |Pylance|ms-python.vscode-pylance|2024.8.1| |Python|ms-python.python|2024.8.0| |Python Debugger|ms-python.debugpy|2024.10.0| |Rainbow CSV|mechatroner.rainbow-csv|3.12.0| |Reload|natqe.reload|0.0.7| |Ruff|charliermarsh.ruff|2024.42.0| |Select Compare Tabs|outofsync42.select-compare-tabs|1.0.3| |Serial Monitor|ms-vscode.vscode-serial-monitor|0.12.0| |Table Visualizer for JavaScript Profiles|ms-vscode.vscode-js-profile-table|1.0.9| |vscode-pdf|tomoki1207.pdf|1.2.2| |YAML|redhat.vscode-yaml|1.15.0|System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 7 5800HS with Radeon Graphics (16 x 3194)| |GPU Status|2d_canvas: enabledcanvas_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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.41GB (3.18GB free)| |Process Argv|--crash-reporter-id 368224f6-5426-4209-af9b-9016e65f668e| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 0ee40948:31013168 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31104044 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31119336 wkspc-onlycs-c:31111717 nativeloc1:31118318 wkspc-ranged-c:31118571 ```