Repository navigation
watch not parsing sources #2862
Description
Activity
- addedstate: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
on May 30, 2026 @TTSKarlsson try PR #2743 or #2754.
- addedstate: duplicateDuplicates another issue.Duplicates another issue.area: watcherChanges related to the Taskfile watcher.Changes related to the Taskfile watcher.
on May 30, 2026 - addedstate: awaiting responseWaiting for issue author to respond.Waiting for issue author to respond.
on May 30, 2026 Maybe you're right, but none of the descriptions on those issues/PRs sufficiently overlaps this problem. The only similarity is that there's a problem with watch.
I'll wait this out and use nodemon in the mean. 👍
- removedstate: awaiting responseWaiting for issue author to respond.Waiting for issue author to respond.
on May 30, 2026 I've also have this exact issue - also on Windows. I believe here: https://github.com/go-task/task/blob/main/watch.go#L104
That
event.Namecontains\while thefilescontain/I got back to trying this again in another project, but it's as Edd532 says, it doesn't seem to normalize paths when comparing.
- '**\\*.go'
and
- '**/*.go'makes no difference.
Its possible that
event.Nameneeds to be "normalised" to a linux like path, i.e. whatever form is infiles. Thefilescome via the glob mechanism of the mvdan.cc (linux bash emulation) and would have "/".I would like to know if this is planned so that go-task would support Windows again. If it's not planned we'll just continue using something else and stop coming back to follow up. Could also be nice to be clear in the description of this tool.
- addedos: windowsIssues that affect users on Windows.Issues that affect users on Windows.and removedstate: duplicateDuplicates another issue.Duplicates another issue.state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
on Sep 10, 2026 @TTSKarlsson If able, please try out #3028. Hopefully fixes your issue.
A bit late to getting back. Just to confirm this did fix the problem. Thanks!
Description
I've been using go-task a lot over the years, but now with 3.50 I get this problem.
taskfile:
The taskfile is in root of the project and there's a folder ./app and a file ./app/main.go
When I run it with
go-task -v dev, it echos hello as I've asked it to, but when I save themain.go(whether or not I made any change) I get:I've tried changing sources to these variants and more that I can't remember right now:
app)What I expect:
I expect it to echo hello every time I save the main.go file, I don't know what version it stopped working or if my OS (win11) have changed something with watching files.
I'm using latest Powershell and Windows 11.
Version
3.50.0
Operating system
Windows 11
Experiments Enabled
No response
Example Taskfile
Full output of
task -v dev: