greghendershott / racket-mode

Emacs major and minor modes for Racket: edit, REPL, check-syntax, debug, profile, packages, and more.
https://www.racket-mode.com/
GNU General Public License v3.0
683 stars 93 forks source link

Hangs when rhombus lexer errors #728

Open greghendershott opened 2 weeks ago

greghendershott commented 2 weeks ago

I get the hangs particularly when the lexer errors. See https://github.com/racket/rhombus/issues/573 for related info.

Originally posted by @samth in https://github.com/greghendershott/racket-mode/issues/726#issuecomment-2471679999

greghendershott commented 2 weeks ago

Although the ultimate, best fix will be for the lexer not to error, I'll look at handling lexer exceptions more smoothly than freezing.

(It might not be much smoother -- racket-hash-lang-mode depends on the lexer for nearly everything, from navigation to coloring. I might need to change the buffer's major mode back to plain old prog-mode or racket-mode. Which would still suck, just not as badly as freezing.

In any case my goal should be to reflect enough exception details up into an Emacs error message, so users understand and we know roughly what to do, where.)