Repro:
lib directory as only "sourcepath" (removing other entries like /usr/lib/elixir/lib etc.) in Elixir SDK settingsmix new einprojektmix.exsMix.Project occurrence and navigate to its' sourceExpected: file is properly highlighted and no unhandled StackOverflow exceptions
Instead:
defmodule in L1 isn't highlighted properlyStackOverflows (see stacktraces in #589) 
Having same StackOverflows with Elixir 1.3.4.
Elixir installed via https://github.com/mururu/exenv and set as projects SDK.
Using IntelliJ IDEA 2016.3.4:
https://github.com/KronicDeth/intellij-elixir/commit/93e3c3d80a14ed647428e793b1689bcc3f47b2ac may have fixed this. Wait until the next release to test it out.
@KronicDeth thanks for quick fix! Can't really wait to test it, is there a nightly build around?
@develop7 sorry, no automated nightlies yet and I've been holding off on a cutting a build because there are performance issues with bare words completions now that they can see all the standard library functions/macro. I won't cut a build until I fix that issue.
@develop7, 5.0.0 is out. Please update and let me know if you still see this error.
Been using it for last 24 hours, no errors at all. 👍
@KronicDeth the exception is certainly gone, but built-in macros are highlighted with wrong color. Should I report separate issue?
@develop7 yes, always open new issue as new github issues. I'm closing this as fixed.
Most helpful comment
https://github.com/KronicDeth/intellij-elixir/commit/93e3c3d80a14ed647428e793b1689bcc3f47b2ac may have fixed this. Wait until the next release to test it out.