sindresorhus/open-editor

Error using VS Code and Windows 10 / "Windows cannot find --goto"

Closed this issue · 0 comments

Steps to reproduce:

  1. Set up the EDITOR environment variable to code on a Windows 10 machine with VS Code installed
  2. Run npm install open-editor in a directory
  3. Load a node console
  4. Import the package
  5. Use the function to open a file in the editor

Actual result:

A Windows error popup appears stating (pardon my French installation) "Windows cannot find '--goto'."

Expected result:

VS Code should spawn with the file opened

Additional information:

  • This is related to mdn/yari#2142 which I reproduced after following the instructions on mdn/content to contribute to the new MDN platform and after having set up a development environment with mdn/yari
  • I also use Git Bash and reproduce as well in that context

image