Closed utrack closed 7 years ago
Seems like it happens if package name has dots in it.
Good to know. Interested in contributing a fix?
@awalterschulze Yeap, I'll look into it.
That will be great thanks. Just be warned this is some of the worst code I have ever written. Unfortunately it works quite well.
There is a different failure right now.
Assume this command:
protoc --letmegrpc_out=. -I. tmp.proto
Building this file works:
# tmp.proto
syntax = "proto3";
package com;
message Blah {
};
service Asd {
rpc Foo(Blah) returns (Blah);
}
Building this file does not:
# tmp.proto
syntax = "proto3";
package com.example;
message Blah {
};
service Asd {
rpc Foo(Blah) returns (Blah);
}
Error produced:
2017/02/23 00:21:24 protoc-gen-gogo: error:can't find object with type .com.example
--letmegrpc_out: protoc-gen-letmegrpc: Plugin failed with status code 1.
Error still talks about com.example
even if I change the package name to com.example.project
.
Its a bug that concerns the dot character
On Thu, 23 Feb 2017, 01:22 Ivan Vučica, notifications@github.com wrote:
There is a different failure right now.
Assume this command:
protoc --letmegrpc_out=. -I. tmp.proto
Building this file works:
tmp.proto
syntax = "proto3";package com;message Blah { };service Asd { rpc Foo(Blah) returns (Blah); }
Building this file does not:
tmp.proto
syntax = "proto3";package com.example;message Blah { };service Asd { rpc Foo(Blah) returns (Blah); }
Error produced:
2017/02/23 00:21:24 protoc-gen-gogo: error:can't find object with type .com.example --letmegrpc_out: protoc-gen-letmegrpc: Plugin failed with status code 1.
Error still talks about com.example even if I change the package name to com.example.project.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gogo/letmegrpc/issues/22#issuecomment-281849697, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvsLUKwPdnrAnFa2WOn44vgvYWpXtvwks5rfNFJgaJpZM4J1MLz .
That much is obvious both from my report and this bug's title, no? 😂
Yes thats true :) I'll look into this as soon as I get some time.
On Thu, 23 Feb 2017 at 10:51 Ivan Vučica notifications@github.com wrote:
That much is obvious both from my report and this bug's title, no?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gogo/letmegrpc/issues/22#issuecomment-281946122, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvsLS2_3f-vO5220iW1DvjncRXbGGdgks5rfVaOgaJpZM4J1MLz .
Thanks! 😂
Finally got some time. Fixed https://github.com/gogo/letmegrpc/commit/2d46be80c34f4f5e7dafb7db6be3880ccb3f4193