volrath / spiral

Emacs Clojure IDE based on UNREPL
GNU General Public License v3.0
149 stars 6 forks source link

Freeze with apostrophe fn #8

Closed pesterhazy closed 6 years ago

pesterhazy commented 6 years ago

Steps to repro:

  1. new buffer test.clj
  2. paste this in
(defn StackTraceElement->vec'
  [])
  1. spiral-connect-to a repl
  2. spiral-eval-bufferr

Expected: fn is eval'ed

Actual: Emacs freezes (need to killall -9 Emacs on macOS)

pesterhazy commented 6 years ago

Updated the snippet above

I think this is about the the trailing ' - without the apostrophe it works.

volrath commented 6 years ago

@pesterhazy It is a parseclj lexer problem, I updated spiral's internal reference to parseclj's parseclj-lex-symbol-fix branch, where the behavior is fixed.

Regarding killing Emacs, you can also hit C-g two or three times (or like a mad man, like I do) to interrupt the current elisp evaluation =)

pesterhazy commented 6 years ago

Ah it's true I can awaken Emacs from its freeze by ^G'ing

pesterhazy commented 6 years ago

Yup, git master works for me!