Skip to content

Moonraker filament type parsing fix#355

Closed
gaaat98 wants to merge 2 commits intopaxx12:developfrom
gaaat98:patch-1
Closed

Moonraker filament type parsing fix#355
gaaat98 wants to merge 2 commits intopaxx12:developfrom
gaaat98:patch-1

Conversation

@gaaat98
Copy link
Copy Markdown

@gaaat98 gaaat98 commented Mar 25, 2026

Not sure if this is something that deserves a firmware patch, but it fixes a bug that results in filament type mismatches when there is a space in the filament type provided by the slicer, which in turn blocks filament selection from the Snapmaker U1 print UI.

More details here: Arksine/moonraker#1066

Ideally, Snapmaker could fix it by updating Moonraker once (and if) my fix is merged there, but who knows if that will ever happen.

@paxx12
Copy link
Copy Markdown
Owner

paxx12 commented Mar 25, 2026

@gaaat98 Thanks. I will wait for upstream to merge patch, then will pick the patch and maintain it moving forward.

@github-actions
Copy link
Copy Markdown

✅ Build Artifacts

Version: 1.2.0-paxx12-test-pr-355
Build: a6a22f1 (merge of 416395c into develop)
Duration: 4m 48s

Artifact Size
extended-devel-build 225.50 MB
extended-build 225.09 MB

View workflow run

@gaaat98
Copy link
Copy Markdown
Author

gaaat98 commented Mar 25, 2026

@paxx12 the developer of moonraker answered my PR and apparently the issue was already addressed in moonraker (Arksine/moonraker@3a54161) and it's still present in the U1 because an older version of moonraker is used, it looks like we need to wait for Snapmaker to update it as the fixed version returns JSON instead of plaintext and I cannot find where this output is processed by the firmware :(

@paxx12
Copy link
Copy Markdown
Owner

paxx12 commented Mar 25, 2026

I will backport this patch, will ask you to review.

paxx12 added a commit that referenced this pull request Mar 29, 2026
Backports upstream commit 3a54161 to return filament_name and
filament_type as JSON arrays for multi-material slices, fixes #355.

Also restructures patch paths under home/lava/moonraker/ to match
the target filesystem layout.
@paxx12
Copy link
Copy Markdown
Owner

paxx12 commented Mar 29, 2026

Replaced by #355 which does backport from Moonraker.

@paxx12 paxx12 closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants