Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Fix spurious warnings when file watching on OS X #48

Closed
wants to merge 1 commit into from
Closed

Fix spurious warnings when file watching on OS X #48

wants to merge 1 commit into from

Conversation

ajkeller34
Copy link

When using Revise.jl on my MacBook Pro, my REPL becomes polluted with warnings like the following. It happens every time I save a watched file, but only after something in the file has been called once in julia:

2018-01-06 14:57 julia[23477] (FSEvents.framework) FSEventStreamFlushSync(): failed assertion '(SInt64)last_id > 0LL'

These statements seem to be harmless but they are distracting. I looked around and apparently this issue has been seen elsewhere, is due to libuv, and is now patched upstream. See libuv/libuv#1349 and links therein, especially this one. I cherry-picked that commit and made this PR after having confirmed that I no longer experience problems when I build the latest julia nightly using this branch of libuv.

This call, in the context of file watching, appears to trigger
assertion warnings on some macOS configurations.

Refs: nodejs/node#854
Fixes: libuv/libuv#1334
PR-URL: libuv/libuv#1349
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
@ajkeller34
Copy link
Author

Given JuliaLang/julia#25062 recently merged, I think this is only relevant to julia 0.6 now.

@ajkeller34 ajkeller34 closed this Feb 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants