Open ellmetha opened 3 months ago
Looks like you might have ran into https://github.com/crystal-lang/crystal/issues/3770 however there is actually a group of related issues with similar stack traces so it could fall under one of those too. Based on the described issue and the stack trace, it looks like the source is here:
which could point to one of many methods using the M
generic.
Thanks for the info! Yes, there are also some issues (such as https://github.com/crystal-lang/crystal/issues/6588) that seem to suggest this may be related to generics inheritance (which Marten relies on for its query set mechanism). I suspect this may be related.
Description
It appears trying to compile a Marten project in debug mode (with the
--debug
option) results in a compilation error. The problem might be on the Crystal compiler side of things, but let's investigate.Versions
How to reproduce
marten new project testproject
cd testproject
shards install
crystal build src/server.cr -o bin/server --debug
The following error is returned: