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
  • #4451

Closed
Open
Created Jun 28, 2013 by Administrator@rootOwner

Wiki page fails with error 500 "ClassNotFound: no lexer for alias 'batchfile' found"

Created by: 40KHYTbIU

Version 5-3-stable. If wrote in a wiki " ```cmd " then get error 500. From a log:

Started GET "/myproj/wikis/home" for  at 2013-06-27 16:49:57 +0400
Processing by WikisController#show as HTML
  Parameters: {"project_id"=>"myproj", "id"=>"home"}
  Rendered wikis/_new.html.haml (15.2ms)
  Rendered wikis/_nav.html.haml (39.8ms)
  Rendered wikis/_main_links.html.haml (22.1ms)
  Rendered wikis/show.html.haml within layouts/project_resource (289.7ms)
Completed 500 Internal Server Error in 2523ms

ActionView::Template::Error (Traceback (most recent call last):
  File "/data/apps/sa_gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/gitlab-pygments.rb-0.3.2/lib/pygments/mentos.py", line 303, in start
    res = self.get_data(method, lexer, args, kwargs, text)
  File "/data/apps/sa_gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/gitlab-pygments.rb-0.3.2/lib/pygments/mentos.py", line 171, in get_data
    res = self.highlight_text(text, lexer, formatter_name, args, _convert_keys(opts))
  File "/data/apps/sa_gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/gitlab-pygments.rb-0.3.2/lib/pygments/mentos.py", line 122, in highlight_text
    lexer = self.return_lexer(lexer, args, kwargs, code)
  File "/data/apps/sa_gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/gitlab-pygments.rb-0.3.2/lib/pygments/mentos.py", line 79, in return_lexer
    return lexers.get_lexer_by_name(lexer, **inputs)
  File "/data/apps/sa_gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/gitlab-pygments.rb-0.3.2/vendor/pygments-main/pygments/lexers/__init__.py", line 80, in get_lexer_by_name
    raise ClassNotFound('no lexer for alias %r found' % _alias)
ClassNotFound: no lexer for alias 'batchfile' found
):
    11: .file_holder
    12:   .file_content.wiki
    13:     = preserve do
    14:       = render_wiki_content(@wiki)
    15:
    16: %p.time Last edited by #{commit_author_link(@wiki.version, avatar: true, size: 16)} #{time_ago_in_words @wiki.created_at} ago
  lib/redcarpet/render/gitlab_html.rb:26:in `block_code'
  app/helpers/gitlab_markdown_helper.rb:50:in `render'
  app/helpers/gitlab_markdown_helper.rb:50:in `markdown'
  app/helpers/gitlab_markdown_helper.rb:55:in `render_wiki_content'
  app/views/wikis/show.html.haml:14:in `block in _app_views_wikis_show_html_haml__917533775083243259_52666520'
  app/views/wikis/show.html.haml:13:in `_app_views_wikis_show_html_haml__917533775083243259_52666520'
  app/controllers/wikis_controller.rb:15:in `show'
Assignee
Assign to
Time tracking