I had the same problem described here, new install of Ubuntu 18.04 LTS. I installed VS Code from conda.

Discovered that if you run the following

code --verbose

It will tell you what is going on with Code. In my case

code --verbose
[main 20:19:26] Startup error: 
Error: EACCES: permission denied, mkdir '/home/<user>/.config/Code/CachedData'

sure enough the folder ~/.config/Code had root access permissions for some reason. Deleted the folder using sudo.

rm -rf /home/<user>/.config/Code 

Tried again to run code and it working fine.

Answer from Robin G on askubuntu.com
🌐
Super User
superuser.com › questions › 1822375 › i-can-not-start-microsoft-visual-code-on-ubuntu-22-04-anymore
linux - I can not start Microsoft Visual Code on Ubuntu 22.04 anymore - Super User
December 19, 2023 - You need to change from Wayland to X11 aka Xorg in the Ubuntu login window at the beginning of your session. Before you login change to Xorg in the setting wheel located in the right corner.
Discussions

VS Code Not Opening Properly in Ubuntu 20.04.6 LTS
Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.83.0; e7e0370; x64 OS Version: Ubuntu: 20.04.6 LTS (Focal Fossa) Steps to Reproduce: Install vscode-1.81.1 Upgrade via software updates from the Ubuntu st... More on github.com
🌐 github.com
7
October 6, 2023
VS Code not opening in Ubuntu 20.04
Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.58.1 OS Version: Ubuntu 20.04 Recently, I boot my laptop and launched VS Code (from the terminal). I even launched Em... More on github.com
🌐 github.com
1
August 2, 2021
Visual Studio Code can't run in Ubuntu 18.04 - Stack Overflow
I have been using VSCode for a while and never had any big problem with it. Today I tried to start my VSCode from left taskbar on my Ubuntu 18.04 and it not showing up. Also, I tried to run in terminal as 'code .' again nothing. More on stackoverflow.com
🌐 stackoverflow.com
VS Code not responding on launching
Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.80.1 OS Version: Ubuntu 22.04 Steps to Reproduce: Opening vscode from terminal or from desktop icon I installed vs... More on github.com
🌐 github.com
38
July 20, 2023
🌐
Visual Studio Code
code.visualstudio.com › docs › setup › linux
Visual Studio Code on Linux
November 3, 2021 - Running code . on Ubuntu when VS Code is already open in the current directory will not bring VS Code into the foreground.
🌐
GitHub
github.com › microsoft › vscode › issues › 194969
VS Code Not Opening Properly in Ubuntu 20.04.6 LTS · Issue #194969 · microsoft/vscode
October 6, 2023 - Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.83.0; e7e0370; x64 OS Version: Ubuntu: 20.04.6 LTS (Focal Fossa) Steps to Reproduce: Install vscode-1.81.1 Upgrade via software updates from the Ubuntu st...
Author   Kuppusamy-R
🌐
GitHub
github.com › microsoft › vscode › issues › 129978
VS Code not opening in Ubuntu 20.04 · Issue #129978 · microsoft/vscode
August 2, 2021 - Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.58.1 OS Version: Ubuntu 20.04 Recently, I boot my laptop and launched VS Code (from the terminal). I even launched Em...
Author   jobic10
🌐
Evidencen
evidencen.com › vscode-not-starting-in-ubuntu
VSCode not starting in Ubuntu – EvidenceN
Try reopening code again using Ubuntu in the new window. ... Remove .vscode folder from this directory /mnt/c/Users/Samsung$ (you have to match this directory to your local directory) ... Open VSCode from your desktop (You are not supposed to have VSCode installed in Linux when using WSL, The VScode installed on windows computer is what WSL uses).
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode › issues › 188397
VS Code not responding on launching · Issue #188397 · microsoft/vscode
July 20, 2023 - Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.80.1 OS Version: Ubuntu 22.04 Steps to Reproduce: Opening vscode from terminal or from desktop icon I installed vscode from the snapstore, and while launc...
Author   RealShivesh
🌐
Visual Studio Code
code.visualstudio.com › docs › supporting › troubleshoot-terminal-launch
Troubleshoot Terminal launch failures
November 3, 2021 - Test your shell directly. Try running your designated integrated terminal shell outside VS Code from an external terminal or command prompt. Some terminal launch failures might be due to your shell installation and are not specific to VS Code.
🌐
Reddit
reddit.com › r/ubuntu › trouble opening app center and vs code
r/Ubuntu on Reddit: Trouble Opening App Center and Vs Code
June 9, 2024 -

After restoring my Ubuntu to a version from 10 days ago using Timeshift due to errors encountered while installing Wine, I've noticed that the App Center won't open. Additionally, whenever I attempt to open VS Code, the window briefly appears before closing itself. I've tried updating the software to the latest version using commands, but none of these solutions seem to work. What steps can I take to resolve these issues?

🌐
Reddit
reddit.com › r/ubuntu › vscode not starting anymore
r/Ubuntu on Reddit: Vscode not starting anymore
February 2, 2024 -

When i try to start vscode, it immediately crashes. This happened very randomly, because vscode ran perfectly this morning. When i run code --verbose, i get the following:

[0202/171254.100324:ERROR:file_io_posix.cc(152)] open /home/robbe/.config/Code/Crashpad/pending/68255db5-6e73-4d8d-9375-7f91faf6649b.lock: File exists (17)
[0202/171254.112832:ERROR:directory_reader_posix.cc(42)] opendir /home/robbe/.config/Code/Crashpad/attachments/f1312132-278c-479a-b99c-0cdf0cb5c4e6: No such file or directory (2)
[7040:0202/171254.257319:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[main 2024-02-02T16:12:54.528Z] [File Watcher (node.js)] Request to start watching: /home/robbe/.config/Code/User (excludes: <none>, includes: <all>, correlationId: <none>),/home/robbe/.config/Code/User/settings.json (excludes: <none>, includes: <all>, correlationId: <none>)
[main 2024-02-02T16:12:54.559Z] Starting VS Code
[main 2024-02-02T16:12:54.559Z] from: /usr/share/code/resources/app
[main 2024-02-02T16:12:54.560Z] args: {
_: [],
diff: false,
merge: false,
add: false,
goto: false,
'new-window': false,
'reuse-window': false,
wait: false,
help: false,
'list-extensions': false,
'show-versions': false,
'pre-release': false,
'update-extensions': false,
version: false,
verbose: true,
status: false,
'prof-startup': false,
'no-cached-data': false,
'prof-v8-extensions': false,
'disable-extensions': false,
'disable-gpu': false,
'disable-chromium-sandbox': false,
sandbox: false,
telemetry: false,
debugRenderer: false,
'enable-smoke-test-driver': false,
logExtensionHostCommunication: false,
'skip-release-notes': false,
'skip-welcome': false,
'disable-telemetry': false,
'disable-updates': false,
'use-inmemory-secretstorage': false,
'disable-workspace-trust': false,
'disable-crash-reporter': false,
'crash-reporter-id': '83c17b02-ab04-4ea6-a5e8-df0b3ffbebcd',
'skip-add-to-recently-opened': false,
'unity-launch': false,
'open-url': false,
'file-write': false,
'file-chmod': false,
force: false,
'do-not-sync': false,
trace: false,
'preserve-env': false,
'force-user-env': false,
'force-disable-user-env': false,
'open-devtools': false,
'disable-gpu-sandbox': false,
'__enable-file-policy': false,
'enable-coi': false,
'no-proxy-server': false,
'no-sandbox': false,
nolazy: false,
'force-renderer-accessibility': false,
'ignore-certificate-errors': false,
'allow-insecure-localhost': false,
'disable-dev-shm-usage': false,
'profile-temp': false,
logsPath: '/home/robbe/.config/Code/logs/20240202T171254'
}
[main 2024-02-02T16:12:54.560Z] Resolving machine identifier...
[main 2024-02-02T16:12:54.561Z] Resolved machine identifier: 019f2735ec081d26def35c5da14b879459931ba323faa0546ab0d6444d034249
[main 2024-02-02T16:12:54.562Z] Main->SharedProcess#connect
[main 2024-02-02T16:12:54.570Z] [File Watcher (node.js)] Started watching: '/home/robbe/.config/Code/User'
[main 2024-02-02T16:12:54.573Z] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/robbe/.config/Code/User/settings.json'
[main 2024-02-02T16:12:54.574Z] StorageMainService: creating application storage
[main 2024-02-02T16:12:54.583Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2024-02-02T16:12:54.584Z] lifecycle (main): phase changed (value: 2)
[main 2024-02-02T16:12:54.585Z] windowsManager#open
[main 2024-02-02T16:12:54.588Z] windowsManager#open pathsToOpen [
{
workspace: { id: 'dbed13c5ea969539b8d31aa62428aeab', uri: [$] },
type: 2,
exists: true
}
]
[main 2024-02-02T16:12:54.590Z] windowsManager#doOpenFolderOrWorkspace {
folderOrWorkspace: {
workspace: { id: 'dbed13c5ea969539b8d31aa62428aeab', uri: [$] },
type: 2,
exists: true
},
filesToOpen: undefined
}
[main 2024-02-02T16:12:54.593Z] IPC Object URL: Registered new channel vscode:0a7247db-3973-419f-a60f-25d8fbcc910e.
[main 2024-02-02T16:12:54.593Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 256, y: 91, width: 1024, height: 773 }
[main 2024-02-02T16:12:54.594Z] window#validateWindowState: 1 monitor working area { x: 0, y: 27, width: 1536, height: 837 }
[main 2024-02-02T16:12:54.594Z] window#ctor: using window state { mode: 1, x: 256, y: 91, width: 1024, height: 773 }
[main 2024-02-02T16:12:54.677Z] window#load: attempt to load window (id: 1)
[main 2024-02-02T16:12:54.687Z] StorageMainService: creating workspace storage (dbed13c5ea969539b8d31aa62428aeab)
[main 2024-02-02T16:12:54.689Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0)
[main 2024-02-02T16:12:54.689Z] lifecycle (main): phase changed (value: 3)
[main 2024-02-02T16:12:54.690Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-02-02T16:12:54.691Z] update#setState idle
[7040:0202/171254.702002:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171254.702028:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 1 time(s)
[7040:0202/171255.060917:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171255.060944:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 2 time(s)
[7040:0202/171255.394779:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171255.394804:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 3 time(s)
[7040:0202/171255.678511:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171255.678530:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 4 time(s)
[7040:0202/171255.955641:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171255.955661:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 5 time(s)
[7040:0202/171256.222016:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171256.222034:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 6 time(s)
[main 2024-02-02T16:12:56.255Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[7040:0202/171256.415997:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171256.416021:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 7 time(s)
[7040:0202/171256.598384:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171256.598408:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 8 time(s)
[7040:0202/171256.789231:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=133
[7040:0202/171256.789247:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 9 time(s)
[7040:0202/171256.789259:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[0202/171256.798958:ERROR:elf_dynamic_array_reader.h(64)] tag not found

Does anyone have an idea how i can fix this? I have reinstalled code several times, cleared the config/Code directory and also cleared the .vscode directory. Starting it with --disable-gpu also does not change anything :( Any help is appreciated

🌐
YouTube
youtube.com › watch
[FIXED] Cannot Open Visual Studio Code From Command Line On Ubuntu - YouTube
We always open the visual studio code editor on the current directory from terminal using this command (code .) BUT it is changed to (vscode .) and that is w...
Published   April 7, 2019
🌐
GitHub
github.com › microsoft › vscode › issues › 62752
vscode won't start on my Ubuntu, and `$ code --verbose` gives no output · Issue #62752 · microsoft/vscode
November 8, 2018 - $ code --verbose # this gives no output $ bash --debugger -x `which code` /usr/bin/code: /usr/share/bashdb/bashdb-main.inc: No such file or directory /usr/bin/code: warning: cannot start debugger; debugging mode disabled ++ id -u + '[' 1000 = 0 ']' + '[' '!' -L /usr/bin/code ']' + which readlink +++ readlink -f /usr/bin/code ++ dirname /usr/share/code/bin/code + VSCODE_PATH=/usr/share/code/bin/.. + ELECTRON=/usr/share/code/bin/../code + CLI=/usr/share/code/bin/../resources/app/out/cli.js + ELECTRON_RUN_AS_NODE=1 + /usr/share/code/bin/../code /usr/share/code/bin/../resources/app/out/cli.js # this command stopped at here. stuck. And some workaround from vscode github issue 862 do not work.
Author   foodtooth
🌐
Stack Overflow
stackoverflow.com › questions › 76511482 › unable-to-start-vscode-as-root-on-ubuntu-20-04
visual studio code - Unable to start VSCode as root on Ubuntu 20.04 - Stack Overflow
I have VSCode 1.79.2 running on Ubuntu 20.04 which I installed using snap. When I try to start VSCode as root using the following command: sudo code --verbose --user-data-dir=/root/.config/Code --no-sandbox · I just get a blank dialog as shown in the attachment below. I am also attaching my logs. ... [9777:0620/002407.015879:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [9777:0620/002407.016217:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") No protocol specified No protocol specified [9777:0620/002407.044186:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
🌐
GitHub
github.com › loft-sh › devpod › issues › 860
VSCode not starting in Ubuntu 22.04 · Issue #860 · loft-sh/devpod
January 4, 2024 - What happened? VSCode is not started by DevPod in Ubuntu 22.04 What did you expect to happen instead? Expected VS Code to start with a remote ssh connection to the devcontainer started by DevPod. How can we reproduce the bug? (as minimal...
Author   pedro93
🌐
GitHub
github.com › microsoft › vscode › issues › 64011
VS code doesn't launch in Ubuntu 1804 · Issue #64011 · microsoft/vscode
November 29, 2018 - VSCode Version: 1.29 (Downloaded on Nov-29-2018) OS Version: Ubunut 1804 After installing, when tired to launch code, it opens up and then hangs as shown below Even after disabling the extensions i...
Author   vkotaru