-
Notifications
You must be signed in to change notification settings - Fork 181
ATL hangs on compiling #279
Comments
@robbaman do you have some example to reproduce? |
I have the same problem, I'm on windows so maybe this is the reason ? |
I'm also on Windows, I currently don't have a working solution to link because I don't think my employer will appreciate me sharing it :) I'll try and find some time to create a working example with less sensitive code. This may take me some days though, so please bear with me. Note that I used the 3.0.0 beta build by accident. Now that I've switched back to 2.2.1 everything works just fine (though the 3.0.0 build felt alot faster... when it didn't hang) |
Same thing here, I fell back to ts-loader and it worked just fine... I was using 3.0.0-beta.3 |
Seems to be related nodejs/node#7657 |
I stole some hacks to buffer IPC messages from the VSCode, should work now. |
We seem to be experiencing this only in certain projects in certain situations and not on all machines. on a windows server 2008 R2 build this happens for us for one of our projects when running karma. So there's lots of moving parts here. What we have found is that the buffering code isn't quite doing enough, while it reduces the chance of this happening, it can still happen under certain scenarios. By wrapping the continuation of the send loop in a setImmediate we have resolved the issue for now... However, I have a feeling that it is a fundamental issue with some versions of node + windows + project. |
I am seeing this on every file change with version 3.0.7....anything specific I'm missing? What node version? I have 6.10 |
Nevermind, it turns out my issue was related to this baldore/open-browser-webpack-plugin#18 . |
I've noticed that in about 50% of the cases when I start the
webpack
command using awesome-typescript-loader the command never finishes. I've spent some time going through the sources attempting to figure out what could be wrong (I'm sure it's something that's specific for my project) but haven't been able to figure it out.It goes wrong in the communication between the child process and the main process in
checker.ts
andinstance.ts
To illustrate I've added a log line to the
req()
function logging asend
message, a log to thereplyOk
function ininstance.ts
and another in the receive-message event handler inchecker.ts
again.Note how initially the
EmitFile
messages all pass thereplyOk
function ininstance.ts
and that every one also has areceive success
log line, but after some time thereplyOk
lines seem to no longer be received by thechecker.ts
code.Unfortunately I'm not much of a Node programmer, so I'm really not sure how to get additional logging out of the system, so I'd really appreciate some assistance with getting this resolved. As it stands now, I can't use webpack more than once or twice without it hanging. Using it in watch mode is definately out of the question as-is...
The text was updated successfully, but these errors were encountered: