Keep seeing spawn /usr/local/bin/protoc ENOENT error
I installed the plugin and started writing a simple proto file. I keep getting this annoying error on the bottom right.
Known Issues Auto-completion not works in some situations.
Some users consistently see an error like spawnsync clang-format enoent when they save. This happens when the "formatOnSave"-setting is enabled in VSCode and "clang-format" cannot be found. To fix this:
- MacOS
1.Install clang-format on your system:
brew install clang-format2.Install the clang-format plugin in VSCode
- Ubuntu
1.Install clang-format on your system:
sudo apt-get install clang-format2.Install the clang-format plugin in VSCode
Also experiencing this issue :(
In my case, I see this error because the path of protoc configured by the plugin is different from the actual path of the executable. I fixed it by changing the settings of the extension:
"protoc": {
"path": "/usr/bin/protoc"
}