You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Junit project: Cannot determine executable for debug adapter '{0}' #167
The java debugger just shows Build failed, please fix build error first., but doesn't show the problems on VSCode PROBLEMS view.
Xuan Zhou (@ansyral) Refer to the eclipse behavior, if there are problems in workspace, should pop up a message box to allow user to Proceed or Cancel the debugging operation instead of Just failed. Besides, should show the error information in VSCode PROBLEMS view.
Jinbo Wang (@testforstephen) How do you enable the language server in debug mode ? I have the same error on my linux box. When i open up my project using eclipse i don't get any errors
java language server extension will detect if the extension is in development mode, if so, it will start with debug port localhost:1044 enabled.
so if i run java debugger in extension development mode, the language server will be in debug mode too.
You can download language server and java debug server source code from github, and attach to 1044 port to debug the extension code.
The second way is a little hack.
Find javaServerStarter.js under the directory C:\Users\jinbwan\.vscode\extensions\redhat.java-0.14.0\out\src\javaServerStarter.js, and modify const DEBUG = (typeof v8debug === 'object') || startedInDebugMode(); to const DEBUG = true;. Restart VSCode.
Well this is bizarre. I fired up the extension in development mode and got the same error i got above while trying to debug it. No other meaningful messages. I then closed the extension dev host and on a whim removed the eclipse generated folders in my workspace (I used eclipse for this project before trying vscode) and tried debugging the project again and it worked! no error messages. I thought that maybe the eclipse generated folders might be responsible in some way for the errors so to test the theory i put them back again, but still got no errors! So now i am not sure what fixed it.
Jinbo Wang (@testforstephen) In fact the workaround I reintroduced was already there in the previous version of the extension (0.3.0), and has been "removed" (i.e. uncommented) by Andy Xu(devdiv) (@andxu) for 0.3.1 when RedHat Java support extension was upgraded to 0.14, so I guess there was a good reason for this.
Activity
supersonicclay commentedon Nov 17, 2017
I have the same after updating to VSCode 1.18.1. I downgraded to VSCode 1.18.0, but am still experiencing the issue. My environment:
macOS Sierra: 10.12.6
VSCode: 1.18.1 and 1.18.0 (did not see the issue when on 1.18.0 prior to upgrade)
VSCode extensions:
redhat.java: 0.14.0vscjava.vscode-java-debug: 0.3.1java -version
supersonicclay commentedon Nov 17, 2017
No idea why, but this fixed it for me.
rm -rf ~/Library/Application\ Support/Code/User/workspaceStorage/This is working with VS Code 1.18.1.
testforstephen commentedon Nov 20, 2017
Reproduced this bug on my windows 10 machine.
I enabled the language server in debug mode, and found
Build workspace commandwould get problem marker as follows:The java debugger just shows
Build failed, please fix build error first., but doesn't show the problems on VSCodePROBLEMSview.Xuan Zhou (@ansyral) Refer to the eclipse behavior, if there are problems in workspace, should pop up a message box to allow user to
ProceedorCancelthe debugging operation instead ofJust failed. Besides, should show the error information in VSCodePROBLEMSview.GrubbyHalo commentedon Nov 20, 2017
Jinbo Wang (@testforstephen) How do you enable the language server in debug mode ? I have the same error on my linux box. When i open up my project using eclipse i don't get any errors
testforstephen commentedon Nov 20, 2017
Garfield Watkins (@GrubbyHalo) There are two ways to launch language server in debug mode.
development mode, if so, it will start with debug portlocalhost:1044enabled.so if i run java debugger in

extension developmentmode, the language server will be in debug mode too.You can download language server and java debug server source code from github, and attach to 1044 port to debug the extension code.
Find javaServerStarter.js under the directory
C:\Users\jinbwan\.vscode\extensions\redhat.java-0.14.0\out\src\javaServerStarter.js, and modifyconst DEBUG = (typeof v8debug === 'object') || startedInDebugMode();toconst DEBUG = true;. Restart VSCode.GrubbyHalo commentedon Nov 21, 2017
Well this is bizarre. I fired up the extension in development mode and got the same error i got above while trying to debug it. No other meaningful messages. I then closed the extension dev host and on a whim removed the eclipse generated folders in my workspace (I used eclipse for this project before trying vscode) and tried debugging the project again and it worked! no error messages. I thought that maybe the eclipse generated folders might be responsible in some way for the errors so to test the theory i put them back again, but still got no errors! So now i am not sure what fixed it.
testforstephen commentedon Nov 22, 2017
Garfield Watkins (@GrubbyHalo) Refer to #170, Jérôme Saliba (@wokhan) provides a workaround, that should work.
wokhan commentedon Nov 22, 2017
Jinbo Wang (@testforstephen) In fact the workaround I reintroduced was already there in the previous version of the extension (0.3.0), and has been "removed" (i.e. uncommented) by Andy Xu(devdiv) (@andxu) for 0.3.1 when RedHat Java support extension was upgraded to 0.14, so I guess there was a good reason for this.
yaohaizh commentedon Nov 29, 2017
Fixed on PR: #176
danvsantos commentedon Feb 6, 2018
On windows 10 I solved it like this:
My version is 1.19.3