Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Uncaught Error: EACCES, permission denied '/home/wompt/ang2test/quickstart/app.es6' #29

Closed

Description

@JoshuaAdamYoung

[Enter steps to reproduce below:]

  1. Open a file without sudo permissions and edit while autosave is running.
  2. ...

Atom Version: 0.187.0
System: linux 3.13.0-37-generic
Thrown From: autosave package, v0.20.0

Stack Trace

Uncaught Error: EACCES, permission denied '/home/wompt/ang2test/quickstart/app.es6'

At /usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:329

Error: EACCES, permission denied '/home/wompt/ang2test/quickstart/app.es6'
  at Error (native)
  at Object.fs.openSync (fs.js:503:18)
  at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
  at Object.fs.writeFileSync (fs.js:1116:15)
  at Object.fsPlus.writeFileSync (/usr/share/atom/resources/app/node_modules/fs-plus/lib/fs-plus.js:243:17)
  at File.module.exports.File.writeFileSync (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:245:19)
  at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:315:21)
  at File.module.exports.File.write (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:304:12)
  at TextBuffer.module.exports.TextBuffer.saveAs (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
  at TextBuffer.module.exports.TextBuffer.save (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
  at TextEditor.module.exports.TextEditor.save (/usr/share/atom/resources/app/src/text-editor.js:621:26)
  at Object.module.exports.autosavePaneItem (/usr/share/atom/resources/app/node_modules/autosave/lib/autosave.js:56:80)
  at Object.module.exports.autosaveAllPaneItems (/usr/share/atom/resources/app/node_modules/autosave/lib/autosave.js:64:28)
  at /usr/share/atom/resources/app/node_modules/autosave/lib/autosave.js:25:26

Commands

  2x -5:15.7 editor:newline (atom-text-editor.editor)
     -4:14.7 core:save (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui.find-visible)
     -4:00.9 core:paste (atom-text-editor.editor)
     -3:57.8 editor:newline (atom-text-editor.editor)
     -3:52.8 core:copy (atom-text-editor.editor)
     -3:50.0 editor:newline (atom-text-editor.editor)
     -3:49.6 core:move-up (atom-text-editor.editor)
     -3:48.5 core:paste (atom-text-editor.editor)
  2x -1:20.9 editor:newline (atom-text-editor.editor)
     -1:19.3 core:paste (atom-text-editor.editor)
     -1:14.6 editor:newline (atom-text-editor.editor)
     -1:10.4 core:save-as (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "autosave": {
    "enabled": true
  }
}

Installed Packages

# User
linter, v0.12.0
open-in-browser, v0.4.3

# Dev
No dev packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions