[3.4.1] "Print Again" issue with long filenames
-
There is an issue with the "Print Again" function with long filenames- the following error is written to the console. "Print Again" works fine with these long filenames in DWC, but fails in 3.4.1 on the PanelDue.
The console displays:
Error: Failed to execute M32 {job.lastFileName} from firmware: [CodeParserException] Failed to evaluate "{job.lastFileName}": string too long
FYI - here is an example of the filename:
0:/gcodes/oozeBot/Frame/Retractable Cord Brackets - q2 - 0.6mm nozzle, 0.5mm height, 0.75mm width.gcode
-
@oozeBot RepRapFirmware has a limit of 100 characters for string expressions and your example filename is 103 characters long. I think DWC gets around this limitation by sending the full filename with M32 instead of the
{job.lastFileName}
expression. -
@chrishamm Thanks - this helps in understanding the issue. This makes sense, but would like to recommend this be considered as an enhancement as it's quite easy to reach this 100 character limit when the file is nested within several folders.
-
@oozeBot I'll try increasing the limit to 256 in RRF 3.5.0 beta3.
-
@oozeBot I have increased the maximum string expression length from 100 to 256, however there is also a limit on maximum filename length of 120 characters. That's longer than your example.
-
@dc42 that’s perfect.. thanks!
-
-
-