patternlab-php icon indicating copy to clipboard operation
patternlab-php copied to clipboard

Watch process doesn’t regenerate site

Open jannisborgers opened this issue 8 years ago • 8 comments

I’m not sure when this happened, but the watch process doesn’t regenerate the site anymore. The changes I made to a molecule aren’t updated in the organism it was included in (When running the Pattern Lab server, the changes are updated in the original pattern and the page is reloaded as well). When I generate the site manually with --generate, the changes are propagated correctly.

I’m using the Twig Edition on PHP.

Screenshot of watch process

The „has changed“ message pop up when I save the file.

jannisborgers avatar Aug 16 '16 11:08 jannisborgers

My workaround right now is to use CodeKit:

  • add twig as a generic file extension in CodeKits project settings to watch for changes
  • add the following hook to the project: When the full path contains path/to/project (careful!) and also contains .twig, run the following shell command:

cd path/to/project php core/console --generate

I also use CodeKit’s auto-reload. This way the browser reloads when both .scss and .twig files change. It reloads twice, though.

jannisborgers avatar Aug 16 '16 17:08 jannisborgers

@jannisborgers -

Just checking in with you. No intertubes at home at the moment so I wasn't able to look into this last night. Opening the issue now so I can view it offline and check on it tonight.

dmolsen avatar Aug 17 '16 20:08 dmolsen

Hi, any news about this bug ? We are facing the same problem here. watching but no regenerating. Thanks !

philippebarbosa avatar Sep 08 '16 09:09 philippebarbosa

The error occurs only when I include or extend an other .twig. The watch message "has changed" appears but it doesn't refresh the template

Bridn avatar Sep 08 '16 15:09 Bridn

I can also confirm this issue. Just want to say a quick kudos for all the awesome work, we are finally getting into Patternlab and this project is awesome, thanks so much.

Loque- avatar Sep 13 '16 13:09 Loque-

Any updates on this issue?

wwhurley avatar Aug 06 '18 16:08 wwhurley

I'm having the same issue, any chance this will be looked at soon?

bicrazor avatar Sep 24 '18 14:09 bicrazor

I find that the watch process does not reliably regenerate the site if it has previously timed out. Mac OSX 10.14.6 php version 7.1.23 (Feb 22 2019) I'll start pattern lab by running php core/console --server --with-watch after 10 minutes (which is too short, as others have observed in a different thread!) the process stops if there has been no console output. I will restart using the same command but now when I save a change to a pattern (for instance) the site is never updated. Possibly related: failures are silent and seem to cause the system to go unresponsive. That is, if I have a problem in a .json file (for instance), it might be revealed by --generate, but no error is displayed if I'm currently running the server --with-watch. This might be why nothing re-generates automatically. Will be happy for any insights. It's hard enough getting the patterns and data right without having to frequently restart the whole shebang.

JacqueH avatar Sep 24 '19 20:09 JacqueH