Fork me on GitHub
#proton
<
2016-08-22
>
jessejanderson05:08:03

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.

jessejanderson05:08:33

proton-mode is giving me this:

Uncaught TypeError: this.resolve is not a function

jessejanderson05:08:03

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

jessejanderson06:08:32

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

jessejanderson06:08:44

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

jessejanderson06:08:04

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.

jessejanderson06:08:02

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

dvcrn09:08:13

that is indeed strange

dvcrn09:08:30

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

dvcrn09:08:47

weird that that error is thrown from within proton

cvb10:08:45

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

cvb10:08:37

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

cvb10:08:05

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.

cvb19:08:04

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?