microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.65k stars 285 forks source link

Remote Explorer doesn't show SSH remotes when Remote-Tunnels Extension is uninstalled #8270

Open tim-lucera opened 1 year ago

tim-lucera commented 1 year ago

Type: Bug

  1. installed Remote Developement pack (WSL, SSH, Tunnels, Containers)
  2. set up some remote SSH hosts. Everything working great.
  3. remove Tunnels extension as I don't need it
  4. go to Remote Explorer, it doesn't show my SSH hosts

Notes

  1. that if I re-install Remote Tunnels extension, the remote SSH hosts become visible again in the remote explorer
  2. there is an error message at bottom right that says "Cannot read properties of undefined (reading 'name')"

Extension version: 0.2.0 VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:55:54.936Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Remote OS version: Linux x64 3.10.0-1062.4.1.el7.x86_64

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)| |GPU Status|2d_canvas: enabled
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| |Load (avg)|undefined| |Memory (System)|31.30GB (18.29GB free)| |Process Argv|--crash-reporter-id db15b7bc-3436-45fc-86ba-26033a43acdd| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: lab02| |OS|Linux x64 3.10.0-1062.4.1.el7.x86_64| |CPUs|Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz (44 x 2199)| |Memory (System)|251.65GB (192.92GB free)| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 vscrp:30673768 pythonsymbol12:30671437 6233i204:30672705 vsccsb:30677849 defaultazurewalk:30687958 pythonms35cf:30686773 ```
tim-lucera commented 1 year ago

Screenshot showing empty Remote Explorer and error message image

eleanorjboyd commented 1 year ago

@connor4312, thoughts on this? Or do you know what logs might be the most helpful?

connor4312 commented 1 year ago

Running the "toggle developer tools" command and opening the Console should show a (minified) stacktrace which should help pinpoint where the issue is.

tim-lucera commented 1 year ago

Thanks. This is what's shown in the developer Console:

notificationsAlerts.ts:40 TypeError: Cannot read properties of undefined (reading 'name')
    at f.getChildren (c:\Users\TM128936\.vscode\extensions\ms-vscode-remote.remote-wsl-0.76.1\dist\extension.js:2:593307)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async b.R (c:\Users\TM128936\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:117:18944)
    at async b.getChildren (c:\Users\TM128936\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:117:15363)
tim-lucera commented 1 year ago

OK I just noticed something else: I uninstalled the Tunnels extension so I could get the Developer Console output as you requested. Then I was just about to reinstall the Tunnels extension so I could get my ssh sessions back in Remote Explorer when I noticed that the Remote Explorer extension had the blue "install" button, even though i had not uninstalled it, but the Remote Explorer icon was still visible in the left column. I installed Remote Explorer extension and the ssh sessions were visible again. So it seems like uninstalling the Tunnels Extension does a kind of partial uninstall of the Remote Explorer extension.

ThiefMaster commented 7 months ago

This bug is pretty annoying, especially because the tunnels extensions shows the annoying message about logging in to a MS account - and I'm sure I'm the only one who REALLY cannot stand "unreads" labels I can't get rid of (without logging in to a MS account which I don't plan to use)...