Comments (11)
"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.
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.
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.
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.
svn up. Should be ok now.
Thanks!
Original comment by [email protected]
on 12 May 2010 at 5:49
from protostuff-googlecode-exported.
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.
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.
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.
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.
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.
Original comment by [email protected]
on 20 May 2010 at 9:33
- Changed state: Fixed
from protostuff-googlecode-exported.
Related Issues (20)
- Would like support for repeated accessors with out "List" appeneded
- Enter one-line summary HOT 2
- getSchema() of java.util.Properties fails HOT 2
- optimize xml format
- Enum alias support
- YamlOutput bug on repeated message fields HOT 1
- Deserializing a message which is protostuff-runtime serialized and has custom class as field HOT 3
- Visual disturbance of @Deprecated annotation HOT 12
- Support for newing object instances on Android 4.3+ devices HOT 2
- ConcurrentLinkedDeque support HOT 1
- Produces uncompilable Java when a field is called "default" HOT 4
- 1.0.7 Build error: ProtoParserTest fails HOT 2
- protostuff-parser and protostuff-compiler disagree on required version of antlr
- Optimize ProtobufOuput for small nested messages (max size of 127) HOT 1
- How can I serialize a negative int32 to the protobuf format using zigzag encoding? HOT 2
- How to Ignore Array of Null Values in JSON
- enums_by_name does not seem to be working using maven plugin
- The value of DataInput.readByte() should not be eof-checked since that method throws EOFException HOT 1
- Wrong output path is generated in Windows for .java files HOT 3
- Unable to parse proto enum containing hex constants HOT 1
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 protostuff-googlecode-exported.