Note: System information and relevant plugin information follows the error information.
Problem: Syntax highlighting does not work when TracKeywordsPlugin is enabled. If I disable the keywords plugin, syntax highlighting works as expected.
Also, an error is thrown when trying to change the syntax highting preferences.
Click on Preferences, then Syntax Highlighting tab, and the following error is thrown:
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] mod_wsgi (pid=9470): Exception occurred processing WSGI script '/var/www/trac/cgi-bin/trac.wsgi'.,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] Traceback (most recent call last):,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/var/www/trac/cgi-bin/trac.wsgi", line 33, in application,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] return dispatch_request(environ, start_request),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py", line 490, in dispatch_request,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] return _dispatch_request(req, env, env_error),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py", line 566, in _dispatch_request,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] send_internal_error(env, req, sys.exc_info()),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py", line 660, in send_internal_error,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] req.send_error(exc_info, status=500, env=env, data=data),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/api.py", line 463, in send_error,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] exc_info),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py", line 522, in _dispatch_request,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] dispatcher.dispatch(req),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py", line 269, in dispatch,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] self._post_process_request(req),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py", line 365, in _post_process_request,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] f.post_process_request(req, *(None,)*extra_arg_count),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/dist-packages/TracKeywordsPlugin-0.2-py2.6.egg/trackeywords/web_ui.py", line 83, in post_process_request,
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] data['keywords'] = self._get_keywords(),
[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] TypeError: 'NoneType' object does not support item assignment,
System Information
Trac 0.12.3
Docutils 0.6
Genshi 0.6
Mercurial 2.1
mod_wsgi 2.8 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
Pygments 1.4
pysqlite 2.4.1
Python 2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
setuptools 0.6
SQLite 3.6.22
Subversion 1.6.6 (r40053)
jQuery:1.4.4
Installed Plugins
AutocompleteUsers 0.4.2-r10974 /usr/local/lib/python2.6/dist-packages/AutocompleteUsers-0.4.2_r10974-py2.6.egg
ExtLinkRewriter 0.5 /usr/local/lib/python2.6/dist-packages/ExtLinkRewriter-0.5-py2.6.egg
TracCustomFieldAdmin 0.2.8-r11278 /usr/local/lib/python2.6/dist-packages/TracCustomFieldAdmin-0.2.8_r11278-py2.6.egg
TracKeywordsPlugin 0.2 /usr/local/lib/python2.6/dist-packages/TracKeywordsPlugin-0.2-py2.6.egg
TracMasterTickets 3.0.2 /usr/local/lib/python2.6/dist-packages/TracMasterTickets-3.0.2-py2.6.egg
TracMercurial 0.12.0.29dev-r10936 /usr/local/lib/python2.6/dist-packages/TracMercurial-0.12.0.29dev_r10936-py2.6.egg
TracSubcomponents 1.1.2 /usr/local/lib/python2.6/dist-packages/TracSubcomponents-1.1.2-py2.6.egg
TracWatchlistPlugin 0.5 /usr/local/lib/python2.6/dist-packages/TracWatchlistPlugin-0.5-py2.6.egg
TracWikiPrintPlugin 1.9.2 /usr/local/lib/python2.6/dist-packages/TracWikiPrintPlugin-1.9.2-py2.6.egg