everettwilson21 / protobuf-netbeans-plugin

Automatically exported from code.google.com/p/protobuf-netbeans-plugin
0 stars 0 forks source link

--proto_path=/ is not good solution on Windows #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I installed your protocol buffers netbeans plugin for Netbeans on Windows.
When I try to generate a java file from a .proto file, I get the following
error message:

running: C:\Users\Thaler\bin\protoc.exe --proto_path="/"  --java_out
"C:\projects\ProtoTest\src" "C:\projects\ProtoTest\src\prototest\Person.proto"
C:\projects\ProtoTest\src\prototest\Person.proto: File does not reside
within any path specified using --proto_path (or -I).  You must specify a
--proto_path which encompasses this file.
Exit: 1

I thing the problem is that --proto_path="/" should be --proto_path="c:\"
on Windows. However, executing

c:\projects\ProtoTest\src\prototest>C:\Users\Thaler\bin\protoc.exe
--proto_path=
"c:\"  --java_out "C:\projects\ProtoTest\src"
"C:\projects\ProtoTest\src\protote
st\Person.proto"
c:"  --java_out C:\projects\ProtoTest\src
C:\projects\ProtoTest\src\prototest\Pe
rson.proto: warning: directory does not exist.
Missing input file.

Gives some error message. Executing the same in cygwin with replacing "\"
by "/" works.

Can you give me any hints how to get your netbeans-plugin working under
windows?

Michael

Original issue reported on code.google.com by piotr.tabor on 6 Apr 2009 at 3:13

GoogleCodeExporter commented 8 years ago
Fixed (long time ago) in 1.0.2 version. Michael confirmed that the version 
works.

Original comment by piotr.tabor on 28 Jun 2009 at 11:30