-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Updated Chroma to v0.10.0 #18270
Updated Chroma to v0.10.0 #18270
Conversation
CI fail seems related. |
it appears that chroma has now changed its rendering significantly adding |
Yes, I noticed. Just did a commit which should fix these issues. Locally I did not have any test errors anymore, now the wait is for the CI to check them as well. |
I think we need to double check what if any effect this has on rendering. I think the Do you know what these spans are supposed to be doing? |
apologies for these conflicts. |
@MrGussio screenshots showing the rendering before and after the upgrade would go a long way to show it looks good. Thanks a lot for this upgrade! |
Need to rebase and remove the |
Fixed tests
c6ab5d6
to
e62fc61
Compare
rebased and updated |
alecthomas/chroma@d6e61d3 appears to be related to the HTML changes. I agree we need to be careful here that this does not break any assumptions about Chroma's HTML in our CSS. Possibly also need to update themes in case new classes are introduced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we could wait for a new release of Chroma now.
- Add mariadb aliases alecthomas/chroma#595 Many thanks to @silverwind 👍
Build using the latest version of my fork: Build of commit d7c2a29 (before the Chroma update): It seems to have no real visual impact. Changes seem to be coming from alecthomas/chroma@d6e61d3 and alecthomas/chroma@5ed5054 as already mentioned above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like chroma is releasing an update soon so I think we should just approve - merge and see how things look IRL.
I didn't notice any immediate regression from this but I guess the extra wrapping element is unneccary in our rendering too, but I guess it can be improved upon later. |
A little off-topic, just to remind developers: Chroma uses a lot of abbr class names like We also wrote a lot of abbr class names like We should stick to non-ambiguous names in future. |
Happy to accept a PR that refactors our helper classes to something longer. |
Codecov Report
@@ Coverage Diff @@
## main #18270 +/- ##
==========================================
- Coverage 45.94% 45.93% -0.02%
==========================================
Files 832 832
Lines 92092 92092
==========================================
- Hits 42316 42306 -10
- Misses 43022 43032 +10
Partials 6754 6754
Continue to review full report at Codecov.
|
* giteaoffical/main: [skip ci] Updated translations via Crowdin Refactor jwt.StandardClaims to RegisteredClaims (go-gitea#18344) format with gofumpt (go-gitea#18184) Enable deprecation error for v1.17.0 (go-gitea#18341) Use correct translation key for errors (go-gitea#18342) Refactor Router Logger (go-gitea#17308) Updated Chroma to v0.10.0 (go-gitea#18270)
Backport go-gitea#18270 Fix tests for Chroma v0.10.0
Backport #19120 Backport #19099 Backport #18874 Backport #18420 Backport #19128 Backport #18270 Bump to build with go1.18 Co-authored-by: techknowlogick <techknowlogick@gitea.io> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Jelle Hulter <jellehulter@gmail.com>
Updated Chroma to v0.10.0, and ran the commands
go mod vendor
andmake build
.Fix #18269