eclipse - 在 Scala IDE 中运行 Scala 应用程序并出现编译错误

标签 eclipse scala scala-ide

如果项目中存在(不相关!)编译错误,是否有办法在 Scala IDE 2.0.2 (Eclipse 3.7) 中运行 Scala 应用程序或单元测试?

在 Java 中,这没有问题,但 Scala IDE 一直告诉我:

Project contains compilation errors (therefore, no binaries have been produced).

我想做的就是在主要重构过程中运行一个小测试,但我现在无法修复所有编译错误。我不想开始注释掉这些内容,因为这些编译错误很好地提醒了仍然需要完成的任务。

最佳答案

目前 Scala IDE 不支持此行为,但如果可以的话那就太好了。

为了意识到这一点,我创建了一个 ticket :

JDT allows to execute Java code despite of compilation problems in the sources. Internally JDT replaces the defective code with an exception, which is thrown if the relevant code is executed. But if the defective code is never called during execution, nothing bad happens. It would be nice if SDT supports similar behavior.

关于eclipse - 在 Scala IDE 中运行 Scala 应用程序并出现编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13178776/

相关文章:

java - 解压缩/提取 Spring Tools Suite 下载的 Zip/Jar 文件时出错

eclipse - PDE Headless 构建的目标平台不起作用

scala - IntelliJ IDEA scala 类型信息

scala - Spark ML Pipeline 为随机森林分类 : Column label must be of type DoubleType but was actually IntegerType 抛出异常

java - 在Eclipse中设置安全策略文件

斯卡拉 Spark : How to create a RDD from a list of string and convert to DataFrame

java - 如何以正确的方式创建 Scala 项目?

java - Eclipse 说 Java 类无法解析导入的 scala 类型

eclipse - Control + 1 建议在 eclipse scala ide 中不起作用?

java - 我应该为 Eclipse 中的每个 Java 项目创建工作区吗