I figured this out. In Eclipse when I get the same error, I noticed some weird error in the debugger window about the code being compiled with the wrong version of Java. Specifically
system/UserActionsRegistrar has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 55.0
I went into the Project menu – > Properties → Java… enabled project specific settings… and there’s a “complience level” setting. For me, it was set to 16. I changed it to 11, and debugging now worked.