Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium
Asked Answered
A

2

46

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?

Airfield answered 24/12, 2020 at 18:20 Comment(10)
this is when you run your app, or when you run vscode (which is built on top of electron)Septuagint
@Septuagint why is it considered a warning?Airfield
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.Dyke
Seen on Ubuntu 21.04 too. The warning is produced while opening a file in VSCode.Tiltyard
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 | Impeditive
This is the first time I see this warning when opening vscode from terminalAneroid
Seen on Ubuntu 20.04 too, when opening a file in VSCode, just like @Tiltyard said.Thoroughgoing
Its mostly with vs code version 1.58.0 June 2021 releaseRissole
There is currently a ticket on github.com for this issue. It is with the new release!Felipafelipe
I see this warning since 1.58.0 on UbuntuSelemas
R
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
Rissole answered 14/7, 2021 at 14:56 Comment(0)
E
0

I encountered this error last night. To resolve it, I reverted my Electron/Chromium app to a previous version.

snap revert code-insiders
Expression answered 8/6 at 18:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.