Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: EBADF, bad file descriptor #33

Closed
NoelAbrahams opened this issue Jan 29, 2015 · 9 comments
Closed

Uncaught Error: EBADF, bad file descriptor #33

NoelAbrahams opened this issue Jan 29, 2015 · 9 comments
Assignees
Milestone

Comments

@NoelAbrahams
Copy link

  1. Install atom-typescript.
  2. Error occurs soon after (x4)

Atom Version: 0.176.0
System: Microsoft Windows 8.1 Pro
Thrown From: atom-typescript package, v0.9.0

Stack Trace

Uncaught Error: EBADF, bad file descriptor

At fs.js:559

Error: EBADF, bad file descriptor
  at Error (native)
  at Object.fs.writeSync (fs.js:559:20)
  at SyncWriteStream.write (fs.js:1768:6)
  at Socket.<anonymous> (c:\Users\Noel\.atom\packages\atom-typescript\node_modules\atom-package-dependencies\node_modules\shelljs\src\exec.js:113:22)
  at Socket.emit (events.js:129:20)
  at readableAddChunk (_stream_readable.js:161:16)
  at Socket.Readable.push (_stream_readable.js:125:10)
  at Pipe.onread (net.js:522:20)

Commands

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
atom-typescript, v0.9.0

# Dev
No dev packages

/cc @atom/core


Workaround

Just restart atom after these errors. They only happen once when we try to install linter and autocomplete-plus on your behalf.

@basarat basarat self-assigned this Jan 30, 2015
@basarat basarat added the bug label Jan 30, 2015
@basarat
Copy link
Member

basarat commented Jan 30, 2015

@NoelAbrahams Thanks! this is because of my trying to install autocomplete-plus on your behalf.

Few things would help me debug it better:

  • can you run apm on the command line i.e. is it in your system path
  • are you running with special permissions like administrator by any chance? (shouldn't be).

@kiyokura
Copy link

I got the same error.

I tried that :

  • uninstall atom-typescript
  • open cmd as administrator.
  • execute command : apm install atom-typescript

However, the same error occurs.

@basarat
Copy link
Member

basarat commented Jan 30, 2015

Workaround is :

apm install autocomplete-plus
apm install atom-typescript

@basarat
Copy link
Member

basarat commented Jan 30, 2015

I can reproduce it. Great. Sorry for that.

@basarat basarat added this to the SecondCut milestone Jan 30, 2015
@kiyokura
Copy link

The workaround worked well for me.
thx!

@basarat
Copy link
Member

basarat commented Jan 30, 2015

Updated workaround: Just restart atom after these errors. They only happen once when we try to install linter and autocomplete-plus on your behalf. We do manage to install it correctly though.

@basarat
Copy link
Member

basarat commented Jan 30, 2015

This is the source of the error: travs/atom-package-dependencies#6 I already fixed it travs/atom-package-dependencies#7 but looking at atom-package-dependencies/index.js on NPM it doesn't seem to have my fix. Pinging @travs

@basarat
Copy link
Member

basarat commented Jan 30, 2015

Fixed in atom-typescript@v0.11.0

Fix commit : a210f26

@basarat basarat closed this as completed Jan 30, 2015
@kiyokura
Copy link

👍

@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants