-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Sometimes work, sometimes don't : timeout issues ? #3
Comments
Try with the latest version (v2.3.0) I've done a bunch of improvements here. I've also noticed that this infinite loop thing will occur if your app is already socket.io. In which case use the new |
I am on latest version (v2.3.1) and I meet a bug. on file a, I change something, and save, it worked. on file b, I change something, and save, it generate again. |
Hey @kartast can you try reinstalling DocPad, I just pushed some changes up right then that should fix this. Let me know if you still get it. By the way, what editor are you using to edit your files? |
Hi @balupton.. i reinstalled and it still doesn't work. I am using SublimeText 3. It turns out, if I use BBEdit it works well. So for now I can use other text editor to work with this. Thanks! |
Hrmm. Mind if I remote in and see if I can fix it? |
It works with Sublime Text 2 too.. I think you can reproduce it easily with Sublime Text 3.. It throws this: Error: ENOENT, stat '/Users/karta022/Google Drive/Dropbox/karzy.io/src/documents/posts/.subl88d.tmp' Not sure if it helps |
I am having the same problem. Strangely, if I set a breakpoint on the |
Hrmmm... try the suggestions at the bottom of the https://github.com/bevry/watchr readme, do they help? |
I changed Can't really work out what was going wrong though. |
Actually that didn't fix it. |
Ok I think I've fixed it now. The problem was that Replacing the call to
|
Awesome, great work! :) Want to send it through as a pull request? And I'll get a new version out pronto. |
Fixes #3. Wait until page is loaded before injecting socket.io script.
- v2.4.0 May 6, 2013 - Merged [pull request #7](#7) by [Vaughan Rouesnel](https://github.com/vjpr) to solve [issue #3](#3)
Hi,
I decided to try the plugin, and after adding 2 blocks for scripts and styles like this
@getBlock('styles').add(['my','styles']).toHTML()
, I launcheddocpad run
. The problem is that the plugin sometimes managed to reload the page after a change, sometimes dont'.I don't know how to debug WebSockets stuff in the browser (Chrome), the Network panel just shows a pending connection, sometimes for as long as 30s - that is, until I change the file again to see if something will happen.
Here's the output of the
docpad run
command :docpad run info: Welcome to DocPad v6.17.3 info: Plugins: coffee, eco, less, livereload, marked info: Environment: development info: DocPad listening to http://localhost:9778/ on directory /Users/khalid_jebbari/Documents/Projects/Buro2/site/out info - socket.io started info: Generating... info: Generated all 8 files in 0.746 seconds info: Watching setup starting... info: Watching setup info: The action completed successfully
I change a file (just adding a 's'). It works fine :
info: Regenerating at 13:18:59 info: Generating... info: Generated 4 files in 0.305 seconds info: Regenerated at 13:18:59
I change again (add another 's'). Same output but no reload in the browser :
info: Regenerating at 13:19:18 info: Generating... info: Generated 4 files in 0.369 seconds info: Regenerated at 13:19:19
Then after almost 1 minute, without me changing anything in the source, new debug output appears in the console :
And this output keeps appearing in a kind of infinite loop at a slow rate. Reading it there's seem to be some problem with the connexion and timeouts that prevent stuff from working, but I can't really say more.
The text was updated successfully, but these errors were encountered: