-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
format tool #729
Comments
The files in this repo are manually formatted, but a formatting tool that solves this much better than I'll close this issue as it's largely unrelated to the gateway, but feel free to reopen if you have more questions. |
Hey @llVim , Do you find the solution for how to formatting proto file? |
@yuhang2 not yet |
As I said in my previous comment, using |
@johanbrandhorst |
Do you need any particular configuration to use the prototool formatter on its own? |
@johanbrandhorst not really sir 😄 <input>:1:1:Import "google/api/annotations.proto" was not found.
<input>:1:1:Import "protoc-gen-openapiv2/options/annotations.proto" was not found.
api/proto/v1/todo-service.proto:6:1:Import "google/api/annotations.proto" was not found or had errors.
api/proto/v1/todo-service.proto:7:1:Import "protoc-gen-openapiv2/options/annotations.proto" was not found or had errors. and im try to look for solution on the prototool github issue, but it seems no one responding, i know that it will be replaced by buf, as for now, i just wanna search working solution haha |
Yeah I'm not sure, I don't know prototool, I haven't used it in years. I'm afraid maybe you just don't use formatting for now? |
@johanbrandhorst okay sir, thanks for replaying |
I use clang-format to format proto file, but the output option section of proto file is not what I expect,
say I
clang-format -i examples/proto/examplepb/a_bit_of_everything.proto
I get
so what format tool are you using?
The text was updated successfully, but these errors were encountered: