hassanakbar4 / tractive-test

0 stars 0 forks source link

prep tools error lack context #371

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 6 years ago

component_Version_3_cli_txt resolution_fixed type_enhancement | by miek@miek.nl


If the preptools fails it says:

learninggo.xml(0): Warning: Invalid document before running preptool: Element li has extra content: t

This is really hard to debug without an actual line number, esp, when xmllint doesn't complain (although that is run without the dtd being there).


Issue migrated from trac:371 at 2021-10-20 18:29:29 +0500

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Replying to [#371 miek@…]:

If the preptools fails it says:

learninggo.xml(0): Warning: Invalid document before running preptool: Element li has extra content: t

This is really hard to debug without an actual line number, esp, when xmllint doesn't complain (although that is run without the dtd being there).

Agreed. It is unfortunately hard to do better when the underlying library doesn't provide more information :-(

Once we're past incorrect behaviour and schema tweaks, I could investigate the use of an alternative validator if the primary one doesn't provide enough information.

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


I just tried this with the learninggo-2.xml file from #372, but with that file the warnings that occur has line number indications. Will need the original input file in order to look more at this.

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


The listing of validation errors has been substantially improved in [2585].