Skip to content

Allow JVM version selection (at least LTS versions) #1291

Description

@Ichoran

There are enough differences in features between 17 and 21 (virtual threads) and 21 and 25 (synchronized blocks not a footgun for virtual threads, better views of memory as data via FFM) that it makes sense for Scala libraries to pin a more recent JVM version than scastie offers. Even if this isn't auto-detected from imports, it should be available as a dropdown.

This would also probably fix #476 adequately.

Possible workaround: I have not checked whether the scala-cli header directive for JVM version works on scastie. However, even if it does, that would require one to use the more-fiddly scala-cli interface. scastie shines the most when it directly runs your code without clutter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions