我在Mac上的Goland不懂->语法= "proto3“,你知道为什么吗?
预期包,got语法
无论我把语法放在包声明之前还是之后,它都不会改变什么.
我的example.proto文件看起来像
syntax = "proto3";
package main;
service Greeter {
rpc login (HelloRequest) returns (HelloReply) {}
rpc logging (HelloRequest) returns (HelloReply) {}
}
message HelloRequest{
string ID=1;
}
message HelloReply{
string response=1;
}我已经尝试过这个解决方案,但是没有发生任何事情,错误仍然是这样的:
解决方案-
任何人有任何其他解决方案,请帮助。
发布于 2019-04-26 10:18:36
很可能是将所有.proto文件与Go扩展名关联起来,或者仅仅关联到该特定文件。
要检查它,请转到Settings/Preferences | Editor | File Types | Go并检查那里注册的模式。
https://stackoverflow.com/questions/55863251
复制相似问题