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

Variables not expanding when the terminal autoruns on startup (Win10 → WSL) #92799

Closed
747 opened this issue Mar 16, 2020 · 2 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) remote Remote system operations issues terminal Integrated terminal issues
Milestone

Comments

@747
Copy link

747 commented Mar 16, 2020

Issue Type: Bug

  1. set up your workspace JSON as follows:
{
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {
		"terminal.integrated.env.linux": {
			"PATH": "${workspaceFolder}:${env:PATH}"
		}
	}
}
  1. close VSCode while in the workspace leaving the integrated terminal open (so that it restarts automatically at the next time)

  2. launch VSCode again

  3. the terminal pops up and says:

コマンド 'lesspipe' は以下の場所で利用できます
 * /bin/lesspipe
 * /usr/bin/lesspipe
'/bin:/usr/bin'がPATH環境変数に含まれていないためコマンドを特定できませんでした。
lesspipe: コマンドが見つかりません
コマンド 'dircolors' は '/usr/bin/dircolors' で利用できます
'/usr/bin'がPATH環境変数に含まれていないためコマンドを特定できませんでした。
dircolors: コマンドが見つかりません

(it complains in Japanese about /bin:/usr/bin not included in $PATH)

$ echo $PATH
${workspaceFolder}:${env:PATH}
  1. open a new terminal and it correctly sources PATH
$ echo $PATH
/mnt/my/Workspace/Folder:/home/me/.vscode-server/bin/blahblah...

VS Code version: Code 1.43.0 (78a4c91, 2020-03-09T19:47:57.235Z)
OS version: Windows_NT x64 10.0.18363
Remote OS version: Linux x64 4.4.0-18362-Microsoft

System Info
Item Value
CPUs AMD Ryzen 7 1700 Eight-Core Processor (16 x 2994)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.95GB (21.90GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu-18.04
OS Linux x64 4.4.0-18362-Microsoft
CPUs AMD Ryzen 7 1700 Eight-Core Processor (16 x 3000)
Memory (System) 31.95GB (21.91GB free)
VM 0%
Extensions (40)
Extension Author (truncated) Version
better-comments aar 2.0.5
vsc-material-theme Equ 32.5.0
vsc-material-theme-icons equ 1.1.4
ace eva 0.0.1
auto-close-tag for 0.5.6
textile idl 0.1.5
sdlang Lau 0.1.2
procfile-support log 0.0.1
vscode-language-pack-ja MS- 1.43.6
remote-wsl ms- 0.42.3
material-icon-theme PKi 4.0.1
ayu tea 0.18.0
vscode-ruby win 0.27.0
material-theme zhu 3.2.3
insert-unicode bru 0.7.1
better-toml bun 0.3.2
githistory don 0.6.3
EditorConfig Edi 0.14.4
crystal-lang fau 0.3.14
auto-close-tag for 0.5.6
auto-complete-tag for 0.1.0
auto-rename-tag for 0.1.1
code-runner for 0.9.17
sass-lint gle 1.0.6
todo-tree Gru 0.0.169
align-by-regex jan 1.0.4
asciidoctor-vscode joa 2.7.13
nim kos 0.6.4
formate Mik 1.1.4
vscode-language-pack-ja MS- 1.43.6
python ms- 2020.2.64397
cpptools ms- 0.26.3
trailingwhitespacehighlighter paj 0.0.2
ruby reb 0.27.0
rust rus 0.7.0
crates ser 0.4.9
vscode-table-formatter shu 1.2.1
sass-indented syl 1.7.5
vscode-ruby win 0.27.0
better-align wwm 1.1.6

(4 theme extensions excluded)

@Tyriar
Copy link
Member

Tyriar commented Apr 6, 2020

Same root cause as #81231 I believe.

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug terminal Integrated terminal issues remote-explorer Remote explorer view remote Remote system operations issues and removed remote-explorer Remote explorer view labels Apr 6, 2020
@Tyriar Tyriar added this to the Backlog milestone Apr 6, 2020
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 1, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) remote Remote system operations issues terminal Integrated terminal issues
Projects
None yet
Development

No branches or pull requests

3 participants
@Tyriar @747 and others