-
Notifications
You must be signed in to change notification settings - Fork 34
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
Scala version on independent worksheet files #78
Comments
It's defined in your |
I do not have build.sbt I'm running these as stand alone scripts. Previously everything worked pretty much perfectly in emacs. I haven't used vscode for a long time. There has been some ammonite support officially in metals for a couple of years though. https://scalameta.org/metals/blog/2020/07/01/lithium/ . |
In vscode it seems to default to correct version of the compiler for some reason. I didn't manage to change the version yet though. metals seems to say something like this to me: |
You can specify the Ammonite version as a comment like FYI you can also check more easily which scala versions are being used for partcular scripts using |
Thanks a lot! This seems to have fixed everything. Somehow I did not find that line of documentation. |
Cool glad I could help 🙂 |
What is the preferred way of changing scala version for independent .worksheet.sc files? I updated everything lsp related and now I seem to be stuck on scala version 3 while I need scala 2.13. Ammonite does not seem to have a way to define this inside a file and my ammonite is on the correct scala version. I wasn't quite sure what is the system responsible of the version so sorry if this is the wrong place to ask.
The text was updated successfully, but these errors were encountered: