RESOLVED: Linux: Cannot lauch VS Code from inside Anaconda Navigator

Hello. I have installed Anaconda and VS Code on a machine with freshly installed Ubuntu. VS Code appears in my Anaconda Navigator with a clickable Launch button below. When I select Launch I see the bottom right activity bar pulse, but VS Code never launches. I can launch VS Code both through a desktop icon AND through terminal. I have both VS Code and Anaconda set to the same environment.

I know for a fact I can launch VS from Anaconda on my Windows machine.

Any assistance is greatly appreciated.

I don’t know if this will solve it, but somethings to check:

In the menu, select preferences - towards the bottom of the preferences window, there is a “VS Code path” box. You could check that the path there is correct.

You could also check the anaconda-navigator.ini file to make sure that path is correct (you can edit that file from Navigator directly using the “Configure Navigator” button at the bottom of the preferences Window).

Also, always good to check permissions and that Navigator is able to open it.

Hi Crystal!

Thanks for reaching out. As I’ve discovered with Linux, there are ways of doing things, and then there are ways of doing things. LOL!

My problem originated with trying to install VS Code from the website. I guess when I was typing in the install command I was missing a letter or something (P.S. - I learned a trick for getting filenames correct since then). In my frustration, I discovered I could install it via Snap.

I’m not here to discuss whether or not Snap did everything correctly or not. All I know is that I unistalled code, made myself go back to the VS Code download page and get the terminal command correct and … tah dah!

At this moment, everything works perfectly. I did go into VS Code’s settings to make sure VS Code was set to anaconda’s Python path. Also, I restarted everything and made sure I was in the correct conda environment, and everything works exactly as expected.

The only thing I can think of is somehow Snap’s putting VS Code into the snap folder was causing kittens or whatever. Again, not here to discuss the pros and cons of Snap, but everything is perfect. My Python is importing libraries and my code (I’m just a student!! It’s not complex!!) is running exactly as it does on the Windows environment!

SUPER HAPPY!!

Thanks so much for the feedback and help! Have a fantastic day!

1 Like