unDemian / clipboard-history

Clipboard history package for Atom.io
MIT License
16 stars 2 forks source link

Uncaught TypeError: atom.workspace.getActivePaneItem(...).insertText is not a function #25

Open kayone opened 9 years ago

kayone commented 9 years ago

[Enter steps to reproduce below:]

  1. try to use the clipboard history to past items into the find/replace text box

Atom Version: 1.0.19 System: Mac OS X 10.10.5 Thrown From: clipboard-history package, v0.6.6

Stack Trace

Uncaught TypeError: atom.workspace.getActivePaneItem(...).insertText is not a function

At /Users/kayone/.atom/packages/clipboard-history/lib/clipboard-history-view.coffee:144

TypeError: atom.workspace.getActivePaneItem(...).insertText is not a function
  at ClipboardHistoryView.module.exports.ClipboardHistoryView.confirmed (/Users/kayone/.atom/packages/clipboard-history/lib/clipboard-history-view.coffee:103:42)
  at ClipboardHistoryView.module.exports.SelectListView.confirmSelection (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-li.<anonymous> (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
  at HTMLOListElement.jQuery.event.dispatch (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
  at HTMLOListElement.elemData.handle (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:35.5.0 core:save (ol.tree-view.list-tree.has-collapsable-children.focusable-panel.full-menu)
     -0:34.5.0 project-find:show (ol.tree-view.list-tree.has-collapsable-children.focusable-panel.full-menu)
     -0:34.1.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:33.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:33.7.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-nucleus-dark-ui.find-visible)
     -0:30.1.0 clipboard-history:paste (atom-text-editor.editor.mini.is-focused)
     -0:29.3.0 core:move-down (atom-text-editor.editor.mini.is-focused)
  2x -0:28.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:19.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:19.3.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:13.4.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-nucleus-dark-ui.find-visible)
     -0:12.1.0 clipboard-history:paste (atom-text-editor.editor.is-focused)
  2x -0:11.1.0 core:move-down (atom-text-editor.editor.mini.is-focused)
  2x -0:09.9.0 core:move-up (atom-text-editor.editor.mini.is-focused)
     -0:08.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:04.3.0 clipboard-history:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "language-objective-c",
      "language-c",
      "language-clojure",
      "language-java",
      "language-php",
      "welcome",
      "wrap-guide",
      "autoflow",
      "background-tips",
      "language-go",
      "language-perl",
      "language-ruby-on-rails",
      "language-sass",
      "language-toml"
    ],
    "openEmptyEditorOnStart": false,
    "themes": [
      "nucleus-dark-ui",
      "one-dark-syntax"
    ],
    "audioBeep": false
  }
}

Installed Packages

# User
advanced-new-file, vundefined
atom-beautify, v0.28.14
atom-handlebars, v1.2.0
atom-ternjs, v0.8.4
atom-yeoman, vundefined
auto-reveal-in-sidebar, v0.5.0
autocomplete-paths, v1.0.2
clipboard-history, v0.6.6
color-picker, v2.0.13
esformatter, v1.14.0
file-icons, v1.6.11
file-types, v0.5.1
flex-tool-bar, v0.5.0
highlight-selected, v0.10.1
json-schema, v0.1.15
language-diff, v0.3.1
linter, v1.8.1
linter-eslint, v3.1.1
linter-jscs, v3.1.2
linter-jshint, v1.2.1
linter-less, v2.2.0
local-history, v3.2.3
minimap, v4.15.0
minimap-find-and-replace, v4.3.1
minimap-git-diff, v4.1.8
minimap-hide, v0.3.0
minimap-highlight-selected, v4.3.1
nucleus-dark-ui, v0.6.5
omnisharp-atom, v0.25.2
pigments, v0.18.0
project-manager, v2.6.5
recent-files-fuzzy-finder, v0.2.1
sync-settings, v0.6.0
tool-bar, v0.1.9
underscorejs-snippets, v0.2.2
zentabs, v0.8.6

# Dev
No dev packages