These are chat archives for TypeStrong/atom-typescript

6th
Oct 2015
Basarat Ali Syed
@basarat
Oct 06 2015 00:22

neither apm install nor npm install seem to refresh the .js files in my dist/ directory, am I missing something?

@Ptival atom-typescript is built with atom-typescript .... I can see why this can be a pain if you don't have a working atom-typescript in the first place. There is grunt there in the repo ... but it hasn't been maintained for quite a while so YMMV. If it doesn't work let me know and I'll try to fix it :rose:

npm install grunt grunt-ts and then grunt
@Ptival we had to remove it because atom wasn't liking it TypeStrong/atom-typescript#600
Valentin Robert
@Ptival
Oct 06 2015 01:30
@basarat I guess it's fine, good news is setting debug to true fixes the NixOS issue, so my guess is startWorker passes an environment to the spawned process that does not work well with NixOS
phil
@uniphil
Oct 06 2015 01:37
with debug true atom-typescript is finally working for me too!
Basarat Ali Syed
@basarat
Oct 06 2015 03:06

so my guess is startWorker passes an environment to the spawned process that does not work well with NixOS

Guess so :worried: BufferedProcess was a pain to get working on windows as well, but we managed to do that atom/atom#2887 Its because of us using atom as node (and not taking an unneeded dependency). Perhaps we can add an option "use node as node"

Valentin Robert
@Ptival
Oct 06 2015 04:01
@basarat is child_process part of your codebase or something from a library?
oh seems like it's a node thing
Basarat Ali Syed
@basarat
Oct 06 2015 05:16
TIP my workflow: if a require name is not relative -> check package.json if not there ... probably a node thing, otherwise lookup on npmjs.com
also the node built-ins are in js as well in the lib folder : https://github.com/nodejs/node/tree/master/lib (they interact with the C code base using process.binding)
Basarat Ali Syed
@basarat
Oct 06 2015 05:21
^ just thought I'd share the knowledge (that was hard for me to come by) :rose:
Valentin Robert
@Ptival
Oct 06 2015 17:34
thanks, that's useful
Matteo Gabriele
@MatteoGabriele
Oct 06 2015 19:45
please somebody helps me! :D
Basarat Ali Syed
@basarat
Oct 06 2015 20:34
@MatteoGabriele Whatcha need help with?