Watcher compatibility#3
Conversation
|
Please split into two PRs: one to fix things that got broken in the meanwhile ( |
|
I've rebased the branch and after updating the copyright year all but snapshot passes. |
|
Looks fine, but still need some tests and a way to disable this. About the failure on |
Well, the existing tests cover this, and I'd like to advocate not making it disable-able. For starters, we'd need to duplicate a lot of test between the two cases to ensure that they indeed do the same thing. Secondly, the most invasive part of this change (the I would argue that this method is an improvement, in part because of a change I forgot somehow. With this PR, the following becomes unnecessary: ;; When checking project's main file, use the temporary as the main file
;; instead.
"--setup"
,(flycheck-sexp-to-string
`(when (and eldev-project-main-file (file-equal-p eldev-project-main-file ,real-filename))
(setf eldev-project-main-file ,filename)))When we're not faking an empty file to Lastly, in the case that |
I added more tests for multifile "project" and rebased your branch. Seems to work fine. I will think about what else to do tomorrow. |
…ev-project-main-file` is still needed.
|
Sorry that it took so long. |
I implemented
flycheck-eldev--checker-substituted-argumentsto handle the'source-inplaceto'sourceconversion first. Then I ran the testsand had lots of failures. Fixing up the
--setup-firstmade all thetests green again.