volhovm / orgstat

Statistics visualizer for org-mode
GNU General Public License v3.0
98 stars 6 forks source link

Top level error occured: Prelude.minimum: empty list #11

Open Acentelles opened 4 years ago

Acentelles commented 4 years ago

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.

volhovm commented 4 years ago

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 commented 3 years ago

Hi @Acentelles again, is this still relevant?