qannotate: KeyError: Token.Literal.String.Regexp in pygments

Bug #508281 reported by Alex Budovski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
High
Gary van der Merwe

Bug Description

Here's the trace. Was viewing a file annotate (around 140K in size)

bzr: ERROR: exceptions.KeyError: Token.Literal.String.Regexp

Traceback (most recent call last):
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\trace.py", line 291, in reports_exception_decorate
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\annotate.py", line 315, in initial_load
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\annotate.py", line 412, in annotate
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\syntaxhighlighter.py", line 91, in highlight_document
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\syntaxhighlighter.py", line 67, in get_token_format
  File "pygments\style.pyo", line 80, in style_for_token
KeyError: Token.Literal.String.Regexp

bzr 2.1.0b4 on python 2.5.4 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzr.exe', 'qbrowse']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.1.0b1]
  explorer C:\Program Files\Bazaar\plugins\explorer [0.10.0]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.1.0b4]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [2.1.0b4]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.17.0]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.5]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.1]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.8.5]

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 508281] [NEW] bzr explorer annotate error

Alex Budovski пишет:
> Public bug reported:
>
> Here's the trace. Was viewing a file annotate (around 140K in size)
>
> bzr: ERROR: exceptions.KeyError: Token.Literal.String.Regexp

What was file extension (type?).

Revision history for this message
Alex Budovski (abudovski) wrote : Re: bzr explorer annotate error

Perl script (.pl)

summary: - bzr explorer annotate error
+ qannotate: KeyError: Token.Literal.String.Regexp in pygments
Revision history for this message
Gary van der Merwe (garyvdm) wrote :

Very similar to Bug 347333

Changed in qbzr:
importance: Undecided → High
status: New → Confirmed
Changed in qbzr:
assignee: nobody → Gary van der Merwe (garyvdm)
milestone: none → 0.18
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.