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

Closed
Open
Created Jul 28, 2012 by Administrator@rootOwner

Error when viewing .pp file

Created by: toreym

I get the following error when trying to view a .pp file (puppet master manifest)

ActionView::Template::Error (SyntaxError: ('invalid syntax', ('/usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/pygments.rb-2cada028da50/vendor/pygments-main/pygments/lexers/github.py', 64, 32, '        klass = Name.Variable if ident.upper() in lexer.REGISTERS else Name.Label\n'))):
    18:         - unless file.empty?
    19:           %div{:class => current_user.dark_scheme ? "black" : "white"}
    20:             = preserve do
    21:               = raw file.colorize(options: { linenos: 'True'})
    22:         - else
    23:           %h4.nothing_here_message Empty file
    24: 
  app/models/tree.rb:5:in `colorize'
  app/views/refs/_tree_file.html.haml:21:in `block in _app_views_refs__tree_file_html_haml__681662805906721576_143510580'
  app/views/refs/_tree_file.html.haml:20:in `_app_views_refs__tree_file_html_haml__681662805906721576_143510580'
  app/views/refs/_tree.html.haml:13:in `_app_views_refs__tree_html_haml___1872997311249821436_155264500'
  app/views/refs/tree.js.haml:3:in `_app_views_refs_tree_js_haml__3618298485872148019_155444140'

An example .pp file

class sudo {
    file { "/etc/sudoers":
        owner => "root",
        group => "root",
        mode  => 440,
    }
}
Assignee
Assign to
Time tracking