swdotcom / swdc-intellij-music-time

An IntelliJ plugin to discover the most productive music to listen to as you code
https://www.software.com/music-time
Apache License 2.0
16 stars 6 forks source link

NoClassDefFoundError: okhttp3/OkHttpClient #25

Open Spurlos opened 3 years ago

Spurlos commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

java.lang.NoClassDefFoundError: okhttp3/OkHttpClient
    at com.swdc.snowplow.tracker.manager.TrackerManager.<init>(TrackerManager.java:47)
    at com.musictime.intellij.plugin.managers.EventTrackerManager.init(EventTrackerManager.java:47)
    at com.musictime.intellij.plugin.SoftwareCoMusic.initializeUserInfo(SoftwareCoMusic.java:183)
    at com.musictime.intellij.plugin.SoftwareCoMusic.initializeUserInfoWhenProjectsReady(SoftwareCoMusic.java:170)
    at com.musictime.intellij.plugin.SoftwareCoMusic.access$000(SoftwareCoMusic.java:30)
    at com.musictime.intellij.plugin.SoftwareCoMusic$1.run(SoftwareCoMusic.java:165)
    at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
    at java.base/java.util.TimerThread.run(Timer.java:506)
Caused by: java.lang.ClassNotFoundException: okhttp3.OkHttpClient PluginClassLoader[PluginDescriptor(name=Music Time, id=com.musictime.intellij.plugin, path=/home/spurlos/.local/share/JetBrains/PhpStorm2020.2/musictime, version=2.0.11)] com.intellij.ide.plugins.cl.PluginClassLoader@465479a
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:95)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 8 more

ISSUE TYPE

Steps to reproduce

  1. Just launch IDE

Expected behavior A clear and concise description of what you expected to happen.

No error popup and stable plugin work

ACTUAL RESULTS

IDE becomes unstable if MusicTime is being used

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

mmclead commented 3 years ago

Thank you @Spurlos for the report. We'll look at it right away.