-
Notifications
You must be signed in to change notification settings - Fork 589
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 compile ...Validator.java file #191
Comments
It looks like you are compiling on Windows. How are you building PGV? |
Yes, I cloned your project, and build PGV localy on Windows. |
I think I fixed this in a PR #186 I'm working on. Since you have a local clone, can you verify by changing line 126 of
|
Now i clone rmichela:bugfix/java-multiple-files and have same error... |
I haven't figered out yet, how to implement validatoin function to my own applycation (spring boot grpc hello server), but pgv-java-grpc module passed test successful now. I compiled PGV with corrected func JavaMultiFilePath in register.go like this - |
@rmichela Any hints on how to integrate pgv into java application would be really helpful. I am able to successfully compile and it generated java-pgv packages. There is no clue on how to integrate with grpc service implementation. |
@dimax0505 Can you try now with the latest -SNAPSHOT release? |
https://oss.sonatype.org/content/repositories/snapshots/io/envoyproxy/protoc-gen-validate/ i add dependency from this repository, but have same error... |
@dimax0505 did you do |
yes: [ERROR] C:\Users\17318390\IdeaProjects\protoc-gen-validate\java\pgv-java-grpc\src\test\proto\hello.proto [0:0]: C:\Users\17318390\IdeaProjects\protoc-gen-validate\java\pgv-java-grpc\target\generated-test-sources\protobuf\java-pgv/io\envoyproxy\pgv\grpc\asubpackage\HelloRequestValidator.java: No such file or directory [INFO] ------------------------------------------------------------------------ |
There is a forward slash between |
yes... but now, i change com.google.protobuf:protoc:3.6.1 to 3.8.0 and error disappear... i don't undestand it... I will try test it on my app in local network, one qwestion - were artefacts in repo https://oss.sonatype.org/content/repositories/snapshots/io/envoyproxy/protoc-gen-validate been generated from master branch of current project? |
Yes. Everything is built from master. |
I have no way to reproduce your problem, but the fact that upgrading protoc fixed your build makes me think this is a bug in protoc and not PGV. @rodaine, what do you think? |
@keith Are you also having trouble building on Windows with protoc 3.6.1? |
After fixing the slash issue, what was the error reported by 3.6.1, @dimax0505? |
sorry, i don't clear undestend your question... |
Did this fix your problem? |
yes, thanks, i closing issue... |
I would to try your PGV plugin for validation protobuf messages (lang=java), but i can't compile my project. I faced with error:
[INFO] --- protobuf-maven-plugin:0.5.0:test-compile-custom (protoc-java-pgv) @ pgv-java-grpc ---
[INFO] Compiling 1 proto file(s) to C:\Users\Maksimov-DE\go\src\github.com\envoyproxy\protoc-gen-validate\java\pgv-java-grpc\target\generated-test-sources\protobuf\java-pgv
[ERROR] PROTOC FAILED: C:\Users\Maksimov-DE\go\src\github.com\envoyproxy\protoc-gen-validate\java\pgv-java-grpc\target\generated-test-sources\protobuf\java-pgv/io\envoyproxy\pgv\grpc\HelloValidator.java: No such file or directory
[ERROR] C:\Users\Maksimov-DE\go\src\github.com\envoyproxy\protoc-gen-validate\java\pgv-java-grpc\src\test\proto\hello.proto [0:0]: C:\Users\Maksimov-DE\go\src\github.com\envoyproxy\protoc-gen-validate\java\pgv-java-grpc\target\generated-test-sources\protobuf\java-pgv/io\envoyproxy\pgv\grpc\HelloValidator.java: No such file or directory
I try to run test from you repo - pgv-gava-jrpc with same error... Can you say, what i do wrong?
The text was updated successfully, but these errors were encountered: