vscode-proto3 icon indicating copy to clipboard operation
vscode-proto3 copied to clipboard

Keep seeing spawn /usr/local/bin/protoc ENOENT error

Open abhishekvaid opened this issue 3 years ago • 3 comments

I installed the plugin and started writing a simple proto file. I keep getting this annoying error on the bottom right.

Screenshot 2021-09-24 at 6 53 38 PM

abhishekvaid avatar Sep 24 '21 13:09 abhishekvaid

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

2.Install the clang-format plugin in VSCode

  • Ubuntu

1.Install clang-format on your system:

sudo apt-get install clang-format

2.Install the clang-format plugin in VSCode

maxbitcoin avatar Jan 09 '22 09:01 maxbitcoin

Also experiencing this issue :(

asilverman avatar Feb 20 '22 10:02 asilverman

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"
}

harrytflv avatar Apr 21 '22 00:04 harrytflv