phil294 / AHK_X11

AutoHotkey for Linux (X11-based systems)
GNU General Public License v2.0
770 stars 11 forks source link

Crystal 1.12.1 Error: undefined method 'enqueue_free_stack' for Crystal::Scheduler.class #80

Closed macmarrum closed 2 weeks ago

macmarrum commented 2 months ago

When I build AHK_X11 (on Arch Linux) with Crystal 1.12.1, it fails:

Building: ahk_x11

Error target ahk_x11 failed to compile:
Showing last frame. Use --error-trace for full trace.

There was a problem expanding macro 'macro_126982528181792'

Code in src/hacks.cr:69:3

 69 | {% if flag?(:preview_mt) %}
      ^
Called macro defined in src/hacks.cr:69:3

 69 | {% if flag?(:preview_mt) %}

Which expanded to:

 > 1 | 
 > 2 |          Crystal::Scheduler.enqueue_free_stack @stack
                             ^-----------------
Error: undefined method 'enqueue_free_stack' for Crystal::Scheduler.class

After I downgrade to crystal-1.11.2-2, the build succeeds.

phil294 commented 2 weeks ago

fixed!

macmarrum commented 1 week ago

Thank you :+1: