Skip to content

[1.x] Bump jline3 to 3.27.0 #7695

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

Merged
merged 3 commits into from
Oct 11, 2024
Merged

[1.x] Bump jline3 to 3.27.0 #7695

merged 3 commits into from
Oct 11, 2024

Conversation

Friendseeker
Copy link
Member

@Friendseeker Friendseeker commented Sep 24, 2024

Bump native image options

Try use Github Action to setup GraalVM

Update native image version

Update java version to be in sync with Native Image Plugin

Try anything

Create the dir to place native image

Try again

Remove Graal setup

Believe in couriser?
@Friendseeker Friendseeker marked this pull request as draft September 24, 2024 06:30
nativeImageVersion := "23.0",
nativeImageJvm := "graalvm-java23",
nativeImageOutput := {
val outputDir = (target.value / "bin").toPath
Copy link
Member Author

@Friendseeker Friendseeker Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without explicitly creating the dir there, the following Error is thrown

Error: Writing image to non-existent directory /Users/runner/work/sbt/sbt/client/target/bin is not allowed. Create the missing directory if you want the image to be written to that location.

Example: https://github.com/Friendseeker/sbt/actions/runs/11008291362/job/30565658216

@Friendseeker Friendseeker changed the title Bump jline3 to 3.27.0 [1.10.x] Bump jline3 to 3.27.0 Sep 24, 2024
@Friendseeker Friendseeker marked this pull request as ready for review September 24, 2024 06:36
@Friendseeker
Copy link
Member Author

Friendseeker commented Sep 24, 2024

@SethTisue I got the native image jobs to work and made this PR based on top of your work (#7500). Would you like to quickly take a look at this PR and see if things look alright?

The issue is that I know nothing about jline or sbt terminal implementation, so need someone with domain expertise like you to proceed with the PR.

@Friendseeker Friendseeker changed the title [1.10.x] Bump jline3 to 3.27.0 [1.x] Bump jline3 to 3.27.0 Sep 24, 2024
@SethTisue
Copy link
Member

I can have a look next week.

@SethTisue
Copy link
Member

SethTisue commented Oct 11, 2024

LGTM, not that I brought any particular expertise to bear on it 😁

I guess what happened here is that JDK 23 went GA since I tried this, and so the trouble I hit simply doesn't exist anymore.

@eed3si9n wdyt?

I've submitted scala/scala#10882 to scala/scala, and I'll do Scala 3 soon (UPDATE: here 'tis: scala/scala3#21752)

@SethTisue SethTisue requested a review from eed3si9n October 11, 2024 00:20
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea. It would be good to fix that weird warning on JDK 11.

@eed3si9n eed3si9n added this to the 1.10.3 milestone Oct 11, 2024
@eed3si9n eed3si9n merged commit 72cd3e0 into sbt:1.10.x Oct 11, 2024
10 checks passed
@Friendseeker Friendseeker deleted the bump-jline3 branch October 11, 2024 06:20
SethTisue added a commit to scala/scala3 that referenced this pull request Oct 14, 2024
the same upgrade is in flight in these other repos:

* scala/scala#10882
* sbt/sbt#7695
 
JLine release notes:

* https://github.com/jline/jline3/releases/tag/jline-3.27.0
*
https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-5150

a lot of bugfixes, nothing really stands out that I can see

we usually take these upgrades in the hopes they will improve things in
small ways, especially for Windows users

I verified that the `repl` command inside our sbt build still works (on
MacOS anyway)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

illegal reflective access operation using sbt 1.9.9 with Java 11 (but not 8 or 17 or 21)
3 participants