Documentation suggestions
-
Just got redirected to the Duet3D documentation form the wiki. Nice work. I have an editorial comment and two content suggestions.
Editorial comment - It would be nice to be able to hide the navigation column on the left side of the page. That column and the page content column together take up about a third of the width of the window.
Two suggestions on the meta commands page.
-
It would be great to have a definition of "code block". I've wondered in the past and today, through trial and error, I found that an indented set of text (in a loop or if statement) is a unique code block. I was declaring variables in one and wondering why the variables were not available later, outside the if statement.
-
A comment somewhere that if you are writing macros in a windows OS, set the EOL to be Linux-style (LF only). Windows default (CR LF) written macros work, but error messages count the CR and LF as two lines, so all line numbers were multiplied by 2.
-
-
-
-
@mikeabuilder I've added a notes section to the Meta Gcode Commands page, and added your second suggestion there. I'll check with @dc42 regarding the first.
Ian
-
Thanks Ian. I like the idea of a notes section for collecting little bits of useful info. And apologies for reading your username, hearing "Dro farts" in my head, and wondering who Dro is.
-
@mikeabuilder it's actually 'Dr of tarts'. I spent a long time in GUI clinics. And got a masters in baking.
Ian
-
@mikeabuilder re#2, are you running in standalone or SBC mode? In standalone mode at least, LF and CRLF should behave the same.
-
@dc42 - I'm running in standalone mode. To demo my observation I made two files (fail_file_CRLF.g fail_file_LF.g attached) with a bad command on line 3. One file was saved with windows EOL (CR LF) and the other with Linux EOL (LF only).
I uploaded both to my macro directory and when I run them I get the following error messages:
LF only - calls out a problem on line 3 as expected.
CRLF file - calls out problem on line 5. It's counting one line for the CR and one line for the LF on each of lines 1 and 2, so it thinks the error on line 3 is really line 5.