-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Update chroma to v2.20.0 #35220
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
base: main
Are you sure you want to change the base?
Update chroma to v2.20.0 #35220
Conversation
Unit test failure is related:
|
Does the unit test need to be adjusted? |
Yes, apparently chrome tokenization changed in this version which causes the failure. We need to update the test and verify syntax highlighting works as expected. |
looks that's because in alecthomas/chroma@d0ad679 , golang rulers was updated. the ui is ok in my test. so I think just update the test code is enough. @silverwind @sebastianertz ![]() |
Yeah just update the failing test value assertions. BTW I wish we would have snapshot-based testing (for example https://github.com/gkampitakis/go-snaps), then we could automate such updates with a single command (like |
It only introduces more garbage into code base. Every test should be designed & written carefully, and has a clear purpose, otherwise, there is already a lot of incomprehensible & unmaintainable code like
For this one, it could simply test some simple code like this to confirm that "the render works".
|
https://github.com/alecthomas/chroma/releases/tag/v2.20.0