The annotations do not show on mousehover

Author: williamdesCreated Apr 7, 2023Updated Dec 31, 2024

The code uses https://github.com/codemirror/codemirror5/pull/4861 image

It does not enter https://github.com/codemirror/codemirror5/blob/9974ded36bf01746eb2a00926916fef834d3d0d0/addon/lint/lint.js#L253

Because CodeMirror does CodeMirror-lint-marker CodeMirror-lint-marker-warning and not -mark- Is this another bug ?

Anyway, let's continue :

https://github.com/codemirror/codemirror5/blob/9974ded36bf01746eb2a00926916fef834d3d0d0/addon/lint/lint.js#L218-L221

And pushes the right contents, here is what we feed into

json
[{"message":"Linting is disabled for this query because it exceeds the maximum length.","fromLine":0,"fromColumn":0,"toLine":0,"toColumn":0,"severity":"warning"}]

https://github.com/phpmyadmin/phpmyadmin/blob/e5826048d8e97ce166bf138af6e2e9891b0fec36/js/src/codemirror/addon/lint/sql-lint.js#L8

Even if I use message it seems to not display the tooltip That's really strange

CodeMirror: 5.65.10