[freedict] Re: Ding2tei and Ding deu-eng/eng-deu 1.9

  • From: Sebastian Humenda <shumenda@xxxxxx>
  • To: freedict@xxxxxxxxxxxxx
  • Date: Tue, 13 Apr 2021 22:45:30 +0200

Hi Einhard

Einhard Leichtfuß schrieb am 12.04.2021,  8:21 +0200:

On 11/04/2021 15:57, Sebastian Humenda wrote:
-   There's a new version 1.9 and Ding2tei fails converting it. The error
      output is rather sparse:
          ding2tei: Parse error at line 3264, column 31.
          CallStack (from HasCallStack):
            error, called at ./Language/Ding/Parser/Line.hs:2490:3 in 
main:Language.Ding.Parser.Line

The parse errors are unfortunately generally this minimal.  I expect the
parse errors to simply be inconsistencies with the format that I imposed on
the data, as there are already many.  Fixing such inconsistencies is
generally easy; their number matters though.

By the way, do you think there is much value in better error messages?

I do like to at least understand what happened where. Given I would be fluent
in Haskell, I would be still left solely guessing what went wrong. If you say
there's not much value in these error message, then maybe print: "Parse error
in <FILE>:<LINENO>" (and maybe even col). This would make me look for that
line and compare with others.

The quoted error says:
Parse error at line 3264, column 31

I could add something like "in the input file" or "in ${INPUT_FILE}", if that
helps.

Then add at least the file name. I would have expected that reporting the
error is not so much of a problem, but that's ok.

Thanks
Sebastian

Attachment: signature.asc
Description: PGP signature

Other related posts: