question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`grow run` does not watch for changes in included files any longer

See original GitHub issue

Heya!

I noticed recently that Grow doesn’t pick up changes to included files anymore, so if you, like me, inline a CSS file in a partial, like so:

{% include "/assets/css/main.min.css" %}

then make changes to that file and reload the page, these changes are not picked up. I have to kill the process and restart, which defeats the purpose of the grow run mode. This has worked before – any possibility to bring it back, or any potential workaround?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Zoramitecommented, Jul 12, 2019

@matthiasrohmer I think that you may have hit this on the head when you talked about gulp not picking up the changes.

In the later versions of gulp the changes were not updating the mtime of the file in the later versions of gulp which was throughing off grow’s file watchers. I think that some of the changes that we did should work around the mtime issues completely, but let me know if you are still seeing issues.

See: https://github.com/grow/grow/issues/955

1reaction
pbakauscommented, Sep 20, 2018

Hi again, sorry for the incredible delay!

I confirmed that even with a full build (grow build), sass changes are not picked up in my local build when in grow run mode.

I did the following:

  1. grow run
  2. Open _mission.scss
  3. Browse to http://localhost:8080/about/mission/
  4. Change line 35 in _mission.scss from background: white to background: red
  5. Observe in terminal that sass task ran successfully and picked up the changes
  6. Reload browser window
  7. No changes are picked up, even though the generated mission.min.css picked it up, and is imported in the head of the page

Help?

(We confirmed this on several machines)

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSC unable to watch for file changes in this large workspace ...
I just started using VSCode version 1.24.1. After loading a folder, it shows warning. Visual Studio Code is unable to watch for file...
Read more >
Unable to watch for file changes in this large workspace - GitHub
I was running Mint 17.3 for a long time (Ubuntu 14.04 equivalent) with VSCode and had no issues (never changed the amount of...
Read more >
FileSystemWatcher Class (System.IO) - Microsoft Learn
The component is set to watch for changes in LastWrite and LastAccess time, the creation, deletion, or renaming of text files in the...
Read more >
File Watchers | IntelliJ IDEA Documentation - JetBrains
File Watcher is an IntelliJ IDEA tool that allows you to automatically run a command-line tool like compilers, formatters, or linters when you...
Read more >
Visual Studio is not detecting changes in files and solutions ...
For example, when I use an external git client to switch branches, I have to close the solution and reopen it in order...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found