Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leihuazhe/scala_scala3_samples
scala_samples
https://github.com/leihuazhe/scala_scala3_samples
Last synced: 17 days ago
JSON representation
scala_samples
- Host: GitHub
- URL: https://github.com/leihuazhe/scala_scala3_samples
- Owner: leihuazhe
- Created: 2019-01-21T11:19:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-25T15:11:04.000Z (about 2 years ago)
- Last Synced: 2024-10-03T10:47:09.179Z (about 1 month ago)
- Language: Scala
- Size: 1.24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scala3 学习专栏
- https://www.zhihu.com/people/maple-3-71/posts
- https://www.jianshu.com/u/dafae09a632e//scala3格式化 配置方式: https://scalameta.org/scalafmt/docs/configuration.html
## metals
metals completions not work in scala3,why?
- https://www.reddit.com/r/scala/comments/s9t702/metals_code_completion_not_working_as_of_jan_2022/#### 本地调试:
sbt -jvm-debug 5005 run
#### Marco 调试
sbt -J-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005#### 指定不同的配置文件:
sbt -Dconfig.resource=application-private.conf -jvm-debug 5005 run
### 使用 build.sbt 来定义依赖关系
```scala
name := "scala-sum"version := "0.1"
scalaVersion := "2.12.4"
libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.38"
// https://mvnrepository.com/artifact/com.alibaba/fastjson
libraryDependencies += "com.alibaba" % "fastjson" % "1.2.7"libraryDependencies += "com.github.wangzaixiang" %% "scala-sql" % "2.0.6"
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.9",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,"com.h2database" % "h2" % "1.4.184" % "test",
"junit" % "junit" % "4.12" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.3" % "test",
"mysql" % "mysql-connector-java" % "5.1.38" % "test"
)
```### Marco
- https://github.com/lampepfl/scala3-macro-tutorial
### Scala3 good Question
- https://stackoverflow.com/questions/68194436/parsing-scala-3-code-from-a-string-into-scala-3-ast-at-runtime