-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninitialized constant Parser::AST::Processor::Mixin with parser 3.3.1.0 #7029
Comments
stanhu
added a commit
to stanhu/inspec
that referenced
this issue
Apr 26, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` and requiring the right version of the `parser` gem. Closes inspec#7029
4 tasks
stanhu
added a commit
to stanhu/inspec
that referenced
this issue
Apr 26, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` and requiring the right version of the `parser` gem. Closes inspec#7029 Signed-off-by: Stan Hu <[email protected]>
stanhu
added a commit
to stanhu/inspec
that referenced
this issue
Apr 30, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` instead. Closes inspec#7029 Signed-off-by: Stan Hu <[email protected]>
stanhu
added a commit
to stanhu/inspec
that referenced
this issue
Apr 30, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` instead. Closes inspec#7029 Signed-off-by: Stan Hu <[email protected]>
ahasunos
pushed a commit
that referenced
this issue
May 2, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` instead. Closes #7029 Signed-off-by: Stan Hu <[email protected]>
ahasunos
pushed a commit
that referenced
this issue
May 2, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` instead. Closes #7029 Signed-off-by: Stan Hu <[email protected]>
Keeping it open till we release the version of InSpec with this change. |
ahasunos
added a commit
that referenced
this issue
May 2, 2024
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` instead. Closes #7029 Signed-off-by: Stan Hu <[email protected]> Co-authored-by: Stan Hu <[email protected]>
4 tasks
tomhughes
added a commit
to openstreetmap/chef
that referenced
this issue
May 17, 2024
@stanhu we are planning the release in next week. |
@Vasu1105 Thanks, I see from https://rubygems.org/gems/inspec that v5.22.50 was released to RubyGems. Could you release something for v6.6.0? |
Yes, We are planning for that too. We will update you as soon as we release it. Thanks!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
parser 3.3.1.0 introduced whitequark/parser#1000, which causes this failure:
Possible Solution
The dependency graph:
inspec-core
->rubocop-ast
->parser >= 3.3.0.4
When
parser
3.3.1.0 was released today, the previous mix-in no longer exists.The text was updated successfully, but these errors were encountered: