Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Uncaught TypeError: Cannot read property 'getScreenPosition' of undefined #190

Closed

Description

@Cronax42

[Enter steps to reproduce below:]

  1. Open Atom v 0.166.0
  2. Error comes up in the top-left corner
    (Tab completion refused to work in the previous version of Atom but now seems to be fixed again, so the issue doesn't seem to be blocking)

Atom Version: 0.166.0
System: Mac OS X 10.9.5
Thrown From: autocomplete-plus package, v1.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'getScreenPosition' of undefined

At /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325

TypeError: Cannot read property 'getScreenPosition' of undefined
  at TextEditor.module.exports.TextEditor.getCursorScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325:34)
  at AutocompleteManager.module.exports.AutocompleteManager.runAutocompletion (/Users/svanbastenbatenburg/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:168:39)
  at /Users/svanbastenbatenburg/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1

Commands

Config

{
  "core": {
    "disabledPackages": [
      "welcome",
      "wrap-guide",
      "color-gutter"
    ],
    "themes": [
      "seti-ui",
      "firstlight-syntax"
    ],
    "projectHome": "/Users/svanbastenbatenburg/projects/"
  }
}

Installed Packages

# User
atom-color-highlight, v3.0.2
autocomplete-paths, v0.9.1
autocomplete-plus, v1.1.0
block-travel, v0.10.0
firstlight-syntax, v0.0.0
linter, v0.9.1
linter-pep8, v0.1.0
minimap, v3.5.0
open-last-project, v0.1.1
project-palette-finder, v2.4.7
seti-ui, v0.5.1
tabs-to-spaces, v0.8.0

# Dev
No dev packages

/cc @atom/core

Activity

  1. self-assigned this
    on Jan 6, 2015
  2. iCodeForBananas commented on Jan 15, 2015

    @iCodeForBananas

    I just opened my editor, an untitled page was open with a few random characters in it, and this error came up:

    Uncaught TypeError: Cannot read property 'getScreenPosition' of undefined
    /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325
    Hide Stack Trace
    TypeError: Cannot read property 'getScreenPosition' of undefined
      at TextEditor.module.exports.TextEditor.getCursorScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325:34)
      at AutocompleteManager.module.exports.AutocompleteManager.runAutocompletion (/Users/michaeljcalkins/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:168:39)
      at /Users/michaeljcalkins/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1
    The error was thrown from the autocomplete-plus package This issue has already been reported.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions