glist icon indicating copy to clipboard operation
glist copied to clipboard

Uncaught TypeError: currentItem.getText is not a function

Open birdinforest opened this issue 8 years ago • 0 comments

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.4 System: Mac OS X 10.11.3 Thrown From: glist package, v2.2.0

Stack Trace

Uncaught TypeError: currentItem.getText is not a function

At /Users/forrrest/.atom/packages/glist/lib/glist.coffee:74

TypeError: currentItem.getText is not a function
    at Object.module.exports.Glist.getMeta (/Users/forrrest/.atom/packages/glist/lib/glist.coffee:74:103)
    at Object.module.exports.Glist.copyGistUrl (/Users/forrrest/.atom/packages/glist/lib/glist.coffee:120:5)
    at Object.module.exports.Glist.openGistWeb (/Users/forrrest/.atom/packages/glist/lib/glist.coffee:128:12)
    at atom-workspace.subscriptions.add.atom.commands.add.glist:openGistWeb (/Users/forrrest/.atom/packages/glist/lib/glist.coffee:52:85)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

  3x -4:17.6.0 core:paste (atom-text-editor#glist.githubToken.editor.mini.is-focused)
     -1:06.8.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -1:05.7.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:52.5.0 vim-mode:activate-normal-mode (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:52.4.0 glist:toggle (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:37.5.0 grammar-selector:show (atom-text-editor.editor.vim-mode.normal-mode)
  5x -0:34.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
  6x -0:33.1.0 core:move-down (atom-text-editor.editor.mini.is-focused)
  7x -0:31.2.0 core:move-up (atom-text-editor.editor.mini.is-focused)
 11x -0:29.9.0 core:move-down (atom-text-editor.editor.mini.is-focused)
  3x -0:25.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
 15x -0:24.6.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:21.6.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:21.6.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:00.7.0 glist:openGistWeb (div.package-detail.panels-item)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "glist": {
    "gistDir": "/Users/forrrest/Dropbox/Gist",
    "gistLocation": "https://gist.github.com/birdinforest",
    "githubToken": "**********"
  }
}

Installed Packages

# User
ever-notedown, v0.2.18
glist, v2.2.0
markdown-scroll-sync, v2.1.2
markdown-writer, v2.3.3
vim-mode, v0.65.1

# Dev
No dev packages

birdinforest avatar Jun 03 '16 00:06 birdinforest