id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
9872	no syntax highlighting when plugin is enabled	asix	rjollos	Note: System information and relevant plugin information follows the error information.\r\n\r\nProblem: Syntax highlighting does not work when TracKeywordsPlugin is enabled. If I disable the keywords plugin, syntax highlighting works as expected.\r\n\r\nAlso, an error is thrown when trying to change the syntax highting preferences.\r\n\r\nClick on Preferences, then Syntax Highlighting tab, and the following error is thrown:\r\n\r\n{{{\r\n[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'.,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] Traceback (most recent call last):,\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     return dispatch_request(environ, start_request),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     return _dispatch_request(req, env, env_error),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     send_internal_error(env, req, sys.exc_info()),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     req.send_error(exc_info, status=500, env=env, data=data),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     exc_info),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     dispatcher.dispatch(req),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     self._post_process_request(req),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     f.post_process_request(req, *(None,)*extra_arg_count),\r\n[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,\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x]     data['keywords'] = self._get_keywords(),\r\n[Thu Mar 01 13:08:59 2012] [error] [client x.x.x.x] TypeError: 'NoneType' object does not support item assignment,\r\n}}}\r\n\r\nSystem Information\r\n{{{\r\nTrac 0.12.3\r\nDocutils 0.6\r\nGenshi 0.6\r\nMercurial 2.1\r\nmod_wsgi 2.8 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})\r\nPygments 1.4\r\npysqlite 2.4.1\r\nPython 2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]\r\nsetuptools 0.6\r\nSQLite 3.6.22\r\nSubversion 1.6.6 (r40053)\r\njQuery:1.4.4\r\n}}}\r\nInstalled Plugins\r\n{{{\r\nAutocompleteUsers 0.4.2-r10974 /usr/local/lib/python2.6/dist-packages/AutocompleteUsers-0.4.2_r10974-py2.6.egg\r\nExtLinkRewriter 0.5 /usr/local/lib/python2.6/dist-packages/ExtLinkRewriter-0.5-py2.6.egg\r\nTracCustomFieldAdmin 0.2.8-r11278 /usr/local/lib/python2.6/dist-packages/TracCustomFieldAdmin-0.2.8_r11278-py2.6.egg\r\nTracKeywordsPlugin 0.2 /usr/local/lib/python2.6/dist-packages/TracKeywordsPlugin-0.2-py2.6.egg\r\nTracMasterTickets 3.0.2 /usr/local/lib/python2.6/dist-packages/TracMasterTickets-3.0.2-py2.6.egg\r\nTracMercurial 0.12.0.29dev-r10936 /usr/local/lib/python2.6/dist-packages/TracMercurial-0.12.0.29dev_r10936-py2.6.egg\r\nTracSubcomponents 1.1.2 /usr/local/lib/python2.6/dist-packages/TracSubcomponents-1.1.2-py2.6.egg\r\nTracWatchlistPlugin 0.5 /usr/local/lib/python2.6/dist-packages/TracWatchlistPlugin-0.5-py2.6.egg\r\nTracWikiPrintPlugin 1.9.2 /usr/local/lib/python2.6/dist-packages/TracWikiPrintPlugin-1.9.2-py2.6.egg\r\n}}}	defect	assigned	normal	TracKeywordsPlugin	normal				0.12
