Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #672

Closed
Open
Created Apr 13, 2012 by Administrator@rootOwner

undefined method `highlight' for nil:NilClass

Created by: ianmurrays

Apparently bash_lexer is not defined in this view. I'm on 52f6df7255ed40186bd1a0e92abaaf2b926f3817.

Started GET "/testproject" for 127.0.0.1 at 2012-04-13 08:05:05 +0400
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"testproject"}
  Rendered projects/empty.html.haml within layouts/project (2.2ms)
Completed 500 Internal Server Error in 11ms

ActionView::Template::Error (undefined method `highlight' for nil:NilClass):
    29:     "git remote add origin #{@project.url_to_repo}",
    30:     "git push -u origin master"].join("\n")
    31:
    32:   = raw bash_lexer.highlight(repo_setup_str)
    33:
    34:   %br
    35:   %br
  app/views/projects/empty.html.haml:32:in `_app_views_projects_empty_html_haml__1933588343029202734_97263360'
  app/controllers/projects_controller.rb:79:in `block (2 levels) in show'
Assignee
Assign to
Time tracking