switch-gdx icon indicating copy to clipboard operation
switch-gdx copied to clipboard

Error during transpilation with certain libraries

Open Urban-Elf opened this issue 6 months ago • 4 comments

When running the switch:nro task, the following error is thrown:

Exception in thread "main" com.thelogicmaster.clearwing.TranspilerException: Failed to find super implementation for: class com/github/tommyettinger/ds/Ordered.M_swap
        at com.thelogicmaster.clearwing.BytecodeClass.processHierarchy(BytecodeClass.java:301)
        at com.thelogicmaster.clearwing.BytecodeClass.processHierarchyOrWarn(BytecodeClass.java:219)
        at com.thelogicmaster.clearwing.BytecodeClass.processHierarchy(BytecodeClass.java:232)
        at com.thelogicmaster.clearwing.Transpiler.transpile(Transpiler.java:291)
        at com.thelogicmaster.clearwing.Transpiler.main(Transpiler.java:491)

That's a helper library provided by TommyEttinger from libGDX, used in his SquidSquad library.

I've thoroughly read through the documentation provided in the repository, and haven't been able to remedy the issue myself to the point. Here are some config files for context:

build.gradle fragment (under 'core' project)

  api "com.squidpony:SquidPlace:$squidSquadVersion"
  api "com.squidpony:SquidPath:$squidSquadVersion"
  api "com.squidpony:SquidText:$squidSquadVersion"
  api "com.squidpony:SquidSmooth:$squidSquadVersion"

switch.json:

{
    "mainClass": "com.urbanelf.depths.switchgdx.SwitchLauncher",
    "nonOptimized": [
      "com.github.tommyettinger.ds.*"
    ],
    "reflective": [
      "com.ray3k.tenpatch.TenPatchDrawable"
    ],
    "useStackTraces": true,
    "useLineNumbers": true,
    "useValueChecks": true
}

I'm running Ubuntu 24 on x86_64, if that provides and additional context. If there's something else you need me to add, just ask! Thanks for all your work on this project.

Urban-Elf avatar Aug 19 '25 00:08 Urban-Elf