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

watch targets can't be path-strings #13

Open
a11ce opened this issue Nov 2, 2023 · 0 comments
Open

watch targets can't be path-strings #13

a11ce opened this issue Nov 2, 2023 · 0 comments

Comments

@a11ce
Copy link

a11ce commented Nov 2, 2023

The quick-start programmatic example fails with a contract violation in path-on-disk because path? does not recognize path strings:

path-on-disk?: contract violation
  expected: path?
  given: "example.txt"
  in: the 1st argument of
      (-> path? boolean?)

(define watcher (watch (list (string->path "example.txt")))) works correctly, and (define watcher (watch (list (string->path "does_not_exist.txt")))) fails with a correct error.

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

1 participant