repl-electric / sonic-pi.el

Emacs running SonicPi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error messages are HTML-escaped

wdenton opened this issue · comments

Thanks for making this! It's wonderful.

I noticed a small issue: when something goes wrong and an error shows in the sonic-pi-messages buffer, it's HTML-escaped, for example:

Error: (3 Thread live_loop_ones died: #<NoMethodError: undefined method `/' for "3":String> eval:21:in `block (2 levels) in __spider_eval'
eval:47:in `block (3 levels) in __spider_eval'
eval:45:in `each'
eval:45:in `block (2 levels) in __spider_eval'

That really is:

Error: (3 Thread live_loop_ones died: #<NoMethodError: undefined method `/' for "3":String> eval:21:in `block (2 levels) in __spider_eval'
eval:47:in `block (3 levels) in __spider_eval'
eval:45:in `each'
eval:45:in `block (2 levels) in __spider_eval'

Thanks for reporting that. It's something the server is doing, I'll see if I can transform it in emacs

Yes this is annoying, I'm trying to see if there is a fix that does not bog everything down and add more dependencies. For now I've added a tiny hack until I find something better

A couple of simple escaping cases have been fixed. Probably needs a more generally solution though.