halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
192 stars 24 forks source link

Error when trying to activate related to broken symlinks? #24

Open jschomay opened 7 years ago

jschomay commented 7 years ago

I've been using this plugin with no problems for a while. Suddenly it stopped working. I can't think of anything that I did that would have caused the problem, and I've tried completely uninstalling the plugin and atom and reinstalling again multiple times with different versions, but I get the same error.

The problem seems to be that for some reason trying to initialize the plugin seems to scan my whole user directory (on OS X El Capitan) and chokes when it hits a symlink that doesn't go anywhere. I've deleted about a thousand of these files, and then I got the error in #22, but the solutions there haven't helped me, and now I'm running into broken symlinks again (like /Users/jeffs/Library/Containers/com.apple.iCal.CalendarNC/Data/Library/Preferences/ByHost/com.apple.iCal.63587F6C-C9FC-5267-8100-FE00F1402816.plist)

I've tried so many things. Have you seen this before? It seems to only be a problem with elmjutsu.

halohalospecial commented 7 years ago

Hi @jschomay :-) Can you give me your elmjutsu settings? It's usually in ~/.atom/config.cson. Thanks!

halohalospecial commented 7 years ago

Also, can you check if you have an open .elm file in Atom that has no elm-package.json in its directory or parent directories? Maybe elmjutsu reached your user directory looking for elm-package.json?

jschomay commented 7 years ago

@halohalospecial - Wow, you found it!! I had an open .elm file that didn't have an elm-package.json at that level or higher! Adding elm-package.json totally fixed the problem. Maybe a safeguard against that would be good, because the error is very unhelpful! I thought atom was maybe looking everywhere for a ~/Library/Preferences/com.github.atom.plist or something. Thank you thank you!! And super great plugin too by the way. 😃