KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.84k stars 154 forks source link

java.nio.charset.spi.CharsetProvider: sun.nio.cs.ext.ExtendedCharsets Unable to get public no-arg constructor #2426

Open marcellanz opened 2 years ago

marcellanz commented 2 years ago

System

Plugin Version: 12.0.1 Application: IntelliJ IDEA Ultimate Edition (2021.3) Operating System: Mac OS X (12.1)

Event

Exception

Stacktrace

java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: sun.nio.cs.ext.ExtendedCharsets Unable to get public no-arg constructor
    at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:582)
    at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:673)
    at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:899)
    at java.base/java.util.ServiceLoader$ModuleServicesLookupIterator.hasNext(ServiceLoader.java:1077)
    at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
    at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
    at java.base/java.nio.charset.Charset$1.getNext(Charset.java:344)
    at java.base/java.nio.charset.Charset$1.hasNext(Charset.java:359)
    at java.base/java.nio.charset.Charset$3.run(Charset.java:581)
    at java.base/java.nio.charset.Charset$3.run(Charset.java:571)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.nio.charset.Charset.availableCharsets(Charset.java:570)
    at org.elixir_lang.debugger.stack_frame.value.Presentation.toUtf8String(Presentation.java:194)
    at org.elixir_lang.debugger.stack_frame.value.Presentation.renderBitstr(Presentation.java:140)
    at org.elixir_lang.debugger.stack_frame.value.Presentation.renderObject(Presentation.java:49)
    at org.elixir_lang.debugger.stack_frame.value.Presentation.renderValue(Presentation.java:223)
    at org.elixir_lang.beam.term.InspectKt.inspect(Inspect.kt:10)
    at org.elixir_lang.Macro.otherToString(Macro.kt:193)
    at org.elixir_lang.Macro.toString(Macro.kt:907)
    at org.elixir_lang.Macro$keywordListToString$1.invoke(Macro.kt:204)
    at org.elixir_lang.Macro$keywordListToString$1.invoke(Macro.kt:197)
    at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:85)
    at kotlin.collections.CollectionsKt___CollectionsKt.joinTo(_Collections.kt:3344)
    at kotlin.collections.CollectionsKt___CollectionsKt.joinToString(_Collections.kt:3361)
    at kotlin.collections.CollectionsKt___CollectionsKt.joinToString$default(_Collections.kt:3360)
    at org.elixir_lang.Macro.keywordListToString(Macro.kt:197)
    at org.elixir_lang.Macro.argumentsToString(Macro.kt:382)
    at org.elixir_lang.Macro.callToStringWithArguments(Macro.kt:481)
    at org.elixir_lang.Macro.otherCallToString(Macro.kt:461)
    at org.elixir_lang.Macro.ifCallToString(Macro.kt:429)
    at org.elixir_lang.Macro.toString(Macro.kt:904)
    at org.elixir_lang.Macro.ifDeinlineToString(Macro.kt:437)
    at org.elixir_lang.Macro.ifCallToString(Macro.kt:428)
    at org.elixir_lang.Macro.toString(Macro.kt:904)
    at org.elixir_lang.beam.chunk.debug_info.v1.elixir_erl.v1.definitions.definition.Clause.toMacroString(Clause.kt:46)
    at org.elixir_lang.beam.chunk.debug_info.v1.elixir_erl.v1.definitions.Definition.toMacroString(Definition.kt:49)
    at org.elixir_lang.beam.Decompiler$Companion.appendMacroNameArity(Decompiler.kt:433)
    at org.elixir_lang.beam.Decompiler$Companion.appendMacroNameArity(Decompiler.kt:406)
    at org.elixir_lang.beam.Decompiler$Companion.appendMacroNameArity(Decompiler.kt:395)
    at org.elixir_lang.beam.Decompiler$Companion.appendCallDefinitions(Decompiler.kt:264)
    at org.elixir_lang.beam.Decompiler$Companion.appendCallDefinitions(Decompiler.kt:214)
    at org.elixir_lang.beam.Decompiler$Companion.decompiled(Decompiler.kt:71)
    at org.elixir_lang.beam.Decompiler$Companion.access$decompiled(Decompiler.kt:33)
    at org.elixir_lang.beam.Decompiler.decompile(Decompiler.kt:31)
    at com.intellij.openapi.fileEditor.impl.LoadTextUtil.loadText(LoadTextUtil.java:536)
    at com.intellij.openapi.fileEditor.impl.FileDocumentManagerBase.loadText(FileDocumentManagerBase.java:89)
    at com.intellij.openapi.fileEditor.impl.FileDocumentManagerBase.getDocument(FileDocumentManagerBase.java:46)
    at org.elixir_lang.beam.psi.BeamFileImpl.getMirror(BeamFileImpl.kt:377)
marcellanz commented 2 years ago

The biggest impact this error has to my work environment is, that I find my IntelliJ in an unusable state afterwards. Some UI does not respond anymore. Then I have to restart the IDE often.

KronicDeth commented 2 years ago

Are you using a very new or alternative JDK implementation? I’m at a loss for how something from java.nio is missing

marcellanz commented 2 years ago

Let me check. Usually Intellij comes with its own JRE I assume.

marcellanz commented 2 years ago

This is what my IntelliJ is running on.

IU-213.6461.79, JRE 11.0.13+7-b1751.21x64 JetBrains s.r.o., OS Mac OS X(x86_64) v12.1, screens 3840.0x2160.0; Retina
KronicDeth commented 2 years ago

Please file this with JetBrains’ bug tracker too. They may be able to advise on what changed and the correct API to use now.