-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
bugfix: Pin pygments pending improved conversion to urwid #1433
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. Longer-term we should improve the pygments to urwid translation logic to allow these styles to work and an upgrade to later pygments versions, but for now this allows these themes to continue working as before. Fixes zulip#1431.
neiljp
added
high priority
should be done as soon as possible
bug: crash
area: colors/styles/themes
labels
Oct 4, 2023
neiljp
force-pushed
the
2023-10-03-pygments-workaround
branch
from
October 4, 2023 05:53
48e995a
to
3f4f7da
Compare
4 tasks
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 19, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Add method `translate_styles` that manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics`. Tests added. Fixes part of zulip#1434.
18 tasks
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 20, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Add method `translate_styles` that manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics`. Tests added. Fixes part of zulip#1434.
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 20, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Add method `translate_styles` that manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics`. Tests added. Fixes part of zulip#1434.
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 21, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Method `translate_styles` manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics` is there. Unpin Pygments from ~=2.15.1 to >=2.14.0. Fixes part of zulip#1434.
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 22, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Method `translate_styles` manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics` is there. Unpin Pygments from ~=2.15.1 to >=2.14.0. Fixes part of zulip#1434.
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 22, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Add method `translate_styles` that manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics`. Tests added. Fixes part of zulip#1434.
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 22, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Method `translate_styles` manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics` is there. Unpin Pygments from ~=2.15.1 to >=2.14.0. Fixes part of zulip#1434.
jrijul1201
added a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Dec 22, 2023
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Add method `translate_styles` that manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics`. Tests added. Fixes part of zulip#1434.
neiljp
pushed a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Jan 8, 2024
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold italic' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. This minimally handles spaces and the shortened `italic` in pygments styles, sufficient to resolve the current style issue. Note that other pygments styles in themes that we do not yet use may need additional translation or adjustment. Tests added. Fixes part of zulip#1434.
neiljp
pushed a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Jan 8, 2024
The previous commit fixes the issue zulip#1431 that was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Subsequent versions of pygments have since been released, but an upper limit of 2.18.0 is included, since that unreleased version depends on Python3.8 and could make ZT uninstallable on older pythons. Fixes part of zulip#1434.
neiljp
pushed a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Jan 8, 2024
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold italic' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for zulip#1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. This minimally handles spaces and the shortened `italic` in pygments styles, sufficient to resolve the current style issue. Note that other pygments styles in themes that we do not yet use may need additional translation or adjustment. Tests added. Fixes part of zulip#1434.
neiljp
pushed a commit
to jrijul1201/zulip-terminal
that referenced
this pull request
Jan 8, 2024
The previous commit fixes the issue zulip#1431 that was temporarily fixed by pinning pygments at ~=2.15.1 in zulip#1433. Subsequent versions of pygments have since been released, but an upper limit of 2.18.0 is included, since that unreleased version depends on Python3.8 and could make ZT uninstallable on older pythons. Fixes part of zulip#1434.
neiljp
pushed a commit
that referenced
this pull request
Jan 8, 2024
Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold italic' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This work would represent a clean fix for #1431, which was temporarily fixed by pinning pygments at ~=2.15.1 in #1433. This minimally handles spaces and the shortened `italic` in pygments styles, sufficient to resolve the current style issue. Note that other pygments styles in themes that we do not yet use may need additional translation or adjustment. Tests added. Fixes part of #1434.
neiljp
pushed a commit
that referenced
this pull request
Jan 8, 2024
The previous commit fixes the issue #1431 that was temporarily fixed by pinning pygments at ~=2.15.1 in #1433. Subsequent versions of pygments have since been released, but an upper limit of 2.18.0 is included, since that unreleased version depends on Python3.8 and could make ZT uninstallable on older pythons. Fixes part of #1434.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: colors/styles/themes
bug: crash
high priority
should be done as soon as possible
size: XS
[Automatic label added by zulipbot]
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do, and why?
This is intended to provide a temporary quick fix for #1431, to enable the themes to continue working for now with
main
, by pinning pygments at~=2.15.1
.External discussion & connections
topic
How did you test this?
Self-review checklist for each commit