-
Notifications
You must be signed in to change notification settings - Fork 274
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
generate stub doesn't work #37
Comments
The error indicates that you don't have protoc-gen-dart on your PATH. If you've installed it using Alternatively, you can point protoc at the plugin by adding |
I can launch both from my terminal :/ |
What happens when you launch |
it's exactly what happend the program is waiting for input |
Then you've got me stumped. What version of protoc do you have? |
|
protoc 3.4.0 works for me, so that should be fine. Are there any spaces or other "weirdness" in the path to protoc-gen-dart? What OS are you running on? If you can't get it to work using |
i have compile the source from the cpp release here https://github.com/google/protobuf/releases/tag/v3.4.0 |
no weird spaces or other in my path |
Pretty similar setup to mine. What does |
Ok i have found what is the problem PATH="$PATH:~/.pub-cache/bin" i have change to PATH="$PATH:/home/kleak/.pub-cache/bin" and it work now :) |
Ah, yes. Looks like protoc doesn't do ~ expansion, so we need the full path in PATH. I'll close this one, then. Thanks for confirming! |
yes problem solved :) thanks for the help
…On Tue, Nov 7, 2017 at 3:49 PM Jakob Andersen ***@***.***> wrote:
Closed #37 <#37>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFLtgCPOTYjPZ3eaYCnXLSgkwSaFWwKtks5s0G36gaJpZM4QBto_>
.
|
If you come across this, try replacing all mentions of ~ in your $path to /home/yourname. That fixed it for me. |
When i launch this command :
protoc --dart_out=grpc:lib/src/generated -Iprotos protos/metadata.proto
i got the following error :
i have installed everything (protoc and the protoc_plugin)
The text was updated successfully, but these errors were encountered: