proton

https://github.com/dvcrn/proton
2016-08-22T05:13:03.000268Z

So, proton died on me randomly a few weeks ago and I’ve been unable to figure it out how to fix it. I was busy with other stuff and just switched back to spacemacs for the time being, but really want to get this figured out.

2016-08-22T05:13:33.000269Z

proton-mode is giving me this:

Uncaught TypeError: this.resolve is not a function

2016-08-22T05:22:03.000272Z

Tried removing my .proton file and reinstalling - no dice so far.

2016-08-22T06:02:32.000273Z

aha! 🎉

2016-08-22T06:04:32.000274Z

So apparently... if you include the package choose-panes inside your .proton file… it completely nukes Proton.

2016-08-22T06:06:44.000275Z

and removing it from your .proton file does not fix the problem. You have to manually remove the choose-panes folder from .atom/packages/

2016-08-22T06:09:04.000276Z

I had choose-panes installed for a week with no problem, but started hitting the show-stopping this.resolve is not a function error after updating Atom, so something must’ve changed that broke it.

2016-08-22T06:10:02.000277Z

Weird that it completely took down proton and the error didn’t mention choose-panes at all.

dvcrn 2016-08-22T09:02:13.000278Z

that is indeed strange

dvcrn 2016-08-22T09:04:30.000279Z

proton doesn't really touch packages except their name. Especially on additional-packages

dvcrn 2016-08-22T09:04:47.000280Z

weird that that error is thrown from within proton

cvb 2016-08-22T10:41:45.000281Z

the problem seems to be here https://github.com/t9md/atom-choose-pane/blob/master/lib/input.coffee#L41, which is called from this callback https://github.com/t9md/atom-choose-pane/blob/master/lib/input.coffee#L11 during init, and that init initiated from proton's cljs, I'll try to investigate little later, maybe I'll get common with proton code myself

cvb 2016-08-22T10:42:37.000283Z

but the real problem is dynamic binding of this in js, which was cause of so much pain in my experience

cvb 2016-08-22T10:50:05.000284Z

btw, anybody have this problem that repl from proto-repl with proton is always in input mode and I can't switch it back to normal? Also it works fine with vanilla atom and installed proto-repl and vim-mode-plus.

cvb 2016-08-22T19:02:04.000285Z

investigated a little, and it seems that the cause of that error is proton's init phase, particularly this https://github.com/t9md/atom-choose-pane/blob/master/lib/input.coffee#L14 event gets fired when proton setting "editor.softWrap" config value (seems like this line https://github.com/dvcrn/proton/blob/master/src/cljs/proton/core.cljs#L175 can't say for sure, I don't have source maps) But having really limited knowledge of atom, I can't really say whose bug it is, any ideas?