Closed jumper149 closed 2 years ago
Thanks for reporting! Unfortunately, there's an upstream issue with GHC 9.0.2 that prevents me from looking at the --ddump-hie-file
dump and debugging this issue, and your project doesn't compile with 9.2.2 or 8.10.7, so I can't investigate further atm. I briefly tried to whip up a minimal example, but can't seem to reproduce it there...
I think I have a similar (the same?) issue with this project: https://github.com/L7R7/gitlab-ci-build-statuses
The project writes the HIE file into .hie
so I run calligraphy
in this directory which gives me this error:
calligraphy
Invalid bounds:
from [8791026472627208724] (ValueDecl) SrcLoc "src/Metrics/Health.hs" 34 1 SrcLoc "src/Metrics/Health.hs" 34 1
The project compiles with GHC 8.10.7 and I installed calligraphy with this GHC version as well
If I go ahead end exclude this module and all others that lead to the same error:
calligraphy -e "Metrics.Health" -e "Config.Config" -e "Core.BuildStatuses" -e "Core.Runners" -p out.png
It produces an empty png file
@L7R7 Thanks, I was able to build your project and isolate the culprit. With #3 your project works on my machine. When CI passes, I'll merge and make a new version.
@jumper149 When you have a chance, please confirm if this also fixes the problem on your end!
WIth version 0.1.1 it runs fine and produces a png that's 3.5MB in size, but when I open it, it's still "empty" (I see a gray canvas). It's the same when outputting an SVG.
Since it doesn't fail anymore, that's probably something for a new issue?
when I open it, it's still "empty"
I'm not sure what's going on. With calligraphy --hidden -p out.png
I get this file, that's definitely not emtpy:
Ah, I got fooled by my image viewer. It's not empty for me, but it was shown to me in a weird way. I'm sorry, my bad!
@jumper149 When you have a chance, please confirm if this also fixes the problem on your end!
Works like a charm :)
Really cool project!
So, I tried this out on my homepage: https://github.com/jumper149/homepage/tree/810d5c1d247b75ed1bc4d9e719698de7db3e1d5e
I went ahead and tried to make sure, that I compile calligraphy with the same compiler.
Then I followed the tutorial
This results in:
This works: