Re: [protobuf] Circular package import problem

2011-02-22 Thread David Yu
On Wed, Feb 23, 2011 at 2:29 AM, Kenton Varda  wrote:

> On Tue, Feb 8, 2011 at 4:14 AM, David Yu  wrote:
>
>> Hmm, so protoc doesn't handle cyclic imports as well.
>> Are there plans to support it in the near future?
>>
>
> No, cyclic imports are not likely to be supported.  Many programming
> languages do not support them, so supporting them in .proto would make it
> hard to support those languages.
>
Makes sense.  Thanks!

> Not to mention, handling cyclic dependencies just between declarations in a
> single .proto file is already ridiculously complicated.
>



-- 
When the cat is away, the mouse is alone.
- David Yu

-- 
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.



Re: [protobuf] Circular package import problem

2011-02-22 Thread Kenton Varda
On Tue, Feb 8, 2011 at 4:14 AM, David Yu  wrote:

> Hmm, so protoc doesn't handle cyclic imports as well.
> Are there plans to support it in the near future?
>

No, cyclic imports are not likely to be supported.  Many programming
languages do not support them, so supporting them in .proto would make it
hard to support those languages.  Not to mention, handling cyclic
dependencies just between declarations in a single .proto file is already
ridiculously complicated.

-- 
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.



Re: [protobuf] Circular package import problem

2011-02-08 Thread David Yu
On Tue, Feb 8, 2011 at 6:36 AM, Kenton Varda  wrote:

> With protoc (the standard compiler), this should produce a simple error.
>  Since Ken said he "got StackOverFlow exception", it sounds like he's using
> some other compiler (not written in C++).

Hmm, so protoc doesn't handle cyclic imports as well.
Are there plans to support it in the near future?

>
>
> On Mon, Feb 7, 2011 at 10:26 AM, Pherl Liu  wrote:
>
>> You probably need to break up your proto files to eliminate the circular
>> dependency.. (i.e. have multiple .proto files for a package, and only import
>> necessary .proto files).
>>
>>
>> On Mon, Feb 7, 2011 at 5:42 PM, Ken  wrote:
>>
>>> Hi,
>>>
>>> I have two proto files: A.proto and B.proto. If I import package B in
>>> A and import A in B, I got StackOverFlow exception during compiling.
>>> Does anyone know any sulotion for it?
>>>
>>> Thanks,
>>>
>>> Ken
>>>
>>> --
>>> 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.
>>>
>>>
>>  --
>> 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.
>>
>
>  --
> 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.
>



-- 
When the cat is away, the mouse is alone.
- David Yu

-- 
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.



Re: [protobuf] Circular package import problem

2011-02-07 Thread Kenton Varda
With protoc (the standard compiler), this should produce a simple error.
 Since Ken said he "got StackOverFlow exception", it sounds like he's using
some other compiler (not written in C++).

On Mon, Feb 7, 2011 at 10:26 AM, Pherl Liu  wrote:

> You probably need to break up your proto files to eliminate the circular
> dependency.. (i.e. have multiple .proto files for a package, and only import
> necessary .proto files).
>
>
> On Mon, Feb 7, 2011 at 5:42 PM, Ken  wrote:
>
>> Hi,
>>
>> I have two proto files: A.proto and B.proto. If I import package B in
>> A and import A in B, I got StackOverFlow exception during compiling.
>> Does anyone know any sulotion for it?
>>
>> Thanks,
>>
>> Ken
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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.



Re: [protobuf] Circular package import problem

2011-02-07 Thread Pherl Liu
You probably need to break up your proto files to eliminate the circular
dependency.. (i.e. have multiple .proto files for a package, and only import
necessary .proto files).

On Mon, Feb 7, 2011 at 5:42 PM, Ken  wrote:

> Hi,
>
> I have two proto files: A.proto and B.proto. If I import package B in
> A and import A in B, I got StackOverFlow exception during compiling.
> Does anyone know any sulotion for it?
>
> Thanks,
>
> Ken
>
> --
> 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.
>
>

-- 
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.