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

postinstall ameba 1.4.3 on Crystal 1.9.2 failed with: Error: type must be Ameba::Severity, not (Ameba::Severity | Nil) #395

Closed
zw963 opened this issue Jul 28, 2023 · 1 comment

Comments

@zw963
Copy link
Contributor

zw963 commented Jul 28, 2023

 ╰─ $ shards update
Resolving dependencies
Fetching https://github.com/crystal-ameba/ameba.git
Installing ameba (1.4.3)
Postinstall of ameba: make bin && make run_file
Failed postinstall of ameba on make bin && make run_file:
shards build -Dpreview_mt
Dependencies are satisfied
Building: ameba
Error target ameba failed to compile:
Showing last frame. Use --error-trace for full trace.

There was a problem expanding macro 'macro_140220368106480'

Code in /home/zw963/Crystal/share/crystal/src/yaml/serialization.cr:188:7

 188 | {% begin %}
       ^
Called macro defined in /home/zw963/Crystal/share/crystal/src/yaml/serialization.cr:188:7

 188 | {% begin %}

Which expanded to:

 > 75 |                   
 > 76 | 
 > 77 |                   __temp_722 =
                          ^
Error: type must be Ameba::Severity, not (Ameba::Severity | Nil)

make: *** [Makefile:9: build] Error 1
@zw963 zw963 changed the title Install ameba 1.4.3 on Crystal 1.9.2 failed with: Error: type must be Ameba::Severity, not (Ameba::Severity | Nil) postinstall ameba 1.4.3 on Crystal 1.9.2 failed with: Error: type must be Ameba::Severity, not (Ameba::Severity | Nil) Jul 28, 2023
@veelenga
Copy link
Member

veelenga commented Jul 28, 2023

Duplicate of #372
Should be fixed by #373

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

No branches or pull requests

2 participants