gpt4 book ai didi

Scala(SBT)编译错误: separate output paths (production,测试)

转载 作者:行者123 更新时间:2023-12-02 05:02:12 24 4
gpt4 key购买 nike

我在 IntelliJ 和 Eclipse Scala 上遇到相同的编译错误:

"Error:scalac: Output path C:\workspaces\ScalaProgFun\forcomp\bin is shared between: Module 'progfun-forcomp' production, Module 'progfun-forcomp' tests Please configure separate output paths to proceed with the compilation. TIP: you can use Project Artifacts to combine compiled classes if needed."

有人可以帮我解决这个问题吗?我不知道 SBT 是如何运作的!

这个错误发生在这个项目上: http://spark-public.s3.amazonaws.com/progfun/assignments/forcomp.zip

最佳答案

在 IntelliJIDEA 中,您可以尝试使用文件 -> 项目结构 -> 模块 -> 您的项目 -> 路径为测试和输出指定不同的路径(如果您有多个模块 - 您可以尝试为每个模块指定唯一的路径)

关于Scala(SBT)编译错误: separate output paths (production,测试),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24118083/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com