Skip to content
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

Folder rename in Go tests causes test tree to keep old folder and causes infinite test run in VSCode Insiders #230034

Closed
craftidev opened this issue Sep 28, 2024 · 2 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@craftidev
Copy link

craftidev commented Sep 28, 2024

Type: Bug

"In VSCode Insiders, when I rename a folder in the tests directory, the test explorer updates correctly with the new folder name, but the old folder name is still kept in the tree. When I attempt to run tests, the test gets stuck indefinitely because it doesn't find the files with the old path. The go test -timeout 5s setting is ignored, and the test never times out. The button Cancel Test Run doesn't work either. Closing and relaunching VSCode Insiders solves the issue, as the tree is correctly updated after restarting."

Steps to Reproduce:

  1. Open a Go project with tests in VSCode Insiders.
  2. Rename a folder in the tests directory.
  3. Notice that the test tree shows both the old and new folder names.
  4. Attempt to run a test from the test explorer.
  5. Observe that the test hangs indefinitely, ignoring the timeout setting, or the cancel action.
  6. Restart VSCode Insiders.
  7. Observe that the old folder name is no longer present, and the test tree is correctly updated.

Expected Behavior:
When renaming a folder in the test directory, the test explorer should update and only reflect the new folder name, and tests should run normally without hanging indefinitely.

Actual Behavior:
The old folder name remains in the test explorer, causing tests to hang indefinitely when run.

Go Version:

  • Go 1.23.1
Screencast.from.28-09-2024.04.02.21.webm

VS Code version: Code - Insiders 1.94.0-insider (1cbbe85, 2024-09-27T14:53:58.142Z)
OS version: Linux x64 6.8.0-45-generic snap
Modes:

System Info
Item Value
CPUs AMD Ryzen 5 2600 Six-Core Processor (12 x 2799)
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) 1, 1, 1
Memory (System) 15.56GB (4.47GB free)
Process Argv --no-sandbox --force-user-env --crash-reporter-id ce10a012-51c2-41b8-9fb2-59d92fc72a00
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Extensions (35)
Extension Author (truncated) Version
increment-selection alb 0.2.0
vscode-sqlite ale 0.14.1
vscode-django bat 1.15.0
export-your-extensions Bha 1.0.2
generate-tree Cod 0.0.1
dart-code Dar 3.97.20240926
flutter Dar 3.97.20240902
vuerd-vscode din 2.0.0
gitlens eam 2024.9.2705
EditorConfig Edi 0.16.4
prettier-vscode esb 11.0.0
indent-rainbow-palettes evo 0.0.20
go gol 0.42.1
todo-tree Gru 0.0.226
Kotlin mat 1.7.1
language-gettext mro 0.5.0
debugpy ms- 2024.10.0
python ms- 2024.14.1
vscode-pylance ms- 2024.9.2
vscode-typescript-next ms- 5.7.20240927
reload nat 0.0.7
indent-rainbow ode 8.3.1
bun-vscode ove 0.0.15
betterfountain pie 1.13.0
material-icon-theme PKi 5.11.1
rust-analyzer rus 0.4.2126
firacode Sey 2.2.1
markdown-preview-enhanced shd 0.8.14
tabnine-vscode Tab 3.163.0
tauri-vscode tau 0.2.9
find-it-faster Tom 0.0.39
vscode-lldb vad 1.10.0
vscode-ltex val 13.1.0
vscode-gradle vsc 3.16.4
cursor-align yo1 1.1.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256197
vscod805:30301674
vsaa593:30376534
py29gd2263:31024238
vscaac:30438845
c4g48928:30535728
962ge761:30841072
pythongtdpath:30726887
welcomedialogc:30812479
pythonnoceb:30776497
asynctok:30898717
dsvsc014:30777825
dsvsc015:30821418
pythonmypyd1:30859725
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
cppperfnew:30980852
pythonait:30973460
945dj816:31013170
a69g1124:31018687
dvdeprecation:31040973
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31057980
nativerepl1:31134653
refactort:31084545
pythonrstrctxt:31093868
flighttreat:31119334
wkspc-onlycs-t:31132770
nativeloc1:31118317
wkspc-ranged-t:31125599
cf971741:31144450
e80f6927:31120813
defaultse:31146405
i21gd607:31141543
iacca1:31144502
notype1:31143044
b50ed353:31138333
showbadge:31139796
f8igb616:31140137

@connor4312 connor4312 added the *caused-by-extension Issue identified to be caused by an extension label Sep 28, 2024
Copy link

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2024
@craftidev
Copy link
Author

Extension responsible: vscode-go

With already an Issue opened
Test Explorer keeps obsolete method names when renaming test suite methods

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

2 participants