Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Watch process doesn’t regenerate site #371

Open

Description

@jannisborgers

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.

Activity

  1. jannisborgers commented on Aug 16, 2016

    @jannisborgers
    Author

    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.

  2. dmolsen commented on Aug 17, 2016

    @dmolsen
    Member

    @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.

  3. self-assigned this
    on Aug 17, 2016
  4. philippebarbosa commented on Sep 8, 2016

    @philippebarbosa

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

  5. Bridn commented on Sep 8, 2016

    @Bridn

    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

  6. 7oque commented on Sep 13, 2016

    @7oque

    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.

  7. wwhurley commented on Aug 6, 2018

    @wwhurley

    Any updates on this issue?

  8. bicrazor commented on Sep 24, 2018

    @bicrazor

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

  9. JacqueH commented on Sep 24, 2019

    @JacqueH

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions