-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
build(deps): update jfx.version to v25 (major) #6158
Conversation
0842e38
to
14430f3
Compare
@monperrus Looks like the I tried to repro this issue locally, and if I use JDK 17, then I get a similar issue for both the original v24 Failure with JDK 17$ java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< fr.inria.gforge.spoon:visualisation >-----------------
[INFO] Building visualisation 1.1
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.4.0:clean (default-clean) @ visualisation ---
[INFO] Deleting .../spoon-visualisation/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.317 s
[INFO] Finished at: 2025-02-17T17:43:57+01:00
[INFO] ------------------------------------------------------------------------
[INFO] 1 goals, 1 executed
$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< fr.inria.gforge.spoon:visualisation >-----------------
[INFO] Building visualisation 1.1
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ visualisation ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ visualisation ---
[WARNING] Can't extract module name from javafx-graphics-25-ea+2-mac-aarch64.jar: Unsupported major.minor version 66.0
[WARNING] Can't extract module name from javafx-base-25-ea+2-mac-aarch64.jar: Unsupported major.minor version 66.0
[WARNING] Can't extract module name from javafx-controls-25-ea+2-mac-aarch64.jar: Unsupported major.minor version 66.0
[WARNING] Can't extract module name from javafx-fxml-25-ea+2-mac-aarch64.jar: Unsupported major.minor version 66.0
[WARNING] *********************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [spoon-core-11.2.0.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] *********************************************************************************************************************************************
[INFO] Compiling 16 source files with javac [debug release 17 module-path] to target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] .../spoon-visualisation/src/main/java/module-info.java:[26,24] module not found: javafx.fxml
[ERROR] .../spoon-visualisation/src/main/java/module-info.java:[27,24] module not found: javafx.controls
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.923 s
[INFO] Finished at: 2025-02-17T17:44:02+01:00
[INFO] ------------------------------------------------------------------------
...
$ Success with JDK 22$ java -version
java version "22.0.2" 2024-07-16
Java(TM) SE Runtime Environment (build 22.0.2+9-70)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< fr.inria.gforge.spoon:visualisation >-----------------
[INFO] Building visualisation 1.1
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.4.0:clean (default-clean) @ visualisation ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.274 s
[INFO] Finished at: 2025-02-17T17:49:44+01:00
[INFO] ------------------------------------------------------------------------
[INFO] 1 goals, 1 executed
$ git diff
diff --git a/spoon-visualisation/pom.xml b/spoon-visualisation/pom.xml
index 1668da1d4..33d49e9a0 100644
--- a/spoon-visualisation/pom.xml
+++ b/spoon-visualisation/pom.xml
@@ -23,7 +23,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <jfx.version>24-ea+5</jfx.version>
+ <jfx.version>25-ea+2</jfx.version>
</properties>
<build>
$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< fr.inria.gforge.spoon:visualisation >-----------------
[INFO] Building visualisation 1.1
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ visualisation ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ visualisation ---
[WARNING] *********************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [spoon-core-11.2.0.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] *********************************************************************************************************************************************
[INFO] Compiling 16 source files with javac [debug release 17 module-path] to target/classes
[INFO] JDK-8318913 workaround: patched module-info.class requires version from [17] to [17] on 2 JDK modules [java.base, java.desktop]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.446 s
[INFO] Finished at: 2025-02-17T17:49:53+01:00
[INFO] ------------------------------------------------------------------------
[INFO] 2 goals, 2 executed
$ I tried looking at a couple other PRs (Update to v24 and Update to v23 for example), but unfortunately they were old enough that their build logs have expired so I'm not sure if this step was something new that was added to the It was the Is there a way to double check what JDK version we're using when compiling this in the I think the |
just clicked on re-run jobs, the logs should reappear.
|
@monperrus Apologies if I miscommunicated, but I was referring to missing logs of the jobs related to the PR for v24 and the v23 updates that seem to have been successfully merged, which I believe are still absent 😅 But something seems to have gone quite wrong with these new batch of runs that were triggered, looks like it's a While I was perusing the It also seems that the I am not aware if there are well-treaded paths that are taken to solve issues like this, but as a "hacky" test, we can open a dummy PR where we downgrade to v23 (the version in this PR). Based on my local testing, using JDK 17 gives me the same |
Extra checks run in the Line 191 in 37ac91b
|
And yes, the error is that the new javafx version seems to be compiled with java 22 now. I guess we would need to bump the extraChecks java runtime to 22? Do we want to do that? ETA: Can you explain what you mean by
|
yes. |
@I-Al-Istannen I was referring to the log for the latest run of It seems like There are a few green runs under ![]() |
Created a PR for the bump to EDIT: But unfortunately looks like ![]() Anecdotally IIRC, I wasn't able to install Q1: Do we want to try a bump to JDK v23 for the extraChecks runtime then? Looks like it is supported based on the nix file. Q2: It seems the Spoon README.md says it only supports versions up to JDK v20. Is that outdated documentation or is that only talking about the |
Nope. The flake check action checks that the version of nixpkgs we use isn't too far behind the upstream. You need to update your
Yes, I would say so.
I think that refers to the java code it can analyze (and is probably outdated) |
Hmm I see. I think the last FWIW #6186 did not face these issues, so I feel updating this branch/PR with |
14430f3
to
36951f2
Compare
The renovate dashboard shows an error related to nixpkgs, but I am not sure how to clear it :P It merged the next lockfile maintenance PR, so the error can probably be ignored now...
Renovate should do this automatically, but I triggered a manual rebase :) We will need to do that again after merging the jdk bump though. |
36951f2
to
a38ad34
Compare
rebased. now this is green. let's proceed with merge? |
This PR contains the following updates:
24-ea+5
->25-ea+2
24-ea+5
->25-ea+2
24-ea+5
->25-ea+2
24-ea+5
->25-ea+2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.