Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Uncaught Error: EISDIR: illegal operation on a directory, read #7409

Closed

Description

@unwitting
  1. Using package git-plus
  2. Cmd-Shift-P
  3. Git checkout
  4. Choose branch

Sporadic, not always reproducible.

Atom Version: 0.211.0
System: Mac OS X 10.10.3
Thrown From: Atom Core

Stack Trace

Uncaught Error: EISDIR: illegal operation on a directory, read

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:128

Error: EISDIR: illegal operation on a directory, read
  at Error (native)
  at Object.fs.readSync (fs.js:596:19)
  at Object.fs.readFileSync (fs.js:428:28)
  at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:369:29)
  at File.module.exports.File.readSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:248:36)
  at TextBuffer.module.exports.TextBuffer.updateCachedDiskContentsSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1019:85)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1123:17
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:430:40
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:564:44
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at process._tickCallback (node.js:357:13)

Commands

  2x -0:33.6.0 core:close (atom-text-editor.editor.is-focused)
     -0:30.6.0 settings-view:open (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-one-light-ui)
     -0:22.2.0 core:close (div.settings-view.pane-item)
     -0:20.4.0 fuzzy-finder:toggle-file-finder (atom-pane.pane.active)
     -0:19.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:19.3.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:18.7.0 command-palette:toggle (atom-pane.pane.active)
  4x -0:15.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:13.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:13.3.0 git-plus:diff-all (atom-pane.pane.active)
     -0:12.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:09.3.0 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
  4x -0:06.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:05.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:05.5.0 git-plus:checkout (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
  2x -0:05.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "followSymlinks": false
  },
  "editor": {
    "fontSize": 12,
    "invisibles": {},
    "fontFamily": "Bitstream Vera Sans Mono",
    "lineHeight": 1.4,
    "showInvisibles": true,
    "showIndentGuide": true
  }
}

Installed Packages

# User
atom-cli-diff, v1.0.0
color-picker, v2.0.7
fonts, v0.4.2
git-plus, v5.2.1
minimap, v4.10.0
project-view, v0.1.2
save-session, v0.15.5

# Dev
No dev packages

Activity

  1. elldritch commented on Sep 4, 2015

    @elldritch

    I'm also seeing this issue when using GVFS to edit files remotely.

    It also came with an alert:

    Unable to read file after file change event. Make sure you have permission to access /run/user/1000/gvfs/sftp:host=<redacted>,user=<redacted>.
    EISDIR: illegal operation on a directory, read
    

    Atom Version: 1.0.10
    System: Ubuntu 14.04

    Stack Trace

    /opt/atom/resources/app.asar/node_modules/q/q.js:128
    Error: EISDIR: illegal operation on a directory, read
        at Error (native)
        at Object.fs.readSync (fs.js:596:19)
        at Object.fs.readFileSync (fs.js:428:28)
        at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:369:29)
        at File.module.exports.File.readSync (/opt/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:257:36)
        at TextBuffer.module.exports.TextBuffer.updateCachedDiskContentsSync (/opt/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1061:85)
        at /opt/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1203:17
        at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
        at /opt/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:439:40
        at _fulfilled (/opt/atom/resources/app.asar/node_modules/q/q.js:794:54)
    
  2. yajo commented on Sep 10, 2015

    @yajo

    Me too in GFVS remote file.

  3. jmswhll commented on Oct 22, 2015

    @jmswhll

    I get this error too, when working on remote files on an SMB server. It seems to happen after a period of inactivity

  4. stale commented on Aug 29, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  5. lock commented on Mar 30, 2018

    @lock

    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!

  6. locked and limited conversation to collaborators on Mar 30, 2018
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