-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to see the highlight in the editor section for the Java debugging #14576
Comments
Chrome |
@rbcminghou
Preferences -> Debug -> trace (set to |
@tolusha, sorry I do not have the github link for my app. Just copied and pasted all logs from "Debug Adapters": 77b33414 theia -> adapter: {"seq":1,"type":"request","command":"initialize","arguments":{"clientID":"Theia","clientName":"Theia IDE","adapterID":"java","locale":"en-US","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path","supportsVariableType":false,"supportsVariablePaging":false,"supportsRunInTerminalRequest":true}} |
update for my app github link: https://github.com/rbcminghou/java-maven-helloworld |
@rbcminghou |
The debug command: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -cp ./target/*.jar com.rbccm.app.Helloworld The debug configuration (launch.json): { |
The above, formatted for readability: The debug command:
The debug configuration (launch.json): {
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach)",
"request": "attach",
"hostName": "localhost",
"port": 8000
}
]
} To add to the discussion, I've encountered this once before but did not have a chance to debug the issue (was during a demo). In my case, the environment was minishift + Che 7.1.0. |
Thanks for the comments and my environment is OCP 3.11 + che 7.1.0. |
I've restarted a minishift a few times since this originally occurred for me, but I currently can't reproduce it. |
I can't reproduce it either. ( |
Do I need to need the addition plugins or special configuration? Since my environment and setup are default but behind the firewall (all docker images have to be pulled and pushed into my private registry prior to exdecute chectl server:start). |
AFAIK debugging in Theia should work (and does work in your case, it just doesn't show the line highlight). I'm at a loss as to what the issue is, though, until I can reproduce it again. |
Setting label From what I can tell, the line highlight should come from a |
I just tried the debugging on my Windows chrome and the same result on my MacOS chrome with missing highlight. |
@rbcminghou maybe sharing your devfile might help. |
`apiVersion: 1.0.0
` |
I don't think it's a devfile-specific issue, since I had it occur once when running a known-working devfile. |
updated to 7.2.0 and the issue is still there... |
I have been unable to reproduce on any of my deployments since the one time it happened for me. I'm at a loss on this issue. |
@rbcminghou that would indicate that the project is not recognized as a java project by the java language server. Does refreshing the browser help? Otherwise, try the "clean the java language server workspace" command. |
No help after refreshing my chrome browser. The "clean the java language server workspace" command works once to get "Run|Debug". Delete the workspace and get the project back from github, then try the "clean the java language server workspace" command, "Run|Debug" does not shown again. Update:
|
Yes, jdt.ls does not pick up new projects after it has been initialized: eclipse-jdtls/eclipse.jdt.ls#901 |
yes, the refresh browser works now after copying settings.xml (contain the proxy settings) to /home/user/.m2 |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Running che 7.1.0 with che-java11-maven, set few breakpoints and start debugging. Unable to see the highlight on the line where the breakpoint is set (shown in the attached image). Any suggestion?
The text was updated successfully, but these errors were encountered: