Clon1998 / mobileraker

A Flutter mobile app for Klipper/Moonraker
Other
488 stars 55 forks source link

[neopixel] parsing error in klipper.cfg #287

Closed vstruk closed 11 months ago

vstruk commented 12 months ago

Mobileraker can't parse a valid section in klipper cfg.

How to reproduce

Add the following lines to your klipper.cfg, restart klipper, try to connect via mobileraker

[neopixel top]
pin: z:P2.0
chain_count: 36

Observe the error: Parsing of configfile failed: type 'String' is not a subtype of 'List<dynamic>' ...

Version Information

Clon1998 commented 12 months ago

Hey, thanks for reporting this bug. Please provide me with the app's logs (App-Settings -> Scroll to the Bottom -> Debug Logs). I couldn't reproduce the issue you reported with the neopixel section you provided. However, I recall that there was a modification in the output of Klipper/Moonraker while fetching neopixels. You can attempt updating Klipper to version 11.0. Once you share your app logs with me, I'll analyze the data returned and fix the problem for 10.0.

vstruk commented 11 months ago

Please find the log attached. mobileraker_2023-11-22T21-20-52.log

Clon1998 commented 11 months ago

Please find the log attached. mobileraker_2023-11-22T21-20-52.log

Thanks, I just pushed changes to resolve the issue in the future. For now, you might want to update Klipper since the next release that will include the fix is scheduled for december.

vstruk commented 11 months ago

Thank you! I'll test it on release.