-
Notifications
You must be signed in to change notification settings - Fork 486
Closed
Description
Steps to reproduce
See this failed CircleCI run of Solidus https://app.circleci.com/pipelines/github/solidusio/solidus/7226/workflows/289fdaa9-334f-4c14-ad3c-0af8222f7da9/jobs/67674
The Component Spec can be found at https://github.com/solidusio/solidus/blob/main/admin/spec/components/solidus_admin/base_component_spec.rb#L14
The component can be found at https://github.com/solidusio/solidus/blob/main/admin/app/components/solidus_admin/base_component.rb
Expected behavior
Test does not fail with syntax error
Actual behavior
Test does fails with syntax error
Backtrace:
SyntaxError:
/home/circleci/solidus/vendor/bundle/ruby/3.1.0/gems/view_component-3.21.0/lib/view_component/compiler.rb:98: syntax error, unexpected local variable or method, expecting '}'
...in <top (required)>') component rendered HTML-unsafe output....
... ^~~~~~~~~
/home/circleci/solidus/vendor/bundle/ruby/3.1.0/gems/view_component-3.21.0/lib/view_component/compiler.rb:98: syntax error, unexpected local variable or method, expecting `do' or '{' or '('
...ent rendered HTML-unsafe output. The output will be automati...
... ^~~~~~
/home/circleci/solidus/vendor/bundle/ruby/3.1.0/gems/view_component-3.21.0/lib/view_component/compiler.rb:98: syntax error, unexpected local variable or method, expecting `do' or '{' or '('
... automatically escaped, but you may want to investigate.') }
... ^~~
/home/circleci/solidus/vendor/bundle/ruby/3.1.0/gems/view_component-3.21.0/lib/view_component/compiler.rb:98: syntax error, unexpected string literal
...t you may want to investigate.') }
... ^
/home/circleci/solidus/vendor/bundle/ruby/3.1.0/gems/view_component-3.21.0/lib/view_component/compiler.rb:99: unterminated string meets end of file
end
^
/home/circleci/solidus/vendor/bundle/ruby/3.1.0/gems/view_component-3.21.0/lib/view_component/compiler.rb:99: syntax error, unexpected end-of-input, expecting `end'
end
System configuration
Rails version:
7.0, 7.1, 7.2
Ruby version:
3.1, 3.2, 3.3
Gem version:
3.21.0
It works with 3.20.0
Metadata
Metadata
Assignees
Labels
No labels