Comments (4)
is there any way to find out what scala version is running the app?
if your application includes the scala3-compiler_3.0.0-RC1
library in the classpath then you can use dotty.tools.dotc.config.Properties.versionString
to get the Scala 3 version, or dotty.tools.dotc.config.Properties.versionMsg
to include copyright message and optional git hash if it is a nightly. This is the property that is accessed when using -version
flag with the compiler
from scala3-example-project.
Yes, this is because Scala 3.0.0-RC1 reuses the standard library from 2.13.4, where scala.util.Properties
is defined. The version string is stored in a file shipped in the org.scala-lang:scala-library:2.13.4
JAR.
from scala3-example-project.
Thanks @bishabosha ;
will final Scala 3 uses its own standard library? Other question - is there any way to find out what scala version is running the app?
from scala3-example-project.
indeed, this is working - thank you @bishabosha !! I'm closing the issue
from scala3-example-project.
Related Issues (17)
- `sbt compile` fails with global ammonite dependency HOT 1
- Update gitter link in README
- Travis CI Fails HOT 1
- Travis fails: it takes an incorrect nightly build version
- How to use sbt plugin published in Scala 2 ? HOT 1
- doc link auto-parameter-tupling.html doesn't work HOT 3
- Error downloading ch.epfl.lamp:sbt-dotty;sbtVersion=1.0;scalaVersion=3.0.0-M2:0.4.6 HOT 3
- upgrade to M3 and adjust code
- Add CLA HOT 1
- Move tests to GitHub Actions HOT 1
- Move `mill` branch to `dotty-staging/scala3-example-project` HOT 6
- Move `scala3doc` branch to `dotty-staging/scala3-example-project` HOT 1
- Update Dotty to Scala 3 in README HOT 2
- Example usage @threadUnsafe annotation HOT 2
- Type lambdas example not clear
- SBT fails to resolve dependency: wartremover HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala3-example-project.