-
Notifications
You must be signed in to change notification settings - Fork 7
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
should be more robust about unexpected files #30
Comments
I'll look at this. I am a vi user so I don't know much about lockfiles that emacs creates. Is there a pattern to those file names? May be once we find all the haskell files using |
I think it might be more robust to just catch the exception on opening, On Mon, 13 Apr 2015 12:17 am Karun notifications@github.com wrote:
|
Currently experiencing the same problem. Lock files seem to start with ".#". I tried the following but still had the same issues... Although the pattern seems to fit. findHaskellFiles :: String -> IO [String]
findHaskellFiles = find always ((extension ==? ".hs" ||? extension ==? ".lhs") &&? predEmacsFiles)
predEmacsFiles :: FilterPredicate
predEmacsFiles = fileName /~? ".#?" |
@marcelbuesing @mwotton May be this will fix it 2a2b88c |
@karun012 awesome, that seems to solve the problem! |
hm. still getting this: /home/mark/projects/meanpath/Perspective/src/Net/Perspective/.#Meanpath.hs changed |
I'll take a look. |
If this is good, can we close the issue? |
Yes On Wed, 24 Jun 2015 4:36 pm Karun notifications@github.com wrote:
|
Emacs tends to litter the directory with lockfiles if you don't turn it off (which is not recommended anyway, as you could end up editing the same file in different buffers.)
unfortunately this conflicts with arion: when i start arion with one of these files, I get this:
Instead of bombing out on these files, could we just ignore them (or issue a complaint but continue)?
The text was updated successfully, but these errors were encountered: