"VS Code was not detected on your system."

Seeing the same issue described here:  VS Code was not detected on your system. 

Running on macOS 12.5.1 (Monterey).  nRF Connect for Desktop v3.12.0.  I've tried with both the Toolchain Manager v2.1.0-rc1 and v2.0.2.  Same results.

I run VS Code normally and have the "code" shell integration already installed.  I tried putting the explicit path of "/Applications/Visual Studio Code.app/Contents/Resources/app/bin" in various places, including .zshenv.  I tried launching nRF Connect directly from a terminal with `open /Applications/"nRF Connect for Desktop.app"` where I could be more assured that the PATH had been set correctly.

The "SHOW LOG" switch at the bottom of the Toolchain Manager window doesn't show anything particularly useful, although I do wonder at this line:

             "14:51:16.526 Failed to get the library versions: RangeError: Maximum call stack size exceeded"

How can I get more debugging information on where the failure is happening?

Parents
  • I have the same problem. I have added path to zshrc (as well as bash_profile) and I can start the VS Code from shell if I open the terminal. If I open the terminal from the nRF Connect, the path is completely different. It obviously uses some other environment files, but what? Where do I need to add the path in order for the nRF Connect to find the VS code? I do not want to remove the VS Code I have already installed...

Reply
  • I have the same problem. I have added path to zshrc (as well as bash_profile) and I can start the VS Code from shell if I open the terminal. If I open the terminal from the nRF Connect, the path is completely different. It obviously uses some other environment files, but what? Where do I need to add the path in order for the nRF Connect to find the VS code? I do not want to remove the VS Code I have already installed...

Children
  • Apparently installing the environment variables from the VS code command prompt did the trick. So following this instruction from VS code documentation helped:

    • Open the Command Palette (Cmd+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

    The "alternative manual instructions" section from VS Code documentation did not work for me...

Related