New issue 340 by mr.ru...@web.de: ../src/google/protobuf/descriptor.proto:
No such file or directory
http://code.google.com/p/protobuf/issues/detail?id=340
What steps will reproduce the problem?
1. installing protoc
2. goto java directory
3. type: protoc --java_out=src/main/java -I../src
\ ../src/google/protobuf/descriptor.proto
What is the expected output? What do you see instead?
should compile descriptor.proto,
but ../src/google/protobuf/descriptor.proto: No such file or directory
What version of the product are you using? On what operating system?
protobuf 2.4.1 on Mac OS X 10.6.8
Please provide any additional information below.
when i change directory from java to ../src/google/protobuf the file
descriptor.proto exists, so how could there be no such file or directory?
Comment #1 on issue 340 by
liuj...@google.com: ../src/google/protobuf/descriptor.proto: No such file
or directory
http://code.google.com/p/protobuf/issues/detail?id=340
The proto file path should be relative to the -I path. (and all the import
path should be relative to the -I parameter, without using "..") The common
practice is to set the -I as your project root directory, and you use
relative path to the -I directory in your .proto files.