Skip to content
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

Use the cfg.jdk for scala-cli #86

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Use the cfg.jdk for scala-cli #86

wants to merge 1 commit into from

Conversation

rossabaker
Copy link
Member

See #84.

@rossabaker
Copy link
Member Author

This works great on the application shell:

> nix develop .#application
🔨 Welcome to typelevel-app-shell

[general commands]

  menu      - prints this menu
  metals    - Work-in-progress language server for Scala
  sbt       - A build tool for Scala, Java and more
  scala-cli - Command-line tool to interact with the Scala language

[versions]

  Java - 17.0.3

[typelevel-app-shell]$ scala-cli 
Welcome to Scala 3.2.1 (17.0.3, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :

But not on the library shell:

$ nix develop .#library
error: scala-cli requires Java 17 or newer, but zulu8.54.0.21-ca-jdk-8.0.292 is 8.0.292

It's nice if they line up in the application shell, but they can't in the library shell.

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.

1 participant