Conal-Tuohy / jEdit-TEIPlugin

A plugin for the jEdit editor to help support text encoding
6 stars 0 forks source link

Unable to activate plugin #15

Closed hcayless closed 4 years ago

hcayless commented 4 years ago

I'm getting the following error after installing the TEI plugin. Possibly related to Saxon API updates? I've been bitten by this sort of thing in other contexts and this looks familiar. Saxon seems to change its API every new moon.

/Users/hac13/Library/jEdit/jars/TEI.jar:
Cannot start: java.lang.NoSuchMethodError: net.sf.saxon.Configuration.setProcessor(Lnet/sf/saxon/Configuration$ApiProvider;)V
Try updating to a newer version of the plugin.
Conal-Tuohy commented 4 years ago

Thanks! What version of the Saxon jEdit plugin is installed? And could you also check the version of the Saxon jar in your jedit jars folder?

hcayless commented 4 years ago

Saxon HE 9.9.1.6 (plugin version number is the same—I guess it tracks the Saxon version). That's not quite cutting edge, but recent. As I look back on how I handled changes to the Configuration API previously, I see I switched to using s9api (can't remember why now, but maybe it seemed more stable). I see they're retaining the name for Saxon 10, so that's good.

hcayless commented 4 years ago

But there is indeed a Configuration.setProcessor with the right signature, so your code is correct. Looking a little deeper, I found a saxon7.jar stuck in my jars/ folder, left over from God knows when. Because these things are loaded in alphanumeric order, it will have been stepping on the newer version. I killed it and the TEI plugin loads now. I'll report back if I find any issues with it!

Conal-Tuohy commented 4 years ago

Nice debugging work! thanks!