Skip to content

Display compiler errors in the Playground in the "Compiled SQL" tab instead of footer #4720

@snth

Description

@snth

What's up?

Would it be possible to display the errors in the playground in the "Compiled SQL" tab instead of the footer?

image

Having the errors in the "Compiled SQL" tab would allow using the "Copy to clipboard" link/button which would make it a bit easier for bug reports.

It also keeps the user's focus in one place because you're already watching there for your output. If you're typing in the playground and hit an error at some point, it's not clear what version of the input the Compiled SQL represents. I think it would be better if that area had the error output (or was cleared on errors) so you don't mistake that SQL for corresponding to the current PRQL (which is broken) in case you didn't notice the error message.

I've also had cases where the error message was too long and took over the whole window and I couldn't recover access to the PRQL input area anymore and had to reload the whole page (losing my work). I think that particular issue may have been fixed already though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    webrelated to the website or the playground

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions