Title: Fix this project and upgrade it to the latest JRuby · Issue #5 · scijava/scripting-jruby · GitHub
Open Graph Title: Fix this project and upgrade it to the latest JRuby · Issue #5 · scijava/scripting-jruby
X Title: Fix this project and upgrade it to the latest JRuby · Issue #5 · scijava/scripting-jruby
Description: I tried to upgrade this component to the new jruby-base, which has proper dependencies with no uber-JARs (see jruby/jruby#6205 for details). Here is the patch I tried diff --git a/pom.xml b/pom.xml index 840d79a..31198db 100644 --- a/pom...
Open Graph Description: I tried to upgrade this component to the new jruby-base, which has proper dependencies with no uber-JARs (see jruby/jruby#6205 for details). Here is the patch I tried diff --git a/pom.xml b/pom.xml...
X Description: I tried to upgrade this component to the new jruby-base, which has proper dependencies with no uber-JARs (see jruby/jruby#6205 for details). Here is the patch I tried diff --git a/pom.xml b/pom.xml...
Opengraph URL: https://github.com/scijava/scripting-jruby/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix this project and upgrade it to the latest JRuby","articleBody":"I tried to upgrade this component to the new jruby-base, which has proper dependencies with no uber-JARs (see jruby/jruby#6205 for details).\r\n\r\n\u003cdetails\u003e\u003csummary\u003eHere is the patch I tried\u003c/summary\u003e\r\n\r\n```diff\r\ndiff --git a/pom.xml b/pom.xml\r\nindex 840d79a..31198db 100644\r\n--- a/pom.xml\r\n+++ b/pom.xml\r\n@@ -93,8 +93,8 @@ Institute of Molecular Cell Biology and Genetics.\u003c/license.copyrightOwners\u003e\r\n \u003c!-- NB: Deploy releases to the SciJava Maven repository. --\u003e\r\n \u003creleaseProfiles\u003esign,deploy-to-scijava\u003c/releaseProfiles\u003e\r\n \r\n- \u003cjruby.version\u003e9.1.17.0\u003c/jruby.version\u003e\r\n- \u003cjruby-core.version\u003e${jruby.version}\u003c/jruby-core.version\u003e\r\n+ \u003cjruby.version\u003e9.3.3.0\u003c/jruby.version\u003e\r\n+ \u003cjruby-base.version\u003e${jruby.version}\u003c/jruby-base.version\u003e\r\n \u003cjruby-stdlib.version\u003e${jruby.version}\u003c/jruby-stdlib.version\u003e\r\n \u003c/properties\u003e\r\n \r\n@@ -108,8 +108,8 @@ Institute of Molecular Cell Biology and Genetics.\u003c/license.copyrightOwners\u003e\r\n \u003c!-- Third-party dependencies --\u003e\r\n \u003cdependency\u003e\r\n \u003cgroupId\u003eorg.jruby\u003c/groupId\u003e\r\n- \u003cartifactId\u003ejruby-core\u003c/artifactId\u003e\r\n- \u003cversion\u003e${jruby-core.version}\u003c/version\u003e\r\n+ \u003cartifactId\u003ejruby-base\u003c/artifactId\u003e\r\n+ \u003cversion\u003e${jruby-base.version}\u003c/version\u003e\r\n \u003c/dependency\u003e\r\n \u003cdependency\u003e\r\n \u003cgroupId\u003eorg.jruby\u003c/groupId\u003e\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\nUnfortunately, the tests then fail as follows:\r\n\r\n```\r\norg.jruby.exceptions.NoMethodError: (NoMethodError) undefined method `getLanguageByName' for nil:NilClass\r\n\tat RUBY.\u003cmain\u003e(hello.rb:3)\r\n[ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2.524 s \u003c\u003c\u003c FAILURE! - in org.scijava.plugins.scripting.jruby.JRubyTest\r\n[ERROR] testParameters(org.scijava.plugins.scripting.jruby.JRubyTest) Time elapsed: 0.132 s \u003c\u003c\u003c FAILURE!\r\njava.lang.AssertionError: expected:\u003cRuby\u003e but was:\u003cnull\u003e\r\n\tat org.scijava.plugins.scripting.jruby.JRubyTest.testParameters(JRubyTest.java:97)\r\n\r\n[ERROR] testLocals(org.scijava.plugins.scripting.jruby.JRubyTest) Time elapsed: 0.007 s \u003c\u003c\u003c FAILURE!\r\njava.lang.AssertionError: expected:\u003c17\u003e but was:\u003cnull\u003e\r\n\tat org.scijava.plugins.scripting.jruby.JRubyTest.testLocals(JRubyTest.java:77)\r\n```\r\n\r\n\u003cdetails\u003e\u003csummary\u003eHere are the dependency changes this update causes\u003c/summary\u003e\r\n\r\n```diff\r\ndiff --git a/before b/after\r\nindex c4aca19..ae41d51 100644\r\n--- a/before\r\n+++ b/after\r\n@@ -1,26 +1,31 @@\r\n-com.github.jnr jffi jar 1.2.16 compile\r\n-com.github.jnr jffi jar native 1.2.16 compile\r\n-com.github.jnr jnr-constants jar 0.9.9 compile\r\n-com.github.jnr jnr-enxio jar 0.16 compile\r\n-com.github.jnr jnr-netdb jar 1.1.6 compile\r\n-com.github.jnr jnr-posix jar 3.0.44 compile\r\n-com.github.jnr jnr-unixsocket jar 0.17 compile\r\n+com.github.jnr jffi jar 1.3.9 compile\r\n+com.github.jnr jffi jar native 1.3.9 compile\r\n+com.github.jnr jnr-a64asm jar 1.0.0 compile\r\n+com.github.jnr jnr-constants jar 0.10.3 compile\r\n+com.github.jnr jnr-enxio jar 0.32.13 compile\r\n+com.github.jnr jnr-ffi jar 2.2.11 compile\r\n+com.github.jnr jnr-netdb jar 1.2.0 compile\r\n+com.github.jnr jnr-posix jar 3.1.15 compile\r\n+com.github.jnr jnr-unixsocket jar 0.38.17 compile\r\n com.github.jnr jnr-x86asm jar 1.0.2 compile\r\n-com.headius invokebinder jar 1.10 compile\r\n-com.headius modulator jar 1.0 compile\r\n-com.headius options jar 1.4 compile\r\n-com.headius unsafe-fences jar 1.0 compile\r\n+com.headius backport9 jar 1.12 compile\r\n+com.headius invokebinder jar 1.12 compile\r\n+com.headius options jar 1.6 compile\r\n com.jcraft jzlib jar 1.1.3 compile\r\n-com.martiansoftware nailgun-server jar 0.9.1 compile\r\n joda-time joda-time jar 2.10.1 compile\r\n junit junit jar 4.12 test\r\n+me.qmx.jitescript jitescript jar 0.4.1 compile\r\n org.bushe eventbus jar 1.4 compile\r\n org.hamcrest hamcrest-core jar 1.3 test\r\n-org.jruby.extras bytelist jar 1.0.15 compile\r\n-org.jruby.jcodings jcodings jar 1.0.27 compile\r\n-org.jruby.joni joni jar 2.1.15 compile\r\n+org.jruby.jcodings jcodings jar 1.0.55 compile\r\n+org.jruby.joni joni jar 2.1.40 compile\r\n org.jruby dirgra jar 0.3 compile\r\n-org.jruby jruby-core jar 9.1.17.0 compile\r\n-org.jruby jruby-stdlib jar 9.1.17.0 compile\r\n+org.jruby jruby-base jar 9.3.3.0 compile\r\n+org.jruby jruby-stdlib jar 9.3.3.0 compile\r\n+org.ow2.asm asm-analysis jar 9.2 compile\r\n+org.ow2.asm asm-commons jar 9.2 compile\r\n+org.ow2.asm asm-tree jar 9.2 compile\r\n+org.ow2.asm asm-util jar 9.2 compile\r\n+org.ow2.asm asm jar 9.2 compile\r\n org.scijava parsington jar 1.0.4 compile\r\n org.scijava scijava-common jar 2.77.0 compile\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\nI also tried with jruby-core 9.3.3.0 (i.e. not switching to jruby-base), and the same problem occurs. Dependency-wise though, the newer jruby-core bundles more things internally, so the dependency list becomes quite short in that case.\r\n\r\nIt must be a change in the behavior of JRuby. Maybe a new bug, or maybe something we need to adjust for. Further investigation needed.","author":{"url":"https://github.com/ctrueden","@type":"Person","name":"ctrueden"},"datePublished":"2022-02-19T00:32:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5/scripting-jruby/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f92cb1f7-7318-57fb-af7f-6876a4ee2f2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E87C:C9A7:1C839FB:25BE84B:696EE724 |
| html-safe-nonce | a7fdcc75269814cad5b21aed9467194eee2230840dcf4caa3d5ca9ba826d8f5f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODdDOkM5QTc6MUM4MzlGQjoyNUJFODRCOjY5NkVFNzI0IiwidmlzaXRvcl9pZCI6IjcyNjk1MTQ2NDMxMzI4MzU2MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 187dcd747db24aad2abbf2360b048b8e5b529ae5f61b3a722761cfc9fb1262ce |
| hovercard-subject-tag | issue:1144024524 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scripting-jruby/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b96caa66b8190d3186555a0fa9d9e325ed124eda519ef94c76f185b308e4df69/scijava/scripting-jruby/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b96caa66b8190d3186555a0fa9d9e325ed124eda519ef94c76f185b308e4df69/scijava/scripting-jruby/issues/5 |
| og:image:alt | I tried to upgrade this component to the new jruby-base, which has proper dependencies with no uber-JARs (see jruby/jruby#6205 for details). Here is the patch I tried diff --git a/pom.xml b/pom.xml... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ctrueden |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scripting-jruby git https://github.com/scijava/scripting-jruby.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 19124543 |
| octolytics-dimension-repository_nwo | scijava/scripting-jruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19124543 |
| octolytics-dimension-repository_network_root_nwo | scijava/scripting-jruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width