Skip to content
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

Making a change to content/fsdocs-default.css cause an infinite update loop #930

Open
MangelMaxime opened this issue Jul 13, 2024 · 1 comment

Comments

@MangelMaxime
Copy link

I am using

dotnet build ../../fsprojects/FSharp.Formatting && /fsdocs-tool/bin/Debug/net6.0/fsdocs watch --nolaunch

to run the tool locally.

However, when updating fsdocs-default.css (either in the F# Formatting repository or a copy of it in the project to document) it is triggering an infinite update queue as I am seeing the following messages repeat itself over and over.

Content:

Write Content:
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-theme.js --> content/fsdocs-theme.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-search.js --> content/fsdocs-search.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-details-set-expanded.js --> content/fsdocs-details-set-expanded.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-tips.js --> content/fsdocs-tips.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-details-toggle.js --> content/fsdocs-details-toggle.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-theme-set-dark.js --> content/fsdocs-theme-set-dark.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-default.css --> content/fsdocs-default.css
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-theme-toggle.js --> content/fsdocs-theme-toggle.js
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/fsdocs-theme.css --> content/fsdocs-theme.css
  copying /Users/mmangel/Workspaces/Github/fsprojects/FSharp.Formatting/docs/content/img/github-pages-settings.png --> content/img/github-pages-settings.png
Detected change in 'docs', scheduling rebuild of docs...

It also cause a lot of Trying to reload content/fsdocs-default.css in the browser, and it makes it impossible to modify the CSS in the browser to prototype because it is overwritten over and over.

To work around this issue, I need to kill and re-start the process.

I have this bug both with the latest version of the tool and the main branch.

@nojaf
Copy link
Collaborator

nojaf commented Aug 5, 2024

More things happen than they should when touching a file, indicating deeper structural issues. I'm open to suggestions, but proceed with caution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants