0

This question already has an answer here:

I just installed VScode with anaconda on Ubuntu 18.04 and after installation it won't open.

I did the same on Ubuntu 16 LTS but it worked fine. I tried to uninstall it from anaconda navigator and install it with this procedure but it's still not working. When I click on the icon just nothing happens.

 code --verbose 

Gtk-Message: 17:32:24.579: Failed to load module "overlay-scrollbar" 
Gtk-Message: 17:32:24.621: Failed to load module "canberra-gtk-module" [main 4:32:25 PM] Startup error: ,,
Error: EACCES: permission denied, mkdir '/home/mohsen74x/.config/Code/CachedData',Error: EACCES: permission denied,
mkdir '/home/mohsen74x/.config/Code/logs/20180528T173225' [main 4:32:25 PM] Lifecycle#kill() 

marked as duplicate by karel, Amanda, David Foerster, Eric Carvalho, user364819 May 31 '18 at 20:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Any error messages? Try code --verbose. – George Udosen May 26 '18 at 19:21
  • @GeorgeUdosen code --verbose Gtk-Message: 17:32:24.579: Failed to load module "overlay-scrollbar" Gtk-Message: 17:32:24.621: Failed to load module "canberra-gtk-module" [main 4:32:25 PM] Startup error: ,,Error: EACCES: permission denied, mkdir '/home/mohsen74x/.config/Code/CachedData',Error: EACCES: permission denied, mkdir '/home/mohsen74x/.config/Code/logs/20180528T173225' [main 4:32:25 PM] Lifecycle#kill() thanks – mohsen74persian May 28 '18 at 13:06
  • Are you sure you are running with sudo? – pro neon May 28 '18 at 14:05
  • 1
    vscode should not be run with sudo @proneon – George Udosen May 28 '18 at 14:06
  • But the message just says " permission denied " . – pro neon May 28 '18 at 14:07
1

I fixed it like this:

sudo apt-get install --reinstall overlay-scrollbar-gtk2
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

and for permission:

sudo chown -R mohsen74x:staff /home/mohsen74x/.config/Code

this solved my problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.