Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Watchr: Docpad watching doesn't really work #477

Closed
adrianolaru opened this Issue · 16 comments

3 participants

@adrianolaru

node 0.10.3
npm 1.2.17
docpad 6.30.2
osx 10.8.3

Let's say I have a layout and an index file that uses the layout. When I run "docpad run" all the files are generated. When I modify the index file, the changes are picked up, but if I modify the file again, nothing is generated anymore.

For some reason, only the first modification to a file is picked up.

@balupton
Owner

Hrmmm, a few people have been reporting this, or similar issues. I've made a label for all watching related issues.

Can you try the suggestion here and let me know if it works - #427 (comment)

@adrianolaru

Yes, it works. Thanks.

@adrianolaru

As a side note, the livereload plugin was also affected by the same issue...

@balupton
Owner

Thanks for that. Yeah it is a pain of an issue. Is there a time when I can remote into your machine and debug? As the proper fix is autodetection of the correct method to use.

@adrianolaru

I guess we can this week, say, around 16:00 Sydney time.

@balupton
Owner

Lets do Wednesday or Thursday 16:00 Sydney Time, let me know which day :) My skype username is balupton

@adrianolaru

Wednesday. 16. Mine's agolaru

@slindberg

FWIW, I've been having the same issue for a few weeks and the preferredMethods seems to have fixed it. The only issue now is that watching doesn't pick up changes for 2-3 seconds, which makes using the live-reload plugin somewhat pointless. I have an identical dev setup to @adrianolaru.

@balupton balupton referenced this issue in bevry/watchr
Closed

Make it handle how vim saves files #38

@balupton
Owner

Please reinstall docpad and give this a go :)

@adrianolaru

I've done that... still testing...but...

when I edit with vim and use docpad run

  • if set noswapfile: fix doesn't work
  • if noswapfile is not set (default): I get 2 generator logs: Generated 0 files... Generated 3 files... everytime i make a change...
@adrianolaru

I'm running docpad without any watchOptions in docpad.coffee... sublime text 3 is working just fine now...

@balupton
Owner

K. Is it possible for me to remote in again?

@balupton
Owner

Ok, reinstall docpad again, and test it out - the watchr version installed with docpad should be v2.4.3 now

@balupton
Owner

This also seems to be the config option causing the problem in Sublime Text 3:

    // Save via writing to an alternate file, and then renaming it over the
    // original file.
    "atomic_save": true,
@adrianolaru

we can do it again tomorrow...if there's still the need...

@balupton
Owner

Yep, lets do it again. Keen to get this sorted. Also lets continue this discussion on the associated watchr issue instead: bevry/watchr#33

@balupton balupton closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.