Skip to content
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

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

Open
zw963 opened this issue Nov 11, 2024 · 1 comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc.

Comments

@zw963
Copy link
Contributor

zw963 commented Nov 11, 2024

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
@zw963 zw963 added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Nov 11, 2024
@crysbot
Copy link

crysbot commented Nov 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc.
Projects
None yet
Development

No branches or pull requests

2 participants