Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
evaluate: Error result is truncated #343
Comments
|
Can you share the evaluation snippet and it's context? Try to understand how to improve the error message. |
|
To reproduce it, I can put a breakpoint on this line, run the program in the debugger, and attempt to evaluate something like this: spark.sql("select * from nonexistent_table");And the response from the debug adapter looks like this: {
"seq": 53,
"request_seq": 8,
"message": "Cannot evaluate because of org.eclipse.debug.core.DebugException: com.sun.jdi.InvocationException: Exception occurred in target VM occurred invoking method..",
"type": "response",
"success": false,
"body": {
"error": {
"id": 1010,
"format": "Cannot evaluate because of org.eclipse.debug.core.DebugException: com.sun.jdi.InvocationException: Exception occurred in target VM occurred invoking method.."
}
},
"command": "evaluate"
}If I encounter this error outside of the debug adapter, such as during normal execution, I get this error which is more in line with what I would expect to see:
|


When an
evaluaterequest fails due to an error in the code being evaluated, the language server reports an unhelpful truncated message:{ "id": 1010, "format": "Cannot evaluate because of org.eclipse.debug.core.DebugException: com.sun.jdi.InvocationException occurred invoking method.." }Sometimes this is long enough to be useful, but for errors with longer stack traces, it's often not clear what the error actually was. Is there any way to always get the full error message?