Created
May 2, 2018 08:23
-
-
Save gogolxdong/aa58f6f52cba398389c9a71aa53ac1b4 to your computer and use it in GitHub Desktop.
merkledag.proto and error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package merkledag.pb; | |
import "code.google.com/p/gogoprotobuf/gogoproto/gogo.proto"; | |
option (gogoproto.gostring_all) = true; | |
option (gogoproto.equal_all) = true; | |
option (gogoproto.verbose_equal_all) = true; | |
option (gogoproto.goproto_stringer_all) = false; | |
option (gogoproto.stringer_all) = true; | |
option (gogoproto.populate_all) = true; | |
option (gogoproto.testgen_all) = true; | |
option (gogoproto.benchgen_all) = true; | |
option (gogoproto.marshaler_all) = true; | |
option (gogoproto.sizer_all) = true; | |
option (gogoproto.unmarshaler_all) = true; | |
// An IPFS MerkleDAG Link | |
message PBLink { | |
// multihash of the target object | |
optional bytes Hash = 1; | |
// utf string name. should be unique per object | |
optional string Name = 2; | |
// cumulative size of target object | |
optional uint64 Tsize = 3; | |
} | |
// An IPFS MerkleDAG Node | |
message PBNode { | |
// refs to other objects | |
repeated PBLink Links = 2; | |
// opaque user data | |
optional bytes Data = 1; | |
} | |
Errors: "Unable to map onto output with error on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Either operation failed: neither operation matched | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Either operation failed: neither operation matched | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Repeat operation failed: Not enough elements matched. Expected at least 1 but got only 0 on input "package merkledag.pb;" | |
Either operation failed: neither operation matched | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Repeat operation failed: Not enough elements matched. Expected at least 1 but got only 0 on input "package merkledag.pb;" | |
Either operation failed: neither operation matched | |
Unable to map onto output with error on input "package merkledag.pb;" | |
Both operation failed: Unable to match first of two parsers on input "package merkledag.pb;" | |
/root/.nimble/pkgs/protobuf-0.1.2/protobuf/private/parse.nim(51, 23): Character set parser couldn't match any characters with the charset {32,9, 11, 13, 10, 12} on input "package merkledag.pb;"" | |
stack trace: (most recent call last) | |
/root/.nimble/pkgs/protobuf-0.1.2/protobuf.nim(797) parseProtoFile | |
/root/.nimble/pkgs/protobuf-0.1.2/protobuf/private/parse.nim(222) parseToDefinition | |
/root/.nimble/pkgs/protobuf-0.1.2/protobuf/private/parse.nim(204) expandToFullDef | |
main.nim(16, 15) template/generic instantiation from here | |
/root/.nimble/pkgs/protobuf-0.1.2/protobuf/private/parse.nim(204, 32) Error: attempt to access a nil address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment