Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

visual studio code - How can I fix build failed, do you want to continue? in vscode

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

enter image description here

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...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...