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

Fails to install on MacOS Monterey #392

Closed
pyrsmk opened this issue Jul 24, 2023 · 2 comments
Closed

Fails to install on MacOS Monterey #392

pyrsmk opened this issue Jul 24, 2023 · 2 comments

Comments

@pyrsmk
Copy link

pyrsmk commented Jul 24, 2023

Hi,

I have Crystal 1.9.0. Either by installing Ameba with brew or shards I have the following error :

❯ shards install
Resolving dependencies
Fetching https://github.com/crystal-ameba/ameba.git
Fetching https://gitlab.com/arctic-fox/spectator.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_5141739712'

Code in /usr/local/Cellar/crystal/1.9.0/share/crystal/src/yaml/serialization.cr:188:7

 188 | {% begin %}
       ^
Called macro defined in /usr/local/Cellar/crystal/1.9.0/share/crystal/src/yaml/serialization.cr:188:7

 188 | {% begin %}

Which expanded to:

 > 69 |                   
 > 70 | 
 > 71 |                   __temp_735 =
                          ^
Error: type must be Ameba::Severity, not (Ameba::Severity | Nil)

make[1]: *** [build] Error 1
make: *** [init] Error 1
@veelenga
Copy link
Member

Duplicate of #372
Should be fixed #373

@veelenga
Copy link
Member

@Sija we might need to release 1.5 to let people use a tagged Ameba version that supports Crystal 1.9.

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