45

I am using Linux Mint 20 and vscode 1.52.1.

My ~/.xsession-errors file shows Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.

What is causing this error and what is the solution to it?

Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
  • 1
    this is when you run your app, or when you run vscode (which is built on top of electron) – pushkin Dec 27 '20 at 01:11
  • 1
    @pushkin why is it considered a warning? – Ahmad Ismail Dec 27 '20 at 07:20
  • Happens on Void linux too, except 'Warning: 'app' is not...' output direct to console: `code --version` gives `1.52.1`, `electron9 --version` gives `v9.3.4`. – Kenny Hung Jan 06 '21 at 09:18
  • 17
    Seen on Ubuntu 21.04 too. The warning is produced while opening a file in VSCode. – peter.slizik Jul 09 '21 at 15:04
  • I started getting this warning today. CONFIG: ```sh Version: 1.58.0 | Commit: 2d23c42a936db1c7b3b06f918cde29561cc47cd6 | Date: 2021-07-08T06:53:55.113Z | Electron: 12.0.13 | Chrome: 89.0.4389.128 | Node.js: 14.16.0 | V8: 8.9.255.25-electron.0 | OS: Linux x64 5.8.0-59-generic snap | ``` – CypherX Jul 09 '21 at 17:52
  • This is the first time I see this warning when opening vscode from terminal – trm Jul 10 '21 at 07:01
  • 3
    Seen on Ubuntu 20.04 too, when opening a file in VSCode, just like @peter.slizik said. – Felipe Windmoller Jul 10 '21 at 16:40
  • 2
    Its mostly with vs code version 1.58.0 June 2021 release – Rahul Kumeriya Jul 11 '21 at 04:39
  • 7
    There is currently a [ticket](https://github.com/microsoft/vscode/issues/128279) on github.com for this issue. It is with the new release! – hp77 Jul 12 '21 at 06:49
  • I see this warning since 1.58.0 on Ubuntu – A.W. Jul 13 '21 at 10:03

1 Answers1

2

I removed the snap version and install the deb file which works for me

sudo snap remove code

Downlaod code_1.58.1-1626158276_amd64.deb (latest) file from https://code.visualstudio.com/download

and install it with --fix-broken option

cd ~/Downloads/ && sudo apt --fix-broken install ./code_1.58.1-1626158276_amd64.deb