Skip to content

Vineflower fails to decompile class due to assertion error #22

@solonovamax

Description

@solonovamax

Vineflower decided to throw an error while decompiling NamingConstants.groovy from net.neoforged.gradle:common:7.0.142 (found on neoforged maven):

// $VF: Couldn't be decompiled
// Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
// java.lang.AssertionError: /home/solonovamax/JetBrains/intellij-idea-ultimate/lib/groovy.jar not in [/home/solonovamax/.gradle/caches/modules-2/files-2.1/net.neoforged.gradle/dsl-common/7.0.142/e8f4186fb3282a0eeda9e9ec2a7f35a3f6d8da76/dsl-common-7.0.142.jar!/net/neoforged/gradle/dsl/common/util/NamingConstants.class, /home/solonovamax/.gradle/caches/modules-2/files-2.1/net.neoforged.gradle/dsl-common/7.0.142/e8f4186fb3282a0eeda9e9ec2a7f35a3f6d8da76/dsl-common-7.0.142.jar!/net/neoforged/gradle/dsl/common/util/NamingConstants$Task.class, /home/solonovamax/.gradle/caches/modules-2/files-2.1/net.neoforged.gradle/dsl-common/7.0.142/e8f4186fb3282a0eeda9e9ec2a7f35a3f6d8da76/dsl-common-7.0.142.jar!/net/neoforged/gradle/dsl/common/util/NamingConstants$Version.class, /home/solonovamax/.gradle/caches/modules-2/files-2.1/net.neoforged.gradle/dsl-common/7.0.142/e8f4186fb3282a0eeda9e9ec2a7f35a3f6d8da76/dsl-common-7.0.142.jar!/net/neoforged/gradle/dsl/common/util/NamingConstants$Extension.class]
//   at org.vineflower.ijplugin.impl.MyBytecodeProvider.getBytecode(MyBytecodeProvider.java:19)
//   at org.jetbrains.java.decompiler.struct.JarContextSource.getInputStream(JarContextSource.java:89)
//   at org.jetbrains.java.decompiler.main.extern.IContextSource.getClassBytes(IContextSource.java:67)
//   at org.jetbrains.java.decompiler.struct.ContextUnit.getClassBytes(ContextUnit.java:92)
//   at org.jetbrains.java.decompiler.struct.StructContext.tryLoadClass(StructContext.java:110)
//   at org.jetbrains.java.decompiler.struct.StructContext.lambda$getClass$0(StructContext.java:81)

vineflower version: 1.10.1

jas told me to report the issue to the plugin rather than to the main vineflower repo.

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