You are not logged in.

#1 2022-12-30 19:18:41

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

[SOLVED] visual-studio-code-bin immediately closes

running

code --disable-extensions --disable-gpu --verbose --log error

gives me:

[18366:1230/111028.285256:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[18400:1230/111028.328907:WARNING:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2022-12-30T19:10:28.408Z] [File Watcher (node.js)] Request to start watching: /home/will/.config/Code/User (excludes: <none>, includes: <all>),/home/will/.config/Code/User/settings.json (excludes: <none>, includes: <all>)
[main 2022-12-30T19:10:28.426Z] Starting VS Code
[main 2022-12-30T19:10:28.426Z] from: /opt/visual-studio-code/resources/app
[main 2022-12-30T19:10:28.426Z] 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,
  version: false,
  verbose: true,
  log: [ 'error' ],
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': true,
  'disable-gpu': true,
  'ms-enable-electron-run-as-node': 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,
  'disable-keytar': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': '83b95557-22e9-49fa-9880-ce5978da6f71',
  '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,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': 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/will/.config/Code/logs/20221230T111028'
}
[main 2022-12-30T19:10:28.428Z] Resolving machine identifier...
[main 2022-12-30T19:10:28.429Z] Resolved machine identifier: 2912da6bed91bf676677da0275cb81f8b244628abd0f0a13af97b8a961a14a49
[main 2022-12-30T19:10:28.430Z] Main->SharedProcess#connect
[main 2022-12-30T19:10:28.434Z] [File Watcher (node.js)] Started watching: '/home/will/.config/Code/User'
[main 2022-12-30T19:10:28.438Z] [File Watcher (node.js)] Started watching: '/home/will/.config/Code/User/settings.json'
[main 2022-12-30T19:10:28.439Z] StorageMainService: creating application storage
[main 2022-12-30T19:10:28.444Z] lifecycle (main): phase changed (value: 2)
[main 2022-12-30T19:10:28.445Z] windowsManager#open
[main 2022-12-30T19:10:28.445Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ]
[main 2022-12-30T19:10:28.446Z] windowsManager#doOpenEmpty {
  restore: false,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: false
}
[main 2022-12-30T19:10:28.448Z] IPC Object URL: Registered new channel vscode:8e4a343e-6d42-44d5-8df5-5a96eb6be409.
[main 2022-12-30T19:10:28.448Z] window#validateWindowState: validating window state on 1 display(s) {
  width: 1024,
  height: 768,
  mode: 1,
  x: 448,
  y: 156,
  hasDefaultState: true
}
[main 2022-12-30T19:10:28.448Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1920, height: 1048 }
[main 2022-12-30T19:10:28.448Z] window#ctor: using window state {
  width: 1024,
  height: 768,
  mode: 1,
  x: 448,
  y: 156,
  hasDefaultState: true
}
[main 2022-12-30T19:10:28.520Z] window#load: attempt to load window (id: 1)
[main 2022-12-30T19:10:28.548Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, emptyToOpen: 1)
[main 2022-12-30T19:10:28.549Z] lifecycle (main): phase changed (value: 3)
[main 2022-12-30T19:10:28.550Z] update#setState idle
[main 2022-12-30T19:10:28.552Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2022-12-30T19:10:28.690Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[18437:1230/111029.738784:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)

and the window immediately closes

Last edited by gatimus (2023-01-03 20:39:29)

Offline

#2 2022-12-30 20:00:19

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

I  have removed all config files and reinstalled, I don't know what else to try

Last edited by gatimus (2022-12-30 20:13:36)

Offline

#3 2022-12-30 23:14:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,769

Re: [SOLVED] visual-studio-code-bin immediately closes

In which environment are you trying to run that?  Console [probably not as you mentioned the window closing],  from a terminal emulator? In Xorg? Wayland?  i3/Gnome/plasma/sway?

Last edited by ewaller (2022-12-30 23:15:06)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2022-12-30 23:19:00

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] visual-studio-code-bin immediately closes

Moving to AUR issues.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#5 2023-01-02 21:02:15

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

ewaller wrote:

In which environment are you trying to run that?  Console [probably not as you mentioned the window closing],  from a terminal emulator? In Xorg? Wayland?  i3/Gnome/plasma/sway?

From LXQt so xorg and from Alacritty (terminal emulator) so I can set those flags and get the verbose output but same behavior.

Last edited by gatimus (2023-01-02 21:05:12)

Offline

#6 2023-01-02 21:08:30

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

The error in the output is:

[18437:1230/111029.738784:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)

but I can only find things about that error TCP and not specifically vscode and Arch linux.

Offline

#7 2023-01-02 21:30:01

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: [SOLVED] visual-studio-code-bin immediately closes

https://github.com/microsoft/vscode/issues/118727
Did you have a snap/flatpak installation as well?

Offline

#8 2023-01-02 23:55:42

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

seth wrote:

https://github.com/microsoft/vscode/issues/118727
Did you have a snap/flatpak installation as well?

No I don't have snap or flatpak.

Offline

#9 2023-01-03 07:51:24

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: [SOLVED] visual-studio-code-bin immediately closes

Still https://github.com/microsoft/vscode/iss … -801847011 - did you try to remove any vscodevscode.github-authentication/github.auth key and/or using a fresh (local) user account?

Offline

#10 2023-01-03 18:34:28

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

seth wrote:

Still https://github.com/microsoft/vscode/iss … -801847011 - did you try to remove any vscodevscode.github-authentication/github.auth key and/or using a fresh (local) user account?

Not sure how to do that on LXQt (https://github.com/lxqt/lxqt/issues/756 … -122785050 they don't seem to have it) but a fresh user seems to work. I'd hope to continue using my user. gpg -k dosn't seem to output anything to do with vscode

Offline

#11 2023-01-03 18:53:02

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

I installed kdewalletmanager and found and deleted vscodevscode.github-authentication/github.auth but that didn't fix.

Offline

#12 2023-01-03 18:59:10

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

Now with --verbose --log error I get no errors but it still closes silently

Offline

#13 2023-01-03 20:37:55

gatimus
Member
From: Sacramento, Ca
Registered: 2022-12-05
Posts: 13
Website

Re: [SOLVED] visual-studio-code-bin immediately closes

I solved by backing by moving/backup all my dot files and cp -rT /etc/skel/ "$HOME"

Offline

#14 2023-12-11 23:48:47

fooblub
Member
Registered: 2012-03-04
Posts: 5

Re: [SOLVED] visual-studio-code-bin immediately closes

Fixed for me after adding this to my settings ~/.config/Code\ -\ OSS//User/settings.json

{
  "window.titleBarStyle": "custom"
}

Last edited by fooblub (2023-12-11 23:49:47)

Offline

#15 2023-12-12 00:10:38

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] visual-studio-code-bin immediately closes

Closing this old solved topic.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB