s-clerc / slyblime

Interactive Lisp IDE with REPL, Inspector, Debugger and more for Sublime Text 4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow copy / pasting of errors when debugging?

Ashe opened this issue · comments

If I get an error in the REPL, I get it all in the terminal and it can be easily copied and pasted (I'm a beginner so I tend to be copying and pasting my errors when I'm receiving help). I love your interactive debugging process and it's amazing! But I do think a dump of the error how it would be presented in the REPL at the bottom of the page would be useful just when you do want to copy and paste?

If there is a way to copy and paste it, maybe it needs to be explained on the readme for new users? :) Thank you!

commented

Hi! Thanks for using my plugin.

Yeah, I was actually having the same issue yesterday while trying to share error messages with the discord. The reason you couldn't copy/paste is that it wasn't implemented by the ST devs — I was under the false impression they would, which is why I hadn't really bothered before. I've now added two buttons to facilitate copying in 5c89194:

image

Copy condition copies the condition description and restarts and Copy all includes the backtrace, here's a sample:

Unbound variable: AOEU
   [Condition of type UNBOUND-VARIABLE] in thread 400
Restarts:
	【0】CONTINUE: Retry getting the value of AOEU.
	【1】USE-VALUE: Specify a value of AOEU to use this time.
	【2】STORE-VALUE: Specify a value of AOEU to store and use.
	【3】RETRY: Retry SLY mREPL evaluation request.
	【4】*ABORT: Return to SLY's top level.
	【5】ABORT-BREAK: Reset this thread
	【6】ABORT: Kill this thread

This addition is available in Aiguillions and it should be available on Package Control in a bit (tbh I'm not sure quite how long it takes). Alternatively, you can download the source and copy it to the packages folder.

Thanks for your feedback! Don't hesitate to ask any more questions or leave any more comments ☺️

EDIT: Ignore the weird timetravelling.

This looks perfect! Thank you so much! I'll test it out after work today! Loving this so far, makes common lisp development so much more fun! :)