question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote terminals don't resolve variables when restored on startup

See original GitHub issue

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

System Info
Item Value
CPUs Intel® Core™ i7-6700HQ CPU @ 2.60GHz (8 x 2592)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: 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® Core™ i7-7700HQ CPU @ 2.80GHz (8 x 900)
Memory (System) 62.86GB (6.62GB free)
VM 0%
Extensions (20)
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

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lifezcommented, Oct 16, 2019

@Tyriar Thank you!! I would like to take this one

1reaction
lifezcommented, Oct 15, 2019

@Tyriar I would like to take this. Could you please guide me?

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code Refresh Integrated Terminal Environment Variables ...
Open a new terminal (via Terminal->New Terminal or Ctrl+Shift+` or with the + on the top right of the terminal window), do NOT...
Read more >
Windows 10 System environment variables don't stick
Locate "Path" under the System variables section. Click to highlight it. Click "Edit". The "Edit environment variable" modal window pops up.
Read more >
Integrated Terminal in Visual Studio Code
Visual Studio Code has an integrated terminal to enable working in your shell ... Activating the Launch Profile button will show all detected...
Read more >
PanelView Plus Terminals User Manual
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or ... After a reset, the terminal performs a series...
Read more >
Cannot connect with RDP to a Windows VM in Azure - Virtual ...
Troubleshoot Remote Desktop connections to an Azure virtual machine ... reset the RDP configuration or user credentials and you don't have ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found