microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.28k stars 1.17k forks source link

Success/Fail Test Checkmark Reference wrong after Command-Z is used. #23385

Open justin-noyo opened 4 months ago

justin-noyo commented 4 months ago

Type: Bug

  1. Add a python test
  2. run tests
  3. See Checkmark
  4. Delete code
  5. Run tests
  6. put code back with cmd-z (undo command)
  7. Notce green/red checkmark test reference is wrong

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:43:08.196Z) OS version: Darwin arm64 23.1.0 Modes: Connection to 'dev-container+7b22686f737450617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e65222c226c6f63616c446f636b6572223a66616c73652c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2265787465726e616c223a2266696c653a2f2f2f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d' could not be established Remote OS version: Linux arm64 6.6.16-linuxkit

System Info |Item|Value| |---|---| |CPUs|Apple M3 Pro (11 x 24)| |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: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|3, 3, 3| |Memory (System)|36.00GB (0.21GB free)| |Process Argv|--crash-reporter-id 525be2f3-acf6-47fd-9a40-9c99141ca277| |Screen Reader|no| |VM|0%| Connection to 'dev-container+7b22686f737450617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e65222c226c6f63616c446f636b6572223a66616c73652c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2265787465726e616c223a2266696c653a2f2f2f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d' could not be established |Item|Value| |---|---| |Remote|Dev Container: fulfillment @ desktop-linux| |OS|Linux arm64 6.6.16-linuxkit| |CPUs|unknown (8 x 0)| |Memory (System)|17.54GB (7.34GB free)| |VM|0%|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- remote-containers|ms-|0.362.0 gitlens|eam|14.9.1 vscode-docker|ms-|1.29.1 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.6.0 flake8|ms-|2023.10.0 python|ms-|2024.4.1 vscode-pylance|ms-|2024.5.1 reveal|smu|1.2.7
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 ccp1r6:30993540 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 bdiig495:31013172 fchga941:31038042 dwnewjupytercf:31039676 ```
VSCodeTriageBot commented 4 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

eleanorjboyd commented 4 months ago

will take a look at this soon- thanks for the bug report!

justin-noyo commented 4 months ago

Screenshot 2024-05-08 at 11 12 27 AM

Thanks and for reference thats what I see.

eleanorjboyd commented 2 months ago

@connor4312 do you have an idea on this? Not sure if core handles the Control+Z flow

connor4312 commented 2 months ago

Decorations are tracked using the default editor logic which is best-effort. It's expected though that extensions update the location and presence of their tests eventually which will reset the decoration positions based on what the extension tells us. I would expect the Python extension would do that after modifications to the file.