This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-07
Channels
- # announcements (35)
- # beginners (80)
- # boot (1)
- # calva (4)
- # cider (33)
- # cljdoc (40)
- # clojars (3)
- # clojure (95)
- # clojure-berlin (2)
- # clojure-europe (4)
- # clojure-italy (28)
- # clojure-nl (2)
- # clojure-seattle (1)
- # clojure-serbia (1)
- # clojure-spec (74)
- # clojure-uk (71)
- # clojurescript (29)
- # core-async (1)
- # cursive (80)
- # data-science (4)
- # datomic (17)
- # duct (75)
- # emacs (4)
- # figwheel-main (5)
- # fulcro (3)
- # jackdaw (1)
- # java (1)
- # jobs-discuss (20)
- # off-topic (32)
- # parinfer (2)
- # pathom (23)
- # re-frame (26)
- # reagent (25)
- # rum (6)
- # shadow-cljs (122)
- # speculative (4)
- # sql (17)
- # testing (7)
- # yada (8)
It seems my tweaking and pruning of my cider config didn't help my locking up emacs completely problem. This time I eval'ed the following function:
(defn get-eligible-user-ids-3
[users]
(->> users
(filter (fn [user] (>= (get user :age) 21)))
(map (fn [user] (get user :id)))
(into [])))
with C-c C-e. Why do you think this would do anything to lock it up?now before that, I had failed to put in the (into []) portion and got a real, long nasty spec kind of error message. Could that have made emacs trip over something?
how many users were it? how big is a single user. You're (presumably) running into long lines problem
super short if you ask me:
(def users
[{:id 1 :age 31
:first-name "Daniel" :last-name "King"}
{:id 2 :age 16
:first-name "Angel" :last-name "Herrera"}
{:id 3 :age 31
:first-name "Jane" :last-name "Smith"}
{:id 4 :age 20
:first-name "Ruth" :last-name "Langley"}])
the error message I got before that was brutal though. Super long with spec alpha things in there. I wish I could recreate because maybe that was something.
It seems it locks after I do something really dumb and then try to go back to normal behavior. I'm wondering if I need to be clearing stuff
I was just trying to reiterate your instructions. If I get a bad ugly long repl message or anything of the sort, clear my repl with , clear
and hope I don't get locked again
thank you. I'm kind of concerned I keep experiencing this while others aren't. All I'm trying to do is solve tutorial exercises and such but I must be doing some really dumb mistakes that others don't encounter
or if repl messages are getting too much for emacs to handle wouldn't we need to look into containing those messages so they aren't long lines?
fair enough. I'll stop whining! hahaha. clear the repl doesn't sound like a bad solution. especially when my crazy brain is going more drastic like "do i need to leave emacs?!" silly stuff.
I used to have an issue where my repo would cause Emacs to lag/freeze, and it seemed to happen around the 4000 lines mark.
This was a while ago, so the specific limits escape me, but the resolution was to clear the repo buffer as well.
I have no idea why it happened, but since clearing the repo buffer fixed it, I presumed that font locking had something to do with it.
It would happen unexpectedly, so evaling a defn
for example, but only if I was over that rough line limit.