Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
[deleted comment]

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I also encountered this problem. --proto_path doesn't work. You need to compile 
all files together - "ProtoGen.exe second.proto first.proto". It's poor 
variant, but it work.

Original comment by [email protected] on 23 Apr 2012 at 12:44

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
This could just be part of how the new code invokes protogen. I intend to look 
at it when I get some time...

Original comment by jonathan.skeet on 23 Apr 2012 at 1:21

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
You should be able to run:

ProtoGen.exe --include_imports second.proto

If they are in different directories, say "/sample/dir1/first.proto" and  
"/sample/dir2/second.proto" then you need to get a little more fancy...  First 
make sure second.proto includes the relative path from 'root': 
"dir1/first.proto".  Then run "ProtoGen.exe second.proto --include_imports 
--proto_path=/sample".

Original comment by [email protected] on 23 Apr 2012 at 7:45

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
--include_imports helped.
Thanx.
Close issue please.

Original comment by [email protected] on 24 Apr 2012 at 7:17

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Closing as requested.

Original comment by jonathan.skeet on 24 Apr 2012 at 7:26

  • Changed state: WontFix

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
--include_imports is the root of the issue described here.

Additionally there was some confusion about the use of --proto_path from the 
command-line.  Specifically the following command-line failed:

"ProtoGen.exe dir2/second.proto --include_imports --proto_path=/sample"

The reason is that the specification of "dir2/second.proto" must be fully 
qualified (or have the same qualifier as --proto_path).

A change was made to determine that the argument "dir2/second.proto" exists 
under the specified proto_path "/sample", and to automatically combine the 
directories prior to handing them to protoc.  This should alleviate some 
confusion about the usage; however, one should generally use fully-qualified 
paths whenever possible on the command-line.

Original comment by [email protected] on 10 Oct 2012 at 9:51

  • Changed state: Fixed

from protobuf-csharp-port.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.