question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exec: "code": Executable file not found in $PATH

See original GitHub issue

Version

  • 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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
PhaserEditor2Dcommented, Mar 29, 2022

It looks like a problem of Node and the spawn function. However, I have a solution here. You can set the -external-editor-command to point to your VS Code installation. I tested it and it works. So, please, follow this steps:

  • Create a flags.txt file in your /Users/<your user>/.phasereditor2d/ folder.

  • Write this content to the file:

-external-editor-command
/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code "$LOC"
  • Restart the editor and press ⌘⌥U

Here I attach the flags.txt file: flags.txt

1reaction
BenoitFresloncommented, Mar 17, 2022

Hello, 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found