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
  • 16,564
  • 27
  • 71
  • 101

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
  • 535
  • 2
  • 9
  • 15