Skip to content

Cannot read properties of undefined (reading 'getData') #58

@krishnagogada

Description

@krishnagogada

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions