clojure-emacs / ac-nrepl

[DEPRECATED] Emacs auto-complete backend for nrepl completions
74 stars 11 forks source link

nrepl.el needs huge amounts of time to do autocompletion #29

Closed jjpe closed 11 years ago

jjpe commented 11 years ago

Using the latest nrepl.el and ac-nrepl packages from marmelade and with [org.clojure/tools.nrepl "0.2.2"] in my ~/.lein/profiles.clj, ac-nrepl will freeze whenever an autocomplete happens (triggered or automatic), freezing the nrepl/emacs UI along with it (without using extra CPU time I might add, and the rest of the system remains completely responsive).

The problem here is the 10+ secs it takes to do one autocomplete, not only making the feature defeat its own purpose, but effectively disabling proper typing in nrepl.el because of the automatic autocompletes while ac-nrepl is activated. This issue disappears on disabling ac-nrepl, prompting me to open an issue here as opposed to in nrepl.el.

The nrepl server is not on localhost, but on an android device I own, though that shouldn't be a problem as it never has been in the past.

In case it helps (TBH I don't really know if it's related), I found this entry in my Messages buffer when the latest AC was done: Error in timer: (wrong-type-argument arrayp nil)

jjpe commented 11 years ago

Due to the DDOS attack github is currently under, this is a literal duplicate of https://github.com/purcell/ac-nrepl/issues/28.