AREPL-vscode icon indicating copy to clipboard operation
AREPL-vscode copied to clipboard

Drop down menu for errors

Open noejn2 opened this issue 5 years ago • 7 comments

Sometimes it is annoying to see the errors on the AREPL window. It was especially frustrating when I did not have the option of only updating with shortcut keybinding. I still want to see the code updating on realtime as well as the errors, Would it be possible to have a dropdown menu showing the errors instead of the current setting?

noejn2 avatar Jul 03 '20 18:07 noejn2

Hi Noé, thanks for the issue report. Yes, that would be possible. I can see the benefit in it too.

What errors are annoying you? Is it the syntax errors / name errors that pop up commonly while typing, or errors in general? If it's just the first I have a option to ignore syntax / name errors.

Almenon avatar Jul 03 '20 19:07 Almenon

General errors. For syntax errors that pop up automatically as I type I use the Show Syntax errors option plus oneKeybinding. The latter option prevents me from seeing my coding update automatically though.

I am thinking about a dropdown option that displays how many errors (and perhaps type of errors) I have in my code, so I see my code stacktrace automatically.

Thanks!

noejn2 avatar Jul 03 '20 19:07 noejn2

I see. I want to focus on bringing more arepl functionality inline with the code. Would a error message that appears when you hover over the line with a error icon also be a solution? Or something similar to that concept - I would need to play around with the VSCode API to see what I could accomplish.

('m assuming you have arepl.inlineResults enabled)

Almenon avatar Jul 03 '20 20:07 Almenon

I disable arepl.inlineResults as part of my personalization.

I exactly do not know what you mean by hovering inline with the code, but I could better explain my issue with the automatic updating:

Error messages are too long and push down information I often refer to. While error information is necessary, I would like to have it as reference rather than popping up every time I do an error or while I am typing. That is why I am suggesting a dropdown menu that updates as I type, but does not push down all I have printed (which I often use as reference) and the variables and data frames.

noejn2 avatar Jul 03 '20 20:07 noejn2

Ah, okay.

Here's a mockup of the potential UI, what do you think? Error uncollapsed: https://i.imgur.com/Df4FvSc.png Error collapsed: https://i.imgur.com/pZmIkus.png No error: https://i.imgur.com/ZMGo9yH.png

Almenon avatar Jul 03 '20 21:07 Almenon

Yes! If it marked the numbers errors, it would improve a lot. So I can keep a look of the errors as they happen to quickly refer to them.

Thanks!

noejn2 avatar Jul 03 '20 21:07 noejn2

Welcome :)

I don't get why you want the number of errors. Either the code completes or it doesn't. An exception may have multiple causes but in the end there is only one top-level exception.

Almenon avatar Jul 03 '20 21:07 Almenon