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

import 'google/protobuf/timestamp.pb.dart' as $0; #810

Open
cruvie opened this issue Mar 22, 2023 · 3 comments
Open

import 'google/protobuf/timestamp.pb.dart' as $0; #810

cruvie opened this issue Mar 22, 2023 · 3 comments

Comments

@cruvie
Copy link

cruvie commented Mar 22, 2023

image

I have already run dart pub global activate protoc_plugin and add protobuf: ^2.1.0 protoc_plugin: ^20.0.1 but the generated file still has an error, thanks a lot for helping
@cruvie
Copy link
Author

cruvie commented Mar 22, 2023

I fix it by protoc -I=. --dart_out=./ user_info_vo.proto google/protobuf/timestamp.proto thanks to #483 (comment)

@cruvie cruvie closed this as completed Mar 22, 2023
@cruvie
Copy link
Author

cruvie commented Mar 22, 2023

no , this way will generate these files again and again every time I use this cmd , there must be some problems of the protobuf: ^2.1.0 lib
image

@cruvie cruvie reopened this Mar 22, 2023
@zs-dima
Copy link

zs-dima commented Mar 31, 2023

This generated WellKnownTypes files leads to one more issue:
grpc/grpc-dart#614
so you could note separate them form the generated protocol and could not create packages that will use WellKnownTypes files.
Would be nice to keep it into account while fixing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants