I am unable to compile the standard Opc.Ua.Machinery.NodeSet2.xml into a rust nodeset.
node gen_nodeset.js --nodeset ~/dev/opcua-mtb4-server/open62541/deps/ua-nodeset/Machinery/Opc.Ua.Machinery.NodeSet2.xml --module machinery --ns 3
Generating code for module machinery
node:events:502
throw er; // Unhandled 'error' event
^
TypeError: Cannot convert object to primitive value
at insert_node (/home/pascal/dev/opcua/tools/schema/nodeset.js:256:53)
at /home/pascal/dev/opcua/tools/schema/nodeset.js:149:21
at arrayEach (/home/pascal/dev/opcua/tools/schema/node_modules/lodash/lodash.js:530:11)
at Function.forEach (/home/pascal/dev/opcua/tools/schema/node_modules/lodash/lodash.js:9410:14)
at generate_node_set_files (/home/pascal/dev/opcua/tools/schema/nodeset.js:146:7)
at exports.generate (/home/pascal/dev/opcua/tools/schema/nodeset.js:81:22)
at /home/pascal/dev/opcua/tools/schema/nodeset.js:17:40
at Parser.<anonymous> (/home/pascal/dev/opcua/tools/schema/node_modules/xml2js/lib/parser.js:308:18)
at Parser.emit (node:events:524:28)
at SAXParser.onclosetag (/home/pascal/dev/opcua/tools/schema/node_modules/xml2js/lib/parser.js:266:26)
Emitted 'error' event on Parser instance at:
at exports.Parser.Parser.parseString (/home/pascal/dev/opcua/tools/schema/node_modules/xml2js/lib/parser.js:331:16)
at Parser.parseString (/home/pascal/dev/opcua/tools/schema/node_modules/xml2js/lib/parser.js:5:59)
at exports.from_xml (/home/pascal/dev/opcua/tools/schema/nodeset.js:15:12)
at Object.<anonymous> (/home/pascal/dev/opcua/tools/schema/gen_nodeset.js:38:9)
at Module._compile (node:internal/modules/cjs/loader:1565:14)
at Object..js (node:internal/modules/cjs/loader:1708:10)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
Node.js v22.12.0
DI and my own nodeset2.xml work, so it must be something related to the machinery nodeset specifically.
I am unable to compile the standard Opc.Ua.Machinery.NodeSet2.xml into a rust nodeset.
DI and my own nodeset2.xml work, so it must be something related to the machinery nodeset specifically.