-
Notifications
You must be signed in to change notification settings - Fork 84
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
Error on Windows as of 1.62.993 #270
Comments
Hmmmm! This is weird. Because using that flag it should have reverted back to the old watching mechanism. Maybe there has been an unintended change in this release? 🤔 Thanks for reporting this issue I personally don't use windows so it might be hard to debug this! Any help would be appreciated. At the risk of asking the obvious, does the immediate last release of Kaocha work fine for you? |
Actually, I was wrong, I was putting
It does not but I'll use the workaround of hawk for now, thanks! |
Looking at the Beholder repository, it looks like Beholder supports Windows, so I'm not sure why this failed. Based on the error, it could be a bug in the |
So Beholder doesn't support file-level watching, which we try to do for
|
Looking at the code I think we should revisit this implementation, it starts two watchers, one is given all the test-paths/source-paths, the other is given Slightly different use case but there's some code here that can server as inspiration. It takes a set of directories, and reduces it to the minimum set by removing directories that are children of other directories already included in the set. https://github.com/lambdaisland/launchpad/blob/main/src/lambdaisland/launchpad/watcher.clj So here it'll be similar
|
Since it sounds like watching the config file doesn't currently work on any platform, would it be possible to get an interim band-aid of just removing this block? This would get rid of the exception on Windows, and Linux and Mac wouldn't suffer for it because their watchers are failing silently anyway. |
@colin-p-hill That's not a bad idea. I think we'd probably make it Hawk-only instead of removing it, though. |
@skynet-gh @colin-p-hill I just merged a temporary fix to this issue similar to what Colin suggested. You can point Kaocha to the latest changeset {lambdaisland/kaocha {:git/url "https://github.com/lambdaisland/kaocha"
:git/sha "7d6c897bfd85fd66aea0c45fcbb62de37733f374"}} |
I forgot to mention it at the time, but you can grab the latest version with the temporary fix (among other improvements): [lambdaisland/kaocha "1.78.1249"]
{lambdaisland/kaocha {:mvn/version "1.78.1249"}} |
I'm getting this error now when running kaocha on my project:
deps.edn alias and tests.edn
Looks like the file watcher changes are causing it to think
tests.edn
should be a directory for some reason. Adding:kaocha.watch/type :hawk
does not fix it.The text was updated successfully, but these errors were encountered: