Problem with CodeRay
Added by Werner Kapferer about 12 years ago
Hi!
I just realized, that I have really bad problems with CodeRay syntax highlightning..
I've got installed CodeRay 1.0.9 and didn't modify the "../lib/redmine/syntax_highlighting.rb"
My production.log says
ActionView::Template::Error (#<Class:Redmine::SyntaxHighlighting>#highlight_by_filename delegated to highlighter.highlight_by_filename, but highlighter is nil: Redmine::SyntaxHighlighting): 2: <table class="filecontent syntaxhl"> 3: <tbody> 4: <% line_num = 1 %> 5: <% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %> 6: <tr> 7: <th class="line-num" id="L<%= line_num %>"> 8: <a href="#L<%= line_num %>"><%= line_num %></a> lib/redmine/syntax_highlighting.rb:26:in `highlight_by_filename' app/helpers/application_helper.rb:386:in `syntax_highlight' app/helpers/application_helper.rb:381:in `syntax_highlight_lines' app/views/common/_file.html.erb:5:in `_app_views_common__file_html_erb___237243520_69905588863040' app/views/repositories/entry.html.erb:11:in `_app_views_repositories_entry_html_erb__357234730_69905589081340'
if I try, to view a SVN-file for example.
Could anybody help me please?
This really takes me down :(
Replies (6)
RE: Problem with CodeRay
-
Added by Etienne Massip about 12 years ago
What Redmine version, any plugins?
RE: Problem with CodeRay
-
Added by Werner Kapferer about 12 years ago
Sorry, I forgot to mention it.
Redmine 2.2 - no plugins.
Thanks
RE: Problem with CodeRay
-
Added by Etienne Massip about 12 years ago
Does it happen when viewing any file? With which extension?
RE: Problem with CodeRay
-
Added by Werner Kapferer about 12 years ago
As far I tried, it happens with every file type.
I tried .xml, .java and also .txt.
Even if I try to use it in Wiki (like told here www.redmine.org/projects/redmine/wiki/RedmineTextFormatting#Code-highlighting) the whole wiki link leads to an empty, white page.