Comments (7)
[deleted comment]
from protobuf-csharp-port.
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.
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.
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.
--include_imports helped.
Thanx.
Close issue please.
Original comment by [email protected]
on 24 Apr 2012 at 7:17
from protobuf-csharp-port.
Closing as requested.
Original comment by jonathan.skeet
on 24 Apr 2012 at 7:26
- Changed state: WontFix
from protobuf-csharp-port.
--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)
- "GenericArguments[0], 'SystemMessageTest', on 'Google.ProtocolBuffers.IBuilderLite`2[TMessage,TBuilder]' violates the constraint of type parameter 'TMessage'." HOT 3
- .NET Core support HOT 2
- Problem with required enum field with default value HOT 3
- Problem with Protobuf on IOS HOT 2
- fig
- Build protobuf-csharp-port with VS2015 HOT 1
- repeated member of message with suffix "List" cause compile error HOT 1
- How to access GetExtension in c# like c++ HOT 3
- out of memory HOT 5
- No support for enums 'allow_alias' feature HOT 1
- src/ProtoBench/Program.cs(254,65): error CS0103: The name `JsonReaderWriterFactory' does not exist in the current context HOT 1
- Patch for /src/ProtocolBuffers/Properties/AssemblyInfo.cs HOT 10
- Unknown fields are not serialized to XML or JSON formats HOT 6
- csharp_options.proto breaks python HOT 4
- Deserialization ignores a nonempty field HOT 6
- Support new oneof feature HOT 11
- Custom Options with more than one required field can't be used HOT 8
- CodedInputStream.ReadEnum performance HOT 3
- How can I use csharp-port 2.4 with mono in IOS? It always got a Jit error message. HOT 9
- Builder.Clear() does not clear enum fields HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-csharp-port.