Open JonPichel opened 2 months ago
It seems to I have the same issue, but when i set config file flag
air -c .air.toml
It works!
air v1.51.0, built with Go go1.22.2
It doesn't work for me that way either. Maybe it is due to the Nix package using the (devel)
version.
This may not be helpful, but I will share,
In .air.toml.
Try changing poll=false
to poll=true
.
Hot reloading did not work on my AppleSillicon Mac, but in the end the only problem was the above setting!
I used DeepL for the translation!
Hi,
I am using the air version packaged in nixpkgs. My operating system is NixOS. This is the version that gets returned on
air -v
:(devel), built with Go go@1.22.1
.This is my
.air.toml
file:As you can see I tried several things to include
main.go
, but nothing is working. When I run air it reports that it is watchingmain.go
, but when I change the contents of the file it doesn't reload.It does however detect changes in any file in the
internal/
directory.I assume this is a problem with the version packaged by nixpkgs, but maybe my configuration is not correct.