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

Issue Enableing neon Dreams on Ubuntu

Open gphillips8frw opened this issue 5 years ago • 31 comments

I seem to be unable to enable dreams. I have tried the work arounds suggested in other issues but with no joy. I simply get the message: "Something went wrong when starting neon dreams" after running 'Enable Neon Dreams'.

Any ideas much appreciated!

Screenshot from 2020-02-28 09-56-05

gphillips8frw avatar Feb 28 '20 09:02 gphillips8frw

The same thing. Extension throws:

{
    "errno": -30,
    "syscall": "open",
    "code": "EROFS",
    "path": "/snap/code/25/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/neondreams.js"
}

I think it's related with documentation part:

For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions.

pavel-voronin avatar Mar 04 '20 14:03 pavel-voronin

I've just had a chance to get my Ubuntu machine up and running and I get a prompt to run code as an admin to enable neon dreams... @gphillips8frw how do you get around this without having to sudo code --user-data-dir each time you want to use vscode??

willstocks avatar Mar 07 '20 22:03 willstocks

I did the following and had the same problem:

  1. Fresh install of Ubuntu 18.04.4, literally just installed and first thing next was VSCode
  2. Updated Ubuntu with sudo apt update && sudo apt upgrade -y
  3. Updated snap with snap refresh => "All snaps are up to date."
  4. Installed VSCode via sudo snap install --classic code
  5. Installed the extension Synthwave '84, restarted VSCode, wanted to activate neon dreams but only get the "Something went wrong when starting neon dreams".

I also tried, even if not recommended, running VSCode as root but that changed nothing. Now I have to use a lame text editor without neon dream :(

A-Heimann avatar Mar 09 '20 04:03 A-Heimann

I've just had a chance to get my Ubuntu machine up and running and I get a prompt to run code as an admin to enable neon dreams... @gphillips8frw how do you get around this without having to sudo code --user-data-dir each time you want to use vscode??

That is odd and not something I have come across. I agree with @pavel-voronin that perhaps all of our issues stem from the install location of code

gphillips8frw avatar Mar 09 '20 10:03 gphillips8frw

Just remembered/checked I’m on 19.10... might be a slight difference there compared to 18.04

willstocks avatar Mar 09 '20 20:03 willstocks

I found a solution that works for me now (see below). As I mentioned above I installed VSCode using snap, however, on their webpage is another way of installing it. I had to launch it as root first though (not recommended). That is just my workaround. From their webpage:

"The repository and key can also be installed manually with the following script:

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

Then update the package cache and install the package using:

sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code # or code-insiders

"

A-Heimann avatar Mar 10 '20 05:03 A-Heimann

Facing the same issue here, I've had Vs code installed for a while now. Can't really reinstall it; way too many dependencies need to be re-configured if I were to do so. Is there any other alternative?

HashTalmiz avatar Mar 29 '20 04:03 HashTalmiz

@HashTalmiz I tried @A-Heimann‘s last comment and that worked for me (still needed to run vscode as root first though and then you can relaunch normally).

I found that under normal launch, nothing had actually uninstalled. All of my extensions/theme/snippets were still there and applied upon reinstall.

Running as root though, it was the equivalent of a fresh install. Fortunately, I use settings sync which might work for you here too?

willstocks avatar Mar 29 '20 08:03 willstocks

@willstocks Thanks for the setting sync extension reccomendation, quite a life saver for me. I've had bad memories of recovering Ubuntu from wipe-outs and so after reading a bit here and also here, I think I'll pass. I might be pessimistic here, but it's not worth running software that could potentially come with bugs (even though this is Microsoft who we're talking about) with root, just to get text to glow on an editor. Hopefully @robb0wen comes up with a better solution.

HashTalmiz avatar Mar 30 '20 08:03 HashTalmiz

i agree with Mr Talmiz - in general, as few programs as possible should run as admin. An editor which allows users to install a wide variety of 3rd party plugins could create a large security hole.

batwicket avatar May 03 '20 00:05 batwicket

I've commented this on a newer issue and it works wonders, relatively less risk than running vscode as root.

Zzombiee2361 avatar May 10 '20 11:05 Zzombiee2361

Anyone knows how to set this up on a MacOSX install? I also get the "something went wrong" error when enabling this extension.

nachiket avatar May 26 '20 00:05 nachiket

Here's how I do it. Tested on Ubuntu 20.04.1.

  1. Install VSCode from the .deb downloaded from https://code.visualstudio.com/download
  2. Run VSCode as root with the following command sudo code --user-dir ~/.config/Code
  3. Install theme, enable Neon Dream, reload VSCode to activate (VSCode will now throw the "Unsupported" error)
  4. Install Fix VSCode Checksum and follow instruction.
  5. Close VSCode and restart it with just code from terminal or from shortcut
  6. Continue with extensions/settings sync

in ubuntu in 2020: ( sudo code --user-data-dir ~/.config/Code ) -- using sudo code --user-dir ~/.config/Code make a error.

atorresbr avatar Nov 02 '20 23:11 atorresbr

The best solution is to reinstall vscode with the deb package, save your settings with Settings Sync and then running these commands

sudo chown root:sudo -R /usr/share/code/resources/app/out/
sudo chmod 775 -R /usr/share/code/resources/app/out/

Then enable neon dreams and then it should be fine. With everything intact.

vipulgupta2048 avatar Dec 19 '20 06:12 vipulgupta2048

I use arch tho. I have it installed thru snap

sortedcord avatar Dec 20 '20 12:12 sortedcord

[daksh_s@R53600X ~]$ sudo code --user-dir ~/.config/Code [sudo] password for daksh_s: You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended, please specify an alternate user data directory using the "--user-data-dir" argument. [daksh_s@R53600X ~]$ this is the output @mqt0029

phoenix277yt avatar Dec 20 '20 13:12 phoenix277yt

@phoenix277yt use it: sudo code --user-data-dir ~/.config/Code

navichok26 avatar Dec 31 '20 09:12 navichok26

what a mess

billyblackburn avatar May 15 '21 04:05 billyblackburn

"For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions." Syntwave

I'm experiencing this issue when I installed VS Code using snap. I changed the permission of my code installation folder to from root to me (checked using whoami). However, I think snap is read-only. So I did the ff steps instead:

  1. Sign in to Sync Settings. Optional but I highly recommend doing this
  2. Uninstall VS Code.
  3. Go to VS Code official download site and download it.
  4. Install the .deb (I just used Ubuntu Software)
  5. Once installed, exit VS Code and open your terminal
  6. Check where VS Code is by which code. My output is /usr/bin/code
  7. Also, you can check the owner and permissions ls -l /usr/bin/code. /usr/bin/code is from which code command
  8. Change the permission for /usr/bin/code and /usr/share/code/bin/code by sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami is the user. check using whoami. we'll change it back to root later
  9. Open VS Code, ctr + shift + p (idunno the mac shortcut for this sorry xD) then type synth then click the Enable Neon Dreams thing. Make sure to install SynthWave first haha 9 Exit VS Code and open again (or just download the reload extension to have a button to do the reload thing without exiting VS Code haha)
  10. Lastly, change the permission to root. sudo chown -R root /usr/bin/code /usr/share/code/ You won't be able to enable or disable the extension if u do this. If u want to disable it, just do step 7 then do step 10, or if ur lazy like me, skip step 10 haha

btw, if there's a VS Code update, SynthWave needs to be enabled again

Hope it works! I'm using Ubuntu 20.04.2 LTS. Posted a screenshot of it working :D

I've done this in Windows 10. I guess it's easier setting up SynthWave in Windows 10 haha

image

franpas12123 avatar May 24 '21 18:05 franpas12123

"Para los usuarios de Linux y Mac, el código no debe instalarse en una ubicación de solo lectura y debe tener permisos de escritura". Syntwave

Estoy experimentando este problema cuando instalé VS Code usando snap . Cambié el permiso de mi carpeta de instalación de código de root a mí (verificado usando whoami). Sin embargo, creo que snap es de solo lectura. Así que hice los pasos de ff en su lugar:

  1. Inicie sesión en Sync Settings. Opcional pero recomiendo encarecidamente hacer esto
  2. Desinstale VS Code.
  3. Vaya al sitio oficial de descargas de VS Code y descárguelo.
  4. Instale el .deb (acabo de usar el software Ubuntu)
  5. Una vez instalado, salga de VS Code y abra su terminal
  6. Compruebe dónde está VS Code which code. Mi salida es / usr / bin / code
  7. Además, puede verificar el propietario y los permisos ls -l /usr/bin/code. / usr / bin / code es del which codecomando
  8. Cambiar el permiso para /usr/bin/codey /usr/share/code/bin/codepor sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami es el usuario. comprobar el uso whoami. lo cambiaremos de nuevo a root más tarde
  9. Abra VS Code, ctr + shift + p (no conozca el acceso directo de mac para este lamentable xD) luego escriba synth y luego haga clic en Enable Neon Dreams. Asegúrese de instalar SynthWave primero jaja 9 Salga de VS Code y abra nuevamente (o simplemente descargue la extensión de recarga para tener un botón para hacer la recarga sin salir de VS Code jaja)
  10. Por último, cambie el permiso a root. sudo chown -R root /usr/bin/code /usr/share/code/ No podrá habilitar o deshabilitar la extensión si hace esto. Si desea desactivarlo, simplemente haga el paso 7 y luego el paso 10, o si es un perezoso como yo, omita el paso 10 jaja

por cierto, si hay una actualización de VS Code, SynthWave debe habilitarse nuevamente

¡Espero que funcione! Estoy usando Ubuntu 20.04.2 LTS. Publicado una captura de pantalla de su funcionamiento: D

He hecho esto en Windows 10. Supongo que es más fácil configurar SynthWave en Windows 10 jaja.

imagen

This solved the problem for me.

Linux Mint 20.1 Cinnamon

bypabloc avatar May 30 '21 05:05 bypabloc

"For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions." Syntwave

I'm experiencing this issue when I installed VS Code using snap. I changed the permission of my code installation folder to from root to me (checked using whoami). However, I think snap is read-only. So I did the ff steps instead:

  1. Sign in to Sync Settings. Optional but I highly recommend doing this
  2. Uninstall VS Code.
  3. Go to VS Code official download site and download it.
  4. Install the .deb (I just used Ubuntu Software)
  5. Once installed, exit VS Code and open your terminal
  6. Check where VS Code is by which code. My output is /usr/bin/code
  7. Also, you can check the owner and permissions ls -l /usr/bin/code. /usr/bin/code is from which code command
  8. Change the permission for /usr/bin/code and /usr/share/code/bin/code by sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami is the user. check using whoami. we'll change it back to root later
  9. Open VS Code, ctr + shift + p (idunno the mac shortcut for this sorry xD) then type synth then click the Enable Neon Dreams thing. Make sure to install SynthWave first haha 9 Exit VS Code and open again (or just download the reload extension to have a button to do the reload thing without exiting VS Code haha)
  10. Lastly, change the permission to root. sudo chown -R root /usr/bin/code /usr/share/code/ You won't be able to enable or disable the extension if u do this. If u want to disable it, just do step 7 then do step 10, or if ur lazy like me, skip step 10 haha

btw, if there's a VS Code update, SynthWave needs to be enabled again

Hope it works! I'm using Ubuntu 20.04.2 LTS. Posted a screenshot of it working :D

I've done this in Windows 10. I guess it's easier setting up SynthWave in Windows 10 haha

image

it worked for me, thanks

edsonjuniornarvaes avatar Jun 02 '21 18:06 edsonjuniornarvaes

Here's how I do it. Tested on Ubuntu 20.04.1.

  1. Install VSCode from the .deb downloaded from https://code.visualstudio.com/download
  2. Run VSCode as root with the following command sudo code --user-dir ~/.config/Code
  3. Install theme, enable Neon Dream, reload VSCode to activate (VSCode will now throw the "Unsupported" error)
  4. Install Fix VSCode Checksum and follow instruction.
  5. Close VSCode and restart it with just code from terminal or from shortcut
  6. Continue with extensions/settings sync

in ubuntu in 2020: ( sudo code --user-data-dir ~/.config/Code ) -- using sudo code --user-dir ~/.config/Code make a error.

worked for me one manjaro

DaryCC avatar Jun 28 '21 01:06 DaryCC

Stil have issues on manajro. Even running on Superuser and changing ownsership from root to user doesnt help at all

ghost avatar Jul 07 '21 05:07 ghost

"For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions." Syntwave

I'm experiencing this issue when I installed VS Code using snap. I changed the permission of my code installation folder to from root to me (checked using whoami). However, I think snap is read-only. So I did the ff steps instead:

  1. Sign in to Sync Settings. Optional but I highly recommend doing this
  2. Uninstall VS Code.
  3. Go to VS Code official download site and download it.
  4. Install the .deb (I just used Ubuntu Software)
  5. Once installed, exit VS Code and open your terminal
  6. Check where VS Code is by which code. My output is /usr/bin/code
  7. Also, you can check the owner and permissions ls -l /usr/bin/code. /usr/bin/code is from which code command
  8. Change the permission for /usr/bin/code and /usr/share/code/bin/code by sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami is the user. check using whoami. we'll change it back to root later
  9. Open VS Code, ctr + shift + p (idunno the mac shortcut for this sorry xD) then type synth then click the Enable Neon Dreams thing. Make sure to install SynthWave first haha 9 Exit VS Code and open again (or just download the reload extension to have a button to do the reload thing without exiting VS Code haha)
  10. Lastly, change the permission to root. sudo chown -R root /usr/bin/code /usr/share/code/ You won't be able to enable or disable the extension if u do this. If u want to disable it, just do step 7 then do step 10, or if ur lazy like me, skip step 10 haha

btw, if there's a VS Code update, SynthWave needs to be enabled again

Hope it works! I'm using Ubuntu 20.04.2 LTS. Posted a screenshot of it working :D

I've done this in Windows 10. I guess it's easier setting up SynthWave in Windows 10 haha

image

Thanks It works for me!

PardeepKumar1991 avatar Jul 23 '21 16:07 PardeepKumar1991

"For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions." Syntwave

I'm experiencing this issue when I installed VS Code using snap. I changed the permission of my code installation folder to from root to me (checked using whoami). However, I think snap is read-only. So I did the ff steps instead:

  1. Sign in to Sync Settings. Optional but I highly recommend doing this
  2. Uninstall VS Code.
  3. Go to VS Code official download site and download it.
  4. Install the .deb (I just used Ubuntu Software)
  5. Once installed, exit VS Code and open your terminal
  6. Check where VS Code is by which code. My output is /usr/bin/code
  7. Also, you can check the owner and permissions ls -l /usr/bin/code. /usr/bin/code is from which code command
  8. Change the permission for /usr/bin/code and /usr/share/code/bin/code by sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami is the user. check using whoami. we'll change it back to root later
  9. Open VS Code, ctr + shift + p (idunno the mac shortcut for this sorry xD) then type synth then click the Enable Neon Dreams thing. Make sure to install SynthWave first haha 9 Exit VS Code and open again (or just download the reload extension to have a button to do the reload thing without exiting VS Code haha)
  10. Lastly, change the permission to root. sudo chown -R root /usr/bin/code /usr/share/code/ You won't be able to enable or disable the extension if u do this. If u want to disable it, just do step 7 then do step 10, or if ur lazy like me, skip step 10 haha

btw, if there's a VS Code update, SynthWave needs to be enabled again

Hope it works! I'm using Ubuntu 20.04.2 LTS. Posted a screenshot of it working :D

I've done this in Windows 10. I guess it's easier setting up SynthWave in Windows 10 haha

image

Thanks it works. I am able to see the default glow brightness. However, when I try to adjust the glow brightness it doesn't make the change. I read the glow brightness adjustment steps in the documentation but nothing.

luis-castrejon avatar Aug 15 '21 01:08 luis-castrejon

"For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions." Syntwave I'm experiencing this issue when I installed VS Code using snap. I changed the permission of my code installation folder to from root to me (checked using whoami). However, I think snap is read-only. So I did the ff steps instead:

  1. Sign in to Sync Settings. Optional but I highly recommend doing this
  2. Uninstall VS Code.
  3. Go to VS Code official download site and download it.
  4. Install the .deb (I just used Ubuntu Software)
  5. Once installed, exit VS Code and open your terminal
  6. Check where VS Code is by which code. My output is /usr/bin/code
  7. Also, you can check the owner and permissions ls -l /usr/bin/code. /usr/bin/code is from which code command
  8. Change the permission for /usr/bin/code and /usr/share/code/bin/code by sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami is the user. check using whoami. we'll change it back to root later
  9. Open VS Code, ctr + shift + p (idunno the mac shortcut for this sorry xD) then type synth then click the Enable Neon Dreams thing. Make sure to install SynthWave first haha 9 Exit VS Code and open again (or just download the reload extension to have a button to do the reload thing without exiting VS Code haha)
  10. Lastly, change the permission to root. sudo chown -R root /usr/bin/code /usr/share/code/ You won't be able to enable or disable the extension if u do this. If u want to disable it, just do step 7 then do step 10, or if ur lazy like me, skip step 10 haha

btw, if there's a VS Code update, SynthWave needs to be enabled again Hope it works! I'm using Ubuntu 20.04.2 LTS. Posted a screenshot of it working :D I've done this in Windows 10. I guess it's easier setting up SynthWave in Windows 10 haha image

Thanks It works for me!

Doesn't seem to work on macOS. Will probably have to wait for a fix.

lukasmaxim avatar Sep 03 '21 19:09 lukasmaxim

"For Linux and Mac users, Code must not be installed in a read-only location and you must have write permissions." Syntwave

I'm experiencing this issue when I installed VS Code using snap. I changed the permission of my code installation folder to from root to me (checked using whoami). However, I think snap is read-only. So I did the ff steps instead:

  1. Sign in to Sync Settings. Optional but I highly recommend doing this
  2. Uninstall VS Code.
  3. Go to VS Code official download site and download it.
  4. Install the .deb (I just used Ubuntu Software)
  5. Once installed, exit VS Code and open your terminal
  6. Check where VS Code is by which code. My output is /usr/bin/code
  7. Also, you can check the owner and permissions ls -l /usr/bin/code. /usr/bin/code is from which code command
  8. Change the permission for /usr/bin/code and /usr/share/code/bin/code by sudo chown -R whoami /usr/bin/code /usr/share/code/ whoami is the user. check using whoami. we'll change it back to root later
  9. Open VS Code, ctr + shift + p (idunno the mac shortcut for this sorry xD) then type synth then click the Enable Neon Dreams thing. Make sure to install SynthWave first haha 9 Exit VS Code and open again (or just download the reload extension to have a button to do the reload thing without exiting VS Code haha)
  10. Lastly, change the permission to root. sudo chown -R root /usr/bin/code /usr/share/code/ You won't be able to enable or disable the extension if u do this. If u want to disable it, just do step 7 then do step 10, or if ur lazy like me, skip step 10 haha

btw, if there's a VS Code update, SynthWave needs to be enabled again

Hope it works! I'm using Ubuntu 20.04.2 LTS. Posted a screenshot of it working :D

I've done this in Windows 10. I guess it's easier setting up SynthWave in Windows 10 haha

image

Deffinitely works....recommended....Thanks

clayhopper avatar Sep 27 '21 04:09 clayhopper

Alhamdulillah..It works.. Peace be upon you

clayhopper avatar Sep 27 '21 04:09 clayhopper

  • sudo chown -R <path_to_your_vscode_installation_directory>
  • to check the current user on your machine: whoami eg: John
  • You can find path of vscode directory using following command: whereis code e.g. in my case path is : /usr/share/code
  • Now run: sudo chown -R John /usr/share/code
  • Now install your extensions
  • Open VS Code, Ctrl+Shift+P and then Enable Neon Dreams
  • After reset owner back to root sudo chown -R root /usr/share/code
  • Hope it works! I'm using Ubuntu 21.10

KyawNyeinNaing avatar Nov 21 '21 18:11 KyawNyeinNaing

Thanks @KyawNyeinNaing this worked for me on macOS !

lndgalante avatar Jan 18 '22 16:01 lndgalante