atom / github

:octocat: Git and GitHub integration for Atom
https://github.atom.io
MIT License
1.11k stars 394 forks source link

Uncaught TypeError: this.resolveReady is not a function #815

Open airhorns opened 7 years ago

airhorns commented 7 years ago

All I did was upgrade from 1.17.0 to 1.18.0-beta0 and restart my editor, I had one or two Ruby files open. Let me know what more context I can gather!

Atom: 1.18.0-beta0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.4 Thrown From: github package 0.0.9

Stack Trace

Uncaught TypeError: this.resolveReady is not a function

At /Applications/Atom Beta.app/Contents/Resources/app/node_modules/github/lib/worker-manager.js:462

TypeError: this.resolveReady is not a function
  at emitter.on._ref10 (<embedded>:96333:18)
  at Function.module.exports.Emitter.simpleDispatch (<embedded>:62928:20)
  at Emitter.module.exports.Emitter.emit (<embedded>:63044:34)
  at EventEmitter.handleMessages (<embedded>:96323:28)
  at emitTwo (events.js:106:13)
  at EventEmitter.emit (events.js:191:7)

Commands

Non-Core Packages

ariake-dark-syntax 0.1.3 
atom-beautify 0.29.24 
atom-ctags 5.0.0 
atom-material-syntax 1.0.6 
atom-material-ui 2.0.3 
aurora-theme 1.2.2 
autocomplete-glsl 0.2.3 
autocomplete-python 1.8.63 
autocomplete-ruby 0.2.8 
autocomplete-webgl 1.1.0 
busy-signal 1.4.1 
clipboard-plus 0.5.1 
dash 1.7.1 
ex-mode 0.14.0 
expand-region 0.3.0 
formatter 2.12.4 
gloom 0.5.0 
intentions 1.1.2 
language-babel 2.61.0 
language-batch 0.4.0 
language-chef 0.9.0 
language-elm 1.5.0 
language-fish-shell 1.0.5 
language-glsl 2.0.1 
language-powershell 4.0.0 
language-rust 0.4.10 
language-scala 1.1.8 
language-terraform 0.8.1 
language-varnish 0.6.0 
line-length-break 0.4.0 
linter 2.1.4 
linter-eslint 8.1.7 
linter-flake8 2.2.1 
linter-glsl 2.1.3 
linter-pep8 1.3.2 
linter-pycodestyle 2.0.2 
linter-rubocop 2.1.1 
linter-rust 0.8.0 
linter-ui-default 1.3.0 
linter-write-good 0.9.0 
local-history 4.1.1 
merge-conflicts 1.4.5 
minimap-selection 4.4.0 
nord-atom-syntax 0.9.1 
nord-atom-ui 0.11.0 
nuclide-flow 0.0.32 
nuclide-type-hint 0.0.32 
pigments 0.39.1 
revert-buffer 0.5.0 
ruby-test 1.0.2 
tabs-to-spaces 1.0.3 
vim-mode 0.66.0 
vim-surround 0.8.1 
wordcount 2.10.4 
rsese commented 7 years ago

Thanks for the report! Can you confirm a couple of things for us?

airhorns commented 7 years ago

is the error is reproducible?

Yep, pops up each time I open the beta .app .

if reproducible, do you see the error in safe mode (atom --safe)?

I do not see the error in safe mode, which makes sense right because because safe mode disables all packages?

rsese commented 7 years ago

I do not see the error in safe mode, which makes sense right because because safe mode disables all packages?

lol sorry, didn't completely edit that canned reply, thanks for confirming you can reproduce :v:

rsese commented 7 years ago

@smashwilson do you think there anything y'all might want to look at while it's reproducible before we try something like clearing saved state?

smashwilson commented 7 years ago

@rsese Wait - safe mode doesn't disable core packages, right? Otherwise things like tree-view wouldn't work in safe mode either.

rsese commented 7 years ago

Ohhh right, the GitHub package is a core package πŸ˜† sorry @smashwilson.

@airhorns - since it's not reproducible in safe mode, then one of your community packages may be causing the error. You can disable them all and then enable one-by-one to find the culprit or since you have quite a few installed packages, https://atom.io/packages/package-cop might be helpful too.

micaelmbagira commented 7 years ago

I have the same from today in 1.18.0

rsese commented 7 years ago

@micaelmbagira - do you have steps to reproduce that you can share? And if reproducible, can you reproduce in safe mode (atom --safe)?

tvalentius commented 7 years ago

@rsese

I am having the same issue after update to 1.18.0 today and yes i can reproduce it even on safe mode.

It pops up each time i open the app.

micaelmbagira commented 7 years ago

@rsese It pops up every time when I open the app, but in safe mode, it works, I don't have the error showing up.
It might be obvious, but when I disable the github package, i can't reproduce the error anymore.

rsese commented 7 years ago

I am having the same issue after update to 1.18.0 today and yes i can reproduce it even on safe mode.

It pops up each time i open the app.

Hmm, if you temporarily reset to factory defaults, do you still get the error @tvalentius?

http://flight-manual.atom.io/hacking-atom/sections/debugging/#reset-to-factory-defaults

It pops up every time when I open the app, but in safe mode, it works, I don't have the error showing up. It might be obvious, but when I disable the github package, i can't reproduce the error anymore.

@micaelmbagira if you don't see the error in safe mode, then it's likely that one of your community packages is causing the issue. You can try disabling all your community packages and enabling them one-by-one to pinpoint the package.

micaelmbagira commented 7 years ago

@rsese Weird thing, since today the error doesn't show up... Maybe the incriminated package got updated

masom commented 7 years ago

I'm also able to reproduce this error. Disabling the github package stops it from happening.

rsese commented 7 years ago

Weird thing, since today the error doesn't show up... Maybe the incriminated package got updated

Oh good to know, glad you're not seeing the error anymore @micaelmbagira :v:

@masom - if you enable the github package and then start in safe mode (atom --safe), do you still get the error?

miamollie commented 7 years ago

I had this error starting yesterday, similarly did not appear in --safe mode.

Updated all community packages and it went away.

β”œβ”€β”€ MagicPython@1.0.10
β”œβ”€β”€ atom-beautify@0.30.3
β”œβ”€β”€ atom-html-preview@0.1.22
β”œβ”€β”€ autoclose-html@0.23.0
β”œβ”€β”€ file-icons@2.1.7
β”œβ”€β”€ haskell-grammar@0.4.0
β”œβ”€β”€ highlight-selected@0.13.1
β”œβ”€β”€ language-babel@2.66.0
β”œβ”€β”€ language-graphql@0.9.0
β”œβ”€β”€ language-ini@1.19.0
β”œβ”€β”€ language-lua@0.9.11
β”œβ”€β”€ language-ocaml@1.1.2
β”œβ”€β”€ language-rust@0.4.10
β”œβ”€β”€ language-swift@0.5.0
β”œβ”€β”€ language-thrift@1.0.2
β”œβ”€β”€ linter@2.2.0
β”œβ”€β”€ linter-eslint@8.2.1
β”œβ”€β”€ merge-conflicts@1.4.5
β”œβ”€β”€ nuclide@0.232.0
β”œβ”€β”€ nuclide-format-js@0.0.36
β”œβ”€β”€ prettier-atom@0.34.0
β”œβ”€β”€ ruby-slim@0.2.0
β”œβ”€β”€ set-syntax@0.3.2
β”œβ”€β”€ sort-lines@0.14.0
β”œβ”€β”€ svgo@2.8.5
└── tool-bar@1.1.0

Of those I have only the following in common with @airhorns, so maybe that helps narrow it down a wee bit.

β”œβ”€β”€ atom-beautify@0.30.3
β”œβ”€β”€ language-babel@2.66.0
β”œβ”€β”€ linter@2.2.0
β”œβ”€β”€ linter-eslint@8.2.1
β”œβ”€β”€ merge-conflicts@1.4.5
urikphytech commented 7 years ago

+1 happens to me on version 1.18.0

Lukkub commented 7 years ago

+1 happens to me on version 1.18.0

BinaryMuse commented 7 years ago

While I understand the frustration of software that's not behaving, "+1" comments aren't very helpful unless they provide a bit more information. In particular, @rsese's question above about whether or not this reproduces in safe mode is very helpful β€”Β if using safe mode makes the problem go away, then there's likely a problem with a community package that's conflicting in some way. If you find this is the case, and you're willing to share what packages you have installed, it might help us track down the issue a little faster. Thanks! :bowing_woman:

masom commented 7 years ago

atom --safe does not trigger the error.

facebooknuclideapm/nuclide-flow is the package producing the errors.

knasim commented 7 years ago

i'm experiencing the same - upon opening any *js file. version: 1.18.0

knasim commented 7 years ago

i do have facebooknuclideapm installed

knasim commented 7 years ago

Just update facebooknuclideapm plugin and this annoying popup modal shall go away. Originally pointed out by @masom