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

feat: print fancy messages for errors #329

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

hyf0
Copy link
Member

@hyf0 hyf0 commented Nov 19, 2023

Description

Just found that we need ariadne for better flexbility to control how we display the messages, which is useful when we support warnings.

Test Plan


@@ -8,5 +8,12 @@ input_file: crates/rolldown/tests/fixtures/errors/unresolved_entry
## UNRESOLVED_ENTRY

```text
Cannot resolve entry module ./main.js.
[UNRESOLVED_ENTRY] Error: Unresolved entry module
╭─[Output:1:1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the user maybe will be curious where is Output:1:1

Copy link
Member Author

@hyf0 hyf0 Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel the same. But I currently don't know how to config ariadne to make it disappear. Probably need to create an issue with a help wanted label :).

@hyf0 hyf0 force-pushed the 11-19-feat_store_source_in_BuildError_ branch from eb63778 to cf2eb07 Compare November 19, 2023 12:18
Base automatically changed from 11-19-feat_store_source_in_BuildError_ to main November 19, 2023 12:19
@hyf0 hyf0 force-pushed the 11-19-feat_print_fancy_messages_for_errors branch from fd32dba to 4ba6c75 Compare November 19, 2023 12:22
@hyf0 hyf0 force-pushed the 11-19-feat_print_fancy_messages_for_errors branch from 4ba6c75 to 40d40c1 Compare November 20, 2023 02:55
@hyf0
Copy link
Member Author

hyf0 commented Nov 20, 2023

Merge activity

  • Nov 20, 1:16 AM: @hyf0 started a stack merge that includes this pull request via Graphite.
  • Nov 20, 1:16 AM: @hyf0 merged this pull request with Graphite.

@hyf0 hyf0 merged commit 8751ee4 into main Nov 20, 2023
6 checks passed
@hyf0 hyf0 deleted the 11-19-feat_print_fancy_messages_for_errors branch November 20, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants