首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gatling编译失败

Gatling编译失败
EN

Stack Overflow用户
提问于 2018-05-04 09:46:37
回答 2查看 998关注 0票数 1

我正在尝试构建https://github.com/gatling/gatling,但是编译失败了。我所采取的步骤:

  1. 使用文档安装sbt。
  2. 克隆github项目
  3. 在目录sbt compile中执行gatling

我得到以下错误:

代码语言:javascript
复制
[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不太了解,无法调试它,如何解决这个问题?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-05-04 11:38:29

我已经执行了sudo (sudo sbt compile),现在编译是成功的。

票数 -3
EN

Stack Overflow用户

发布于 2021-05-14 15:48:52

尝试使用scala插件IntelliJ Idea只需使用IntelliJ Idea打开项目文件夹

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50172004

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档