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

include_file also needs include_ext to work #545

Open
leandergangso opened this issue Mar 6, 2024 · 2 comments
Open

include_file also needs include_ext to work #545

leandergangso opened this issue Mar 6, 2024 · 2 comments

Comments

@leandergangso
Copy link

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
Copy link

qdm12 commented Apr 10, 2024

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
Copy link

AdrienHorgnies commented Apr 23, 2024

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.

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

No branches or pull requests

3 participants