Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 359 by nn1436...@gmail.com: Incorrect path check when ends with backslah
http://code.google.com/p/protobuf/issues/detail?id=359

What steps will reproduce the problem?
1.
Create directory "c:\a" and put there .proto file and protoc.exe.

Run:

c:\a\protoc.exe c:\a\test.proto --cpp_out="c:\a\" --proto_path="c:\a\"


What is the expected output? What do you see instead?
There is a warning:

File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).

What version of the product are you using? On what operating system?
Latest.
Windows 7

Please provide any additional information below.

But if you change the command line a little you don't get it

c:\a\protoc.exe c:\a\test.proto --cpp_out="c:\a" --proto_path="c:\a"
Note: No backslash at end.


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to