Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty error display like the one in the popular vscode extension pretty-typescript-errors #18815

Open
WWology opened this issue Jan 2, 2025 · 0 comments
Labels
C-feature Category: feature request

Comments

@WWology
Copy link

WWology commented Jan 2, 2025

Long error messages can be tricky and hard to understand at first glance

For example

the trait bound `poise::serenity_prelude::Timestamp: From<Result<poise::serenity_prelude::Timestamp, InvalidTimestamp>>` is not satisfied
the following other types implement trait `From<T>`:
  `poise::serenity_prelude::Timestamp` implements `From<&poise::serenity_prelude::Timestamp>`
  `poise::serenity_prelude::Timestamp` implements `From<DateTime<Tz>>`
required for `Result<poise::serenity_prelude::Timestamp, InvalidTimestamp>` to implement `Into<poise::serenity_prelude::Timestamp>`

I think it'd be better if we could display this error in a prettier format like in the vscode extension
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors

So instead we could have something like the full compiler diagnostics referenced inline, or something like
Image

@WWology WWology added the C-feature Category: feature request label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

1 participant