These are chat archives for ensime/ensime-atom

15th
Apr 2016
Siddhartha Gadgil
@siddhartha-gadgil
Apr 15 2016 04:45
@hedefalk I have posted some stuff on the issues. Is there a manual workaround to download and cache those files - say put the jar in an ivy cache?
Viktor Hedefalk
@hedefalk
Apr 15 2016 05:18
No using ivy anymore but coursier. It think your issue is that already the download of coursier fails. It would be easy to just change here: https://github.com/ensime/ensime-node/blob/master/src/ensime-server-update-coursier.coffee#L76
Of course, then it will fail later when coursier downloads the jar's instead :( But you can probably workaround by using local of everything. But maybe the quickest thing is to fix proxy settings…
Siddhartha Gadgil
@siddhartha-gadgil
Apr 15 2016 06:44
@hedefalk I assume you mean fix them in ensime-atom - I already have proxy seetings in unix environment variables, JAVA_OPTS and npm
Viktor Hedefalk
@hedefalk
Apr 15 2016 07:54
@siddhartha-gadgil Yeah, ensime-atom/ensime-node. Or just wait for me to fix it… :)

Problem is the following: env variables aren't even reliable on Mac if you started Atom from UI so can't really rely on them. JAVA_OPTS is just JAVA_OPTS in env, right? npm config is just a settings file used by npm and therefore apm which just wraps npm, no?

So non of these are really applicable for an in-app download happening in a node.js app that Atom is. I'm waiting for someone to answer my question on the atom forum. Someone else must have had this problem too. I really don't want to need to add proxy settings to just ensime-atom. If you use a proxy, you want to make that setting once and have everyone use it, right?

Siddhartha Gadgil
@siddhartha-gadgil
Apr 15 2016 08:34
@hedefalk In the atom forums, I find "Atom respects the http_proxy and https_proxy env variables". Perhaps this is the best way? May not work out of the box for Macs, but will work in unix, and I assume windows, and in Mac with some effort.
Viktor Hedefalk
@hedefalk
Apr 15 2016 08:45
@siddhartha-gadgil Can you provide me with a link? Don't really know what "Atom respects" means. That apm respects it when downloading? Anyways, this might then be the "standard common ground" so we could just read those too?
We are using download which uses got and I think we can pass stuff in here: https://github.com/sindresorhus/got#proxies
So, yeah, we could just read env then. If present, pass in through download to got and maybe we'll be ok.
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 15 2016 08:48
in Emacs we recommend the assembly jars in restricted environments as its only one jar to get through the firewall
Viktor Hedefalk
@hedefalk
Apr 15 2016 10:41
@fommil Thanks! @siddhartha-gadgil Yeah, that's a good workaround in ensime-atom too. You can just drop an assembly-jar in ~/.atom/packages/Ensime/ and you'll be good to go.