More informative error msg when trying to "run" NeuroML2 files
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11
- Forks
- 11
- Avg merge
- 8h 6m
- Merged PRs (30d)
- 1
Description
e.g.
$ ./jnml ~/src/NeuroML2/examples/NML2_SingleCompHHCell.nml
jNeuroML v0.7.2
Loading: /Users/borismarin/src/NeuroML2/examples/NML2_SingleCompHHCell.nml with jLEMS...
org.lemsml.jlems.core.sim.ContentError: Cant read lems from XMLElt: neuroml, attrs: 4, body len: 0, children: 6
at org.lemsml.jlems.core.reader.AbstractLemsFactory.buildLemsFromXMLElement(AbstractLemsFactory.java:29)
at org.lemsml.jlems.core.sim.LemsProcess.readModel(LemsProcess.java:73)
at org.neuroml.export.utils.Utils.readLemsNeuroMLFile(Utils.java:227)
at org.neuroml.export.utils.Utils.loadLemsFile(Utils.java:342)
at org.neuroml.export.utils.Utils.runLemsFile(Utils.java:336)
at org.neuroml.JNeuroML.main(JNeuroML.java:270)
INFO Sep 25,2015 14:23 (INFO) Reading from: /Users/borismarin/src/NeuroML2/examples/NML2_SingleCompHHCell.nml
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the stack from org.lemsml.jlems.core.reader.AbstractLemsFactory.buildLemsFromXMLElement through LemsProcess.readModel and the JNeuroML.main entry point. Reproduce the command with the example NeuroML2 file and identify what context is available when the ContentError is created. Done means the failure reports a more informative cause than the current generic XML error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100