JetBrains / la-clojure

Clojure plugin for IntelliJ IDEA
Apache License 2.0
220 stars 49 forks source link

Fix an assertReadAccessAllowed exception #82

Closed mdaniel closed 9 years ago

mdaniel commented 9 years ago

The la-clojure plugin has been generating assertion Throwables in my nightly IJ builds for a few days now. The assertion text is extremely helpful, and it was a quick fix:

Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())

It even appears from the unused imports(!) in the file that the PsiManager once upon a time did use ApplicationManager, so that was further confirmation that this is probably the correct fix.

The same number of tests are broken after my fix as were broken before it.