google / google/protobuf.dart

Unable to compile generated Dart

Open
#404 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

I have a proto file shared between multiples project, the generated code compile perfectly in all other language (C, Java, Swift, Go) but not in Dart.

A example below :
```proto
syntax = "proto3";

message info {
int32 value = 1;
}

message main {
oneof msg {
info info = 1;
}
}
```
I use both latest version of protoc (3.13.0) and protoc_plugin (19.0.1)

This example work perfectly in any other platform, but I can't compile generated Dart. The compiler tell me that he can't find the type `info`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.