'str' object has no attribute 'parent'

Open
#2,027 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
devtools

Research direction

Start by reproducing the reported error with Pygments 2.11.2 and the pgcli scenario linked in the issue, then compare it with Pygments 2.11.1. Trace the source of the 'str' object has no attribute 'parent' exception; done means the scenario works without the error and a regression test covers it.

Written by the indexing model from the issue text.

Description

A-formatting

pgcli is broken with version 2.11.2 of pygments, see https://github.com/dbcli/pgcli/issues/1303

I did not logged the pgcli issue but I have the exact same error and downgrading pygments to 2.11.1 also solves my issue.

Dominant language
Python
Stars
2.2k
Forks
885
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pygments/pygments

All issues in pygments/pygments

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.