CryptoMorin / XSeries

Library for cross-version Minecraft Bukkit support and various efficient API methods.
https://www.spigotmc.org/threads/378136/
MIT License
390 stars 128 forks source link

v10.0.0 can no longer be indexed and compiled by IntelliJ (outdated IDE issue) #255

Closed timderspieler closed 4 months ago

timderspieler commented 4 months ago

Description Currently I am trying to switch from XSeries v.9.x.x to v.10.0.0. While the library could be indexed and compiled just fine in the last version, this is no longer the case for v.10.0.0. When switching to this version, my code can no longer be compiled and the library can no longer be indexed.

Switching back to the older version solves the issue.

I have already tried clearing all my caches and updating all used libraries - without luck.

I am currently using:

Java 21 (Target compatibility 8) Gradle 8.7 Shadow 8.1.1

This is my build.gradle:

implementation('com.github.cryptomorin:XSeries:10.0.0') { transitive(false) }

shadow part: relocate 'com.cryptomorin.xseries', 'nl.marido.deluxecombat.shaded.xseries'

I would really appreciate any help regarding this. Thank you very much.

CryptoMorin commented 4 months ago

I really don't know how to help. I'm already using it for two of my projects. Maven and gradle. It's working fine. The simplest way to test whether it should work or not is to manually download it straight from the Maven repo, and all of the classes are decompiled just fine wtih luyten-0.5.4 (and the unofficial 0.8.4).

Also I deleted my maven cache for xseries since I constantly locally install newer versions to test, it pulled v10.0.0 from the servers and continued to work just fine.

CryptoMorin commented 4 months ago

I just released v11.0.0-beta see if it helps (the API is quite different depending on what you're using)

timderspieler commented 4 months ago

I really don't know how to help. I'm already using it for two of my projects. Maven and gradle. It's working fine. The simplest way to test whether it should work or not is to manually download it straight from the Maven repo, and all of the classes are decompiled just fine wtih luyten-0.5.4 (and the unofficial 0.8.4).

Also I deleted my maven cache for xseries since I constantly locally install newer versions to test, it pulled v10.0.0 from the servers and continued to work just fine.

Thank you for the information. Sadly its also not working with v.11.0.0-beta. The issue seems to be that the sources for the different class files cannot be found. I've already tried to decompile the XSeries-sources.jar but all the classes are present -> IntelliJ itself can't find them. grafik

Whats driving me crazy is that it works perfectly fine with XSeries-v.9.7.0.

timderspieler commented 4 months ago

I was using an old version of IntelliJ IDEA. Updating to the latest version helped.

Still, thank you very much @CryptoMorin for your help. I will close this issue now.

CryptoMorin commented 4 months ago

Thank you for letting me know what the issue is!