Skip to content

Always print Java tracebacks when errors happen in R5 #515

@mattwigway

Description

@mattwigway

When an error happens in R5, we often get a pretty useless error message. e.g. the error that led to discovering #514 was

Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :  java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException

The first step to debugging this was to get a full Java traceback so I could see where the error was actually coming from in R5. I ended up hacking r5r using the changes in e9b7026 to get it to print a traceback. I'm not sure if this is the best way to do it, as the .jcall syntax needed to make .jgetEx work is much clunkier than the syntax we've been using, but I do think we should expose these errors whenever they happen to ease debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions