[x3d-public] Rereporting X3dToNodeJS.xslt possible divergent error

Don Brutzman brutzman at nps.edu
Sun Jun 14 23:07:11 PDT 2020


John, I haven't announced a new release after the major refactoring.  Did a number of improvements today to X3dForWebAuthors archive, not possible to overload X3D node names with an X3D file name.

Not sure what the parent of 'addShaders' might be because you have cropped it here.

had trouble telling what your intent was when inspecting my local code.  should be workable since it came from the master smoke-test program.

probably want to compare to the corresponding java code.

can you run in debug mode?

can we look at it together Monday?  good luck!

On 6/14/2020 10:03 PM, John Carlson wrote:
> Tis a puzzle.  Perhaps missing material?
> 
> $ node examples/HelloWorldProgramOutput.Node.js
> C:\x3d-code\www.web3d.org <http://www.web3d.org>\x3d\stylesheets\java\node\examples\HelloWorldProgramOutput.Node.js:399
>          .addShaders((new autoclass.ProtoInstance("TestShader3", "ShaderProto")).
> setDEF("TestShader3").setName("ShaderProto"))
>          ^
> 
> TypeError: Cannot read property 'addShaders' of null
>      at HelloWorldProgramOutput_Node.initialize (C:\x3d-code\www.web3d.org <http://www.web3d.org>\x3d\stylesheets\java\node\examples\HelloWorldProgramOutput.Node.js:399:9)
>      at new HelloWorldProgramOutput_Node (C:\x3d-code\www.web3d.org <http://www.web3d.org>\x3d\stylesheets\java\node\examples\HelloWorldProgramOutput.Node.js:123:10)
>      at Object.<anonymous> (C:\x3d-code\www.web3d.org <http://www.web3d.org>\x3d\stylesheets\java\node\e
> xamples\HelloWorldProgramOutput.Node.js:470:1)
> ?[90m    at Module._compile (internal/modules/cjs/loader.js:1176:30)?[39m
> ?[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:1
> 0)?[39m
> ?[90m    at Module.load (internal/modules/cjs/loader.js:1040:32)?[39m
> ?[90m    at Function.Module._load (internal/modules/cjs/loader.js:929:14)?[39m
> ?[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_ma
> in.js:71:12)?[39m
> ?[90m    at internal/main/run_main_module.js:17:47?[39m
> 
> coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/node <http://www.web3d.org/x3d/stylesheets/java/node>
> $ node.exe !$
> node.exe examples/HelloWorldProgramOutput.Node.js
> WARNING_MESSAGE: ProtoInstance name='ShaderProto' DEF='TestShader3' USE='' is missing containerField relationship to parent node, assuming containerField='shaders' from initial node in corresponding ProtoDeclare. Need to fix ProtoInstance definition in model source.
> HelloWorldProgramOutput_Node execution self-validation test results:
> WARNING_MESSAGE: ProtoInstance name='ShaderProto' DEF='TestShader3' USE='' is missing containerField relationship to parent node, assuming containerField='shaders' from initial node in corresponding ProtoDeclare. Need to fix ProtoInstance definition in model source.
> 
> 
> coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/node <http://www.web3d.org/x3d/stylesheets/java/node>
> $ node --version
> v14.2.0
> 
> coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/node <http://www.web3d.org/x3d/stylesheets/java/node>
> $ node.exe --version
> v14.2.0
> 
> coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/node <http://www.web3d.org/x3d/stylesheets/java/node>
> $ type node.exe
> node.exe is hashed (/c/Program Files/nodejs/node.exe)
> 
> coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/node <http://www.web3d.org/x3d/stylesheets/java/node>
> $ type node
> node is aliased to `winpty node.exe'
> 

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list