openimsdk / chat

A business server that includes user registration and login, deployed together with Open-IM-Server, can be used to set up a chat product.
https://openim.io
GNU General Public License v3.0
81 stars 101 forks source link

[BUG] Error in executing gen.cmd/gen.sh under pkg \ protocol using protocol v5.27.1 #556

Closed shenbururen closed 4 weeks ago

shenbururen commented 2 months ago

OpenIM Server Version

3.7.1

Operating System and CPU Architecture

Windows (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

When executing the gen.cmd script using the protoc version v5.27.1 in the comments section of the admn.pb.go file, an error message will appear: "-- go_out: protoc gen go: plugins are not supported;"; use 'protoc --go-grpc_out=...' to generate gRPC”。 After changing to a new version of the command, it can be executed and code can be generated normally. But there will be two files, one admin. bb. go and one admin _grpc. bb. go. May I ask how you used Protoc version v5.27.1 to generate gen.cmd into a code normally, and how did you remove the omitty after the field. I feel very puzzled, I have been searching for a long time but have not found a similar tool. thank you.

Screenshots Link

image