英文:
Fail on compile errors instead of throwing "Unresolved compilation problem" at run time
问题
当编译含有错误的Java代码时,Visual Studio Code会生成抛出以下错误的字节码:
java.lang.Error: 未解析的编译问题
如何禁用此设置?我希望Visual Studio Code对于包含编译错误的类不生成任何字节码。
参考链接:Eclipse IDE具有相同的默认行为。
英文:
When compiling Java code with errors in it, Visual Studio Code generates byte code throwing:
java.lang.Error: Unresolved compilation problem
How can this setting be disabled? I would like Visual Studio Code not to generate any byte code for classes containing compilation errors.
For reference: Eclipse IDE has the same default behavior.
答案1
得分: 1
当您运行一个存在语法错误(一种编译错误)的项目时,它首先会显示为问题:
然后,您可以修复错误,或者点击“继续”来继续,编译错误将显示在终端中:
因此,它确实是由编译时间或运行时间分隔开的。
如果对您的问题有误解,请告诉我。
英文:
When you run a project with sytax error(one kind of compilation error), it will first show as problems:
Then you can fix the error, or choose to continue by clicking the Proceed
, the compilation error will be shown in the Terminal:
So it's indeed separated by compile time or run time.
If there's misunderstanding about your question, please let me know.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论