-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error when searching tests #1582
Comments
I think we also ran into this issue at eclipse-jdtls/eclipse.jdt.ls#2821 (comment) . We were intending to allow delegate commands to report progress, but then found a particular delegate command declared by |
Hi @rgrunber Does that mean that if there is any unhandled exception thrown from delegate command, the progress will hang forever? Will it work if we kill the progress in https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/847f305bff93d621498c496aa3de8b3a75d8a186/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/WorkspaceExecuteCommandHandler.java#L235? |
If a delegate command (eg. contributed from an external bundle) allocates some sub-monitor with a certain amount of work, and fails to fill the monitor (or call That's partly why we're not merging that PR yet. It might be something to discuss further given this could introduce a lot of "progress bar spins forever" issues for delegates if they end up misbehaving. However, if you look around JDT-LS, or even the Eclipse ecosystem, you'll see it's a common practice to do : } finally {
monitor.done()
}
Update: It doesn't work but I think this is for a few reasons. The I think the stack trace is independent of the unfinished task. It might be an upstream (jdt.core) issue in how the API is used. I'm observing that the index search progress hangs at 75% and then the error is thrown. |
Let me know if I can do something on my side. :) |
sample project: https://github.com/junit-team/junit5
try to expand the test node
junit-jupiter-engine
:The text was updated successfully, but these errors were encountered: