-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DocPad v6.55.1 — Node error: "Please use setImmediate in place of process.nextTick" #717
Comments
I looked into this the other day but I have no clue on what is the cause of this issue. It happens everytime on the DocPad Website with DocPad v6.55. Would really appreciate if others could look into it as well. The sooner this is fixed the better. |
Fixed in v6.55.3 |
Upgrading to 6.55.3 lead to this issue: MassDistributionMedia/arkivum.docpad/issues/28 |
Upgrading to 6.55.8 and removing the related plugin is producing the error again for arkivum.docpad.
|
It seems that process.nextTick is deprecated and annoyingly someone decided it was a good idea to output this fact to the console every-time it's run. There's catch This message doesn't make sense, I don't get this message with my docpad sites and process.nextTick is used a lot. So why is this message appearing here for you? My hunch is that this message is bit of a red herring and an error is occurring somewhere and silently fails in the render process. The solution could be as simple as just changing process.nextTick to setImmediate (in taskGroup I believe) the only problem with that is backward compatibility with node 0.8 would be broken. I looked at this project on my pc and I get the same warning over and over. I've had this error message recently before with a project not related to docpad but related with taskGroup...it was a scenario where it was calling an empty task 1000's of times via process.nextTick. I discovered there is a way to throw an exception when this warning occurs by running
This is the error that was spat out with your project:
when I run
I know it's not fixing the problem but hopefully shedding some light on where the problem is |
I run node-inspector and put a break on [email protected]:375 |
Found the fix. Turned out TaskGroup is trying to use see TaskGroup pull request for fix details here Though this problem will still exist for node 0.8, it is a fix for 0.10 |
|
Will merge in shortly. |
👍 |
before I forget, this project seems to have generated so many tasks that when it starts to execute them all it surpasses the I found that inspecting the first maxTick warning there were always two tick entries that were around 5000 or 10000 (which is why it was outputting all the warnings) I think we still need to find the reason why docpad is overloading process.nextTick. I was thinking that it may be useful to have counter stats for all the tasks, who created them etc... or something like that. In the meantime if any node 0.8 users encounter this scenario they can up their |
Released to v6.55.9. Cheers! |
Just upgraded to DocPad 6.55.1 and upon running I'm getting a long repeat of this during the generation passes:
Seems DocPad is running locally but live-reload isn't reloading and any changes made to the local source, after a refresh, aren't showing up for work.
The text was updated successfully, but these errors were encountered: