11

I'm getting this error:

Error: spawnSync undefined ENOENT

Always, when I save the file in VSCode, but it turns out that compiles fine.

How I can fix this behavior?

I read this: How do I debug "Error: spawn ENOENT" on node.js? but I do not know if this related.

Community
  • 1
  • 1
Angel Angel
  • 19,670
  • 29
  • 79
  • 105
  • This is VS Code trying to spawn a new process. Have you installed any Rust plugins? If so, which ones? –  Apr 01 '16 at 21:41
  • @JeremiahPeschka ...spawn a new process ? It happens when I save the file. ....Rust plugins? yes Rust-Code and vsc-rustfmt – Angel Angel Apr 01 '16 at 22:13
  • @JeremiahPeschka please promote your comment to an answer. – Seth Nov 26 '16 at 20:46

1 Answers1

8

I solved this by uninstalling the extra plugin rust_fmt besides rusty_code because of which vscode spawning new process every time on save. Also enabled fmt from vscode settings as below.

 "rust.formatOnSave": true,
 "rust.checkOnSave": true
Karthik Cherukuri
  • 603
  • 2
  • 9
  • 15