[3.5.0-rc.3+6][bug] echo to file excpected an expression
-
Hi @chrishamm
today I got the following error while porting the gcode meta command printjob into an macro.echo >{"0:/filaments/PETG-1.0-coldfusion/config-auto-nle-1.g"} "test" Error: expected an expression
Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: DuetAPI.CodeParserException: expected an expression Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Model.Expressions.EvaluateExpressionRaw(Code code, String expression, Boolean onlySbcFields) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Model/Expressions.cs:line 869 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Model.Expressions.EvaluateExpression(Code code, String expression, Boolean onlySbcFields, Boolean encodeResult) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Model/Expressions.cs:line 883 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Model.Expressions.Evaluate(Code code, Boolean evaluateAll) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Model/Expressions.cs:line 314 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.SPI.Interface.FlushAsync(Code code, Boolean evaluateExpressions, Boolean evaluateAll) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 303 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Codes.ChannelProcessor.FlushAsync(Code code, Boolean evaluateExpressions, Boolean evaluateAll) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Codes/ChannelProcessor.cs:line 209 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Codes.Processor.FlushAsync(Code code, Boolean evaluateExpressions, Boolean evaluateAll, Boolean syncFileStreams, Boolean ifExecuting) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Codes/Processor.cs:line 113 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Codes.Handlers.Keywords.Process(Code code) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Codes/Handlers/Keywords.cs:line 41 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Commands.Code.ProcessInternally() in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Commands/Generic/Code.cs:line 222 Mar 19 11:41:35 Meltingplot-MBL-480-vaswsq DuetControlServer[10454]: at DuetControlServer.Codes.Pipelines.ProcessInternally.ProcessCodeAsync(Code code) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetControlServer/Codes/Pipelines/ProcessInternally.cs:line 30
the same code is working in standalone mode and was working in the job processor.
just to make sure, the following will also fail
I don't know if this is already fixed upstream, as I'm on the +6 dev version. But I was not able to find any related commit so maybe worth it posting it here.
btw. since I swapped the rock pi 4c+ with an rpi 4b and running the +6 dev build, the unit is printing rock solid!
-
@timschneider I just tried to reproduce this problem but it works as expected here, both from DWC and from a macro file. It's possible that one of my latest commits had an effect on this problem, although to be fair I wasn't aware of it before. And good to hear your machine is now working well apart from this issue!
-
@chrishamm ok, thanks! I've updated the printer to dev +8 and it is indeed fixed!