vscode: Open New External Terminal Not Work (Ubuntu Linux)
Type: Bug
Since the last update I can’t open the external terminal from VSCode, before I did it easily with the ctrl+shift+c key combination and now it doesn’t open at all.
I try both with the key combination ctrl+shift+c or looking for the option “Open New External Terminal” in “show all commands” but it doesn’t work. Even from Explorer by right clicking on the context menu “Open in External Terminal” and it doesn’t open either.
The external terminal is the Ubuntu terminal and it works perfectly.
I clarify that before the last update I could perfectly open the external terminal with the ctrl+shift+C key combination without any problem.
I hope they give me the solution because I had already gotten used to opening the external terminal from vscode so I don’t have to navigate to the project folder if I open it from outside vscode.
Thank you
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:52.732Z) OS version: Linux x64 5.19.0-38-generic snap Modes: Sandboxed: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel® Core™ i3-2310M CPU @ 2.10GHz (4 x 2095) |
| GPU Status | 2d_canvas: unavailable_software canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: disabled_software multiple_raster_threads: enabled_on opengl: disabled_off rasterization: disabled_software raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software webgpu: disabled_off |
| Load (avg) | 2, 2, 1 |
| Memory (System) | 7.67GB (3.03GB free) |
| Process Argv | –no-sandbox --force-user-env --unity-launch --crash-reporter-id 1252cec0-e82a-4cdf-895c-ab1fe5480405 |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | ubuntu |
| XDG_CURRENT_DESKTOP | Unity |
| XDG_SESSION_DESKTOP | ubuntu |
| XDG_SESSION_TYPE | x11 |
Extensions (41)
| Extension | Author (truncated) | Version |
|---|---|---|
| better-comments | aar | 3.0.2 |
| codesnap | adp | 1.3.4 |
| vscode-sql-formatter | adp | 1.4.4 |
| Bookmarks | ale | 13.3.1 |
| project-manager | ale | 12.7.0 |
| clipboard-history | Anj | 1.0.7 |
| jsoncrack-vscode | Ayk | 1.0.8 |
| vscode-intelephense-client | bme | 1.9.5 |
| path-intellisense | chr | 2.8.4 |
| vscode-css-modules | cli | 0.4.2 |
| vscode-eslint | dba | 2.4.0 |
| vscode-html-css | ecm | 1.13.1 |
| prettier-vscode | esb | 9.10.4 |
| auto-rename-tag | for | 0.1.10 |
| vscode-drawio | hed | 1.6.6 |
| vscode-power-mode | hoo | 3.0.2 |
| svg | joc | 1.5.2 |
| vscode-gist | ken | 3.0.3 |
| template-string-converter | meg | 0.6.1 |
| git-graph | mhu | 1.30.0 |
| dotenv | mik | 1.0.1 |
| document | min | 2.2.1 |
| mongodb-vscode | mon | 0.11.1 |
| sqltools | mtx | 0.27.1 |
| sqltools-driver-mysql | mtx | 0.5.1 |
| color-highlight | nau | 2.5.0 |
| subtitles-editor | pep | 1.1.7 |
| vscode-versionlens | pfl | 1.5.0 |
| material-icon-theme | PKi | 4.26.0 |
| vscode-css-peek | pra | 4.2.0 |
| quicktype | qui | 12.0.46 |
| trailing-spaces | sha | 0.4.1 |
| svg-preview | Sim | 2.8.3 |
| some-sass | Som | 2.10.0 |
| comment-divider | sta | 0.4.0 |
| lorem-ipsum | Tyr | 1.3.1 |
| highlight-matching-tag | vin | 0.11.0 |
| vscode-conventional-commits | viv | 1.25.0 |
| vscode-todo-highlight | way | 1.0.5 |
| markdown-all-in-one | yzh | 3.5.1 |
| php-intellisense | zob | 1.1.2 |
(2 theme extensions excluded)
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1cf:30587006
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
6233i204:30672705
defaultazurewalk:30687958
pythonms35:30701012
pythonclientmvcf:30713944
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 21
- Comments: 28 (2 by maintainers)
mine got resolved after I uninstalled the snap/ubuntu store one, and re-installed it through .deb file downloaded from vs-code website.
The source of the problem is clear, and still after 3 months no fix or feedback was provided. I guess that is time to stop using snap.
Hi guys. Installing vscode deb package downloaded from the vscode website can solve this problem. This is a temporary solution and don’t forget to back up your vscode configurations.
I guess this problem only appears in snap version, not sure.
Able to reproduce the bug on Ubuntu 22.04.2 LTS with VS Code 1.77.2.
Running
gnome-terminalon the integrated terminal is possible by usingunset GTK_PATH, without this the terminal displays the error:Same issue with Ubuntu 22.04.2 LTS and VS Code :
Impossible to open a new external terminal.
I can reproduce this issue on my Ubuntu 22.04.1 machine with VS Code 1.77.3. The issue reproduces if I keep the default setting of
"terminal.external.linuxExec": "x-terminal-emulator", and also if I change it tognome-terminal.I cannot reproduce this issue on my Windows 11 machine with VS Code 11.77.3.
I encountered another user on Ubuntu 22.04.2 who can reproduce this issue as well. See this post on Stack Overflow: Why does Ctrl + Shift + C no longer open a new external terminal in VS Code? and my answer post there.
same here
same here
+1
+1
I think I found a way to correct the setup. In vscode, go to Settings (Ctrl + , ) then search for “exec”, in “Terminal > External: Linux Exec” enter e.g. “konsole” if your have “konsole” installed, or another terminal application name. Check if the terminal application can be run in a console. In my case gnome-terminal and also xterm both lead to “bash: … command not found”. In my case, there was “xterm” configured, but “xterm” was not installed on my Manjaro XFCE. After changing the setting, opening external console in vscode works (Ctrl + Shift + C) in my case. So, in my eyes, not a bug in the distro packages, but a default malconfiguration eventually. But there is a bug in that sense, that when vscode wants start a terminal application which does not exists in search path, no error occurs! a silent fail.
I’m also experiencing this issue on Ubuntu 22.04. Snap installation.
same, ubuntu 23.04
The user who asked the Stack Overflow question I answered has this:
I wonder if this is related to Snap installations? I’m also on Ubuntu 22.04.2 with VS Code installed as a Snap (I have VS Code 1.78.2 now).
@ramfaof I can reproduce the behaviour you’ve described.
Same here with Ubuntu 22.04.2 LTS
This works for me on Insider’s/macOS. Can you try insider’s?