plafue / markdown-preview-opener

MIT License
3 stars 7 forks source link

Uncaught TypeError: item.getURI is not a function #5

Open mattmattmatt opened 8 years ago

mattmattmatt commented 8 years ago
  1. Open a markdown file, markdown preview opens as expected.
  2. Close the markdown file with cmd+w; markdown preview should close but instead the error happens and markdown preview stays open.

Atom Version: 1.8.0 System: Mac OS X 10.10.5 Thrown From: markdown-preview-opener package, v0.1.1

Stack Trace

Uncaught TypeError: item.getURI is not a function

At /Users/[redacted]/.atom/packages/markdown-preview-opener/lib/markdown-preview-opener.coffee:33

TypeError: item.getURI is not a function
    at /Users/[redacted]/.atom/packages/markdown-preview-opener/lib/markdown-preview-opener.coffee:33:48
    at /Users/[redacted]/.atom/packages/markdown-preview-opener/lib/markdown-preview-opener.coffee:33:15
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:295:27)
    at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:31:58)
    at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:639:18)
    at atom-tabs.TabBarView.onClick (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:688:17)

Commands

  3x -9:42.8.0 core:move-up (atom-text-editor.editor.is-focused)
     -9:41.7.0 editor:delete-line (atom-text-editor.editor.is-focused)
  2x -9:41.3.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -9:39.9.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -9:20.9.0 core:close (atom-text-editor.editor.is-focused)
  2x -8:59.3.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -8:54.7.0 core:save (atom-text-editor.editor.is-focused)
     -3:35.9.0 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)
  2x -3:35.6.0 core:select-left (atom-text-editor.editor.is-focused)
  6x -3:34.6.0 find-and-replace:select-next (atom-text-editor.editor.is-focused)
     -3:30.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
  2x -3:26.4.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -3:21 core:backspace (atom-text-editor.editor.is-focused)
     -3:18 core:save (atom-text-editor.editor.is-focused)
     -1:51.3.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:41.3.0 markdown-preview:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-light-theme.theme-one-light-ui.seti-ui-no-icons)

Config

{
  "core": {
    "closeEmptyWindows": false,
    "disabledPackages": [
      "tab-switcher"
    ],
    "ignoredNames": [
      ".DS_Store",
      "*.mk",
      ".tern-project",
      ".git"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "tab-switcher"
    ],
    "projectHome": "[redacted]",
    "themes": [
      "one-light-ui",
      "base16-tomorrow-light-theme"
    ]
  },
  "markdown-preview-opener": {
    "closePreviewWhenClosingEditor": true
  }
}

Installed Packages

# User
atom-beautify, v0.29.7
atom-easy-jsdoc, v4.6.0
file-icons, v1.7.13
git-control, v0.7.1
highlight-selected, v0.11.2
indent-guide-improved, v1.4.8
language-lua, v0.9.4
linter, v1.11.5
linter-eslint, v7.2.2
markdown-preview-opener, v0.1.1
merge-conflicts, v1.4.4
minimap, v4.24.3
minimap-cursorline, v0.1.0
minimap-find-and-replace, v4.5.1
minimap-highlight-selected, v4.4.0
minimap-linter, v1.1.1
tidy-tabs, v0.3.0

# Dev
No dev packages