davidpcaldwell / slime

Mozilla Public License 2.0
2 stars 1 forks source link

Running part of HTML definition not working #125

Open davidpcaldwell opened 4 years ago

davidpcaldwell commented 4 years ago

Test case:

./jsh.bash contributor/jrunscript.jsh.js -part jrunscript/java/host:join

Results in:

[jsh] Script halted because of 1 errors.

[jsh] /Users/dcaldwell/src/host/zipcar-me/project/kit/slime/loader/api/unit.js:857: Error: No child named null when trying to find []; parts are 1 (/Users/dcaldwell/src/host/zipcar-me/project/kit/slime/loader/api/unit.js#857)
org.mozilla.javascript.JavaScriptException: Error: No child named null when trying to find []; parts are 1 (/Users/dcaldwell/src/host/zipcar-me/project/kit/slime/loader/api/unit.js#857)
davidpcaldwell commented 4 years ago

Problem is caused by misunderstanding how the element paths worked – not taking into account that jsapi names also count as element paths. Leaving open until that change is documented.

davidpcaldwell commented 4 years ago

Migrated from Bitbucket issue ID 332