Trying to figure out why my test plugin doesn't execute any code. #1526
Unanswered
Gamebuster19901
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make my first ever eclipse plugin, so I apologize if I've missed something trivial.
I'm trying to make a simple test plugin that shows the sources of
.class
files to simply be some debug text for testing purposes. The goal is to eventually show a decompiled view of the class at runtime, but right now I'm just trying to get the basics of the plugin working. (The bytecode has to be ran through a decompiler at runtime, as the classes are transformed via mixins (ASM) at classload time. As Such, decompiling the jars themselves is not sufficient.)I've been taking a look at the Eclipse Corrosion plugin to see how to set the source programatically via a plugin.
My test plugin is located here:
https://github.com/WilderForge/mixinmash
My plugin.xml is defined as such:
And the
TestSourceLookupDirector
class:As you can see, I'm executing
throw new Error()
, but no error is ever thrown, and no log outputs occur. I've also defined a plugin class calledActivator
, and no code is ever executed in it either. There are no sysouts or anything. I'm not sure how to tell eclipse to use the plugin class.I can tell that eclipse is seeing my plugin exists however:
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions