Closed ComFreek closed 5 years ago
devel
allContent
val addedArchives = ctrl.addArchive(File("path-to-lfx")) addedArchives.foreach(archive => { // Trigger reading all content into memory archive.allContent })
The following exception is thrown at runtime:
An exception or error caused a run to abort: parse error: document path expected: http://gl.mathhub.info/MMT/LFX?FeatureTest parse error: document path expected: http://gl.mathhub.info/MMT/LFX?FeatureTest at info.kwarc.mmt.api.Path$.parseD(Path.scala:441) at info.kwarc.mmt.api.archives.Archive.$anonfun$allContent$6(Archive.scala:172)
It stems from the parseD call in allContent: https://github.com/UniFormal/MMT/blob/b62c15121b232ff0eb2895c35c3b9b38be4476ff/src/mmt-api/src/main/info/kwarc/mmt/api/archives/Archive.scala#L172
parseD
https://github.com/UniFormal/MMT/commit/d889c17d425ab0c14ff5a3ce18bb872a6d80f51f simply ignores paths not parseable as DPaths.
devel
MMT: https://github.com/UniFormal/MMT/commit/c79f19704a077111b2b9f0c6752302c1ea0c9172allContent
The following exception is thrown at runtime:
It stems from the
parseD
call inallContent
: https://github.com/UniFormal/MMT/blob/b62c15121b232ff0eb2895c35c3b9b38be4476ff/src/mmt-api/src/main/info/kwarc/mmt/api/archives/Archive.scala#L172