{"id":1364,"date":"2023-03-19T10:22:21","date_gmt":"2023-03-19T02:22:21","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1364"},"modified":"2023-04-28T21:18:03","modified_gmt":"2023-04-28T13:18:03","slug":"gitlab-error-actionview-template-error-uninitialized-constant-actionview-compiledtemplates-expr-arg","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/gitlab-error-actionview-template-error-uninitialized-constant-actionview-compiledtemplates-expr-arg\/","title":{"rendered":"Gitlab\u62a5\u9519 ActionView Template Error uninitialized constant ActionView CompiledTemplates EXPR_ARG"},"content":{"rendered":"<p>\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/issues\/42045#note_73010232\">https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/issues\/42045#note_73010232<\/a><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5347\u7ea7 gems<\/p>\n<ul>\n<li>haml to (5.0.4)<\/li>\n<li>hamlit to (2.8.8)<\/li>\n<li>temple to (&gt;= 0.8.0)<\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<h3>\u8be6\u7ec6\u9519\u8bef\u65e5\u5fd7<\/h3>\n<pre><code>Started GET &quot;\/users\/password\/edit?reset_password_token=[FILTERED]&quot; for 115.238.84.211 at 2018-06-11 20:19:46 +0800\nProcessing by PasswordsController#edit as HTML\n  Parameters: {&quot;reset_password_token&quot;=&gt;&quot;[FILTERED]&quot;}\nCompleted 500 Internal Server Error in 390ms (ActiveRecord: 375.4ms)\n\nActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::EXPR_ARG):\n    1: !!! 5\n    2: %html.devise-layout-html{ class: system_message_class }\n    3:   = render &quot;layouts\/head&quot;\n    4:   %body.ui_indigo.login-page.application.navless{ data: { page: body_data_page } }\n    5:     .page-wrap\n  app\/views\/layouts\/devise.html.haml:2:in `_app_views_layouts_devise_html_haml__520135394538974061_46936018683300&#039;\n  lib\/gitlab\/i18n.rb:50:in `with_locale&#039;\n  lib\/gitlab\/i18n.rb:56:in `with_user_locale&#039;\n  app\/controllers\/application_controller.rb:355:in `set_locale&#039;\n  lib\/gitlab\/middleware\/multipart.rb:95:in `call&#039;\n  lib\/gitlab\/request_profiler\/middleware.rb:14:in `call&#039;\n  lib\/gitlab\/middleware\/go.rb:17:in `call&#039;\n  lib\/gitlab\/etag_caching\/middleware.rb:11:in `call&#039;\n  lib\/gitlab\/middleware\/read_only\/controller.rb:28:in `call&#039;\n  lib\/gitlab\/middleware\/read_only.rb:16:in `call&#039;\n  lib\/gitlab\/request_context.rb:18:in `call&#039;\n  lib\/gitlab\/metrics\/requests_rack_middleware.rb:27:in `call&#039;\n  lib\/gitlab\/middleware\/release_env.rb:10:in `call&#039;<\/code><\/pre>\n<h3>\u4fee\u6539Gemfile<\/h3>\n<h4>Gemfile<\/h4>\n<pre><code># vim Gemfile<\/code><\/pre>\n<pre><code># HAML\n# gem &#039;hamlit&#039;, &#039;~&gt; 2.6.1&#039;\ngem &#039;hamlit&#039;, &#039;~&gt; 2.8.8&#039;\n\n# gem &#039;haml_lint&#039;, &#039;~&gt; 0.26.0&#039;, require: false\ngem &#039;haml_lint&#039;, &#039;~&gt; 0.26.0&#039;, require: false<\/code><\/pre>\n<h4>Gemfile.lock<\/h4>\n<pre><code># vim Gemfile.lock<\/code><\/pre>\n<pre><code>haml (4.0.7)\n      tilt\n    haml_lint (0.26.0)\n      haml (&gt;= 4.0, &lt; 5.1)\n      rainbow\n      rake (&gt;= 10, &lt; 13)\n      rubocop (&gt;= 0.49.0)\n      sysexits (~&gt; 1.1)\n    hamlit (2.6.1)\n      temple (~&gt; 0.7.6)\n      thor\n      tilt<\/code><\/pre>\n<p>\u6539\u4e3a\uff1a<\/p>\n<pre><code>haml (5.0.4)\n      tilt\n    haml_lint (0.28.0)\n      haml (&gt;= 4.0, &lt; 5.1)\n      rainbow\n      rake (&gt;= 10, &lt; 13)\n      rubocop (&gt;= 0.49.0)\n      sysexits (~&gt; 1.1)\n    hamlit (2.8.8)\n      temple (~&gt; 0.8.0)\n      thor\n      tilt<\/code><\/pre>\n<pre><code>haml_lint (~&gt; 0.26.0)\nhamlit (~&gt; 2.6.1)<\/code><\/pre>\n<p>\u6539\u4e3a\uff1a<\/p>\n<pre><code>haml_lint (~&gt; 0.28.0)\nhamlit (~&gt; 2.8.8)<\/code><\/pre>\n<h3>\u5347\u7ea7Gems<\/h3>\n<pre><code># sudo -u git -H vim .bundle\/config\n\n    BUNDLE_FROZEN: &quot;false&quot;\n\n# sudo -u git -H bundle lock --update=hamlit\nFetching gem metadata from https:\/\/rubygems.org\/......\nFetching gem metadata from https:\/\/rubygems.org\/.\nResolving dependencies........\nWriting lockfile to \/data\/git\/gitlab\/Gemfile.lock\n# sudo -u git -H bundle lock --update=haml\nFetching gem metadata from https:\/\/rubygems.org\/......\nFetching gem metadata from https:\/\/rubygems.org\/.\nResolving dependencies.........\nWriting lockfile to \/data\/git\/gitlab\/Gemfile.lock\n# sudo -u git -H bundle lock --update=haml_lint\nFetching gem metadata from https:\/\/rubygems.org\/......\nFetching gem metadata from https:\/\/rubygems.org\/.\nResolving dependencies........\nWriting lockfile to \/data\/git\/gitlab\/Gemfile.lock\n# sudo -u git -H bundle install --deployment --without development test postgres aws kerberos\n# sudo -u git service gitlab restart<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\uff1ahttps:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/issues\/42045 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[],"class_list":["post-1364","post","type-post","status-publish","format-standard","hentry","category-gitlab"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1364"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1364\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}