These are chat archives for ensime/ensime-atom

30th
Mar 2016
I think current atom uses electron 0.34.5, so npm_config_target needs to be that.
Viktor Hedefalk
@hedefalk
Mar 30 2016 18:14
@mkhl Cool! That is an alternative to apm rebuild? I actually just removed chokidar/fsevents which made apm rebuild work. But I still get the error on atom beta, not on 1.6 though.
Martin Kühl
@mkhl
Mar 30 2016 18:16
No, but it makes npm install and subsequent apm rebuilds work.
Viktor Hedefalk
@hedefalk
Mar 30 2016 18:17
Ok… I really don't understand much if this :)
Martin Kühl
@mkhl
Mar 30 2016 18:17
Also I think the build artifacts are stored somewhere, cleaning that folder might be required when you switch atom versions…
Ha, neither do I :-)
It doesn’t help that the atom docs for this seem somewhere between incomplete and misleading.
Viktor Hedefalk
@hedefalk
Mar 30 2016 19:03
@mkhl I'm not really sure how to use that npm workflow. So I have ensime-atom that depends on ensime-node. I can run apm rebuild on ensime-atom but not on ensime-node because it fails on a devDep on fsevents. I use npm link to link ensime-node from ensime-atom so I don't really install it… So the last line: HOME=~/.electron-gyp npm install module-name, how am I to interpret that?
Martin Kühl
@mkhl
Mar 30 2016 20:05
So as I said, I'm unsure myself how the pieces fit together.
I had trouble building atom/text-buffer, which depends transitively on fsevents.
On a clean system, npm install failed in fsevents, complaining about an "unsupported target".
Setting the npm config vars and then running npm install succeeded.
HOME=~/.electron-gyp npm install module-name is the command you run to install module-name.
In your case, I think just npm install inside ensime-node should succeed.
That command line defines HOME during the execution of npm install, which I believe segregates compiler caches (or something)
Also, to have such a “clean” system, you may need to clean out some directory. I’m unsure which one, but I believe that it’s ~/.npm-gyp/
Martin Kühl
@mkhl
Mar 30 2016 20:15
I wish I could be more help…
Viktor Hedefalk
@hedefalk
Mar 30 2016 20:16
@mkhl Cool! I'll try some more…