-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: Module validation failed #6253
Comments
@Sija Interesting, Does this error show any specific file/line? |
@faustinoaq none I can find, with
|
Ahh, finally with
|
Funny, here is another undocumented thing to debug this kind of error: One can do |
@bew Nice find! I'll dig into that and report back. |
Interestingly, the latter exception relates to https://github.com/amberframework/amber/blob/v0.8.0/src/amber/server/server.cr#L63, if I comment that line we're back to square/exception one. Mentioned |
Seems like the second error has been fixed by #6346 and/or possibly others. |
Interestingly now it fails with:
Edit: fixed in #6499 |
#codetriage I boiled it down to a simple example: puts typeof(ENV.to_h) Running on 0.25.1, we get Here's a console with old vs new, showing the output change. $ crystal --version
Crystal 0.25.1 (2018-06-30)
LLVM: 5.0.2
Default target: x86_64-apple-macosx
$ crystal eval 'puts typeof(ENV.to_h)'
Hash(String, String)
$ ~/workspace/miketheman/crystal/bin/crystal --version
Using compiled compiler at `.build/crystal'
Crystal 0.25.1+109 [ff3225fad] (2018-08-06)
LLVM: 6.0.1
Default target: x86_64-apple-macosx
$ ~/workspace/miketheman/crystal/bin/crystal eval 'puts typeof(ENV.to_h)'
Using compiled compiler at `.build/crystal'
Hash(Char, Char) The signature has between 0.25.1 and ff3225f - and I used Tagging @straight-shoota and @RX14 who committed that changeset - maybe they can shed some light on this? |
Yeah, this seems to be caused by |
I doubt the original error has been fixed - just masked by a compile error which has now been solved. |
I've just managed to narrow it down to extending |
My example from #6997 (comment) also includes subclasses of Maybe crystal-lang/shards#230 should be reconsidered? |
@straight-shoota Well, guess what, there was a PR fixing it, but @ysbaddaden decided it was a nitpicking... Perhaps it's not after all? :P Edit: you've beat me by a minute, 🎩 for the good memory :) All in all it's still avoiding the issue instead of fixing it, but I guess it's better that way until someone (@asterite - thinking of you!) will be brave enough to tackle the root cause of it. |
I have a hard time isolating the code responsible for the issue.
Happens with Crystal 0.26.0, Amber 0.8 and raven.cr (
develop
branch) on macOS.The text was updated successfully, but these errors were encountered: