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

[1.64] Terminal profiles stopped working #288

Closed
marhkb opened this issue Feb 13, 2022 · 9 comments · Fixed by #309
Closed

[1.64] Terminal profiles stopped working #288

marhkb opened this issue Feb 13, 2022 · 9 comments · Fixed by #309

Comments

@marhkb
Copy link

marhkb commented Feb 13, 2022

After update to version 1.64.1 and 1.64.2 there is just the /bin/sh shell.
Vscode stopped to detect terminal profiles like described in https://github.com/flathub/com.visualstudio.code/blob/a89bb4af634b4a216a1dd1c8db7debffdf2a0b30/flatpak-warning.txt.
The profiles do not show up at all.

Downgrading to version 1.63 makes the profiles work again.
I tested the same version of the upstream rpm package and the profiles seem to work here.

OS: Fedora Linux 35.20220213.0 (Silverblue)
Version of vscode: 1.64.2
Version of Flatpak: 1.12.4

Logs

$ flatpak run com.visualstudio.code --verbose
[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/vscode/code --type=zygote
Gtk-Message: 17:40:48.711: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:40:48.711: Failed to load module "canberra-gtk-module"
[2:0213/174048.718632:ERROR:address_tracker_linux.cc(214)] Could not bind NETLINK socket: Die Adresse wird bereits verwendet (98)
[main 2022-02-13T16:40:48.768Z] [File Watcher (node.js)] Request to start watching: /var/home/marcus/.var/app/com.visualstudio.code/config/Code/User (excludes: <none>),/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User/settings.json (excludes: <none>)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[37:0213/174048.772300:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2022-02-13T16:40:48.778Z] Starting VS Code
[main 2022-02-13T16:40:48.778Z] from: /app/extra/vscode/resources/app
[main 2022-02-13T16:40:48.778Z] args: {
  _: [],
  diff: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'extensions-dir': '/var/home/marcus/.var/app/com.visualstudio.code/data/vscode/extensions',
  'list-extensions': false,
  'show-versions': false,
  'pre-release': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-gpu': false,
  'ms-enable-electron-run-as-node': false,
  telemetry: false,
  debugRenderer: 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': '3faffac2-829c-404b-917c-2766b98d32fa',
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  'driver-verbose': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  __sandbox: false,
  'no-proxy-server': false,
  'no-sandbox': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  logsPath: '/var/home/marcus/.var/app/com.visualstudio.code/config/Code/logs/20220213T174048'
}
[main 2022-02-13T16:40:48.779Z] Resolving machine identifier...
[main 2022-02-13T16:40:48.779Z] Resolved machine identifier: 7f0ed76f11e08904e1f79f6a030073e502988349c75200a9ad2bede12f044f52
[main 2022-02-13T16:40:48.780Z] Main->SharedProcess#connect
[main 2022-02-13T16:40:48.783Z] [File Watcher (node.js)] Started watching: '/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User'
[main 2022-02-13T16:40:48.783Z] [File Watcher (node.js)] Started watching: '/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User/settings.json'
[main 2022-02-13T16:40:48.791Z] StorageMainService: creating global storage
[main 2022-02-13T16:40:48.794Z] lifecycle (main): phase changed (value: 2)
[main 2022-02-13T16:40:48.795Z] windowsManager#open
[main 2022-02-13T16:40:48.795Z] windowsManager#open pathsToOpen [
  {
    backupPath: '/var/home/marcus/.var/app/com.visualstudio.code/config/Code/Backups/1644761798061',
    remoteAuthority: undefined
  }
]
[main 2022-02-13T16:40:48.795Z] windowsManager#doOpenEmpty {
  restore: true,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: true
}
[main 2022-02-13T16:40:48.796Z] IPC Object URL: Registered new channel vscode:02023b82-4c0f-4aa4-8f92-98a8244a7ab0.
[main 2022-02-13T16:40:48.796Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 30, y: 242, width: 1280, height: 1019 }
[main 2022-02-13T16:40:48.796Z] window#validateWindowState: 1 monitor working area { x: 0, y: 32, width: 2560, height: 1408 }
[main 2022-02-13T16:40:48.796Z] window#ctor: using window state { mode: 1, x: 30, y: 242, width: 1280, height: 1019 }
[main 2022-02-13T16:40:48.827Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2022-02-13T16:40:48.827Z] lifecycle (main): phase changed (value: 3)
[main 2022-02-13T16:40:48.827Z] update#setState idle
[main 2022-02-13T16:40:48.827Z] resolveShellEnv(): running (macOS/Linux)
[main 2022-02-13T16:40:48.827Z] getUnixShellEnvironment#runAsNode undefined
[main 2022-02-13T16:40:48.827Z] getUnixShellEnvironment#noAttach undefined
[main 2022-02-13T16:40:48.827Z] getUnixShellEnvironment#env {
  XDG_RUNTIME_DIR: '/run/user/1000',
  container: 'flatpak',
  ALSA_CONFIG_DIR: '/usr/share/alsa',
  ALSA_CONFIG_PATH: '/usr/share/alsa/alsa-flatpak.conf',
  AT_SPI_BUS_ADDRESS: 'unix:path=/run/flatpak/at-spi-bus',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/flatpak/bus',
  DBUS_SYSTEM_BUS_ADDRESS: 'unix:path=/run/dbus/system_bus_socket',
  DEBUGINFOD_URLS: 'https://debuginfod.fedoraproject.org/ ',
  DESKTOP_SESSION: 'gnome',
  DISPLAY: ':99.0',
  EDITOR: '/usr/bin/nano',
  FLATPAK_ID: 'com.visualstudio.code',
  FLATPAK_SANDBOX_DIR: '/var/home/marcus/.var/app/com.visualstudio.code/sandbox',
  GDMSESSION: 'gnome',
  GDM_LANG: 'de_DE.UTF-8',
  GIO_USE_VFS: 'local',
  GI_TYPELIB_PATH: '/app/lib/girepository-1.0',
  GNOME_SETUP_DISPLAY: ':1',
  GST_PLUGIN_SYSTEM_PATH: '/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0',
  HISTCONTROL: 'ignoredups',
  HISTSIZE: '1000',
  HOME: '/var/home/marcus',
  HOSTNAME: 'asus-tuf-gaming-X570-plus',
  INVOCATION_ID: '61dfcfcd47d5432cbc184185dcdad5c3',
  JOURNAL_STREAM: '8:142729',
  LANG: 'de_DE.UTF-8',
  LD_LIBRARY_PATH: '/app/lib',
  LESSOPEN: '||/usr/bin/lesspipe.sh %s',
  LOGNAME: 'marcus',
  MAIL: '/var/spool/mail/marcus',
  MANAGERPID: '2455',
  MOZ_GMP_PATH: '/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed',
  NPM_CONFIG_GLOBALCONFIG: '/app/etc/npmrc',
  OLDPWD: '/var/home/marcus',
  PATH: '/app/bin:/app/bin:/usr/bin',
  PS1: '[📦 $FLATPAK_ID \\W]\\$ ',
  PULSE_CLIENTCONFIG: '/run/flatpak/pulse/config',
  PULSE_SERVER: 'unix:/run/flatpak/pulse/native',
  PWD: '/var/home/marcus',
  QT_IM_MODULE: 'ibus',
  SESSION_MANAGER: 'local/unix:@/tmp/.ICE-unix/2543,unix/unix:/tmp/.ICE-unix/2543',
  SHELL: '/bin/sh',
  SHLVL: '0',
  SSH_AUTH_SOCK: '/run/flatpak/ssh-auth',
  SYSTEMD_EXEC_PID: '12907',
  USER: 'marcus',
  USERNAME: 'marcus',
  WAYLAND_DISPLAY: 'wayland-0',
  XAUTHORITY: '/run/flatpak/Xauthority',
  XDG_CACHE_HOME: '/var/home/marcus/.var/app/com.visualstudio.code/cache',
  XDG_CONFIG_DIRS: '/app/etc/xdg:/etc/xdg',
  XDG_CONFIG_HOME: '/var/home/marcus/.var/app/com.visualstudio.code/config',
  XDG_CURRENT_DESKTOP: 'GNOME',
  XDG_DATA_DIRS: '/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share',
  XDG_DATA_HOME: '/var/home/marcus/.var/app/com.visualstudio.code/data',
  XDG_MENU_PREFIX: 'gnome-',
  XDG_SESSION_CLASS: 'user',
  XDG_SESSION_DESKTOP: 'gnome',
  XDG_SESSION_TYPE: 'wayland',
  XMODIFIERS: '@im=ibus',
  ZYPAK_BIN: '/app/bin',
  ZYPAK_LIB: '/app/bin/../lib',
  __EGL_EXTERNAL_PLATFORM_CONFIG_DIRS: '/etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d',
  which_declare: 'typeset -f',
  ZYPAK_ZYGOTE_STRATEGY_SPAWN: '1',
  SANDBOX_LD_LIBRARY_PATH: '/app/lib',
  SBX_CHROME_API_RQ: '1',
  CHROME_DESKTOP: 'code-url-handler.desktop',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'GNOME',
  VSCODE_CWD: '/var/home/marcus',
  GDK_BACKEND: 'x11',
  NO_AT_BRIDGE: '1',
  VSCODE_NLS_CONFIG: '{"locale":"de","availableLanguages":{},"_languagePackSupport":true}',
  VSCODE_CODE_CACHE_PATH: '/var/home/marcus/.var/app/com.visualstudio.code/config/Code/CachedData/f80445acd5a3dadef24aa209168452a3d97cc326',
  VSCODE_IPC_HOOK: '/run/user/1000/vscode-09f156bf-1.64.2-main.sock',
  VSCODE_PID: '2',
  ELECTRON_RUN_AS_NODE: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1'
}
[main 2022-02-13T16:40:48.829Z] getUnixShellEnvironment#shell /bin/sh
[main 2022-02-13T16:40:48.829Z] getUnixShellEnvironment#spawn ["-ilc"] '/app/extra/vscode/code' --ms-enable-electron-run-as-node -p '"9f9965186d39" + JSON.stringify(process.env) + "9f9965186d39"'
[main 2022-02-13T16:40:48.855Z] ExtensionHostStarterWorker created
[main 2022-02-13T16:40:48.889Z] getUnixShellEnvironment#raw 9f9965186d39{"SHELL":"/bin/sh","SESSION_MANAGER":"local/unix:@/tmp/.ICE-unix/2543,unix/unix:/tmp/.ICE-unix/2543","__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS":"/etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d","XDG_CONFIG_DIRS":"/app/etc/xdg:/etc/xdg","HISTCONTROL":"ignoredups","XDG_MENU_PREFIX":"gnome-","HOSTNAME":"asus-tuf-gaming-X570-plus","HISTSIZE":"1000","SSH_AUTH_SOCK":"/run/flatpak/ssh-auth","XDG_DATA_HOME":"/var/home/marcus/.var/app/com.visualstudio.code/data","XDG_CONFIG_HOME":"/var/home/marcus/.var/app/com.visualstudio.code/config","ELECTRON_RUN_AS_NODE":"1","XMODIFIERS":"@im=ibus","DESKTOP_SESSION":"gnome","ZYPAK_LIB":"/app/bin/../lib","NO_AT_BRIDGE":"1","FLATPAK_ID":"com.visualstudio.code","EDITOR":"/usr/bin/nano","PWD":"/var/home/marcus","ALSA_CONFIG_PATH":"/usr/share/alsa/alsa-flatpak.conf","XDG_SESSION_DESKTOP":"gnome","LOGNAME":"marcus","XDG_SESSION_TYPE":"wayland","SYSTEMD_EXEC_PID":"12907","VSCODE_CODE_CACHE_PATH":"/var/home/marcus/.var/app/com.visualstudio.code/config/Code/CachedData/f80445acd5a3dadef24aa209168452a3d97cc326","XAUTHORITY":"/run/flatpak/Xauthority","container":"flatpak","GDM_LANG":"de_DE.UTF-8","GI_TYPELIB_PATH":"/app/lib/girepository-1.0","HOME":"/var/home/marcus","USERNAME":"marcus","LANG":"de_DE.UTF-8","XDG_CURRENT_DESKTOP":"GNOME","VSCODE_IPC_HOOK":"/run/user/1000/vscode-09f156bf-1.64.2-main.sock","WAYLAND_DISPLAY":"wayland-0","SBX_CHROME_API_RQ":"1","AT_SPI_BUS_ADDRESS":"unix:path=/run/flatpak/at-spi-bus","PULSE_CLIENTCONFIG":"/run/flatpak/pulse/config","INVOCATION_ID":"61dfcfcd47d5432cbc184185dcdad5c3","MANAGERPID":"2455","CHROME_DESKTOP":"code-url-handler.desktop","XDG_CACHE_HOME":"/var/home/marcus/.var/app/com.visualstudio.code/cache","MOZ_GMP_PATH":"/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed","GNOME_SETUP_DISPLAY":":1","XDG_SESSION_CLASS":"user","ZYPAK_ZYGOTE_STRATEGY_SPAWN":"1","LESSOPEN":"||/usr/bin/lesspipe.sh %s","USER":"marcus","SANDBOX_LD_LIBRARY_PATH":"/app/lib","NPM_CONFIG_GLOBALCONFIG":"/app/etc/npmrc","DISPLAY":":99.0","VSCODE_PID":"2","SHLVL":"0","FLATPAK_SANDBOX_DIR":"/var/home/marcus/.var/app/com.visualstudio.code/sandbox","QT_IM_MODULE":"ibus","VSCODE_CWD":"/var/home/marcus","ZYPAK_BIN":"/app/bin","LD_LIBRARY_PATH":"/app/lib","XDG_RUNTIME_DIR":"/run/user/1000","PS1":"[📦 $FLATPAK_ID \\W]\\$ ","DEBUGINFOD_URLS":"https://debuginfod.fedoraproject.org/ ","DBUS_SYSTEM_BUS_ADDRESS":"unix:path=/run/dbus/system_bus_socket","GST_PLUGIN_SYSTEM_PATH":"/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0","which_declare":"typeset -f","ELECTRON_NO_ATTACH_CONSOLE":"1","GIO_USE_VFS":"local","JOURNAL_STREAM":"8:142729","XDG_DATA_DIRS":"/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share","GDK_BACKEND":"x11","PATH":"/var/home/marcus/.cargo/bin:/app/bin:/app/bin:/usr/bin","GDMSESSION":"gnome","ORIGINAL_XDG_CURRENT_DESKTOP":"GNOME","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/flatpak/bus","VSCODE_NLS_CONFIG":"{\"locale\":\"de\",\"availableLanguages\":{},\"_languagePackSupport\":true}","ALSA_CONFIG_DIR":"/usr/share/alsa","MAIL":"/var/spool/mail/marcus","PULSE_SERVER":"unix:/run/flatpak/pulse/native","OLDPWD":"/var/home/marcus","_":"/app/extra/vscode/code"}9f9965186d39
[main 2022-02-13T16:40:48.889Z] getUnixShellEnvironment#stderr sh: Kann die Prozessgruppe des Terminals nicht setzen (-1).: Unpassender IOCTL (I/O-Control) für das Gerät
sh: Keine Jobsteuerung in dieser Shell.
[main 2022-02-13T16:40:48.889Z] getUnixShellEnvironment#result {
  SHELL: '/bin/sh',
  SESSION_MANAGER: 'local/unix:@/tmp/.ICE-unix/2543,unix/unix:/tmp/.ICE-unix/2543',
  __EGL_EXTERNAL_PLATFORM_CONFIG_DIRS: '/etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d',
  XDG_CONFIG_DIRS: '/app/etc/xdg:/etc/xdg',
  HISTCONTROL: 'ignoredups',
  XDG_MENU_PREFIX: 'gnome-',
  HOSTNAME: 'asus-tuf-gaming-X570-plus',
  HISTSIZE: '1000',
  SSH_AUTH_SOCK: '/run/flatpak/ssh-auth',
  XDG_DATA_HOME: '/var/home/marcus/.var/app/com.visualstudio.code/data',
  XDG_CONFIG_HOME: '/var/home/marcus/.var/app/com.visualstudio.code/config',
  XMODIFIERS: '@im=ibus',
  DESKTOP_SESSION: 'gnome',
  ZYPAK_LIB: '/app/bin/../lib',
  NO_AT_BRIDGE: '1',
  FLATPAK_ID: 'com.visualstudio.code',
  EDITOR: '/usr/bin/nano',
  PWD: '/var/home/marcus',
  ALSA_CONFIG_PATH: '/usr/share/alsa/alsa-flatpak.conf',
  XDG_SESSION_DESKTOP: 'gnome',
  LOGNAME: 'marcus',
  XDG_SESSION_TYPE: 'wayland',
  SYSTEMD_EXEC_PID: '12907',
  VSCODE_CODE_CACHE_PATH: '/var/home/marcus/.var/app/com.visualstudio.code/config/Code/CachedData/f80445acd5a3dadef24aa209168452a3d97cc326',
  XAUTHORITY: '/run/flatpak/Xauthority',
  container: 'flatpak',
  GDM_LANG: 'de_DE.UTF-8',
  GI_TYPELIB_PATH: '/app/lib/girepository-1.0',
  HOME: '/var/home/marcus',
  USERNAME: 'marcus',
  LANG: 'de_DE.UTF-8',
  XDG_CURRENT_DESKTOP: 'GNOME',
  VSCODE_IPC_HOOK: '/run/user/1000/vscode-09f156bf-1.64.2-main.sock',
  WAYLAND_DISPLAY: 'wayland-0',
  SBX_CHROME_API_RQ: '1',
  AT_SPI_BUS_ADDRESS: 'unix:path=/run/flatpak/at-spi-bus',
  PULSE_CLIENTCONFIG: '/run/flatpak/pulse/config',
  INVOCATION_ID: '61dfcfcd47d5432cbc184185dcdad5c3',
  MANAGERPID: '2455',
  CHROME_DESKTOP: 'code-url-handler.desktop',
  XDG_CACHE_HOME: '/var/home/marcus/.var/app/com.visualstudio.code/cache',
  MOZ_GMP_PATH: '/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed',
  GNOME_SETUP_DISPLAY: ':1',
  XDG_SESSION_CLASS: 'user',
  ZYPAK_ZYGOTE_STRATEGY_SPAWN: '1',
  LESSOPEN: '||/usr/bin/lesspipe.sh %s',
  USER: 'marcus',
  SANDBOX_LD_LIBRARY_PATH: '/app/lib',
  NPM_CONFIG_GLOBALCONFIG: '/app/etc/npmrc',
  DISPLAY: ':99.0',
  VSCODE_PID: '2',
  SHLVL: '0',
  FLATPAK_SANDBOX_DIR: '/var/home/marcus/.var/app/com.visualstudio.code/sandbox',
  QT_IM_MODULE: 'ibus',
  VSCODE_CWD: '/var/home/marcus',
  ZYPAK_BIN: '/app/bin',
  LD_LIBRARY_PATH: '/app/lib',
  PS1: '[📦 $FLATPAK_ID \\W]\\$ ',
  DEBUGINFOD_URLS: 'https://debuginfod.fedoraproject.org/ ',
  DBUS_SYSTEM_BUS_ADDRESS: 'unix:path=/run/dbus/system_bus_socket',
  GST_PLUGIN_SYSTEM_PATH: '/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0',
  which_declare: 'typeset -f',
  GIO_USE_VFS: 'local',
  JOURNAL_STREAM: '8:142729',
  XDG_DATA_DIRS: '/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share',
  GDK_BACKEND: 'x11',
  PATH: '/var/home/marcus/.cargo/bin:/app/bin:/app/bin:/usr/bin',
  GDMSESSION: 'gnome',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'GNOME',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/flatpak/bus',
  VSCODE_NLS_CONFIG: '{"locale":"de","availableLanguages":{},"_languagePackSupport":true}',
  ALSA_CONFIG_DIR: '/usr/share/alsa',
  MAIL: '/var/spool/mail/marcus',
  PULSE_SERVER: 'unix:/run/flatpak/pulse/native',
  OLDPWD: '/var/home/marcus',
  _: '/app/extra/vscode/code'
}
[main 2022-02-13T16:40:48.894Z] resolveShellEnv(): running (macOS/Linux)
[main 2022-02-13T16:40:49.157Z] StorageMainService: creating workspace storage (1644761798061)
[main 2022-02-13T16:40:49.167Z] [Disk FileSystemProvider]: atomic read operation started (/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User/settings.json)
[main 2022-02-13T16:40:49.167Z] [Disk FileSystemProvider]: request to acquire resource lock (/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User/settings.json)
[main 2022-02-13T16:40:49.167Z] [Disk FileSystemProvider]: new resource lock created (/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User/settings.json)
[main 2022-02-13T16:40:49.167Z] [Disk FileSystemProvider]: resource lock disposed (/var/home/marcus/.var/app/com.visualstudio.code/config/Code/User/settings.json)
@borring
Copy link

borring commented Feb 13, 2022

I have the same issue. I've also tested running vscode natively from their provided tarball, and there doesn't seem to be any issue there.

@Leonardo-Figueiredo
Copy link

Same here, im trying to set zsh as default, but it is stuck on sh.

@hjalm8
Copy link

hjalm8 commented Feb 15, 2022

Found that using the depricated option "terminal.integrated.shell.linux" still works.

"terminal.integrated.shell.linux": "/usr/bin/flatpak-spawn",
  "terminal.integrated.shellArgs.linux": [
    "--host",
    "--env=TERM='xterm-256color'",
    "/bin/bash"
  ],

Log(Window) keeps throwing error
[error] ENOENT: no such file or directory, open '/etc/shells':

@borring
Copy link

borring commented Feb 17, 2022

For now, I'm just using an older version until this gets fixed

flatpak update --commit=ce7dece61857fe539f7964d5ca72f9645bea914d41b904471d01b58f2907bd2d com.visualstudio.code

@vwalek
Copy link
Contributor

vwalek commented Feb 20, 2022

For now, I'm just using an older version until this gets fixed

flatpak update --commit=ce7dece61857fe539f7964d5ca72f9645bea914d41b904471d01b58f2907bd2d com.visualstudio.code

Thx, seems like not only flatpak issue - microsoft/vscode#143307 .

@adinriv
Copy link

adinriv commented Apr 22, 2022

From the interaction on microsoft/vscode#146981 the problem seems to be related to not accessing /etc/shells. microsoft/vscode#146981 was closed, but I'm waiting for a reply.

Is it possible that the flatpak installation restricts the visibility of /etc/shells somehow? I see similar errors to those reported by @hjalm8 on RHEL.

And I confirm that on my system there is a /etc/shells but within vscode I can't see it either from the default sh.

@jcdickinson
Copy link
Contributor

You can work around the issue by running this from the (sh) integrated terminal: touch /etc/shells.

@nikodunk
Copy link
Contributor

nikodunk commented Apr 24, 2022

You can work around the issue by running this from the (sh) integrated terminal: touch /etc/shells.

This unfortunately doesn't work for me - it creates an empty /etc/shells on Fedora 36 and VSCode Flatpak 1.66.1 but when I re-open VSCode the terminal still cannot access system-wide environment (npm, etc).

This is the only fix that works on Fedora 36 (workstation) for now - the downgrade.

For now, I'm just using an older version until this gets fixed

flatpak update --commit=ce7dece61857fe539f7964d5ca72f9645bea914d41b904471d01b58f2907bd2d com.visualstudio.code

Edit: reported on microsoft/vscode#146981

@nikodunk
Copy link
Contributor

nikodunk commented May 2, 2022

Ack - microsoft/vscode#146981 got closed because

We don't support the flatpak distribution. You should report this to them and then maybe they have an environment variable we should use instead.

So what changed between 1.63 and 1.64 that broke shells for the flatpak?

barthalion pushed a commit that referenced this issue May 6, 2022
Resolves: #288

The shell discovery process in vscode crashes if `/etc/shells` does not exist, resulting in no shells being available (including any custom profiles). This will link `/var/run/host/etc/shells` to `/etc/shells` if the latter is missing.
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

Successfully merging a pull request may close this issue.

8 participants