Ticket #1120 (new defect)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: mou Assigned to: mgood
Priority: high Component: TracPygmentsPlugin
Severity: normal Keywords:
Cc: haizaar@gmail.com Trac Release: 0.10

Attachments

fix_proposal_r2113.patch (0.6 kB) - added by mape on 12/06/07 08:20:14.
This is my workaround for this issue
fix_proposal_r2113.2.patch (0.6 kB) - added by mape on 12/06/07 08:33:42.
This is my workaround for this issue
fix_proposal2_r2113.patch (0.6 kB) - added by mape on 12/06/07 08:34:28.
This is my workaround for this issue, fight one :)
fix_proposal_3_r2113.patch (0.6 kB) - added by mape on 12/06/07 08:37:35.
This is right one (I would need ticket admin rights to replace invalid attachments)

Change History

05/07/07 20:27:20 changed by athomas

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

05/22/07 10:25:32 changed 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...

05/22/07 10:26:19 changed by noodles101

  • owner changed from noodles101 to mgood.
  • status changed from assigned to new.

06/10/07 03:28:47 changed by haizaar@gmail.com

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

06/10/07 03:29:12 changed by anonymous

  • cc set to haizaar@gmail.com.

07/21/07 14:48:06 changed 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!

07/21/07 20:55:09 changed 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')
                )

12/06/07 08:20:14 changed by mape

  • attachment fix_proposal_r2113.patch added.

This is my workaround for this issue

12/06/07 08:33:42 changed by mape

  • attachment fix_proposal_r2113.2.patch added.

This is my workaround for this issue

12/06/07 08:34:28 changed by mape

  • attachment fix_proposal2_r2113.patch added.

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

12/06/07 08:37:35 changed by mape

  • attachment fix_proposal_3_r2113.patch added.

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


Add/Change #1120 (After installing TracPygmentsPlugin PatchRenderer don't render diff files and Pygments too)




Change Properties
Action