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

Failing spec on crystal master #406

Closed
straight-shoota opened this issue Oct 6, 2023 · 0 comments · Fixed by #407
Closed

Failing spec on crystal master #406

straight-shoota opened this issue Oct 6, 2023 · 0 comments · Fixed by #407

Comments

@straight-shoota
Copy link
Contributor

straight-shoota commented Oct 6, 2023

With current master of the compiler, an ameba spec fails:

  1) Ameba::AST::Assignment #transformed? returns true if the assignment is transformed by the compiler

       Empty enumerable (Enumerable::EmptyError)
         from /usr/share/crystal/src/enumerable.cr:534:13 in 'first'
         from spec/ameba/ast/variabling/assignment_spec.cr:109:37 in '->'
         from /usr/share/crystal/src/spec/example.cr:45:13 in 'internal_run'
         from /usr/share/crystal/src/spec/example.cr:33:16 in 'run'
         from /usr/share/crystal/src/spec/context.cr:18:23 in 'internal_run'
         from /usr/share/crystal/src/spec/context.cr:342:7 in 'run'
         from /usr/share/crystal/src/spec/context.cr:18:23 in 'internal_run'
         from /usr/share/crystal/src/spec/context.cr:342:7 in 'run'
         from /usr/share/crystal/src/spec/context.cr:18:23 in 'internal_run'
         from /usr/share/crystal/src/spec/context.cr:158:7 in 'run'
         from /usr/share/crystal/src/spec/dsl.cr:212:7 in '->'
         from /usr/share/crystal/src/crystal/at_exit_handlers.cr:14:19 in 'run'
         from /usr/share/crystal/src/crystal/main.cr:64:14 in 'exit'
         from /usr/share/crystal/src/crystal/main.cr:59:5 in 'main'
         from /usr/share/crystal/src/crystal/main.cr:141:3 in 'main'
         from /lib/x86_64-linux-gnu/libc.so.6 in '??'
         from /lib/x86_64-linux-gnu/libc.so.6 in '__libc_start_main'
         from /root/.cache/crystal/crystal-run-spec.tmp in '_start'
         from ???

https://github.com/crystal-lang/test-ecosystem/actions/runs/6428749143/job/17456492697

This is most likely caused by crystal-lang/crystal#11597 which changed the AST of packed block parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant