thank you for pointing out that the command list is generated when the Issue is submitted, not when the dialog is displayed
So when an error notification is displayed, the Commands section generated includes things you do after the dialog is displayed which can be misleading as Lee mentions further in that comment:
That's a bug we should fix ... it could be sending us down some blind alleys π
If you perform enough actions, the actual actions related to generating the error aren't shown since it seems like 16 commands are shown and the rest is truncated?
Steps to Reproduce
Add this to your init.coffee so you can generate an error h/t @lee-dohm:
atom.commands.add 'atom-workspace',
'custom:throw-error': ->
throw new Error
Start Atom (not in safe mode so we can use the command above)
From the command palette, run Custom: Throw Error (error notification shows at this point)
Run some other commands e.g. use the command palette to Tree View: Toggle 6 times
Copy the error report to clipboard (click the clipboard icon in the exception dialog)
Paste the error report to examine the Commands section.
Expected behavior: [What you expect to happen]
To see commands up to when the error dialog is displayed.
Actual behavior: [What actually happens]
Commands run after the dialog is displayed are shown in the Commands section:
Prerequisites
Not run in safe mode so we could use the command added to the init script to generate an error
Description
h/t @Ben3eeE for finding this comment - as mentioned by Lee in https://github.com/atom/atom/issues/11690#issuecomment-217292719:
So when an error notification is displayed, the
Commands
section generated includes things you do after the dialog is displayed which can be misleading as Lee mentions further in that comment:If you perform enough actions, the actual actions related to generating the error aren't shown since it seems like 16 commands are shown and the rest is truncated?
Steps to Reproduce
Add this to your
init.coffee
so you can generate an error h/t @lee-dohm:Custom: Throw Error
(error notification shows at this point)Tree View: Toggle
6 timesCommands
section.Expected behavior: [What you expect to happen]
To see commands up to when the error dialog is displayed.
Actual behavior: [What actually happens]
Commands run after the dialog is displayed are shown in the
Commands
section:For comparison, if I copy the error report right after step 2, then the generated
Commands
section looks like this:Reproduces how often:
100%
Versions
macOS 10.12.6
/cc @Ben3eeE :v: