IntelliJ Idea,无论不相关的项目文件中的错误如何,都可以运行代码 [英] IntelliJ Idea, run code regardless of errors in unrelated project files
问题描述
我从Eclipse中遗漏的一件事是,如果项目中一些完全不相关的文件包含错误,我就无法运行代码来测试各种事物(想想简短的main())。我在FAQ中读到我可以使用带有-proceedOnErrors参数的Eclipse编译器,但它仍然不起作用。暂时修复未完成的代码进行编译并不是我想要的。
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.
推荐答案
修改配置以使用制作,无错误检查
选项而不是生成
。
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屋!