Closed GoogleCodeExporter closed 9 years ago
This is a known issue with the protocol buffer compiler, protoc. It is not a
bug in the Eclipse plug-in. Unfortunately, there is no workaround we can
provide.
Original comment by alr...@google.com
on 23 May 2012 at 11:27
A quick test shows that protoc *can* compile proto files with spaces in the
path, if quotes are placed around the parameters. Compare the two examples here:
C:\Temp>"H:\workspace\libraries\Protocol buffers
2.4.1\protoc-2.4.1-win32\protoc.exe" --proto_path=C:\Temp\Path with spaces\src
--java_out=C:\Temp\Path with spaces\src-gen C:\Temp\Path with
spaces\src\protobuf\messages.proto
C:\Temp\Path: warning: directory does not exist.
with: No such file or directory
C:\Temp>"H:\workspace\libraries\Protocol buffers
2.4.1\protoc-2.4.1-win32\protoc.exe" "--proto_path=C:\Temp\Path with
spaces\src" "--java_out=C:\Temp\Path with spaces\src-gen" "C:\Temp\Path with
spaces\src\protobuf\messages.proto"
(nothing printed on stdout or stderr, but Messages.java is created and looks
correct)
Using protoc 2.4.1 on Windows XP.
Original comment by Thomas.M...@telsis.com
on 23 Oct 2012 at 9:19
Issue 233 has been merged into this issue.
Original comment by alr...@google.com
on 13 Dec 2012 at 3:39
Can you elaborate more why a fix is not feasible? On first glance it kind of
does look like a problem with the Eclipse plug-in :)
Looks like simply changing the logic here to properly escape command line
arguments should do the trick:
https://code.google.com/p/protobuf-dt/source/browse/com.google.eclipse.protobuf.
ui/src/com/google/eclipse/protobuf/ui/protoc/command/ProtocCommand.java
Thanks
Original comment by ovel...@google.com
on 10 Mar 2013 at 2:43
I say this IS a bug. Eclipse supports paths with spaces - so should this plugin.
Original comment by dam...@aeromac.com
on 25 Mar 2014 at 9:14
Original issue reported on code.google.com by
m...@thzhang.co.uk
on 22 May 2012 at 2:39