Open Caid11 opened 2 months ago
Ah, I know about this bug but haven't been able to find the culprit yet. You can work around it by importing std/time/timestamp
explicitly I think.
I tried importing timestamp, but I still see the error, unfortunately.
I also opened #501 on a very similar and possibly related issue, although it produces a different error message.
This is what I've had to import for a similar error before: (using now()
).
import std/time
import std/num/ddouble
import std/time/instant
import std/time/chrono
import std/time/duration
I'm not sure if all of those are actually necessary.
I see this error when I try to compile my code:
Some notes:
--rebuild
The failing code is here: https://github.com/Caid11/Functional-Program-Studio/tree/internal-error-cannot-find-type/blockbuilder
It only compiles on Windows and is a large reproducer, but I'm not sure how to meaningfully reduce it (suggestions are welcome).