SynBioHub / synbiohub-lab

SynBioHub is a Web-based repository for synthetic biology, enabling users to browse, upload, and share synthetic biology designs.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Uploading SBOL2 files with interactions causes errors #15

Open Brad0440 opened 5 years ago

Brad0440 commented 5 years ago

TypeError: /home/bradley/Computational_Work/synbiohub-lab/templates/views/collection.jade:122 120| td 121| a(href=memberURLs.get(componentList[0].uri)) #{componentList[0].name}

122| button.btn.btn-sm.btn-outline-light.text-dark(id=componentList[0].name.split(' ').join('') + "_" + member_count + "_root", class="hideButton") 123| | + 124| br 125|

Cannot read property 'split' of undefined at eval (eval at exports.compile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:218:8), :3388:61) at eval (eval at exports.compile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:218:8), :4134:4) at eval (eval at exports.compile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:218:8), :6019:22) at res (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:219:38) at Object.exports.renderFile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:380:38) at Object.exports.renderFile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:370:21) at View.exports.__express [as engine] (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:417:11) at View.render (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/view.js:135:8) at tryRender (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/application.js:640:10) at Function.render (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/application.js:592:3) at ServerResponse.render (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/response.js:1008:7) at ViewCollection.render (/home/bradley/Computational_Work/synbiohub-lab/synbiohub/views/ViewCollection.ts:121:13) at Object.default_1 [as default] (/home/bradley/Computational_Work/synbiohub-lab/synbiohub/views/topLevel.ts:80:16) at

... and ...

Error: /home/bradley/Computational_Work/synbiohub-lab/templates/views/moduleDefinition.jade:55 53| != interaction.displayName 54| td

55| a(href=interaction.type, title=interaction.type) #{interaction.type} 56| if interaction.participations.length > 0 57| for participation in interaction.participations 58| tr

http://localhost:7777/user/brad0440/sensynova_repo/untitled_module/someinteraction has no type? at S2Interaction.get type [as type] (/home/bradley/Computational_Work/synbiohub-lab/node_modules/sbolgraph/sbolgraph/sbol2/S2Interaction.ts:28:19) at eval (eval at exports.compile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:218:8), :2864:48) at eval (eval at exports.compile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:218:8), :3206:4) at eval (eval at exports.compile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:218:8), :4465:22) at res (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:219:38) at Object.exports.renderFile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:380:38) at Object.exports.renderFile (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:370:21) at View.exports.__express [as engine] (/home/bradley/Computational_Work/synbiohub-lab/node_modules/jade/lib/index.js:417:11) at View.render (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/view.js:135:8) at tryRender (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/application.js:640:10) at Function.render (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/application.js:592:3) at ServerResponse.render (/home/bradley/Computational_Work/synbiohub-lab/node_modules/express/lib/response.js:1008:7) at ViewModuleDefinition.render (/home/bradley/Computational_Work/synbiohub-lab/synbiohub/views/ViewModuleDefinition.ts:77:13) at Object.default_1 [as default] (/home/bradley/Computational_Work/synbiohub-lab/synbiohub/views/topLevel.ts:80:16) at

biocad_sbol2 (6).zip

Brad0440 commented 5 years ago

The first error was because nothing had a name (my bad), but the presence of interactions still causes the second error.