The runtime error window will prompt you to "copy" the error, which is a great quality of life feature. However: when pasted into discord or github without backticks, it won't be monospaced, making it harder to read just unpleasant looking. Many users aren't aware of using backticks to format code, and so you frequently get users posting error messages that just look like a giant ugly wall of text (see example below).
I am CONSTANTLY getting playtesters sending me errors in this ugly unformatted form via discord, or other developers posting them in github. I also constantly see people asking for Gamemaker help pasting raw error messages in these places. It's a major eyesore, and makes diagnosing bugs that much more difficult. Even for users familiar with this practice, it's annoying to have to manually add backticks, and so many just don't bother doing it.
EG:
############################################################################################
ERROR in action number 1
of Create Event for object oThing:
Variable .error(101131, -2147483648) not set before reading it.
at gml_Object_oThing_Create_0 (line 3) - sprite = error
############################################################################################
gml_Object_oThing_Create_0 (line 3)
gml_Object_pFloor_Create_0 (line 4)
gml_Script_create (line 52)
gml_Object_oFloorMaker_Other_4 (line 5) - with create(pFloor)
Describe the solution you'd like
Adding 3 backticks ( ``` ) before and after this error message would automatically improve their readability on sites that support this formatting (most importantly, discord and github). In addition, this formatting attaches a "copy" button to the text on those sites, which further improves usability. I think this should just be how errors are handled in all cases, but at minimum this should be a setting enabled by default so that new users' error messages will be immediately more readable when asking for help with Gamemaker. Contrast the bottom example with the previous one.
EG:
___________________________________________
############################################################################################
ERROR in action number 1
of Create Event for object oThing:
Variable <unknown_object>.error(101131, -2147483648) not set before reading it.
at gml_Object_oThing_Create_0 (line 3) - sprite = error
############################################################################################
gml_Object_oThing_Create_0 (line 3)
gml_Object_pFloor_Create_0 (line 4)
gml_Script_create (line 52)
gml_Object_oFloorMaker_Other_4 (line 5) - with create(pFloor)
Is your feature request related to a problem?
The runtime error window will prompt you to "copy" the error, which is a great quality of life feature. However: when pasted into discord or github without backticks, it won't be monospaced, making it harder to read just unpleasant looking. Many users aren't aware of using backticks to format code, and so you frequently get users posting error messages that just look like a giant ugly wall of text (see example below).
I am CONSTANTLY getting playtesters sending me errors in this ugly unformatted form via discord, or other developers posting them in github. I also constantly see people asking for Gamemaker help pasting raw error messages in these places. It's a major eyesore, and makes diagnosing bugs that much more difficult. Even for users familiar with this practice, it's annoying to have to manually add backticks, and so many just don't bother doing it.
EG:
############################################################################################ ERROR in action number 1 of Create Event for object oThing: Variable.error(101131, -2147483648) not set before reading it.
at gml_Object_oThing_Create_0 (line 3) - sprite = error
############################################################################################
gml_Object_oThing_Create_0 (line 3)
gml_Object_pFloor_Create_0 (line 4)
gml_Script_create (line 52)
gml_Object_oFloorMaker_Other_4 (line 5) - with create(pFloor)
Describe the solution you'd like
Adding 3 backticks ( ``` ) before and after this error message would automatically improve their readability on sites that support this formatting (most importantly, discord and github). In addition, this formatting attaches a "copy" button to the text on those sites, which further improves usability. I think this should just be how errors are handled in all cases, but at minimum this should be a setting enabled by default so that new users' error messages will be immediately more readable when asking for help with Gamemaker. Contrast the bottom example with the previous one.
EG: