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

improve: error messages for import *, multiple definition #3937

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

akshayka
Copy link
Contributor

Provide more helpful error messages for import star and multiple definition errors, explaining the reasoning behind these errors.

This PR also changes error description text to be muted instead of red, matching the accordion text, based on feedback that too much red can be stressful. Headlines (which describe the exception type) are still red and bold.

image

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Provide more helpful error messages for import star and multiple
definition errors, explaining the reasoning behind these errors.

Also change error description text to be muted instead of red, matching
the explainer text, to decrease user stress. Headlines (which describe
the exception type) are still red and bold.
Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 2:32am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 2:32am

mscolnick
mscolnick previously approved these changes Feb 28, 2025
Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

looks good. I think we can merge many of the errors at some point to just type/msg/details

Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.11.12-dev1

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.

None yet

2 participants