fullstorydev / fullstorydev/grpcurl
describe enum - Failed to resolve symbol
- Dominant language
- Go
- Stars
- 12.8k
- Forks
- 580
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 5
Description
Hi.
I'm trying to get the description of an enum and it gives me an error: "Failed to resolve symbol "com.nms.noc.fm.grpc.AlarmState": Symbol not found: com.nms.noc.fm.grpc.AlarmState"
```
syntax = "proto3";
import "google/protobuf/empty.proto";
package com.nms.noc.fm.grpc;
option java_package = "com.nms.noc.fm.grpc";
option java_multiple_files = true;
option java_outer_classname = "FMGrpcService";
service FMService {
rpc setAlarmState(AlarmStateMessage) returns (google.protobuf.Empty);
}
enum AlarmState {
OPEN = 0;
ACKNOWLEDGED = 1;
CLEARED = 2;
}
message AlarmStateMessage {
int64 alarm_id = 1;
int32 entity_version = 2;
AlarmState state = 3;
string note = 4;
}
```
```
$ grpcurl -plaintext 192.168.49.2:31131 describe .com.nms.noc.fm.grpc.FMService
com.nms.noc.fm.grpc.FMService is a service:
service FMService {
rpc setAlarmState ( .com.nms.noc.fm.grpc.AlarmStateMessage ) returns ( .google.protobuf.Empty );
}
$ grpcurl -plaintext 192.168.49.2:31131 describe .com.nms.noc.fm.grpc.AlarmStateMessage
com.nms.noc.fm.grpc.AlarmStateMessage is a message:
message AlarmStateMessage {
int64 alarm_id = 1;
int32 entity_version = 2;
.com.nms.noc.fm.grpc.AlarmState state = 3;
string note = 4;
}
$ grpcurl -plaintext 192.168.49.2:31131 describe .com.nms.noc.fm.grpc.AlarmState
Failed to resolve symbol "com.nms.noc.fm.grpc.AlarmState": Symbol not found: com.nms.noc.fm.grpc.AlarmState
```
P.S. -> How can I get the description of just an enum via the command line?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the grpcurl describe commands shown in the issue, especially the command targeting the fully qualified enum. Trace the command-line symbol resolution path for enum descriptors; done when the enum can be resolved and its description is printed without breaking the existing service and message descriptions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100