gitlabhq/gitlabhq — Issue #56: Error when viewing project without available code
Author: nextpulse
Created: 2011-10-22 19:59:39+00:00
State: open

I've upgraded my checkout of gitlabhq today to the latest HEAD and after creating a new project the following error pops up in the log. Apparently the bash_lexer isn't available since the changes for v1.1 in commit 6b030fd41d697e327d2935b406cba70b6a460504.

```
ActionView::Template::Error (undefined method `highlight' for nil:NilClass):
7: git config --global user.email "#{current_user.email}"
8: eos
9: %>
10: <%= raw bash_lexer.highlight(setup_str) %>
11:

12:

13:

Next steps:

app/views/projects/empty.html.erb:10:in `_app_views_projects_empty_html_erb___4056466798298364121_55574120'
app/controllers/projects_controller.rb:63:in `show'
```