Ace.Tern
Ace.Tern copied to clipboard
Cannot read properties of undefined (reading 'getData')
We got an error from the sentry as Cannot read properties of undefined (reading 'getData')
Here is the trace of the error
TypeError: Cannot read properties of undefined (reading 'getData')
function popupSelectionChanged() {
closeAllTips() //remove(tooltip); //using close all , but its slower, comeback and remove single if its working right
var data = editor.completer.popup.getData(
editor.completer.popup.getRow()
)
at ? (/website/ace-builds-cdn/src-noconflict/ext-tern-v2.js:2523:19)
at ? (/website/ace-builds-cdn/src-noconflict/ext-tern-v2.js:2109:16)
at ? (/website/ace-builds-cdn/src-noconflict/worker-tern.js:6162:18)
at run(/website/ace-builds-cdn/src-noconflict/worker-tern.js:6232:18)
at Object.exports.withTimeout(/website/ace-builds-cdn/src-noconflict/worker-tern.js:8598:21)
at ? (/website/ace-builds-cdn/src-noconflict/worker-tern.js:6235:24)
at Object.exports.withContext(/website/ace-builds-cdn/src-noconflict/worker-tern.js:8577:21)
at ? (/website/ace-builds-cdn/src-noconflict/worker-tern.js:6234:20)
at analyzeAll(/website/ace-builds-cdn/src-noconflict/worker-tern.js:6367:20)
We tried to reproduce the issue, but we didn't get the error.
This issue is reported in sentry when user clicks on div.ace_scroller > div.ace_content
.
In which case editor.completer.popup
will be null?