-
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
Cannot generate code on Windows 10 #139
Comments
Yeah that's me also asking in SO just in case I might be doing something wrong. But it looks like a bug to be honest. That's why I opened an issue here. |
What version of protoc are you using? I think this should have been fixed by: protocolbuffers/protobuf#5105. |
I am on 3.6.1. It's going to be a pain to set up the environment to build protobuf but I'll give it a try. |
I'm surprised the direct path did not help. |
Yeah the bat is under this path. I had seen the issue you mentioned, that's why I tried the direct path. But it didn't work for me. I haven't tried to compile the latest code yet. I will try and see if that solves the issue. |
I tried to compile protoc last night but I stumbled upon too many errors with cmake looking for files that didn't exist. I couldn't be bothered to fix the build environment. I'll probably ditch grpc on my flutter client and code a proxy REST server in C# or Go to talk with the main server. I might give this a try in the future when a new version of protoc is released. |
I'm sorry not to be of more help. I'll close this issue for now as it is a duplicate of earlier closed bugs. |
you need install dart2.x + |
I have the same problem at first, then I installed the 2.x dart and every is OK. |
This is still an issue. This should be a flutter dev dependency that just works: protoc --proto_path=d:\Repos<path to system.proto>\ --dart_out=plugins=grpc . system.proto This doesn't work even though system.prot is absolutely in the path. Gets: warning: directory does not exist. .NET does this automatically with a simple save of the proto file. It's unfathomable that it's this difficult to generate dart made by Google for gRPC made by Google yet Microsoft can make gRPC made by Google, not Microsoft, work just fine the way it should. |
I am on Dart VM version: 2.1.0-dev.9.4.flutter-f9ebf21297
I'm following the Dart quickstart guide for grpc. I am trying to generate the Dart code on Windows 10 but I get the following error:
dart_out: protoc-gen-dart: The system cannot find the file specified.
I have added the Pub\Cache\bin in my path and tried the commands from the quickstart guide in GRPC's page:
pub global activate protoc_plugin
git clone https://github.com/grpc/grpc-dart
cd grpc-dart/example/helloworld
protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto
I have also tried specifying the full path like this:
protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto --plugin=protoc-gen-dart=c:\Users\[myself]\AppData\Roaming\Pub\Cache\bin\protoc-gen-dart.bat
In this case I get the following error:
--dart_out: protoc-gen-dart: The system cannot find the path specified.
The text was updated successfully, but these errors were encountered: