Issue 340 in protobuf: ../src/google/protobuf/descriptor.proto: No such file or directory

475 views
Skip to first unread message

prot...@googlecode.com

unread,
Oct 21, 2011, 9:48:08 AM10/21/11
to prot...@googlegroups.com
Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

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?

prot...@googlecode.com

unread,
Nov 7, 2011, 4:18:04 AM11/7/11
to prot...@googlegroups.com
Updates:
Status: Invalid

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.

Reply all
Reply to author
Forward
0 new messages