Reproducing this is a bit convoluted in the current CodeMirror5 implementation, but this 'bug' is there.
Recipe:
- Modify the source code such that the compiled binary output does not change
- Pick any line of valid machine code
- Add an error (i.e. change
LDA to XLDA)
- Move this line down a few lines — gutter does not update while in the error state
- Remove the error (i.e. remove the
X)
- View gutter information and watch it go stale
EXPECTED:
- Now that the code compiles again, the gutter data should match source code
ACTUAL:
- Gutter info remains as it was prior to the edits, data is shown in the wrong line
- anyTargetChanged does its job and returns false, gutter updates are skipped
POSSIBLE FIX:
- Always update the gutter data after the compilation step