-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest "Go to Test" open wrong file after moving project folder #20422
Comments
Did this not work after a restart of VS Code? |
@brettcannon No, still did not work after a restart of VS Code. I also recorded a video reproduceing this bug |
Thank you for the video that is extremely helpful! I will look into this, thanks! |
Hello @connor4312, what are your thoughts on this bug. It seems to only occur when switching between tree view and list view which I think is in your domain in the general test UI but let me know if that is not the case. |
I'm facing the same bug. Is there a workaround to make the tests work again? A cache folder to delete? |
I had a similar problem and was able to fix it by removing VS Code cache. |
I fixed it by deleting the pycache folders. |
Yes, that is a great suggestion for deleting the cache, @Slope86 please give that a try and let us know. Thanks! |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. |
Type: Bug
Behaviour
Expected vs. Actual
project folder before moving: ~\coding\python\Quantum
project folder after moving: ~\coding\python\Quantum\Qiskit-Extention
Expected: the "Go to Test" button open test_xxx.py under ~\coding\python\Quantum\Qiskit-Extention\tests
Actual: the "Go to Test" button try to open test_xxx.py under ~\coding\python\Quantum\tests
similar to issue pytest path breaks after renaming project folder #13820
have tried deleting the
.pytest_cache
folder and runningpytest --cache-clear
in the terminal, but didn't solve it.Steps to reproduce:
Video demo
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2022.20.1
VS Code version: Code 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161, 2022-12-20T10:29:14.590Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: