Skip to content

Error fetching Ammonite #281

Answered by ckipp01
danbills asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @danbills! So ammonite is a finicky beast in Metals. So what's happening is that when you open an Ammonite script it will default to trying to fetch the latest for your scala version and ammonite version that is the default. Since the default version of Ammonite that we support wasn't (at the time) published for Scala 2.13.7, you end up getting issues like this since it doesn't actually exist. There are a couple ways around this. Under the hood we use https://github.com/alexarchambault/ammonite-runner which allows you to do an extra couple things with comments. For example you put a comment at the top of your file like this:

// scala 2.13.6

and that will force that version, which sho…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danbills
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants