如何修复构建失败,是否要继续?在 vscode 中 [英] How can I fix build failed, do you want to continue? in vscode

查看:104
本文介绍了如何修复构建失败,是否要继续?在 vscode 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Visual Studio 代码中调试 Java 代码时出错.错误如下

构建失败,要继续吗?

我尝试清除工作区,但没有用.请问,我该如何解决这个问题?

解决方案

更新.问题已解决 我通过清除 VS 代码中的工作区缓存解决了这个问题.这是相关页面的链接:

显然,Debugger for Java"扩展认为存在构建问题.但是在问题、输出、调试控制台或终端标签中没有报告错误.

项目在 Maven 中构建和打包都很好,并且可以在附加模式下调试,这充其量是乏味的.

VSCode 中发生的某些事情在我能找到的任何地方都没有报告.我怀疑适用于 Java 的 RedHat VSCode 插件在混合中,但需要帮助弄清楚如何解决这个问题.

我不得不说,我们在解决工具和依赖项方面的问题上花费了太多时间,而在应用上却没有足够的时间.我们正在开展的项目旨在用于开源分发.Spring 框架对于我们的目的来说似乎是理想的,但工具,不是那么多.我们还没有深入到这个项目,我已经承受了切换到 .NET 核心 MVC 的压力.

真的需要一点帮助...

I got an error when trying to debug java code in visual studio code. The error is below

build failed, do you want to continue?

I have tried clearing the workspace, but it doesn't work. Please, how can I fix this issue?

解决方案

Update. Problem solved I resolved this issue by clearing the workspace cache in VS code. Here is a link to the relvant page: VSCODE Clean Workspace Directory . I had renamed a number of folders, class names and packages. Apparently the RedHat-Developer plugin managed to get out of sync. The .classpath file was out of sync with the POM file. Wiping out the workspace cache caused the plugin to recreate project data from the maven spec. Problem solved. Not sure but if anyone from the RedHat project reads this, it looks to me like a bug, or deficiency. In any event it can be worked around.

Original answer follows:

I think Liu Bei was not clear enough. I am experiencing the same issue. I have a project that builds perfectly in Maven and when I launch the debugger in Visual Studio Code this notification appears in the lower right-hand corner of the VSCode window.

Obviously the "Debugger for Java" extension thinks there is a build problem. However there are no errors reported in the PROBLEMS, OUTPUT, DEBUG CONSOLE or TERMINAL tabs.

The project builds, and packages in Maven just fine and it can be debugged in attach mode which is tedious at best.

There is something going on in VSCode that's not being reported anywhere that I can find. I suspect the RedHat VSCode plugin for Java is in the mix but need help figuring out how to work around the issue.

I have to say that we are spending way too much time resolving issues with tools and dependencies and not enough time on the app. The project we are working on is intended for open source distribution. The Spring Framework seems ideal for our purposes but the tooling, not so much. We are not very far into the project and I am already receiving pressure to switch to .NET core MVC.

Really need a little help...

这篇关于如何修复构建失败,是否要继续?在 vscode 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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