These are chat archives for ensime/ensime-atom

9th
Mar 2016
Krishnadas
@krishnadasmallya
Mar 09 2016 04:26
I'm new to this, I tried setting up and the sbt step returned error downloading sources, but I was able to see the .ensime file in the project so I tried starting ensime but it is giving me error as
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: git.io
I'm running this behind corporate proxy and was able to setup Atom to work well with proxy
Magnus Andersson
@magnusart
Mar 09 2016 06:03
@trepidacious do you run the command typecheck all? I had issues with that and got loads of false errors. I switched to only typecheck on save file and I stay away from that command and it works better for me.
With above it only typechecks the active file. I had to stop ensime to end the typecheck all madness. Once it started it restarts when navigating between files.
You can also change the typecheck setting so it only runs on your command and never issue the command.
Viktor Hedefalk
@hedefalk
Mar 09 2016 07:21
@krishnadasmallya Oh, ensime-atom does stuff with curl outside of Atom's proxy settings.
Richard Dallaway
@d6y
Mar 09 2016 07:56
@hedefalk yes, i put in that work around for the httpPort file - I presume I must have seen something similar to that error, but it’s a while ago, so can’t be sure.
Krishnadas
@krishnadasmallya
Mar 09 2016 08:07
@d6y @hedefalk is there a known hack available which I can apply to make it work?
Ghost
@ghost~540393fe163965c9bc2018ce
Mar 09 2016 18:45
@hedefalk how about Racket as a language? Would be pretty cool to have lisp as our main client side languages
Also a way to make me even more jealous
I'd love to do some racket hacking
Rory Graves
@rorygraves
Mar 09 2016 18:45
racket is quite funky
trepidacious
@trepidacious
Mar 09 2016 19:38
@magnusart Thanks, I checked that setting and it's only typechecking when saving, but I still get lots of errors, probably just in files I've saved. I've just been ignoring them but they are a little distracting. Some of them are pretty basic - telling me that there is no such thing as Color.black in javafx Color, on a line that is specifically using java.awt.Color.black, with the package specified. I was thinking it might be pretty easy to make a toggle for highlighting ensime errors, maybe I'll have a look through the code since I'm interested to see what goes into an atom package :)
Viktor Hedefalk
@hedefalk
Mar 09 2016 20:11
@fommil Nah, lispy stuff ain't mah thang. If anything cool, I'm gonna go with Purescript. But I'm redoing stuff in Typescript now for vscode first. But maybe scala.js would be cool too…
@krishnadasmallya Can you open a ticket about downloading using proxy from Atom instead of curl?
Krishnadas
@krishnadasmallya
Mar 09 2016 20:19
@hedefalk sure will do, once I figure out how to. Thanks
Viktor Hedefalk
@hedefalk
Mar 09 2016 20:20
Krishnadas
@krishnadasmallya
Mar 09 2016 20:21
@hedefalk can you guide me to the hack that I can try to make it work immediately while the issue takes its own time to get resolved in a release?
Viktor Hedefalk
@hedefalk
Mar 09 2016 20:24
Sure!
It's actually currently ensime-node-client that does the download: https://github.com/ensime/ensime-node/blob/master/src/ensime-server-update-coursier.coffee#L75
I'm currently rewriting that thing though in Typescript though, but if you find a fix, it gotta be in ensime-atom since it needs to use Atom's proxy settings if I understand you correctly. That can't be in ensime-node.
Krishnadas
@krishnadasmallya
Mar 09 2016 20:28
ensime/ensime-atom#210 here you go, let me know if I need to add more details :smile:
Magnus Andersson
@magnusart
Mar 09 2016 21:26
@trepidacious I've seen some funky errors as well actually, like an errors saying illegal reassignment to val for a case class constructor when initialized with named parameters. I assume that comes from the presentation compiler which ensime uses. So those issues might need to be addressed there. Is this correct @rorygraves / @fommil?
In the meantime if you're getting too many false errors you can set typecheck to only occur when you issue the command, that would basically shut it off until you manually trigger it.
Rory Graves
@rorygraves
Mar 09 2016 21:31
@magnusart it would be really interesting to know if you see the same errors in ScalaIDE. (Eclipse). If you do then it's definately a PC fail. If not they may have a work around we can adopt.
Magnus Andersson
@magnusart
Mar 09 2016 21:42
Ok. I'll give it a try tomorrow. Any specific version or just the latest?
Rory Graves
@rorygraves
Mar 09 2016 21:50
Just the latest.
Thanks.
trepidacious
@trepidacious
Mar 09 2016 22:31
@magnusart Thanks, that's exactly what I needed, I should have thought of that!