Skip to content

Commit

Permalink
jruby fails on loading psych 5.1.1
Browse files Browse the repository at this point in the history
```
An error occurred while loading ./spec/authorization_spec.rb.
Failure/Error: require "active_support/core_ext"

NameError:
  cannot load (ext) (org.jruby.ext.psych.PsychLibrary)
# ./vendor/bundle/jruby/3.1.0/gems/psych-5.1.1-java/lib/psych.rb:7:in `<main>'
# ./vendor/bundle/jruby/3.1.0/gems/activesupport-7.1.1/lib/active_support/time_with_zone.rb:3:in `<main>'
# ./vendor/bundle/jruby/3.1.0/gems/activesupport-7.1.1/lib/active_support/core_ext/time/zones.rb:3:in `<main>'
# ./vendor/bundle/jruby/3.1.0/gems/activesupport-7.1.1/lib/active_support/core_ext/date/calculations.rb:7:in `<main>'
# ./vendor/bundle/jruby/3.1.0/gems/activesupport-7.1.1/lib/active_support/core_ext/date.rb:5:in `<main>'
# ./vendor/bundle/jruby/3.1.0/gems/activesupport-7.1.1/lib/active_support/core_ext.rb:5:in `block in <main>'
# ./vendor/bundle/jruby/3.1.0/gems/activesupport-7.1.1/lib/active_support/core_ext.rb:3:in `<main>'
# ./spec/spec_helper.rb:17:in `<main>'
# ./spec/authorization_spec.rb:3:in `<main>'
# ------------------
# --- Caused by: ---
# Java::JavaLang::NullPointerException:
#   inStream parameter is null
#   java.base/java.util.Objects.requireNonNull(Objects.java:246)
```
  • Loading branch information
Burgestrand committed Oct 12, 2023
1 parent 54ce2b7 commit caed448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
ruby-version:
- '3.0'
- '3.1'
- 'jruby-9.3.10'
- 'jruby-9.3.10' # oldest supported jruby
- 'jruby'
include: # HEAD-versions
- ruby-version: 'head'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
source "https://rubygems.org"

gemspec

# https://github.com/ruby/psych/issues/655
gem "psych", "!= 5.1.1", platforms: %i[jruby]

0 comments on commit caed448

Please sign in to comment.