IntelliJ Idea,运行代码,而不考虑未实现的项目文件中的错误 [英] IntelliJ Idea, run code regardless of errors in unrealted project files

查看:1310
本文介绍了IntelliJ Idea,运行代码,而不考虑未实现的项目文件中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错过了Eclipse的一个事情是,我不能运行代码测试各种东西(如果短的main())如果我的项目中一些完全不相关的文件包含错误。我已经阅读常见问题,我可以使用Eclipse编译器与-proceedOnErrors参数,但它仍然不工作。暂时固定未完成的代码来编译并不是我想要的。

One thing that I miss from Eclipse is that I can't run code for testing various things (think short main()) if some totally unrelated files in my project contain errors. I've read in FAQ that I can use Eclipse compiler with -proceedOnErrors argument but it still doesn't work. Temporarily fixing unfinished code to compile is not really what I want.

我应该注意,我使用Scala插件,但仍然大多数我的代码是Java文件。

I should note that I use Scala plugin too but still majority of my code are Java files.

谢谢。

推荐答案

修改配置以使用 Make,没有错误检查选项,而不是 Make

Modify your configuration to use Make, no error check option instead of Make.

有关详情,请查看此答案

请注意,这可能不足以在您的用例。最后一种办法是使用 Vics答案提供的解决方案。

Note that this may not be enough in your use case. Last resort is to use the solution provided by Vics answer.

这篇关于IntelliJ Idea,运行代码,而不考虑未实现的项目文件中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆