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

Generate js file from proto file with protoc v2.6.1 #4840

Closed
tim8917 opened this issue Jun 28, 2018 · 2 comments
Closed

Generate js file from proto file with protoc v2.6.1 #4840

tim8917 opened this issue Jun 28, 2018 · 2 comments
Assignees

Comments

@tim8917
Copy link

tim8917 commented Jun 28, 2018

What version of protobuf and what language are you using?
Version: v2.6.1
Language: JavaScript

What operating system (Linux, Windows, ...) and version?
Ubuntu Linux

What runtime / compiler are you using (e.g., python version or gcc version)

What did you do?
Steps to reproduce the behavior:

  1. open my bash console
  2. enter protoc --proto_path=src --js_out=library=whizz/ponycopter,binary:build/gen src/foo.proto src/bar/baz.proto from https://developers.google.com/protocol-buffers/docs/reference/javascript-generated
  3. See error: protoc-gen-js: program not found or is not executable
    --js_out: protoc-gen-js: Plugin failed with status code 1.

What did you expect to see
a .js file generated from .proto

What did you see instead?
an error
error: protoc-gen-js: program not found or is not executable
--js_out: protoc-gen-js: Plugin failed with status code 1.

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

Anything else we should know about your project / environment
Usage of v2.6.1 is the requirement

@acozzette
Copy link
Member

We added support for JS in the 3.0 release, so unfortunately it's not possible to use JavaScript with 2.6.1.

@acozzette acozzette self-assigned this Jun 29, 2018
@tim8917
Copy link
Author

tim8917 commented Jul 10, 2018

It would be great to mention that version restriction on the official page https://developers.google.com/protocol-buffers/docs/reference/javascript-generated

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