Modify

Opened 8 years ago

Closed 4 years ago

#1120 closed defect (wontfix)

After installing TracPygmentsPlugin PatchRenderer don't render diff files and Pygments too

Reported by: mou Owned by: mgood
Priority: high Component: TracPygmentsPlugin
Severity: normal Keywords:
Cc: haizaar@… Trac Release: 0.10

Description


Attachments (4)

fix_proposal_r2113.patch (612 bytes) - added by mape 7 years ago.
This is my workaround for this issue
fix_proposal_r2113.2.patch (612 bytes) - added by mape 7 years ago.
This is my workaround for this issue
fix_proposal2_r2113.patch (612 bytes) - added by mape 7 years ago.
This is my workaround for this issue, fight one :)
fix_proposal_3_r2113.patch (612 bytes) - added by mape 7 years ago.
This is right one (I would need ticket admin rights to replace invalid attachments)

Download all attachments as: .zip

Change History (12)

comment:1 Changed 7 years ago by athomas

The rst processor stops working too, presumably because Pygments takes precedence.

comment:2 Changed 7 years ago by noodles101

  • Owner changed from mgood to noodles101
  • Status changed from new to assigned

Yes the rst processor stops working... I hope you can fix that soon...

comment:3 Changed 7 years ago by noodles101

  • Owner changed from noodles101 to mgood
  • Status changed from assigned to new

comment:4 Changed 7 years ago by haizaar@…

+1
I've got this problem too. Had to revert back to use enscript :(
Trac-0.10.4 with latest Pytments

comment:5 Changed 7 years ago by anonymous

  • Cc haizaar@… added

comment:6 Changed 7 years ago by kennethxu

  • Priority changed from normal to high

+1 sorry if I shouldn't but I change the priority. will the rst problem be fixed anytime soon? thanks!

comment:7 Changed 7 years ago by kennethxu

I found a fix (or a workaround) for this. Add below to line 214:

                  if name != 'reStructuredText' :

The code should look like below after fix:

    def _init_types(self):
        if self._types is None:
            self._types = {}
            self._languages = {}
            if have_pygments:
                for name, aliases, _, mimetypes in get_all_lexers():
                  if name != 'reStructuredText' :
                    for mimetype in mimetypes:
                        self._types[mimetype] = (aliases[0], self.QUALITY_RATIO)
                    for alias in aliases:
                        self._languages[alias] = name
                self._types.update(
                    Mimeview(self.env).configured_modes_mapping('pygments')
                )

Changed 7 years ago by mape

This is my workaround for this issue

Changed 7 years ago by mape

This is my workaround for this issue

Changed 7 years ago by mape

This is my workaround for this issue, fight one :)

Changed 7 years ago by mape

This is right one (I would need ticket admin rights to replace invalid attachments)

comment:8 Changed 4 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Closing ticket since plugin is unmaintained and support can be found by upgrading to Trac 0.11.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.