-
Notifications
You must be signed in to change notification settings - Fork 412
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
Ignore tags files in --watch mode #5352
Conversation
Signed-off-by: Stéphane Lavergne <lis@imars.com>
I don't know anything about GitHub Actions but the |
I think |
It also feels a bit too generic to me, the ideal fix should be some combination of:
That said, my opinion should not be weighed heavily since I'm not working on dune anymore. |
I think by "generic" you actually mean "specific" since this, like the exclusions already hard-coded in This is intended as a "quick fix" until Dune can actually ignore files it doesn't care about (#2209 #3579) which seems to be a complicated issue scheduled for version 3 since it involves several different notification back-ends. |
I think the objection is that the word "tags" is not specific enough, it might be used in Ctags (which is fine), but it might also be used for something else (which could potentially be used in a build). |
Yeah, this does not seem like a thing that we should without letting the user customize it. I am bit suspicious of this whole approach though. Why don't we just make dune understand .gitignore files and then it will not be necessary to replicate this information in two places. |
Supporting I don't even know if If there is any way that a file named |
Note that this problem is no longer acute on master anyhow. In master, dune will receive and then immediately discarded useless notifications. Your build will not be needlessly re-triggered. |
Though you will still see these useless errors. |
When you say master do you mean version 3 or sooner in a 2.9.2? Also about the errors, that seems to mean that we still need to tell Dune to ignore some files explicitly, right? |
Wow that file changed a lot in the last few days, you guys have Longer-term, are there already plans to extract that list of exclusions into a stanza or a |
The fix in this PR is wrong, but we need to discuss what we're planning to do about this in the next meeting. |
From today's discussion:
|
This ticket asks for a similar feature: #4865 so let's continue the discussion there. |
(First-time PR here. 🤞 ) This is more of a suggestion than an improvement, but it would perfectly solve my problem with watch mode until big issues like #2209 and #3579 get tackled.
I use
vim-gutentags
in combination with the popular toolctags
to get a "tagbar" of files' structures on demand. This means that Vim triggers the reconstruction of the current projects'/tags
file every time a file is saved, and this process briefly creates/tags.lock
and/tags.temp
files. This causes two problems. First, every time I save an OCaml file, Dune rebuilds my project twice in a row because of thetags
file and, I assume, the slight delay between the ML file and thetags
file being touched. Second, sometimes Dune is woken up by just the tags file operations when I work on non-ML files and:Short of fully understanding the syntax available for exclusions in
create_fsevents
, I added all three names. If globs were allowed I could see something more general like*.lock
,*.swp
and what not, but I suspect that some of the back-ends might only support exact names.(Unrelated: there was no final EOL in
.gitignore
but I omitted that change to keep this PR "clean". Not sure why it's missing though.)