exec: "code": Executable file not found in $PATH
See original GitHub issueVersion
-
Phaser Editor 2D Version: Phaser Editor All-in-one 3.32 OSX
-
Operating System:
OSX 12.1
Description
When I click on “Open in Visual Studio Code” I got this error message : exec: "code": Executable file not found in $PATH
I also installed the VS Code command in my terminal with “Shell command” plugin from VSCODE.
The “code” command opens VS Code.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
exec: "code": executable file not found in $PATH
First do this in VS Code: Once installed, open Visual Studio Code, open the command palette (press Shift+Command+P on macOS and Shift+Ctrl+P ...
Read more >exec: "make": executable file not found in %PATH%
It's like a global variable. You can open cmd type "echo %path%" and it will print out your path for you.
Read more >"go": executable file not found in $PATH: stderr: · Issue #2499 ...
I try to use GO extensions in CodeServer,When I open a Go file, prompt the following error: but Execute the Go command in...
Read more >Executable file not found in $PATH - Phaser 3
Hi: I downloaded Phase Editor (PE) v. 3.10.2 on imac 2011. Problem: Visual Studio does not open when: right tab > Open Visual...
Read more >exec: "primitive": executable file not found in $PATH : r/golang
The problem is that you don't have the primitive command installed, or it's somewhere your OS doesn't check.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It looks like a problem of Node and the
spawnfunction. However, I have a solution here. You can set the-external-editor-commandto point to your VS Code installation. I tested it and it works. So, please, follow this steps:Create a
flags.txtfile in your/Users/<your user>/.phasereditor2d/folder.Write this content to the file:
Here I attach the
flags.txtfile: flags.txtHello, I already tried this method several times but I got the same issue. The “code” command in the terminal is opening VS Code. OSX 12.2.1