-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to use calculations in Start/End GCode breaks it without warning about it #9906
Comments
Hi @BloodyRain2k thank you for your report. |
Hi @BloodyRain2k I have discussed it with the team and we decided to defer this issue. |
I can understand not wanting to make calculations at this point a priority, but not adding a warning when something broke the parser? That seems bad. Like when I tried to change my experiment to
I made a typo in the first line and it read At the very least it should warn if something went wrong while filling in the placeholders. |
I understand, but is not a priority for us to add this, since we have more important bugs to fix. A pull request is always welcome. |
People add stuff in brackets to their start g-code all the time, especially for firmware like Repetier's. Can't warn them all the time for things that are perfectly valid. So what distinguishes a perfectly valid g-code intended for third party software from an incorrectly formatted setting key intended for Cura to read? |
This issue is still present with 5.3.1. ; do not show warning AND continue to replace other variables
; no arithmetic in cura
;M190 S{material_bed_temperature_layer_0 * 0.7}
; is still parsed and replaced despite the above statemant
M190 S{material_bed_temperature_layer_0}
; show warning | maybe stop slicing
M190 S{material_bed_temperature_layer_0 * 0.7} relevant information from
|
This is now available in Cura current versions. I'll close this. |
Application Version
4.9.1
Platform
Win 7 x64
Printer
CR6
Reproduction steps
Enter characters use in equations into the { } of a placeholder in the Start/End GCode
Close the window and let it re-slice the part
Save the GCode to disk and verify that it failed to replace the placeholders without any indication
Actual results
I want to point out that this is even the 2nd attempt where I commented out the line, and it still broke.
Expected results
If it fails to fill in the placeholders because there's something in the GCode that breaks it, I expect it to give me a warning at the very least.
But I can do the whole process and nothing out of the ordinary happens.
On a side note: I was hoping it would be possible to use math with the placeholders, but it was only a test for a tiny QoL thing.
Checklist of files to include
Additional information & file uploads
Bearing_Clip_686.zip
The text was updated successfully, but these errors were encountered: