These are chat archives for ensime/ensime-atom

10th
Dec 2015
Jeff Wilde
@jeffwilde
Dec 10 2015 18:50
@hedefalk, I just came across an existing package that provides what looks like a great API to display errors and annotate code in atom editors. Might be worth taking a look at ditching the custom controllers (that I just wrote :| ) and switching over to it if it’s not too restricting:
http://atomlinter.github.io/
https://github.com/atom-community/linter/wiki/Linter-Indie-API
Viktor Hedefalk
@hedefalk
Dec 10 2015 19:52
Cool!
@jeffwilde I’m all for using existing stuff as far as possible! I was looking for something similar before but I think this is newer. The API looks a bit ”linty” in that it requests a file to be linted and expects us to go away and do that just then. Ensime is of course more of a pushy thing where the ensime backend pushes errors out. Doesn’t really need to be a problem though. I say try it out!
If not for anything else but being consistant with others with ui…
I was a bit optimistic with my plans for today. I got stuck doing something entirely different (ditching nginx for haproxy to try to do zero downtime rolling releases of my stateful webapps - man is that hard and boring?). I think I wont be able to merge into master until next week.
Jeff Wilde
@jeffwilde
Dec 10 2015 20:37
I haven’t looked through the whole thing yet, but it has two versions of the API: one “pull" and the other “push”. The latter appears to accept messages whenever we wish to generate them, and clear them at our whim (which aligns with ensime’s model, if it works as advertised). There is mention of it being used by a collection of atom IDEs, including the Haskell one (scroll down to "Integrated Devlopment Environments” on that first link).
Either way, I’ve installed it and I’ll play around with it a bit and report back.
Viktor Hedefalk
@hedefalk
Dec 10 2015 20:38
Awesome then! I think your errors looks great, but the fewer lines of code we have to maintain, the better i’d say!
Jeff Wilde
@jeffwilde
Dec 10 2015 20:41
Yep, and I like the idea of consistency with other tools, too.
Re. merge: best not to do it before it’s 100% ready!
Viktor Hedefalk
@hedefalk
Dec 10 2015 20:43
Yeah.
I’m pushing small fixes right now as I find them if you’re intersted.
I think mostly startup problems right now. I currently have running detached ensime servers and then I can startup everything and switch to and from, but there was some hickups when i tried wiping everything to start clean. Got to churn those out so the first impression isn’t ruined.
But I really like the ability to have multiple ensimes in one window, gotta say!
Viktor Hedefalk
@hedefalk
Dec 10 2015 20:50
Do you guys have setup shortcuts for everything? Like organize imports, format source, show implicits and all that?
I don’t know if maybe it’s a good idea to add defaults?
Sometimes it’s also a problem to be overly customized, I mean there should always be the possibility to override, but perhaps some common defaults from IDEA or Eclipse would be in place?
Richard Dallaway
@d6y
Dec 10 2015 21:27
@raboof I believe we’re both at Scala eXchange. It’d be good to say hello. Tomorrow I’ll be over at the Underscore stand in the coffee/lunch area between talks. Maybe see you there.