-
Notifications
You must be signed in to change notification settings - Fork 150
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
Flycheck temporary files cause spurious rebuilds #508
Comments
What is the value of |
Sorry for the late reply.
I do configure several settings related to backup files (e.g. Thanks for your time. |
Your assumptions seem reasonable. Why don't you check |
Ok, so after the
but not the file I visit namely
|
Okay, so I guess it must be a temporary file then. Try running
in the repository directory, then do whatever triggers a rebuild. watchexec should print out all the paths of files that are modified in the directory, which could tell us what is responsible for the temporary file. |
Okay,
Perhaps I'm seeing something similar to #519 as it too mentions temporary files created by |
Ah. I forgot that Flycheck did this. I have long since disabled Flycheck for Elisp files because the line number reporting is so bad, so I never ran into this problem. Do you think we should try to disable Flycheck for Elisp files by default when the filesystem watcher is enabled in |
Or wait, not just when using the filesystem watcher, I guess in general when using any kind of modification detection for |
Yes, when using any kind of modification detection would be best. I was not using |
Current workaround for me: Disable flycheck, enable flymake 🙂 . I mostly code elisp and flymake seems to do quite a good job there. |
To use, (setq straight-fix-flycheck t) before loading straight.el.
Please test with latest commit. See added docs for how to use. |
Excellent. This works for me. I no longer see the spurious builds when visiting a straight repo file. Modifying a file I visit in a straight repo on the other hand results in a rebuild as expected. Thanks for the quick turnaround. This issue can be closed from my point of view. |
Thanks for a smart workaround! It seems reasonable to assume that we won’t need flychecks extensive checks for unchanged files in our repositories, they should (ideally) be in a good state. |
To use, (setq straight-fix-flycheck t) before loading straight.el.
I've noticed an odd observation where, when I visit a file in a
straight
repo without making any changes the package is rebuilt on the next startup of Emacs. I understood from the README that packages are only rebuilt when changes are made to the local repository. Is this a bug or a misconfiguration on my part?The only customisations I've made to
straight
are as follows:Thanks for your time.
The text was updated successfully, but these errors were encountered: