Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
More protoc integration issues
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jmockittester  
View profile  
 More options Oct 27 2011, 10:31 am
From: jmockittester <jmockittes...@yopmail.com>
Date: Thu, 27 Oct 2011 07:31:05 -0700 (PDT)
Local: Thurs, Oct 27 2011 10:31 am
Subject: More protoc integration issues
Hey all!  I saw that you guys released 1.0.11 of the protobuf-dt, so
first, let me congratulate you on the release.  I'm still very excited
to be using it, and the bug fix that handles the folder hierarchy
issue in Windows (http://code.google.com/p/protobuf-dt/issues/detail?
id=119&can=1&q=windows).  However, I'm running into a new problem
related to imported protos when compiling.

Essentially, the "common" .proto compiles the Java class fine, but
when I attempt to compile the "extension" .proto, nothing happens.  I
did check the error log this time, but I didn't see any exceptions
being thrown from the plug-in.  I guess my first question would be, is
this functionality supposed to be there (protoc integration
for .protos importing other .protos) and if so, is there anything
different I should be doing from the regular .protos?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jmockittester  
View profile  
 More options Oct 27 2011, 10:35 am
From: jmockittester <jmockittes...@yopmail.com>
Date: Thu, 27 Oct 2011 07:35:14 -0700 (PDT)
Local: Thurs, Oct 27 2011 10:35 am
Subject: Re: More protoc integration issues
I've put a sample project up here where I'm seeing the issue, so if
anyone can get this project to work, then I clearly have some
preferences set up incorrectly.

http://www.filedropper.com/protobuf-protoc-importissue

Thanks for any help!

On Oct 27, 9:31 am, jmockittester <jmockittes...@yopmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Wright  
View profile  
 More options Oct 27 2011, 11:15 am
From: Ben Wright <compuware...@gmail.com>
Date: Thu, 27 Oct 2011 08:15:20 -0700 (PDT)
Local: Thurs, Oct 27 2011 11:15 am
Subject: Re: More protoc integration issues
I don't have time until tomorrow evening or this weekend to look into
this closer, but the scenario you describe should definitely work - I
know i have protos that import other protos compiling.

Have you setup the "import paths" in the project's Protocol Buffers
settings?

Right click on the project, select properties.  Click on Protocol
Buffers, then Import Paths, then add the folders with the required
proto import files.

There should be errors in the document editor if this isn't setup
correctly though.

Let me know if you figure out the issue before I get back around to
this in a couple of days.

On Oct 27, 10:35 am, jmockittester <jmockittes...@yopmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
protobufdttester  
View profile  
 More options Oct 28 2011, 10:40 am
From: protobufdttester <protobufdttes...@yopmail.com>
Date: Fri, 28 Oct 2011 07:40:48 -0700 (PDT)
Local: Fri, Oct 28 2011 10:40 am
Subject: Re: More protoc integration issues
Looks like Google decided to inactivate my other account.  In any
case, I'm jmockittester, and I thank you for the help Ben.  I did
forget to specify the import paths, but, unfortunately, that doesn't
appear to have resolved the issue.

Do you happen to know the reason why the protobuf-dt won't just look
on the path of the project by default?  Even if the import paths had
worked, I would think that it would be annoying to have to specify the
path of every imported proto that a person might have.

Thanks again.

On Oct 27, 10:15 am, Ben Wright <compuware...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Ruiz  
View profile  
 More options Oct 28 2011, 1:56 pm
From: Alex Ruiz <alr...@google.com>
Date: Fri, 28 Oct 2011 10:56:55 -0700
Local: Fri, Oct 28 2011 1:56 pm
Subject: Re: [protobuf-dt] Re: More protoc integration issues

I'll be also looking into this issue shortly. Thanks very much for reporting
it.

By "why the protobuf-dt won't just look on the path of the project by
default?" do you mean looking at all the folders in a project? Unfortunately
we cannot do that because we have huge projects. What we may be able to do
later is to make the editor "smarter" and look for "source folders" in JDT
projects.

Thanks,
-alex

On Fri, Oct 28, 2011 at 7:40 AM, protobufdttester <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
protobufdttester  
View profile  
 More options Oct 28 2011, 5:09 pm
From: protobufdttester <protobufdttes...@yopmail.com>
Date: Fri, 28 Oct 2011 14:09:41 -0700 (PDT)
Local: Fri, Oct 28 2011 5:09 pm
Subject: Re: More protoc integration issues
Thanks Alex.  I was actually thinking more along the lines of using
the import path in concert with the project path.  Maybe this isn't
the preferred way to do this, but I specify the full folder hierarchy
in my import statement.  For example, in the sample project I
provided, the import looks like this:

import "src/main/resources/testpackage/protobuf/common/Common.proto";

So, if the protobuf-dt checked the project_loc/src/main/resources/
testpackage/protobuf/common/Common.proto, it should be able to find
it.  It's possible there's some underlying nuances that I'm not
familiar with that make this more difficult than it appears, but that
would be my $0.02.

Thanks again for the help!

On Oct 28, 12:56 pm, Alex Ruiz <alr...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »