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

Can't use brand-new Scala release #1090

Closed
SethTisue opened this issue Jun 8, 2022 · 3 comments
Closed

Can't use brand-new Scala release #1090

SethTisue opened this issue Jun 8, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@SethTisue
Copy link
Contributor

SethTisue commented Jun 8, 2022

% scala-cli about
Scala CLI version 0.1.7
% scala-cli repl -S 2.12.16
[error]  Cannot find matching Scala version for '2.12.16'
You can only choose one of the 3.x, 2.13.x, and 2.12.x. versions.
The latest supported stable versions are 3.1.2, 2.13.8, 2.12.15.
In addition, you can request compilation with the last nightly versions of Scala,
by passing the 2.nightly, 2.12.nightly, 2.13.nightly, or 3.nightly arguments.
Specific Scala 2 or Scala 3 nightly versions are also accepted.

this is even though 2.12.16 is available on Maven Central

I guess that scala-cli has some kind of cache of what Scala versions exist? if so, how do I force that cache to be rebuilt?

and, maybe a cache miss should always force the cache to rebuild?

@alexarchambault
Copy link
Contributor

It might originate from stale file listings in cache. Can you try with --ttl 0s?

scala-cli repl -S 2.12.16 or things like echo 'println("Hello")' | scala-cli -S 2.12.16 - work for me locally.

@SethTisue
Copy link
Contributor Author

SethTisue commented Jun 8, 2022

--ttl 0s does the trick, yeah, thanks. but I still wonder:

maybe a cache miss should always force a retry

@lwronski lwronski self-assigned this Jun 10, 2022
@lwronski lwronski added the bug Something isn't working label Jun 10, 2022
@lwronski
Copy link
Contributor

Thanks for reporting, it should be fixed by #1096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants