synthwave-vscode icon indicating copy to clipboard operation
synthwave-vscode copied to clipboard

Admin Privileges Issue

Open Plinpod opened this issue 5 years ago • 28 comments

Hey! I'm on windows and Synthwave says "You must run VS code with admin priviliges in order to enable Neon Dreams." I am running VSCode with admin privileges but I still continue to get the error. Also using VSCode Remote SSH not sure if that has something to do with it.

Thanks.

Plinpod avatar Feb 26 '20 05:02 Plinpod

I got same issue, tried to open VScode with admin rights from shell, and by right click "Run as Administrator", and ran with the same issue that VScode needs to be run with admin privilegium

guoliang avatar Feb 28 '20 15:02 guoliang

Same here.

the-unknown avatar Mar 12 '20 10:03 the-unknown

tl;dr I fixed the issue with sudo chmod ugo+rw /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench

I think the error messages could be a little clearer. I did some digging and I edited the extension with:

  }
      } catch (e) {
        if (/ENOENT|EACCES|EPERM/.test(e.code)) {
          vscode.window.showInformationMessage(
            e +
              " You must run VS code with admin privileges in order to enable Neon Dreams."
          );
          return;
        }

/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench did not have read/write access. Therefore, it was not copying the theme_template.js to that directory nor writing it to workbench.html

t0nylombardi331 avatar Apr 03 '20 17:04 t0nylombardi331

I noticed this is an issue when the you install the extension on a remote SSH through VScode.

Plinpod avatar Apr 22 '20 04:04 Plinpod

FOR LINUX:

Only do this if you have backup of your settings and extensions if you need to reinstall the package!

  1. Run sudo chmod 777 on all directories associated with VS Code. This gives maximum permissions to all users and groups!
  2. The following code works BUT it only launches a version of the application without user data. AKA you won't have your extensions / settings etc:

sudo code --user-data-dir="~/.vscode-root" ( Source )

  1. Install the theme, run the command pallet (Ctrl + Shift + P) and enable the neon glow as instructed by the extension author.
  2. Close this "priviliged" version of VS Code and launch your "own".

You should see the neon glow applied and all your other settings and extensions normally. The only problem is that VS Code shows a corrupt version and says you need to reinstall it. But everything seems to working perfectly in my case.

2020-07-06_22-07

Golotvinov avatar Jul 06 '20 19:07 Golotvinov

I noticed this is an issue when the you install the extension on a remote SSH through VScode.

exact same problem here, did you find any solutions?

Cyloo avatar Jul 08 '20 14:07 Cyloo

I just wanted to note that I'm also seeing this issue with VSCode remote over SSH

jaitaiwan avatar Jul 08 '20 23:07 jaitaiwan

Same, would love to have a workaround for remote, maybe previous CSS method?

eldritchgreene avatar Jul 15 '20 20:07 eldritchgreene

I ran across this issue on Windows with VSCode running in WSL. I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

xaviergmail avatar Nov 17 '20 16:11 xaviergmail

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

kevinmichaelchen avatar Dec 19 '20 15:12 kevinmichaelchen

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

Maycolx avatar Jan 30 '21 01:01 Maycolx

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

Hehehe It works! Thanks, bro!

Danble avatar Mar 13 '21 00:03 Danble

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

Hehehe It works! Thanks, bro!

Wait! Help me out here please? I just got a pc so super new to the file tree and the environment. lol. How did you do this?

MarcRodrigFelix avatar Apr 27 '21 05:04 MarcRodrigFelix

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

Thanks a lot dude!

jacadev avatar May 20 '21 00:05 jacadev

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

Another thanks message to say this still works on Dec. 2021

Maxtab avatar Dec 22 '21 10:12 Maxtab

doesn't work for me. btw, follow this guide if you are getting notification from VScode saying that your installation has been corrupted https://stackoverflow.com/questions/61028032/installation-appears-to-be-corrupt-unsupported-visual-studio-code

guoliang avatar Dec 27 '21 19:12 guoliang

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

Dude you're a genius!

giovanidevfullstack avatar Feb 08 '22 14:02 giovanidevfullstack

sudo chmod ugo+rw /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench

This solution works for me. Thanks so much!

gnzlplcs avatar Apr 28 '22 02:04 gnzlplcs

Try running vscode as an administrator

ibrahimxcool avatar Jun 10 '22 04:06 ibrahimxcool

tl;dr I fixed the issue with sudo chmod ugo+rw /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench

I think the error messages could be a little clearer. I did some digging and I edited the extension with:

  }
      } catch (e) {
        if (/ENOENT|EACCES|EPERM/.test(e.code)) {
          vscode.window.showInformationMessage(
            e +
              " You must run VS code with admin privileges in order to enable Neon Dreams."
          );
          return;
        }

/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench did not have read/write access. Therefore, it was not copying the theme_template.js to that directory nor writing it to workbench.html

I started getting this error today but I'm using the Insiders version of VSCode and I don't see workbench inside electron-browser. Any suggestions?

JediRhymeTrix avatar Jul 08 '22 22:07 JediRhymeTrix

@xaviergmail

I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

I'm a Windows noob. How did you do this?

only create new folder in disk c or d and create new archive.txt and open the archive on VSCODE and later procced configuration on enable the extension (ctrl + shift + p) "Dream" - Enable Neon Dream.

I have tried this method but it still didn't work 愒o愒

ODYYYYYY avatar Aug 05 '22 12:08 ODYYYYYY

image My VS code is running in admin mode but I still can't enable the glow effect.

ODYYYYYY avatar Aug 05 '22 12:08 ODYYYYYY

first try to enable neon dreams in vscode on windows then switch to wsl, autometically will enable neon dreams. by editing extension.js file in your windows. follow this link, this worked for me. https://stackoverflow.com/questions/73266964/why-cant-synthwave-84-enable-neon-dreams-on-windows

the thing is dont try to enable neon glow in wsl first, first try to enable in windows. if you succeed with windows vscode then switch to wsl, autometically will be enabled for wsl.

pydjdev78 avatar Aug 09 '22 04:08 pydjdev78

still unable to get this done, someone help me please

shelar1423 avatar Aug 09 '22 05:08 shelar1423

I ran across this issue on Windows with VSCode running in WSL. I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

dint get u,im using windows it was working before but now after the update its getting the admi privilage issue

shelar1423 avatar Aug 09 '22 05:08 shelar1423

As referenced here, it is no longer working with the last VS Code update, but a fix should be released soon : https://github.com/robb0wen/synthwave-vscode/issues/263

Maxtab avatar Aug 09 '22 07:08 Maxtab

I ran across this issue on Windows with VSCode running in WSL. I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

Worked with Vscode+WSL under Windows 11 22H2 šŸ‘.

sangimed avatar Sep 29 '22 23:09 sangimed

I ran across this issue on Windows with VSCode running in WSL. I managed to solve this by reopening VSCode in a local folder on Windows and enabling it, then switching back to WSL.

This works with VSCode and WSL for Windows 11, Thank you !

ananthkamath avatar Mar 07 '24 07:03 ananthkamath