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

PluginException: Cannot create extension (class=nl.hannahsten.texifyidea.LatexErrorReportSubmitter) #3742

Closed
silvio201 opened this issue Nov 12, 2024 · 6 comments
Labels
crash-report Reports of crashes that popped up in IDEA.

Comments

@silvio201
Copy link

How to reproduce the exception

After updating the plugin today, I get the error below when starting IntelliJ and I cannot use LaTeX anymore.
Please help, I really rely on this plugin.

The full stacktrace of the exception thrown

Stacktrace is attached as file.
stacktrace.txt

@silvio201 silvio201 added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Nov 12, 2024
@silvio201
Copy link
Author

Fyi: a manual reinstallation of the old version (0.9.7) fixed my issue.

@PHPirates
Copy link
Collaborator

Thanks for reporting this! I have seen a similar stacktrace before, in #3657, but I did not know that it had any impact.

The stacktrace is really helpful but also confusing. Could you upload your idea.log file here as well? (Help > Show Log ...)

I cannot use LaTeX anymore

What exactly did not work, before you reinstalled?

@PHPirates PHPirates added duplicate Another issue exists addressing the same problem. and removed untriaged Issue type still needs to be triaged or verified. labels Nov 13, 2024
@PHPirates PHPirates changed the title New version broke my installation of the plugin PluginException: Cannot create extension (class=nl.hannahsten.texifyidea.LatexErrorReportSubmitter) Nov 13, 2024
@silvio201
Copy link
Author

idea.2.log

I see a Java version error in the log file.
The entire plugin did not work for me, so .tex Files would not be recognized as LaTeX files and additionally when I went into the settings, the LaTeX section did not load at all.

@PHPirates
Copy link
Collaborator

Thanks a lot! Indeed, now I see the actual error:

Caused by: com.intellij.diagnostic.PluginException: Cannot load class nl.hannahsten.texifyidea.LatexErrorReportSubmitter (
  error: nl/hannahsten/texifyidea/LatexErrorReportSubmitter has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

I see IntelliJ IDEA 2024.2.4 Build #IU-242.23726.103 and JDK: 17.0.11. Version 61 is Java 17, 65 is Java 21.

If I go to Help > About it will show Runtime version: 21.0.4, which I believe is the default since 2024.2. What does it show for you?
If it shows Java 17, did you change that manually? Can you try to switch it to Java 21, and then try the TeXiFy update again? See https://www.jetbrains.com/help/idea/switching-boot-jdk.html#switch-jdk

@silvio201
Copy link
Author

Thank you for your help, now the update worked and the plugin is working as expected.

@PHPirates
Copy link
Collaborator

Great, thanks a lot for the feedback!

@PHPirates PHPirates removed the duplicate Another issue exists addressing the same problem. label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash-report Reports of crashes that popped up in IDEA.
Projects
None yet
Development

No branches or pull requests

2 participants