• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

better error reporting

Scheduled Pinned Locked Moved
Firmware wishlist
4
8
260
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    moth4017
    last edited by 4 Jan 2025, 22:09

    i have this error in the console
    Error in start-up file macro line 36: in file macro line 36 column 26: meta command: expected an expression

    but its not in the config file as line 36 is:-
    760bf2a8-28c8-4649-99d0-dfdde0f55405-image.png

    its in another macro somewhere ?

    <

    undefined 1 Reply Last reply 4 Jan 2025, 23:20 Reply Quote 0
    • undefined
      OwenD
      last edited by 4 Jan 2025, 22:25

      The error is likely in another file that is being called by config.g

      There is already a feature request to show the name of the macro in error messages
      https://github.com/Duet3D/RepRapFirmware/issues/761

      T3P3 created this issue 24 Apr 2023, 18:53 in Duet3D/RepRapFirmware

      open Report filename in error messages #761

      1 Reply Last reply Reply Quote 0
      • undefined
        magnets99 @moth4017
        last edited by 4 Jan 2025, 23:20

        @moth4017
        What happens if you add a comment line after 35?
        like this

        M584 Y0 X1 Z3:4:5 E2
        M350 X16 Y16 I1
        ;this is a comment to bump the line numbering
        M350 Z16 E16
        M92 X80.00 Y80.00 Z320 E562

        then if the error moves to line 37 you know it is having trouble with that file.
        Also, and i apologise if i'm teaching you to suck eggs, but:

        what happens if you split the m350's? like
        M350 Z16
        M350 E16

        any none printable characters in line 36?

        I find the instructions a bit confusing, i see you have three motors driving Z and the notes say
        Example: If you have two motors on your Z axis, physically connected to Z and E0 stepper drivers, configured with M584 Z2:3, set M350 Z16, not M350 Z16,16

        but in the examples for the extruders it's listing stepping for each

        M350 Z1 ;set the Z-axis' driver to use full steps
        M350 E4:4:4 ;set extruders 0-2 to use quarter steps)

        though i guess they are independent extruders, not motors on the same axis.

        Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

        undefined 1 Reply Last reply 5 Jan 2025, 00:38 Reply Quote 0
        • undefined
          Phaedrux Moderator @magnets99
          last edited by 5 Jan 2025, 00:38

          @magnets99 said in better error reporting:

          though i guess they are independent extruders, not motors on the same axis.

          Exactly. Extruders are independant and require their own settings defined. Motion axis with multiple motors are defined per axis with the same settings for all motors.

          Z-Bot CoreXY Build | Thingiverse Profile

          undefined 1 Reply Last reply 5 Jan 2025, 03:46 Reply Quote 0
          • undefined
            moth4017 @Phaedrux
            last edited by 5 Jan 2025, 03:46

            @Phaedrux the error isnt in the config it was in another macro called by the config file, but you dont know which macro that causes
            the error message

            <

            1 Reply Last reply Reply Quote 0
            • undefined
              magnets99
              last edited by 5 Jan 2025, 09:18

              i'm assuming you've proved that it's not the config.g file, But that it's calling another file

              Can you not comment out half the macros and then restart?
              even with ten call outs you'd work it out which macro in around three tries.

              Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

              undefined 1 Reply Last reply 5 Jan 2025, 22:57 Reply Quote 1
              • undefined
                moth4017 @magnets99
                last edited by 5 Jan 2025, 22:57

                @magnets99 hi
                that what i did to find the error was to comment out each macro, it would be nice if the file could be listed as well as the line number and the column

                <

                undefined 1 Reply Last reply 6 Jan 2025, 10:13 Reply Quote 0
                • undefined
                  magnets99 @moth4017
                  last edited by 6 Jan 2025, 10:13

                  @moth4017
                  yeah i agree, i think it's on the feature list for the future.
                  just out of interest, why do you call out to other macros?

                  Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

                  1 Reply Last reply Reply Quote 0
                  3 out of 8
                  • First post
                    3/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA