atom / atom

:atom: The hackable text editor
https://atom.io
MIT License
60.21k stars 17.39k forks source link

Uncaught Error: Can't create a backup file for /Users/sglyon/Downloads/firmproblem_withdebt.jl be... #9568

Closed sglyon closed 7 years ago

sglyon commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.3.0-beta0 System: Mac OS X 10.11.1 Thrown From: Atom Core

Stack Trace

Uncaught Error: Can't create a backup file for /Users/sglyon/Downloads/firmproblem_withdebt.jl because files already exist at every candidate path.

At /Applications/Atom Beta.app/Contents/Resources/app.asar/src/pane.js:829

Error: Can't create a backup file for /Users/sglyon/Downloads/firmproblem_withdebt.jl because files already exist at every candidate path.
    at TextBuffer.module.exports.TextBuffer.backUpFileContentsBeforeWriting (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1116:17)
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1043:31)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1030:19)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/text-editor.js:600:26)
    at Pane.module.exports.Pane.saveItem (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/pane.js:534:18)
    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/pane.js:517:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/workspace.js:633:35)
    at atom-workspace.commandRegistry.add.core:save (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/register-default-commands.js:173:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:533:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:356:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:99:36)
    at HTMLDocument.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -3:06.1.0 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -3:05.6.0 editor:toggle-line-numbers (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -2:32.1.0 vim-mode:insert-after (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  6x -2:31.7.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  4x -0:47.5.0 core:move-down (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:46.4.0 editor:add-selection-above (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  9x -0:45.4.0 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  6x -0:38.3.0 find-and-replace:select-next (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  2x -0:36.2.0 core:delete (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:34.9.0 core:move-right (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:34.6.0 editor:move-to-end-of-word (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:34.2.0 core:delete (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
 21x -0:33.8.0 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:03.0 core:select-up (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:02.2.0 editor:toggle-line-comments (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  7x -0:02.1.0 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "wrap-guide",
      "todo-list",
      "markdown-preview",
      "fonts"
    ],
    "themes": [
      "isotope-ui",
      "tomorrow-night-eighties-syntax"
    ],
    "excludeVcsIgnoredPaths": false
  },
  "editor": {
    "invisibles": {},
    "lineHeight": 1.2,
    "tabLength": 4,
    "softWrap": true,
    "fontFamily": "Hasklig-ExtraLight",
    "fontSize": 11,
    "softWrapHangingIndent": 2,
    "scrollPastEnd": true,
    "showIndentGuide": true,
    "backUpBeforeSaving": true
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.3.0
atom-alignment, v0.12.1
atom-spotify2, v2.1.2
autocomplete-bibtex, v0.6.1
autocomplete-paths, v1.0.2
autocomplete-python, v0.10.3
battery-status, v0.10.3
build, v0.48.0
build-make, v0.2.1
compare-files, v0.6.2
file-icons, v1.6.11
file-types, v0.5.1
git-diff-details, v0.21.0
ink, v0.1.1
isotope-ui, v2.7.0
language-diff, v0.4.0
language-julia, v0.4.1
language-latex, v0.6.1
language-lisp, v0.1.2
language-matlab, v0.1.1
language-pfm, v0.82.0
language-scala, v1.1.4
last-cursor-position, v0.9.0
latex, v0.28.2
latex-completions, v0.3.0
latexer, v0.2.7
markdown-preview-plus, v2.2.2
minimap, v4.16.0
minimap-git-diff, v4.1.8
multi-wrap-guide, v0.23.1
pdf-view, v0.34.0
project-manager, v2.6.5
selection-counter, v1.0.0
spacemacs-evil-keys, v0.0.0
time-status, v1.1.0
tomorrow-night-eighties-syntax, v0.11.0
vim-mode, v0.63.0
vim-surround, v0.8.1
wakatime, v5.0.0

# Dev
No dev packages
nathansobo commented 8 years ago

You can try deleting the ~-suffixed files in that directory. You may want to disable backups on save if that doesn't address it until we can explore a different backup file strategy.

sglyon commented 8 years ago

I deleted them, but they got filled up quickly again.

So for now I'm just not using backup

// Spencer On Nov 13, 2015 12:39, "Nathan Sobo" notifications@github.com wrote:

You can try deleting the ~-suffixed files in that directory. You may want to disable backups on save if that doesn't address it until we can explore a different backup file strategy.

— Reply to this email directly or view it on GitHub https://github.com/atom/atom/issues/9568#issuecomment-156497015.

lock[bot] commented 6 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!