erdnaxeli / castblock

Automatically skip sponsor segments and ads in YouTube videos playing on Chromecast.
MIT License
182 stars 20 forks source link

Update ameba #60

Open stephen304 opened 10 months ago

stephen304 commented 10 months ago

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