You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selecting Remote Explorer, or hitting SSH Targets 'refresh' gives error
this.historyData[e].forEach is not a function
List of SSH targets is missing. Recreated ~/.ssh/config file, and reverted extension but issue persists. VSCode Insiders version is working with remote ssh.
Extension version: 0.50.0
VS Code version: Code 1.43.0 (78a4c91400152c0f27ba4d363eb56d2835f9903a, 2020-03-09T19:47:57.235Z)
OS version: Windows_NT x64 10.0.18363
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (4 x 2494)
Reacted by Haashi, Ahmada Yusril, Neal Stansby, Ching-Yu Chia, Sergey Solodukhin, Fred Ludlow, Rana Ahmed, iyuge2, Michael Schaufelberger, Qinyao He and 2 more
Same problem; tried the complete VSCode uninstall / reinstall (and moved my .vscode folder out of the way while it was uninstalled). Does not remedy the problem!
I've hit this bug too, and reverting to 0.49.0 doesn't work for me as it breaks things on the remote (it's a shared account on the remote and other devs are presumably using the latest version there? - anyway, another workaround below).
However, I think the problem is due to an entry in my ssh config file (Users%username%.ssh\config) for which VSCode has either generated some broken local data (the history data perhaps :) ) or not generated any data at all. (Actually, my guess is there's a historyData object which maps Host entries in .ssh\config to an array of history entries and there's no check that the array isn't undefined before iterating over it.)
Workaround: If I comment out this host or rename it (use an alias) it also works. i.e.
Host some-alias
Hostname actual.host.address
User some-user
...
I've hit this bug too, and reverting to 0.49.0 doesn't work for me as it breaks things on the remote (it's a shared account on the remote and other devs are presumably using the latest version there? - anyway, another workaround below).
However, I think the problem is due to an entry in my ssh config file (Users%username%.ssh\config) for which VSCode has either generated some broken local data (the history data perhaps :) ) or not generated any data at all. (Actually, my guess is there's a historyData object which maps Host entries in .ssh\config to an array of history entries and there's no check that the array isn't undefined before iterating over it.)
Workaround: If I comment out this host or rename it (use an alias) it also works. i.e.
Host some-alias
Hostname actual.host.address
User some-user
...
Notch (@elnotcho) - should this be closed yet? I think it's still a bug (however we've all managed to do it, it's possible to get Code into a state which breaks in a hard-to-understand way).
Sorry for the late response here. I am not sure what the issue is. I pushed a change that works around it. It will be in the next "nightly" build of the extension, out in about 12 hours from now. It might not restore your old history but if you are seeing the error or not collecting history, it will fix that at least.
I think a change awhile ago to storing ssh target state was not handled correctly, but I haven't gotten reports of this in awhile, this should be resolved by now..
Activity
roblourens commentedon Mar 11, 2020
Do you see that error with the latest version, or after reverting the extension?
elnotcho commentedon Mar 12, 2020
See it in latest, and after reverting. Also tried removing extension and re-install. Also removed VSCode and re-installed. Same error persists.
elnotcho commentedon Mar 16, 2020
Also, issue persists in older versions of extension. Suspect that if I could completely remove vscode and extensions then re-install it would remedy.
nstansby commentedon Mar 17, 2020
Same problem; tried the complete VSCode uninstall / reinstall (and moved my .vscode folder out of the way while it was uninstalled). Does not remedy the problem!
chia56028 commentedon Mar 21, 2020
I got the same problem after update "Remote - SSH".
Recover the vision back to 0.49.0 then works.
fredludlow commentedon Mar 30, 2020
Edited slightly for clarity:
I've hit this bug too, and reverting to 0.49.0 doesn't work for me as it breaks things on the remote (it's a shared account on the remote and other devs are presumably using the latest version there? - anyway, another workaround below).
However, I think the problem is due to an entry in my ssh config file (Users%username%.ssh\config) for which VSCode has either generated some broken local data (the history data perhaps :) ) or not generated any data at all. (Actually, my guess is there's a historyData object which maps Host entries in .ssh\config to an array of history entries and there's no check that the array isn't undefined before iterating over it.)
Workaround: If I comment out this host or rename it (use an alias) it also works. i.e.
becomes
elnotcho commentedon Mar 30, 2020
Great workaround! Works for me. TY
fredludlow commentedon Mar 30, 2020
Notch (@elnotcho) - should this be closed yet? I think it's still a bug (however we've all managed to do it, it's possible to get Code into a state which breaks in a hard-to-understand way).
9 remaining items
roblourens commentedon Aug 3, 2020
Sorry for the late response here. I am not sure what the issue is. I pushed a change that works around it. It will be in the next "nightly" build of the extension, out in about 12 hours from now. It might not restore your old history but if you are seeing the error or not collecting history, it will fix that at least.
roblourens commentedon Nov 10, 2020
I think a change awhile ago to storing ssh target state was not handled correctly, but I haven't gotten reports of this in awhile, this should be resolved by now..