-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getOneOfs() oneofs cardinality not known! #643
Comments
|
Hi, thanks for the feedback! I think we can improve the error msg to make it more clear. About this issue, I believe there maybe a message which has multiple oneofs like: message TestRequest { uint32 test_num = 1; oneof test_oneof { If there's a place like this, they have to combine into one. |
message IncomingInFlightPacket { Here's the place went wrong |
Error: getOneOfs() oneofs cardinality not known!
at getOneOfs (/root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/ast/main/encoding/proto/types.js:162:15)
at createProtoType (/root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/ast/main/encoding/proto/interface/proto.js:59:42)
at buildBaseTypeScriptInterface (/root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/telescope/main/build.js:41:49)
at /root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/telescope/main/build.js:118:58
at Array.forEach ()
at TelescopeParseContext.buildBase (/root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/telescope/main/build.js:115:20)
at /root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/telescope/main/generators/create-types.js:46:17
at Array.map ()
at plugin (/root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/telescope/main/generators/create-types.js:43:35)
at /root/gencode/node_modules/.pnpm/@cosmology[email protected]/node_modules/@cosmology/telescope/main/builder.js:106:39
https://github.com/sunriselayer/sunrise/tree/main/proto/sunrise
https://github.com/sunriselayer/sunrise/blob/effea572e0b2661fca71a8bb88b8af530681ae57/proto/sunrise/swap/route.proto#L40
https://github.com/sunriselayer/sunrise/blob/effea572e0b2661fca71a8bb88b8af530681ae57/proto/sunrise/swap/metadata.proto#L51
https://github.com/sunriselayer/sunrise/blob/effea572e0b2661fca71a8bb88b8af530681ae57/proto/sunrise/swap/in_flight_packet.proto#L39
https://github.com/sunriselayer/sunrise/blob/effea572e0b2661fca71a8bb88b8af530681ae57/proto/sunrise/swap/in_flight_packet.proto#L43
The text was updated successfully, but these errors were encountered: