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

not detecting files saved by Intellij IDEA ? #12

Open
simonmichael opened this issue Oct 18, 2018 · 0 comments
Open

not detecting files saved by Intellij IDEA ? #12

simonmichael opened this issue Oct 18, 2018 · 0 comments

Comments

@simonmichael
Copy link
Contributor

simonmichael commented Oct 18, 2018

Thanks for hfsevents, which is used in hledger-ui via fsnotify. I am seeing events when I save a file from emacs, but not when I save it from IDEA. Here's a log from both.. any ideas ?

module Main where

import System.OSX.FSEvents
import Control.Monad
import Control.Concurrent

main = do
  es <- eventStreamCreate ["."] 1.0 True True True print
  replicateM 30 (threadDelay 10000000)
  putStrLn "destroying event stream"
  eventStreamDestroy es
  replicateM 30 (threadDelay 10000000)
~/src/hledger$ ./hfstest
[EMACS:]
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.#a.j", eventId = 610728226, eventFlags = 262400}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/a.j", eventId = 610728235, eventFlags = 70656}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.#a.j", eventId = 610728238, eventFlags = 262912}
[IDEA:]
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.git/index.lock", eventId = 610728402, eventFlags = 65792}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.git/index.lock", eventId = 610728414, eventFlags = 66304}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/a.j___jb_tmp___", eventId = 610728631, eventFlags = 71936}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/a.j", eventId = 610728635, eventFlags = 83968}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/a.j___jb_old___", eventId = 610728638, eventFlags = 68096}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.idea/workspace.xml___jb_tmp___", eventId = 610728688, eventFlags = 71936}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.idea/workspace.xml", eventId = 610728692, eventFlags = 83968}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.idea/workspace.xml___jb_old___", eventId = 610728695, eventFlags = 68096}
Event {eventPath = "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/.git/index.lock", eventId = 610728701, eventFlags = 66304}

(Also, in that test program, what's the reason for destroying the event stream, and for waiting afterward ?)

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