@Maurycy I have encountered a strange interaction between AC and CodeMirror that leads to RSOD. I’m not sure it could be even described as a bug, since the required circumstances are quite weird, but maybe it is something worth knowing.
Steps to reproduce:
- Have Auto Complete (tested on latest 1.0.17) and CodeMirror (same version as TW) plugins installed.
- Add
ctrl-space
shortcut for sidebar-search (same as AC manual trigger). - Put cursor after any AC trigger sequence in the CodeMirror field and press
ctrl-space
. - The cursor jumps to search field and the AC popup shows up, so both shortcuts are in fact working, but an RSOD also shows up. Either with “Script error” (on TW/CM 5.2.7) or “Uncaught TypeError: Cannot read properties of null (reading ‘selectionStart’)” (on TW/CM 5.2.2 on your showcase page). I have caught no RSOD with other actions other than sidebar-search assigned to the same shortcut.
I realize these are weird conditions, I see no reason to have those two actions assigned to the same shortcut (I did it accidentally, as I simply forgot ctrl-space is already in use by AC). It can just as well be a problem with CM, since it doesn’t happen on non-CM fields even with CM installed.
Of course feel free to ignore it, if it is irrelevant.