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

Failed to generate the grpc code for Dart --dart_out: protoc-gen-dart: Plugin failed with status code 252. #93

Closed
heyphat opened this issue Jul 5, 2018 · 7 comments

Comments

@heyphat
Copy link

heyphat commented Jul 5, 2018

I follow the instruction to download and install protoc and protoc plugin for dart here.
I use Linux
protoc version 3.6.0

I could not generate the code for dart and this error message came out:
--dart_out: protoc-gen-dart: Plugin failed with status code 252.
and
Crash when compiling file:///home/phat/.pub-cache/global_packages/protoc_plugin/bin/protoc_plugin.dart.snapshot, at character offset null: String starting with ' must end with '. #0 ErrorToken.lexeme (package:front_end/src/fasta/scanner/error_token.dart:74:24) #1 _withArgumentsExpectedDeclaration (file:///tmp/tmpcU3f4j/dart-2.0.0-dev.64.1/dart/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart:1989:25) #2 Parser.reportRecoverableErrorWithToken (package:front_end/src/fasta/parser/parser.dart:6020:20)

Thank you!

@lvh1g15
Copy link

lvh1g15 commented Jul 27, 2018

@tanphathuynh did you manage to solve this as I am having the same issue

@heyphat
Copy link
Author

heyphat commented Jul 28, 2018

@lvh1g15 I am still having this problem on my computer. But I tried to generate on another new machine, it works. Still not sure what the problem is.

@mohammed90
Copy link

Try re-install/upgrade protoc_plugin everytime Dart is updated on your system. That solves it for me.

@lvh1g15
Copy link

lvh1g15 commented Aug 5, 2018

@mohammed90 thanks for the help

@RdeWilde
Copy link

Any link/info on simple way to reinstall the plugin?

@RdeWilde
Copy link

pub global activate protoc_plugin

@mit-mit
Copy link
Collaborator

mit-mit commented Dec 17, 2018

Closing as assume resolved. Please reopen with more details if not.

@mit-mit mit-mit closed this as completed Dec 17, 2018
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

5 participants