Hi there! After using CM6 in a production beta of our app for the last few weeks+, I’ve noticed a handful of errors originating in codemirror/view in our error-tracking system, but I haven’t been able to reproduce the issues reliably so I wanted to post here to see if anything sticks out about them that might help us debug / understand if we’re doing something wrong with EditorViews (rather than open issues in codemirror.next).
The first comes from the
view/src/contentview.ts, specifically this line, at which point it throws
Cannot read property 'length'of undefined. This is what the majority of the stack traces look like:
Cannot read property 'getBoundingClientRect' of nullat this line of
DocViewclass. A sample stack trace looks like:
A third is
Cannot read property 'top' of nullin this line of the
And the last one comes from
view/src/cursor.tsat this line, at which
domis unexpectedly null.
It seems that often one or more happens around the same time as another, and not all, but a considerable number of instances of these errors seem to occur when an EditorView is about to be destroyed, it’s blurred, or focus position changes within it. I’m wondering if perhaps we’ve set up something incorrectly when EditorViews are being destroyed, or if you think something else might be going on here. Thanks so much again for all your help in advance.