As the error says there is something wrong with the macro.
Maybe there is only a character missing but without the whole config it is hard to say.
Please attach the latest klippy.log or at least your printer.cfg if everything is put in there.
I do not know that macro in particular but it is essential to use the proper indention of the code.
So at least from this perspective it should look like follows:
[gcode_macro CANCEL_PRINT]
description = Cancel the actual running print
rename_existing = CANCEL_PRINT_BASE
gcode =
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0
variable_park = True
{% if printer.pause_resume.is_paused|lower = = 'false' and park|lower == 'true' %}
_TOOLHEAD_PARK_PAUSE_CANCEL
{% endif %}
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
I feel so dumb guys…
Just opened mainsail.cfg and all these macros are already into it…
So there’s no reason to ass pause resume cancel to my macros.cfg right?