GithubHelp home page GithubHelp logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
"package", "rpc" and "service" are tokens declared in the lexer ... which is 
why its
complaining for mismatched input.  I'll try to find a workaround for that.

The fix for the enum having an optional semi-colon shouldn't be hard.

I believe forward references defined later in the file would work.  It might 
have
been the issue with the reserved tokens that is throwing the errors.

Btw, your message got cut short ... ending with "finally, it doesn't like "


Original comment by [email protected] on 12 May 2010 at 6:47

  • Changed state: Accepted

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Committed partial fix (enum with trailing semicolon) @ rev 704

Original comment by [email protected] on 12 May 2010 at 7:03

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
I've committed the fix for bugs mentioned. (rev 709)

Initially, the plan was to ignore the extensions.
Not yet sure about the approach to enable that.
Also, groups are also ignored.

Thanks for reporting.  Let me know if that works for you.

Original comment by [email protected] on 12 May 2010 at 11:38

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
That works. Thanks for the speedy turnaround. The remaining problem is that 
some of 
the generated code is missing an import. 
http://code.google.com/p/wave-
protocol/source/browse/src/org/waveprotocol/wave/federation/federation.protodeve
l 
is the input, the output fails because it's missing 
UninitializedMessageException import.

Original comment by [email protected] on 12 May 2010 at 5:13

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
svn up.  Should be ok now.

Thanks!

Original comment by [email protected] on 12 May 2010 at 5:49

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Nope. Now I get more brokenness - e.g. 
   [javac] Compiling 14 source files to /Users/arb/src/wave/fedone-json/build/bean
    [javac] /Users/arb/src/wave/fedone-
json/proto_bean_src/org/waveprotocol/wave/federation/ProtocolWaveletOperation.j
ava:179: ProtocolWaveletOperation() is already defined in 
org.waveprotocol.wave.federation.ProtocolWaveletOperation
    [javac]     public ProtocolWaveletOperation(
    [javac]            ^
    [javac] /Users/arb/src/wave/fedone-
json/proto_bean_src/org/waveprotocol/wave/federation/ProtocolDocumentOperatio
n.java:1250: ProtocolDocumentOperation() is already defined in 
org.waveprotocol.wave.federation.ProtocolDocumentOperation
    [javac]     public ProtocolDocumentOperation(
    [javac]            ^
    [javac] /Users/arb/src/wave/fedone-
json/proto_bean_src/org/waveprotocol/wave/examples/fedone/waveserver/Wavelet
Snapshot.java:179: WaveletSnapshot() is already defined in 
org.waveprotocol.wave.examples.fedone.waveserver.WaveletSnapshot
    [javac]     public WaveletSnapshot(
    [javac]            ^
    [javac] /Users/arb/src/wave/fedone-
json/proto_bean_src/org/waveprotocol/wave/federation/ProtocolWaveletOperation.j
ava:274: missing return value
    [javac]         return 
    [javac]         ^
    [javac] /Users/arb/src/wave/fedone-
json/proto_bean_src/org/waveprotocol/wave/federation/ProtocolDocumentOperatio
n.java:1309: missing return value
    [javac]         return 
    [javac]         ^
    [javac] /Users/arb/src/wave/fedone-
json/proto_bean_src/org/waveprotocol/wave/examples/fedone/waveserver/Wavelet
Snapshot.java:250: missing return value
    [javac]         return 
    [javac]         ^
    [javac] 6 errors

Attached one of the files as an example

Original comment by [email protected] on 12 May 2010 at 6:39

Attachments:

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
While you're there - it's useful in the real protoc output that it includes a 
line 
"generated from file x/y/z.proto" :)


Original comment by [email protected] on 12 May 2010 at 6:41

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Should be fixed now.

Yea it would be useful.
Will add it.


Original comment by [email protected] on 12 May 2010 at 7:38

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
The "package" keyword error would probably be showing up in your IDE right 
about now :)

Original comment by [email protected] on 12 May 2010 at 7:42

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
All (hopefully) of the fix is in trunk.

Add the option "underscore_on_vars" to avoid the keyword clash on java.
The option to include the source path (on the header) is in
http://code.google.com/p/protostuff/wiki/CompilerOptions as well.

Let me know if you still encounter problems.

Thanks!

Original comment by [email protected] on 13 May 2010 at 10:37

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024

Original comment by [email protected] on 20 May 2010 at 9:33

  • Changed state: Fixed

from protostuff-googlecode-exported.

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.