dape icon indicating copy to clipboard operation
dape copied to clipboard

how to use dape with junit in java-debug

Open Peter-Chou opened this issue 1 year ago • 0 comments

Sorry for asking this question here. Since I can't the solution anywhere. I made the dape works when java class has the static main method . but it breaks when i called dape and use jdtls in a test class. and i got this error message:

jsonrpc-request: jsonrpc-error: "request id=116 failed:", (jsonrpc-error-code . -32001), (jsonrpc-error-message . "Cannot invoke \"org.eclipse.jdt.core.search.SearchPattern.findIndexMatches(org.eclipse.jdt.internal.core.index.Index, org.eclipse.jdt.internal.core.search.IndexQueryRequestor, org.eclipse.jdt.core.search.SearchParticipant, org.eclipse.jdt.core.search.IJavaSearchScope, org.eclipse.core.runtime.IProgressMonitor)\" because \"pattern\" is null"), (jsonrpc-error-data :message "Cannot invoke \"org.eclipse.jdt.core.search.SearchPattern.findIndexMatches(org.eclipse.jdt.internal.core.index.Index, org.eclipse.jdt.internal.core.search.IndexQueryRequestor, org.eclipse.jdt.core.search.SearchParticipant, org.eclipse.jdt.core.search.IJavaSearchScope, org.eclipse.core.runtime.IProgressMonitor)\" because \"pattern\" is null") 

image

Peter-Chou avatar May 14 '24 05:05 Peter-Chou