You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The linter does not recognize dependencies defined in buf.yaml (deps key) when imported in our .proto files:
[Error - 10:45:01 PM] Request textDocument/definition failed.
Message: revenueperhour.proto:5:8: open buf/validate/validate.proto: no such file or directory
Code: 0
Currently, the language server is not configured to look at buf.gen.yaml or buf.work.yaml and buf.yaml . Therefore, as mentioned below, it is necessary to pass the --import-path option when starting the language server.
In the case of VSCode, specify it in settings.json as follows. Therefore, all proto files to be referenced must exist on the local filesystem. This behavior poses an issue if you are using Buf Registry to reference proto files, so we plan to improve it in the future.
Describe the bug
The linter does not recognize dependencies defined in
buf.yaml
(deps key) when imported in our .proto files:Related Components
To Reproduce
buf.yaml
like the following:.proto
file with imports like the following:Expected behavior
The import should be resolved by the vscode extension
mercari.grpc-federation
v1.0.2.I am wondering if I am missing some configuration here or whether the extension should work with buf dependencies out of the box?
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: