Glavin001 / atom-preview

:construction: (NO LONGER MAINTAINED) :construction: - :eyeglasses: Ultimate previewer of source code in Atom.
https://atom.io/packages/preview
MIT License
51 stars 23 forks source link

Uncaught TypeError: atom.workspace.open(...).done is not a function #121

Closed vadim-su closed 3 years ago

vadim-su commented 8 years ago
  1. Run "Preview: Toggle"
  2. ...

Atom Version: 1.6.0 System: "Gentoo Base Thrown From: preview package, v0.16.6

Stack Trace

Uncaught TypeError: atom.workspace.open(...).done is not a function

At /home/deterok/.atom/packages/preview/lib/preview.coffee:79

TypeError: atom.workspace.open(...).done is not a function
    at Object.module.exports.toggle (/home/deterok/.atom/packages/preview/lib/preview.coffee:79:6)
    at atom-workspace.atom.commands.add.preview:toggle (/home/deterok/.atom/packages/preview/lib/preview.coffee:30:29)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/local/share/atom/resources/app.asar/src/command-registry.js:260:29)
    at /usr/local/share/atom/resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/local/share/atom/resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/local/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (/usr/local/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/local/share/atom/resources/app.asar/src/command-registry.js:260:29)
    at /usr/local/share/atom/resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/local/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:570:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/local/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:378:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/usr/local/share/atom/resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/usr/local/share/atom/resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:30 core:save (atom-text-editor.editor.is-focused)
     -0:29.6.0 preview-plus:preview (atom-text-editor.editor.is-focused)
     -0:27.8.0 core:save (atom-text-editor.editor.is-focused)
     -0:25 core:close (atom-text-editor.editor.is-focused)
     -0:24.5.0 core:save (atom-text-editor.editor.is-focused)
     -0:23.7.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:23.3.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:22.6.0 core:save (atom-text-editor.editor.is-focused)
     -0:21.8.0 preview-plus:preview (atom-text-editor.editor.is-focused)
     -0:21.6.0 core:save (atom-text-editor.editor.is-focused)
     -0:19.3.0 core:close (atom-text-editor.editor.is-focused)
     -0:17.2.0 settings-view:open (atom-text-editor.editor.is-focused)
     -0:04.2.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:02.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:01.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:01.3.0 preview:toggle (atom-text-editor.editor)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "python-autopep8",
      "preview-plus"
    ]
  },
  "preview": {}
}

Installed Packages

# User
advanced-open-file, v0.14.3
atom-beautify, v0.28.26
atom-jinja2, v0.5.0
autocomplete-go, v1.0.4
autocomplete-python, v1.7.2
environment, v1.2.0
go-config, v1.1.2
go-get, v1.0.1
go-plus, v4.0.1
go-quick-import, v0.2.0
gofmt, v1.0.4
gometalinter-linter, v1.0.3
gorename, v1.0.0
language-restructuredtext, v0.12.0
linter, v1.11.4
linter-python, v2.1.2
minimap, v4.21.0
navigator-godef, v1.0.2
preview, v0.16.6
python-autopep8, v0.1.3
python-tools, v0.6.7
rest-client, v1.0.0
seti-icons, v0.4.5
terminal-plus, v0.14.5
tester-go, v1.0.1

# Dev
No dev packages