Skip to content

Update ameba #60

@stephen304

Description

@stephen304

There's a build error related to ameba 1.3.1:

Resolving dependencies
Fetching https://github.com/erdnaxeli/clip.git
Fetching https://github.com/crystal-ameba/ameba.git
Using clip (0.2.4)
Installing ameba (1.3.1)
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_140256374496768'

Code in /usr/lib/crystal/yaml/serialization.cr:188:7

 188 | {% begin %}
       ^
Called macro defined in /usr/lib/crystal/yaml/serialization.cr:188:7

 188 | {% begin %}

Which expanded to:

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


Updating ameba to 1.5.0 seems to fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions