Microsoft/vscode

Remote terminals don't resolve variables when restored on startup

Open

#81,231 创建于 2019年9月20日

在 GitHub 查看
 (13 评论) (0 反应) (1 负责人)TypeScript (74,848 star) (10,221 fork)batch import
bughelp wantedremoteterminal-process

描述

Issue Type: Bug

I changed my Terminal->Integrated: Cwd setting to "$(workspaceFolder)". Now, when Code starts up, the Terminal does not open, and I get a notification: "The terminal shell CWD "/home/gpudb/gpudb-dev-7.0/gpudb-core/gaiadb-cluster/${workspaceFolder}" does not exist". This happens every time I launch Code.

However, once Code has loaded, I can then do Ctrl-` to open a Terminal window, and it works as expected (also every time). Note that this is doing Remote development (so the Terminal is opening a session on my remote machine).

I suspect the issue is that Code is trying to start the Terminal before $workspaceFolder is set, but it is set later, when I manually open the Terminal. It is a fairly easy work-around, but am reporting it in case this is not the expected behavior.

VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z) OS version: Windows_NT x64 10.0.18362 Remote OS version: Linux x64 4.15.0-62-generic

Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)
GPU Status 2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled
Load (avg) undefined
Memory (System) 15.76GB (7.51GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote SSH: andy-linux
OS Linux x64 4.15.0-62-generic
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 900)
Memory (System) 62.86GB (6.62GB free)
VM 0%
Extension Author (truncated) Version
vscode-cudacpp kri 0.1.1
remote-containers ms- 0.74.0
remote-ssh ms- 0.46.1
remote-ssh-edit ms- 0.46.1
remote-ssh-explorer ms- 0.46.1
remote-wsl ms- 0.39.5
vscode-remote-extensionpack ms- 0.17.0
vs-keybindings ms- 0.2.0
code-gnu-global aus 0.2.2
githistory don 0.4.6
mssql ms- 1.6.0
cpptools ms- 0.25.1
java red 0.49.0
vscodeintellicode Vis 1.1.9
vscode-java-debug vsc 0.21.0
vscode-java-dependency vsc 0.5.1
vscode-java-pack vsc 0.8.0
vscode-java-test vsc 0.19.0
vscode-maven vsc 0.19.0
gitblame wad 3.0.1

贡献者指南

Remote terminals don't resolve variables when restored on startup · Microsoft/vscode#81231 | Good First Issue