【问题标题】:Error: type inference was unable to figure out the type. Getting error on upgrading scala version错误:类型推断无法确定类型。升级scala版本时出错
【发布时间】:2019-11-11 15:11:06
【问题描述】:
logger.info("Error Response:[" + extraInfo.session("username").asOption[String]
                + "], Code:[" + statusCode + "], Response Body:[" + extraInfo.response.body.string
                + "], Token:[" + extraInfo.session("cspAuthToken").asOption[String]
                + "], Org id:[" + extraInfo.session("defaultOrgId").asOption[String]
                + "], Started At: [" + startedAt + "], Current time:[" + System.nanoTime()
                + "], Total Seconds:[" + totalSecondsPassed + "]")

这是在 scala 版本 2.12.3 和更高版本中编写的代码,将 scala 版本升级到版本到 2.13.1 我收到此错误:

Sorry, type inference was unable to figure out the type. You need to provide it explicitly.
              logger.info("Error Response:[" + extraInfo.session("username").asOption[String]

【问题讨论】:

  • 你用的是什么版本的加特林?
  • 我使用的是 gatling 版本 2.3.0

标签: scala gatling scala-gatling


【解决方案1】:

gatling 不支持 scala 2.13(请参阅 https://gatling.io/docs/current/installation) (从 Gatling 3.3 开始)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    • 2011-10-16
    • 2015-04-30
    • 2020-12-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多