You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running templ generate --watch and subsequently sending an interupt signal, the txt files which usually are removed still persist.
To Reproduce
In any templ project:
Run templ generate --watch
Observe txt files are created
Ctrl+C on the generate command
Observe txt files still exist
Expected behavior
txt files should be deleted.
templ info output
(✓) os [ goos=darwin goarch=arm64 ]
(✓) go [ location=/Users/josephdavidson/.asdf/shims/go version=go version go1.23.4 darwin/arm64 ]
(✓) gopls [ location=/Users/josephdavidson/.asdf/shims/gopls version=golang.org/x/tools/gopls v0.17.1 ]
(✓) templ [ location=/Users/josephdavidson/go/bin/templ version=v0.3.819 ]
I think you were right to remove the function call, no need to trigger a generate again, I think the deletion of txt ended up being a side effect of that function so easily missed!
Describe the bug
When running
templ generate --watch
and subsequently sending an interupt signal, the txt files which usually are removed still persist.To Reproduce
In any templ project:
templ generate --watch
Expected behavior
txt files should be deleted.
templ info
outputAdditional context
This was an issue introduced in this commit: 1f94c7b#diff-d871fda4ab49b4f5e6475e42ebccf5ca92261a30588f3d5165132dbe769587e1L188
The text was updated successfully, but these errors were encountered: