加特林编译失败
Gatling compilation failed
我正在尝试构建 https://github.com/gatling/gatling 但编译失败。我进行的步骤:
- 使用 documentation.
安装了 sbt
- 克隆 github project.
- 在目录
gatling
中执行sbt compile
。
我收到以下错误:
[error] /home/groot/gatling/gatling-commons/src/main/scala/io/gatling
/commons/util/Arrays.scala:36:32: macro implementation not found: cfor
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)
[error] cfor(length)(_ > 1, _ - 1) { i =>
[error] ^
[error] /home/groot/gatling/gatling-commons/src/main/scala/io/gatling/commons/util/StringHelper.scala:40:23: macro implementation not found: fast
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)
[error] val EmptyFastring = fast""
[error] ^
[error] /home/groot/gatling/gatling-commons/src/main/scala/io/gatling/commons/validation/package.scala:38:20: macro implementation not found: info
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)
[error] logger.info(message, e)
[error] ^
[error] three errors found
[error] (gatling-commons / Compile / compileIncremental) Compilation failed
[error] Total time: 10 s, completed May 4, 2018, 11:30:14 AM
我对 scala 的了解还不够,无法调试,我该如何解决?
我已经执行为sudo
(sudo sbt compile
),现在编译成功了
使用 scala 插件试用 IntelliJ Idea
只需使用 IntelliJ Idea 打开项目文件夹
我正在尝试构建 https://github.com/gatling/gatling 但编译失败。我进行的步骤:
- 使用 documentation. 安装了 sbt
- 克隆 github project.
- 在目录
gatling
中执行sbt compile
。
我收到以下错误:
[error] /home/groot/gatling/gatling-commons/src/main/scala/io/gatling
/commons/util/Arrays.scala:36:32: macro implementation not found: cfor
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)
[error] cfor(length)(_ > 1, _ - 1) { i =>
[error] ^
[error] /home/groot/gatling/gatling-commons/src/main/scala/io/gatling/commons/util/StringHelper.scala:40:23: macro implementation not found: fast
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)
[error] val EmptyFastring = fast""
[error] ^
[error] /home/groot/gatling/gatling-commons/src/main/scala/io/gatling/commons/validation/package.scala:38:20: macro implementation not found: info
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)
[error] logger.info(message, e)
[error] ^
[error] three errors found
[error] (gatling-commons / Compile / compileIncremental) Compilation failed
[error] Total time: 10 s, completed May 4, 2018, 11:30:14 AM
我对 scala 的了解还不够,无法调试,我该如何解决?
我已经执行为sudo
(sudo sbt compile
),现在编译成功了
使用 scala 插件试用 IntelliJ Idea 只需使用 IntelliJ Idea 打开项目文件夹