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

Exception with (too many?) folders #3

Open
geotre opened this issue Aug 10, 2020 · 0 comments
Open

Exception with (too many?) folders #3

geotre opened this issue Aug 10, 2020 · 0 comments

Comments

@geotre
Copy link

geotre commented Aug 10, 2020

Minimal reproduction:

import fswatch

var monitor = newMonitor(latency=0.01)
monitor.set_recursive true
monitor.add("test_files")

proc callback(eg: EventGroup) =
  for e in eg:
    echo "Event: ", e.kind

monitor.setCallback(callback)
monitor.start()

Create a folder containing some folders and run:

mkdir test_files
for i in `seq 10`; do mkdir "test_files/$i"; done
nim c -r test.nim

Yields this result:

Error: unhandled exception: index 101 not in 0 .. 100 [IndexError]
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