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

Reload only works two times, then doesn't #6

Closed
liskin opened this issue Nov 21, 2024 · 3 comments
Closed

Reload only works two times, then doesn't #6

liskin opened this issue Nov 21, 2024 · 3 comments

Comments

@liskin
Copy link

liskin commented Nov 21, 2024

$ go-grip install.md 
🚀 Starting server: http://localhost:6419/install.md
2024/11/21 19:12:06 error watching ./4913: no such file or directory
2024/11/21 19:12:08 error watching ./4913: no such file or directory
2024/11/21 19:12:08 error watching /install.md: no such file or directory

When I change install.md for the first time, the first error is printed and the page reloads.
When I change it second time, the other two errors are printed and the page reloads.
Any further changes do absolutely nothing at all.

I run this on Debian testing (trixie) amd64. Installed go-grip using ubi, so presumably https://github.com/chrishrb/go-grip/releases/download/v0.3.0/go-grip-v0.3.0-linux-amd64.tar.gz

@chrishrb
Copy link
Owner

sorry for the late reply first of all. I tried to reproduce this issue but unfortunately wasn‘t able to. I don‘t have a debian machine here, only a Mac and this error doesn‘t occur here

@liskin
Copy link
Author

liskin commented Dec 15, 2024

The error seems to come from https://github.com/aarol/reload/blob/fa84935e67846a0128a0dddd29de00af0f8e951c/watch.go#L64 so this might not be your fault at all actually.

Suppose I could try to reproduce and report it there, but I don't know enough go (yet) for this to be a 5-min task 😞

@chrishrb
Copy link
Owner

chrishrb commented Dec 27, 2024

Should be fixed now with #31 which was released with version 0.5.3. Please check if the error is still reproducible 👍
Please reopen this issue if the bug still occurs, thanks!

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

When branches are created from issues, their pull requests are automatically linked.

2 participants