Modify

Opened 18 years ago

Closed 14 years ago

#1120 closed defect (wontfix)

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

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

Description


Attachments (4)

fix_proposal_r2113.patch (612 bytes) - added by Markus Pelkonen 17 years ago.
This is my workaround for this issue
fix_proposal_r2113.2.patch (612 bytes) - added by Markus Pelkonen 17 years ago.
This is my workaround for this issue
fix_proposal2_r2113.patch (612 bytes) - added by Markus Pelkonen 17 years ago.
This is my workaround for this issue, fight one :)
fix_proposal_3_r2113.patch (612 bytes) - added by Markus Pelkonen 17 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 18 years ago by Alec Thomas

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

comment:2 Changed 18 years ago by Enrico Straube

Owner: changed from Matt Good to Enrico Straube
Status: newassigned

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

comment:3 Changed 18 years ago by Enrico Straube

Owner: changed from Enrico Straube to Matt Good
Status: assignednew

comment:4 Changed 17 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 17 years ago by anonymous

Cc: haizaar@… added; anonymous removed

comment:6 Changed 17 years ago by Kenneth Xu

Priority: normalhigh

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

comment:7 Changed 17 years ago by Kenneth Xu

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 17 years ago by Markus Pelkonen

Attachment: fix_proposal_r2113.patch added

This is my workaround for this issue

Changed 17 years ago by Markus Pelkonen

Attachment: fix_proposal_r2113.2.patch added

This is my workaround for this issue

Changed 17 years ago by Markus Pelkonen

Attachment: fix_proposal2_r2113.patch added

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

Changed 17 years ago by Markus Pelkonen

Attachment: fix_proposal_3_r2113.patch added

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

comment:8 Changed 14 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.