montoux / lein-less

Less css compiler plugin for the leiningen (clojure) build tool
Eclipse Public License 1.0
38 stars 15 forks source link

lein less auto throws a file not found exception #12

Closed danielytics closed 9 years ago

danielytics commented 9 years ago

When running lein less once it picks up and compiles my less file as expected, but when running lein less auto it throws a FileNotFoundException on the .less file (the exception has the full path to the file and it definitely exists).

danielytics commented 9 years ago

It turns out lein less auto works fine when the file is edited with some editors but not when I edit with vim. I guess whatever way my vim is writing the files is breaking it (watcher sees the change but the file is deleted and rewritten maybe?) I'll investigate more before closing this issue.

Curiously, if I save (:w) it throws the exception, but if I save and quit (:wq) it does not.

sfnelson commented 9 years ago

I'm not interested in debouncing editor changes. Feel free to reopen if you can identify a particular issue with the way lein-less is reading files.