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

ExceptionInInitializerError while running tests with 203 EAP #561

Closed
Undin opened this issue Nov 9, 2020 · 0 comments
Closed

ExceptionInInitializerError while running tests with 203 EAP #561

Undin opened this issue Nov 9, 2020 · 0 comments
Assignees
Milestone

Comments

@Undin
Copy link
Contributor

Undin commented Nov 9, 2020

ExceptionInInitializerError occurs when I try to launch tests with integration of Rust and Toml plugins with the latest 203.5600-EAP-CANDIDATE-SNAPSHOT dependency.

I tried to run tests both with 0.6.2 and 0.7.0-SNAPSHOT version of gradle-intellij-plugin.
See CargoCrateDocLineMarkerProviderTest in intellij-rust/intellij-rust@e35fce6 to reproduce it

Looks like this issue is related to changes made in 8391855

Exception
java.lang.ExceptionInInitializerError
	at org.toml.lang.psi.TomlCompositeType.<init>(ElementTypes.kt:19)
	at org.toml.lang.psi.TomlElementTypes.<clinit>(TomlElementTypes.java:8)
	at org.rust.toml.CargoCrateDocLineMarkerProvider.collectSlowLineMarkers(CargoCrateDocLineMarkerProvider.kt:40)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:182)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:83)
	at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:81)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:78)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:400)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:393)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:392)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:368)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:172)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:366)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:188)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: com.intellij.diagnostic.ImplementationConflictException: Language with ID 'TOML' is already registered: class org.toml.lang.TomlLanguage
	at com.intellij.lang.Language.<init>(Language.java:84)
	at com.intellij.lang.Language.<init>(Language.java:60)
	at org.toml.lang.TomlLanguage.<init>(TomlLanguage.kt:10)
	at org.toml.lang.TomlLanguage.<clinit>(TomlLanguage.kt:10)
	... 25 more
@Undin Undin changed the title ExceptionInInitializerError while running tests ExceptionInInitializerError while running tests with 203 EAP Nov 9, 2020
@zolotov zolotov self-assigned this Nov 9, 2020
@zolotov zolotov modified the milestones: 0.6.2, 0.6.3 Nov 9, 2020
@zolotov zolotov closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants