-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
When I run capnp compiler of Capnproto 1.0 version, I am getting
TypeError: Cannot create property 'pos' on string 'AppContext_DeviceOrientation'
at setTextRangePos (/private/var/tmp/.../node_modules/typescript/lib/typescript.js:21342:19)
at Object.setTextRangePosEnd (/private/var/tmp/.../node_modules/typescript/lib/typescript.js:21360:32)
at createNodeArray (/private/var/tmp/.../node_modules/typescript/lib/typescript.js:22985:16)
at Object.createEnumDeclaration (/private/var/tmp/.../node_modules/typescript/lib/typescript.js:25548:28)
at Object.createEnumDeclaration (/private/var/tmp/.../node_modules/typescript/lib/typescript.js:3138:29)
at generateEnumNode (/private/var/tmp/.../node_modules/capnpc-ts/src/generators.js:117:36)
at generateNode (/private/var/tmp/.../node_modules/capnpc-ts/src/generators.js:159:13)
at /private/var/tmp/.../node_modules/capnpc-ts/src/generators.js:148:32
at Array.forEach (<anonymous>)
at Object.generateNode (/private/var/tmp/.../node_modules/capnpc-ts/src/generators.js:148:17)
This happens for all .capnp files. The command that I use to run is
bin/external/capnproto/capnp compile --verbose --no-standard-import -o./node_modules/capnpc-js/bin/capnpc-js.js:bazel-out/darwin_arm64-fastbuild/bin -Iexternal/capnproto/c++/src -Ithird_party/capnpcs/compiler -Iexternal/capnproto_java/compiler/src/main/schema .../app.capnp
Any tips on how I can help debug this issue? Has anyone tried the latest capnproto version with capnp-ts? I tried running my C++ only executables and they run ok.
Metadata
Metadata
Assignees
Labels
No labels