orgstat icon indicating copy to clipboard operation
orgstat copied to clipboard

Top level error occured: Prelude.minimum: empty list

Open Acentelles opened this issue 6 years ago • 2 comments

When running orgstat --conf-path ./config.yaml, I'm getting the following error.

[Info] [2019-11-08 20:27:24.04 UTC] Processing output curWeekFullTimeline
[Info] [2019-11-08 20:27:24.05 UTC] This output will be written into: /home/alberto/Dropbox/org/stat/2019-11-08-20-27-24
[Error] [2019-11-08 20:27:24.05 UTC] Top level error occured: Prelude.minimum: empty list

I've modified my .org file a couple of times to narrow the space but keep getting the same error shown above.

Acentelles avatar Nov 08 '19 20:11 Acentelles

Hi @Acentelles! Apparently it comes from here:

    (from,to) =
        let c = concat $ org ^.. traverseTree . orgClocks
        in (minimum (map cFrom c), maximum (map cTo c))

Which could mean that for some reasons no org clocks were parsed. Might be a deeper parsing error. Could you find the smallest possible org file that gives rise to this error?

volhovm avatar Nov 08 '19 22:11 volhovm

Hi @Acentelles again, is this still relevant?

volhovm avatar Dec 31 '20 18:12 volhovm