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

Can't launch additional windows via code from cli. #234320

Open
Jack-023 opened this issue Nov 21, 2024 · 0 comments
Open

Can't launch additional windows via code from cli. #234320

Jack-023 opened this issue Nov 21, 2024 · 0 comments
Assignees

Comments

@Jack-023
Copy link

The Preview On Github button from the built-in issue report window wasn't working so I manually copied the info over. Sorry if the formatting is not exactly as expected.

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:

  • Version: 1.95.3
    Commit: f1a4fb1
    Date: 2024-11-13T14:50:04.152Z
    Electron: 32.2.1
    ElectronBuildId: 10427718
    Chromium: 128.0.6613.186
    Node.js: 20.18.0
    V8: 12.8.374.38-electron.0
    OS: Linux x64 6.11.9-arch1-1

  • OS Version: Linux x64 6.11.9-arch1-1

Steps to Reproduce:

  1. Open project from terminal. (logs posted below)
> code --disable-extensions --verbose ./tmp > /data/vscode_logs/1.txt

VSCode opens as expected.
2. Attempt to open another project from terminal, while first window is still open.

> code --disable-extensions --verbose ./tmp2 > /data/vscode_logs/2.txt

Nothing happens, no new window. This has been happening 100% of the time I attempt this. Launching a new window through the GUI works as expected.

Here are the log files. The first one is the logs written from the start to end time of the second instance.
1.txt

�[90m[main 2024-11-21T05:55:22.672Z]�[0m Received data from other instance:  {
  _: [ '/data/tmp2' ],
  diff: false,
  merge: false,
  add: false,
  goto: false,
  'new-window': true,
  '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': true,
  'disable-lcd-text': false,
  'disable-gpu': true,
  'disable-chromium-sandbox': false,
  sandbox: false,
  telemetry: false,
  extensionDevelopmentPath: [ '$HOME/.vscode-oss/extensions/undefined_publisher.wallbash-0.0.1' ],
  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': 'ad189793-6a94-4d8f-b77d-c33db011f329',
  'skip-add-to-recently-opened': 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/null/.config/Code/logs/20241121T165522'
} {
  SHELL: '/usr/bin/zsh',
  LSCOLORS: 'Gxfxcxdxbxegedabagacad',
  ZLE_RPROMPT_INDENT: '0',
  COLORTERM: 'truecolor',
  HYPRLAND_CMD: 'Hyprland',
  LESS: '-R',
  XDG_SESSION_PATH: '/org/freedesktop/DisplayManager/Session2',
  NVM_INC: '/home/null/.nvm/versions/node/v22.4.1/include/node',
  XDG_BACKEND: 'wayland',
  QT_WAYLAND_DISABLE_WINDOWDECORATION: '1',
  LIBVA_DRIVER_NAME: 'nvidia',
  DESKTOP_SESSION: 'hyprland',
  LC_MONETARY: 'en_AU.UTF-8',
  HL_INITIAL_WORKSPACE_TOKEN: 'a9ee9444-c580-410f-8435-96509d0f53df',
  KITTY_PID: '29933',
  XDG_SEAT: 'seat0',
  PWD: '/data',
  LOGNAME: 'null',
  XDG_SESSION_DESKTOP: 'Hyprland',
  QT_QPA_PLATFORMTHEME: 'qt6ct',
  XDG_SESSION_TYPE: 'wayland',
  KITTY_PUBLIC_KEY: '1:Jz3f5y=bx^L*bH_u1s8B_MggZ9cykC07>|OK3pLv',
  POSH_SHELL: 'zsh',
  MOTD_SHOWN: 'pam',
  HOME: '/home/null',
  LC_PAPER: 'en_AU.UTF-8',
  LANG: 'C.UTF-8',
  __GL_VRR_ALLOWED: '1',
  _JAVA_AWT_WM_NONREPARENTING: '1',
  LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=47;40;01:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:',
  XDG_CURRENT_DESKTOP: 'Hyprland',
  POSH_SHELL_VERSION: '5.9',
  POSH_SESSION_ID: 'a3aeff54-9c5f-4443-abca-4d875d85004b',
  WAYLAND_DISPLAY: 'wayland-1',
  KITTY_WINDOW_ID: '1',
  OSTYPE: 'linux-gnu',
  CONDA_PROMPT_MODIFIER: 'false',
  XDG_SEAT_PATH: '/org/freedesktop/DisplayManager/Seat0',
  QT_QPA_PLATFORM: 'wayland;xcb',
  NVM_DIR: '/home/null/.nvm',
  XDG_SESSION_CLASS: 'user',
  TERM: 'xterm-kitty',
  TERMINFO: '/usr/lib/kitty/terminfo',
  ZSH: '/home/null/.oh-my-zsh',
  USER: 'null',
  SUDO_EDITOR: 'nvim',
  HYPRLAND_INSTANCE_SIGNATURE: '12f9a0d0b93f691d4d9923716557154d74777b0a_1732164158_630937349',
  VISUAL: 'nvim',
  DISPLAY: ':1',
  SHLVL: '2',
  NVM_CD_FLAGS: '-q',
  MOZ_ENABLE_WAYLAND: '1',
  PAGER: 'less',
  LC_MEASUREMENT: 'en_AU.UTF-8',
  XDG_VTNR: '1',
  XDG_SESSION_ID: '2',
  WLR_DRM_NO_ATOMIC: '1',
  POSH_THEME: '/home/null/.config/oh-my-posh/catppuccin_mocha.omp.json',
  XDG_RUNTIME_DIR: '/run/user/1000',
  HAXE_STD_PATH: '/usr/share/haxe/std',
  DEBUGINFOD_URLS: 'https://debuginfod.archlinux.org ',
  LC_TIME: 'en_AU.UTF-8',
  QT_AUTO_SCREEN_SCALE_FACTOR: '1',
  PATH: '/home/null/.nvm/versions/node/v22.4.1/bin:/home/null/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/null/.local/share/bin:/usr/local/go/bin:/home/null/go/bin:/home/null/.local/bin',
  __GLX_VENDOR_LIBRARY_NAME: 'nvidia',
  GDK_SCALE: '1',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
  FZF_DEFAULT_OPTS: ' --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 --color=selected-bg:#45475a --multi',
  MAIL: '/var/spool/mail/null',
  NVM_BIN: '/home/null/.nvm/versions/node/v22.4.1/bin',
  POWERLINE_COMMAND: 'oh-my-posh',
  KITTY_INSTALLATION_DIR: '/usr/lib/kitty',
  LC_NUMERIC: 'en_AU.UTF-8',
  OLDPWD: '/home/null',
  GOPATH: '/home/null/go',
  _: '/opt/visual-studio-code/bin/../code',
  VSCODE_CWD: '/data',
  VSCODE_NLS_CONFIG: '{"userLocale":"en-us","osLocale":"c","resolvedLanguage":"en","defaultMessagesFile":"/opt/visual-studio-code/resources/app/out/nls.messages.json","locale":"en-us","availableLanguages":{}}',
  VSCODE_CLI: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1',
  ELECTRON_ENABLE_LOGGING: '1',
  CHROME_DESKTOP: 'code.desktop',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'Hyprland',
  GDK_BACKEND: 'wayland',
  NO_AT_BRIDGE: '1',
  VSCODE_CODE_CACHE_PATH: '/home/null/.config/Code/CachedData/f1a4fb101478ce6ec82fe9627c43efbf9e98c813',
  VSCODE_IPC_HOOK: '/run/user/1000/vscode-94dac0b4-1.95-main.sock'
}
�[90m[main 2024-11-21T05:55:22.673Z]�[0m Lifecycle#unload() - window ID 1
[30879:1121/165522.674036:INFO:CONSOLE(35)] "%cTRACE color: #888 [lifecycle] onBeforeUnload (reason: 3)", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[30879:1121/165522.675260:INFO:CONSOLE(35)] "%cTRACE color: #888 [lifecycle] onBeforeUnload continues without veto", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[30879:1121/165522.675664:INFO:CONSOLE(35)] "%cTRACE color: #888 [lifecycle] onWillUnload (reason: 3)", source: vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (35)

2.txt

[1121/165522.542980:ERROR:file_io_posix.cc(153)] open /home/null/.config/Code/Crashpad/pending/91c90fbb-2b46-4217-b67e-f374882324e6.lock: File exists (17)
[31146:1121/165522.544382:WARNING:wayland_object.cc(165)] Binding to wl_seat version 8 but version 9 is available.
[31146:1121/165522.544439:WARNING:wayland_object.cc(165)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[31146:1121/165522.544485:WARNING:wayland_object.cc(165)] Binding to zwp_linux_dmabuf_v1 version 3 but version 5 is available.
�[90m[main 2024-11-21T05:55:22.662Z]�[0m [File Watcher (node.js)] Request to start watching: /home/null/.config/Code/User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/home/null/.config/Code/User/settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
�[90m[main 2024-11-21T05:55:22.668Z]�[0m Sending env to running instance...
�[90m[main 2024-11-21T05:55:22.669Z]�[0m [File Watcher (node.js)] Started watching: '/home/null/.config/Code/User'
�[90m[main 2024-11-21T05:55:22.669Z]�[0m [File Watcher (node.js)] Started watching: '/home/null/.config/Code/User/settings.json'
�[90m[main 2024-11-21T05:55:22.674Z]�[0m Sent env to running instance. Terminating...
�[90m[main 2024-11-21T05:55:22.674Z]�[0m Lifecycle#kill()
�[90m[main 2024-11-21T05:55:22.674Z]�[0m Lifecycle#onWillShutdown.fire()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants