seongjaelee / nvatom

nvatom (unpublished from atom.io)
MIT License
75 stars 14 forks source link

Cannot close tab with task renamed externally #57

Open artyhedgehog opened 8 years ago

artyhedgehog commented 8 years ago

Seems like this should reproduce this bug:

  1. Create task (file) in nvatom.
  2. Leave the task opened in atom.
  3. Shut down atom.
  4. Rename file with task via file manager or something.
  5. Start up atom.
  6. Try to close tab with the task. Now the tab with the deleted task cannot be closed.

Atom Version: 1.8.0 System: Ubuntu 14.04.4 Thrown From: nvatom package, v0.11.0

Stack Trace

Uncaught Error: ENOENT: no such file or directory, unlink '/home/akolomycev/Dropbox/Configs/atom/DOTatom/nvatom-notes/THE_TASK_FILE_NAME.md'

At fs.js:990

Error: ENOENT: no such file or directory, unlink '/home/akolomycev/Dropbox/Configs/atom/__DOT__atom/nvatom-notes/THE_TASK_FILE_NAME.md'
    at Error (native)
    at Object.fs.unlinkSync (fs.js:990:18)
    at Object.module.exports.autodelete (/home/akolomycev/Dropbox/Configs/atom/__DOT__atom/packages/nvatom/lib/notational-velocity.coffee:83:8)
    at /home/akolomycev/Dropbox/Configs/atom/__DOT__atom/packages/nvatom/lib/notational-velocity.coffee:52:97
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at PaneContainer.module.exports.PaneContainer.willDestroyPaneItem (/usr/share/atom/resources/app.asar/src/pane-container.js:298:27)
    at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app.asar/src/pane.js:630:17)
    at HTMLButtonElement.<anonymous> (/home/akolomycev/Dropbox/Configs/atom/__DOT__atom/packages/tree-view-open-files/lib/tree-view-open-files-pane-view.coffee:49:10)
    at HTMLButtonElement.jQuery.event.dispatch (/home/akolomycev/Dropbox/Configs/atom/__DOT__atom/packages/tree-view-open-files/node_modules/space-pen/vendor/jquery.js:4681:9)
    at HTMLButtonElement.elemData.handle (/home/akolomycev/Dropbox/Configs/atom/__DOT__atom/packages/tree-view-open-files/node_modules/space-pen/vendor/jquery.js:4359:28)

Commands

     -2:55.1.0 expand-region:select-around-double-quotes (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:55 expand-region:select-inside-parentheses (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:55 expand-region:select-around-parentheses (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:55 expand-region:select-inside-curly-brackets (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:55 expand-region:select-around-curly-brackets (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:55 expand-region:select-inside-square-brackets (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:55 expand-region:select-around-square-brackets (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
  2x -2:54.9.0 expand-region:expand (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
     -2:54.2.0 emacs-plus:copy (atom-text-editor.editor.emacs-plus.is-focused.mark-mode)
     -0:57.7.0 pane:show-next-recently-used-item (atom-text-editor.editor.emacs-plus.is-focused)
     -0:57.6.0 pane:move-active-item-to-top-of-stack (atom-text-editor.editor.emacs-plus.is-focused)
     -0:55.5.0 editor:newline (atom-text-editor.editor.emacs-plus.is-focused)
     -0:54.9.0 editor:outdent-selected-rows (atom-text-editor.editor.emacs-plus.is-focused)
     -0:52.4.0 autocomplete-plus:confirm (atom-text-editor.editor.emacs-plus.is-focused.autocomplete-active)
     -0:52.4.0 snippets:expand (atom-text-editor.editor.emacs-plus.is-focused.autocomplete-active)
  3x -0:47.9.0 core:backspace (atom-text-editor.editor.emacs-plus.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "disabledPackages": [
      "kill-ring",
      "language-markdown",
      "markdown-deluxe",
      "markdown-image-helper",
      "markdown-preview",
      "tidy-markdown",
      "atom-delete-current-file",
      "current-file-breadcrumb",
      "linter-markdown",
      "linter",
      "markdown-document",
      "markdown-folder",
      "markdown-writer",
      "tool-bar-markdown-writer",
      "tool-bar"
    ],
    "packagesWithKeymapsDisabled": [
      "find-and-replace",
      "expand-region",
      "open-in"
    ],
    "themes": [
      "one-light-ui",
      "github-atom-light-syntax"
    ]
  },
  "nvatom": {}
}

Installed Packages

# User
advanced-open-file, v0.16.3
atomic-chrome, v0.3.0
clipboard-plus, v0.5.1
copy-filename, v1.0.1
date, v1.1.1
disable-keybindings, v0.6.0
emacs-core-keys, v0.2.2
emacs-plus, v0.11.0
expand-region, v0.2.4
fonts, v1.5.0
github-atom-light-syntax, v0.2.0
goto-last-edit, v0.3.2
markdown-preview-plus, v2.4.0
nvatom, v0.11.0
open-in, v4.0.0
remote-edit, v1.8.24
simple-copy-path, v1.0.0
toggle-markdown-task, v0.5.0
tree-view-open-files, v0.3.0

# Dev
No dev packages