air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
16.35k stars 771 forks source link

include_file also needs include_ext to work #545

Open leandergangso opened 4 months ago

leandergangso commented 4 months ago

i have the following set:

include_ext = ["go"]
include_file = ["myfile.txt"]

air do list out myfeil.txt when i'm starting air as watching, but will not rebuild when i change it. only if i also include "txt" in include_ext array does it work as expected.

qdm12 commented 2 months ago

Basically include_file does not work at all. I have the same problem for a specific .js file. If you include the relevant extension in include_ext then it works, highlighting really include_file is not working.

AdrienHorgnies commented 2 months ago

Indeed, that's a surprised behavior. I would expect include_file to force the inclusion of specific files (even if their extension is excluded, or their name excluded by a regex).

If the author or some contributor can assert what should be the correct behavior (assuming the current one is unwanted), I'm willing to try and implement a fix.