crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.5k stars 1.62k forks source link

BUG: called type_id for Array(Config)+.class (Crystal::VirtualMetaclassType) (Exception) #15181

Open zw963 opened 2 weeks ago

zw963 commented 2 weeks ago

https://forum.crystal-lang.org/t/wired-compiler-error-bug-called-type-id-for-array-config-class-crystal-virtualmetaclasstype-exception/7400

You can reproduce it use Crystal 1.14.0 use following project:

https://github.com/zw963/new_app

  1. git clone https://github.com/zw963/new_app && cd new_app
  2. shards install
  3. shards build
 ╰──➤ $ shards build
Dependencies are satisfied
Building: new_app
Error target new_app failed to compile:
BUG: called type_id for Array(Config)+.class (Crystal::VirtualMetaclassType) (Exception)
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '??'
  from /home/zw963/Crystal/bin/crystal in '__crystal_main'
  from /home/zw963/Crystal/bin/crystal in 'main'
  from /usr/lib/libc.so.6 in '??'
  from /usr/lib/libc.so.6 in '__libc_start_main'
  from /home/zw963/Crystal/bin/crystal in '_start'
  from ???
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
crysbot commented 2 weeks ago

This issue has been mentioned on Crystal Forum. There might be relevant details there:

https://forum.crystal-lang.org/t/wired-compiler-error-bug-called-type-id-for-array-config-class-crystal-virtualmetaclasstype-exception/7400/5