LEMS / LEMS/jLEMS

More informative error msg when trying to "run" NeuroML2 files

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.