Skip to content
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

Implement rb_warning_category_enabled_p #2764

Closed
eregon opened this issue Oct 18, 2022 · 1 comment
Closed

Implement rb_warning_category_enabled_p #2764

eregon opened this issue Oct 18, 2022 · 1 comment

Comments

@eregon
Copy link
Member

eregon commented Oct 18, 2022

It seems used by Ripper, when Ripper parses pattern matching.

Backtrace:

 38) Error:
SyntaxTree::InterfaceTest#test_fndptn_9:
RuntimeError: Neutered Exception Polyglot::ForeignException: External LLVMFunction rb_warning_category_enabled_p cannot be found.
    ripper.c:6157:in `ripper_yyparse'
    ripper.y:13684:in `ripper_parse0'
    /home/eregon/.rubies/truffleruby-dev/lib/truffle/truffle/cext.rb:1563:in `<unknown>'
    /home/eregon/.rubies/truffleruby-dev/lib/truffle/truffle/cext.rb:1563:in `CExt#rb_ensure'
    exception.c:97:in `rb_ensure'
    ripper.y:13714:in `ripper_parse'
    /home/eregon/.rubies/truffleruby-dev/lib/truffle/truffle/cext_ruby.rb:41:in `<unknown>'
    /home/eregon/.rubies/truffleruby-dev/lib/truffle/truffle/cext_ruby.rb:41:in `Ripper#parse'
    /home/eregon/code/syntax_tree/lib/syntax_tree.rb:49:in `SyntaxTree.parse'
    /home/eregon/code/syntax_tree/test/interface_test.rb:17:in `SyntaxTree::InterfaceTest#test_fndptn_9'

From ruby-syntax-tree/syntax_tree#168 (comment)

@eregon
Copy link
Member Author

eregon commented Oct 28, 2022

Fixed in bacad37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants