Skip to content

Uncaught TypeError: Cannot read property 'getCursorBufferPosition' of undefined #5

@vincenthphung

Description

@vincenthphung

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.57.0 x64
Electron: 9.4.4
OS: macOS 12.0
Thrown From: teacode-atom-helper package 1.2.5

Stack Trace

Uncaught TypeError: Cannot read property 'getCursorBufferPosition' of undefined

At /Users/macbookair/.atom/packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:29

TypeError: Cannot read property 'getCursorBufferPosition' of undefined
    at Object.getCursorPosition (/packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:29:23)
    at Object.getTextRangeFromBeginningOfLineToCursor (/packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:72:23)
    at Object.getTextFromBeginningOfLineToCursor (/packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:82:14)
    at Object.runScript (/packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:124:13)
    at Object.expand (/packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:133:6)
    at /packages/teacode-atom-helper/lib/teacode-atom-helper.coffee:17:94)
    at CommandRegistry.handleCommandEvent (/private/var/folders/z5/fwqxhlv957bdv_qz29dytv7c0000gn/T/AppTranslocation/A5397005-DBB1-4B10-B9D3-63993449D93E/d/Atom.app/Contents/Resources/app/static/<embedded>:11:352215)
    at KeymapManager.dispatchCommandEvent (/private/var/folders/z5/fwqxhlv957bdv_qz29dytv7c0000gn/T/AppTranslocation/A5397005-DBB1-4B10-B9D3-63993449D93E/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1226991)
    at KeymapManager.handleKeyboardEvent (/private/var/folders/z5/fwqxhlv957bdv_qz29dytv7c0000gn/T/AppTranslocation/A5397005-DBB1-4B10-B9D3-63993449D93E/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1223125)
    at WindowEventHandler.handleDocumentKeyEvent (/private/var/folders/z5/fwqxhlv957bdv_qz29dytv7c0000gn/T/AppTranslocation/A5397005-DBB1-4B10-B9D3-63993449D93E/d/Atom.app/Contents/Resources/app/static/<embedded>:11:286551)

Commands

  3x -2:32.3.0 core:cancel (atom-pane.pane.active)
     -0:11.4.0 teacode-atom-helper:expand (div.package-detail)

Non-Core Packages

atom-clock 0.1.18 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
Hydrogen 2.16.3 
teacode-atom-helper 1.2.5 
teletype 0.13.4 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions