Skip to content

error: invalid multibyte character occurs in JRuby 9.4.2.0 #7769

@ydah

Description

@ydah

Environment Information

https://github.com/rubocop/rubocop/actions/runs/4781852585/jobs/8500672332

Provide at least:

Expected Behavior

No errors should occur.

Actual Behavior

Perhaps it seems experiencing problems like encoding errors that do not occur in CRuby.

RuntimeError:
       Error parsing example code: (string):1:5: error: invalid multibyte character: /[\§]/
       (string):1: r = /[\§]/
       (string):1:     ^~~~~~
     # ./lib/rubocop/rspec/expect_offense.rb:203:in `parse_processed_source'
     # ./lib/rubocop/rspec/expect_offense.rb:119:in `expect_offense'
     # ./spec/rubocop/cop/style/redundant_regexp_escape_spec.rb:623:in `block in <main>'
     # ./vendor/bundle/jruby/3.1.0/gems/webmock-3.18.1/lib/webmock/rspec.rb:37:in `block in <main>'
     # tasks/spec_runner.rake:40:in `block in run_specs'
     # tasks/spec_runner.rake:52:in `with_encoding'
     # tasks/spec_runner.rake:36:in `run_specs'
     # tasks/spec_runner.rake:164:in `block in <main>'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:1[60](https://github.com/rubocop/rubocop/actions/runs/4781852585/jobs/8500672332#step:4:61):in `invoke_task'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:[80](https://github.com/rubocop/rubocop/actions/runs/4781852585/jobs/8500672332#step:4:81):in `run'
     # ./vendor/bundle/jruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions