-
Notifications
You must be signed in to change notification settings - Fork 134
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
Problems with vscode > 1.65 (& possible workaround) #292
Comments
This may be helpful to you. |
Thanks for the tip frg2089 I've tried this without much success. Can't wrap my head around this issue 🙁 Below the things I tried in case it helps.
Perhaps I've corrupted something on my end, but I'm still seeing strange things happen despite the complete reinstall of vscode. If I can provide more logs or details to help solve the puzzle, I'd be happy to |
Okay, I finally managed to make it work. Dunno what happened exactly; I still believe something happened recently about Detailing what I did below, in case it helps somebody someday. OS: Linux Mint 20.3 CinnamonVSCode install method: with
|
tl;dr if you can't setup
background
on latest vscode,try 1.65 & do the whole setup intry thissudo
modeBefore anything: thanks for making me addicted to this module !!
This issue don't ask for a patch (while would be nice, afaik there's little we can do without vscode fixing their stuff), but more to document the possible difficulties with latest VS Code versions, in case it can help somebody.
If I'm mistaken and there is no issue except an error from my end, please excuse me! (at least it will document that).
What's the problem?
On a fresh install (vs code 1.67) first thing I did was install this module; I've installed it several times already so I'm kinda used to the
sudo code
part of the setup (although I always end googling the order for--no-sandbox
&&--user-data-dir
)Long story short, it didn't work. Despite trying every flavor of
sudo code --user-data-dir --no-sandbox
I could imagine, and switching back to "default images", nothing popped up.From there I started to suspect vscode recently changing the behavior around
sudo
, and found some issues that support this theory:vscode opens a white page when opened with sudo code --user-data-dir="~/.vscode-root" but works normally: it reminded me of a case a few month ago where I had a similar behavior, but it still applied the css modifications of
vs-code background
so I didn't mind at the time.Someone flagged this issue as duplicate of this one (which is also referenced by these ones )
I'm trying not to write a novel here. But the problem seem recent & linked to ongoing work around Electron sandbox.
In short, from what I've gathered the
sudo
mode for vscode is kinda broken. This in turn deprives this module of the initialsudo code
it needs to initialize.You mentioned a workaround ?
Thanks to this user, I've had success by downgrading to vscode 1.65.
Then I've got another weird behavior: the background would only work while in sudo mode!
Going to "extensions" tab I saw there was no extension installed. Dunno if it has always been the case, never had to stay in sudo mode for more than a second until today.
I tried to install
background
in sudo mode and then, it worked. By "it works" I mean, in a strange way (I must go intosudo
mode to editbackground
parameters; but it also affects the user-levelcode
)And while the VS downgrade is deprieving me of GH Copilot, it was an easy choice to make ❤️
The text was updated successfully, but these errors were encountered: