Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desc command does not work when the symbol is defined in an imported file #588

Open
dilanSachi opened this issue Sep 29, 2022 · 0 comments
Assignees
Labels

Comments

@dilanSachi
Copy link

dilanSachi commented Sep 29, 2022

Describe the bug

When a message is defined in another proto file and it is imported in a service, the desc command results in command desc: failed to get the type descriptor: failed to get the type descriptor of 'SampleMsg': unknown symbol

To reproduce

Define a proto file with a message definition as follows.

message SampleMsg {
    int32 latitude = 1;
    int32 longitude = 2;
}

Import this in another file.

import "msg.proto";

service RouteGuide {
  rpc GetFeature(SampleMsg) returns (SampleMsg) {}

Reflect this using the cli and use the desc SampleMsg command to check the message description.

Expected behavior

+------------+--------------------+-----------------+
| FIELD | TYPE | REPEATED |
+------------+--------------------+-----------------+
| latitude | TYPE_INT32 | false |
| longitude | TYPE_INT32 | false |
+------------+--------------------+-----------------+

Screenshots

Environment

  • OS: ubuntu
  • Terminal: ubunutu terminal
  • Evans version: evans 0.10.9
  • protoc version: 21.5
  • proto3
  • protoc plugin version (if you are using):

Additional context

@dilanSachi dilanSachi added the bug label Sep 29, 2022
@ktr0731 ktr0731 self-assigned this Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants