Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.x - Using maven dependency causes NoSuchMethodError #402

Open
codeHusky opened this issue May 27, 2024 · 0 comments
Open

2.1.x - Using maven dependency causes NoSuchMethodError #402

codeHusky opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@codeHusky
Copy link
Contributor

codeHusky commented May 27, 2024

Due to remaps that occur in the actual plugin build of PlasmoVoice, you get a NoSuchMethodError when compiling against the relevant server API package for 2.1.0-SNAPSHOT

[18:53:49 WARN]: Nag author(s): '[]' of 'PlasmoDynamicSources v1.0.0' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).
[18:53:49 WARN]: Exception in thread "Runnable-0" java.lang.NoSuchMethodError: 'kotlinx.coroutines.Job su.plo.voice.api.server.audio.source.AudioSender.start()'
[18:53:49 WARN]:        at plasmo-dynamic-sources-1.0-SNAPSHOT.jar//com.codehusky.plasmo.dynamicsources.player.HuskyAudioPlayer.lambda$playFrame$1(HuskyAudioPlayer.java:54)
[18:53:49 WARN]:        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[18:53:49 WARN]:        at plasmo-dynamic-sources-1.0-SNAPSHOT.jar//com.codehusky.plasmo.dynamicsources.player.HuskyAudioPlayer.playFrame(HuskyAudioPlayer.java:37)

Dependency

<dependency>
    <groupId>su.plo.voice.api</groupId>
    <artifactId>server</artifactId>
    <version>2.1.0-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>

I may have been using this wrong, let me know if that's the case. I'm not using Kotlin here, just standard Java.

@Apehum Apehum added the bug Something isn't working label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants