mafiuss / atom-cli-diff

TextMate's diff bundle port
MIT License
2 stars 2 forks source link

Uncaught Error diffing an unsaved file against the clipboard. #13

Open evanwarner opened 9 years ago

evanwarner commented 9 years ago

Steps to reproduce:

  1. Create a new file. DO NOT SAVE.
  2. Diff the unsaved file with the clipboard.

Atom Version: 1.0.0 System: Mac OS X 10.9.5 Thrown From: atom-cli-diff package, v1.1.0

Stack Trace

Uncaught Error: Error

At /Users/ewarner/Dropbox/Dev/Atom/packages/atom-cli-diff/lib/diff.coffee:59

Error: Error
  at Object.module.exports.clipboard (/Users/ewarner/Dropbox/Dev/Atom/packages/atom-cli-diff/lib/diff.coffee:59:17)
  at atom-workspace.<anonymous> (/Users/ewarner/Dropbox/Dev/Atom/packages/atom-cli-diff/lib/diff.coffee:10:63)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/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 (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241: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:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:180:20)

Commands

     -0:16.8.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:15.5.0 core:copy (atom-text-editor.editor.is-focused)
     -0:15.2.0 application:new-file (atom-text-editor.editor.is-focused)
     -0:14.3.0 core:paste (atom-text-editor.editor.is-focused)
  2x -0:12.6.0 editor:delete-line (atom-text-editor.editor.is-focused)
     -0:09.8.0 command-palette:toggle (atom-text-editor.editor.is-focused)
 15x -0:07.1.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 diff:clipboard (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "seti-syntax"
    ],
    "disabledPackages": [
      "archive-view",
      "welcome",
      "autoflow",
      "autosave",
      "encoding-selector",
      "update-package-dependencies",
      "autocomplete-atom-api",
      "image-view",
      "language-c",
      "language-csharp",
      "language-clojure",
      "language-go",
      "language-java",
      "language-objective-c",
      "language-perl",
      "language-toml",
      "language-hyperlink",
      "language-make",
      "language-shellscript",
      "language-property-list",
      "open-on-github",
      "styleguide",
      "metrics",
      "link",
      "deprecation-cop",
      "dev-live-reload",
      "autocomplete-css",
      "autocomplete-html",
      "emmet",
      "linter-jshint",
      "linter",
      "pigments"
    ]
  }
}

Installed Packages

# User
atom-cli-diff, v1.1.0
highlight-selected, v0.10.1
jshint, v1.3.8
minimap, v4.10.1
seti-syntax, v0.4.0
seti-ui, v0.7.1

# Dev
No dev packages