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

Dpaste is not compatible with pygments >= 2.12.0 #208

Open
by-cx opened this issue Jun 1, 2022 · 2 comments
Open

Dpaste is not compatible with pygments >= 2.12.0 #208

by-cx opened this issue Jun 1, 2022 · 2 comments

Comments

@by-cx
Copy link

by-cx commented Jun 1, 2022

Description

Dpaste is affected by this bug:

pygments/pygments#2119

It crashes when something else than plain text is stored.

Steps to reproduce

  1. Install dpaste
  2. Go to its URL
  3. Select any language and hit Paste Snippet

Expected result

The snippet is saved.

Actual result

Snímek obrazovky z 2022-06-02 00-06-20

@DarrenOfficial
Copy link
Owner

Hello, thanks for the info. I didn't notice this.

I will temporarily downgrade pygments until I found a solution to fix this issue.

DarrenOfficial added a commit that referenced this issue Jun 2, 2022
Dpaste crashes when something else than plain text is stored.
https://user-images.githubusercontent.com/428000/171509933-116ea4d2-105e-4d75-b731-0d2fad1c8fd7.png

!! This is a temporary fix for the problem described above.

This fixes it by downgrading the pygment version.

Note: I also remove mysqlclient as was an accidental commit.
---

Fixes: #208
Origin: pygments/pygments#2119

Signed-off-by: Darren <git@darrennathanael.com>
@DarrenOfficial DarrenOfficial reopened this Jun 2, 2022
@by-cx
Copy link
Author

by-cx commented Jun 2, 2022

No problem, I noticed it during installation yesterday. Thanks for the fix.

@DarrenOfficial DarrenOfficial pinned this issue Jun 3, 2022
arturs-krapans added a commit to arturs-krapans/dpaste that referenced this issue Jan 31, 2024
Dpaste crashes when something else than plain text is stored.
https://user-images.githubusercontent.com/428000/171509933-116ea4d2-105e-4d75-b731-0d2fad1c8fd7.png

!! This is a temporary fix for the problem described above.

This fixes it by downgrading the pygment version.

Note: I also remove mysqlclient as was an accidental commit.
---

Fixes: DarrenOfficial/dpaste#208
Origin: pygments/pygments#2119

Signed-off-by: Darren <git@darrennathanael.com>
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

No branches or pull requests

2 participants