Open aaahrens opened 1 year ago
Version: 2022.3.2
Build: 223.8617.48
25 January 2023
On Pycharm
@kg-ops it looks like you have a conflict between this plugin and databricks one (both registering Jsonnet language). I'd recommend removing the databricks plugin and trying again.
@aaahrens Haven't seen this kind of conflict between plugins (aside from databricks one). I'll take a look at that.
I've seen your second error before. Not entirely sure what causes it, but have you tried restarting the language server? That usually puts things right. You can restart it via the green/red/yellow circle at the bottom of IDE. See:
If you're still getting issues, let me know and I'll dig into it more.
Had the same issue, it was indeed a compatibility issue with the Databricks plugin.
@zzehring I'm returning to his plugin after the new release, it's still broken for me
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.ExceptionInInitializerError
at com.github.zzehring.intellijjsonnet.JsonnetFileType.<init>(JsonnetFileType.kt:6)
at com.github.zzehring.intellijjsonnet.JsonnetFileType.<clinit>(JsonnetFileType.kt:24)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
at java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:42)
at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:185)
at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1132)
at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1113)
at java.base/java.lang.reflect.Field.get(Field.java:425)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.instantiateFileTypeBean(FileTypeManagerImpl.java:494)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.mergeOrInstantiateFileTypeBean(FileTypeManagerImpl.java:463)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.instantiatePendingFileTypes(FileTypeManagerImpl.java:456)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.initializeComponent(FileTypeManagerImpl.java:587)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:131)
at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:46)
at com.intellij.serviceContainer.ComponentManagerImpl.initializeComponent$intellij_platform_serviceContainer(ComponentManagerImpl.kt:622)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:39)
at com.intellij.serviceContainer.BaseComponentAdapter.doCreateInstance(BaseComponentAdapter.kt:154)
at com.intellij.serviceContainer.BaseComponentAdapter.createInstance$lambda$1(BaseComponentAdapter.kt:133)
at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:99)
at com.intellij.serviceContainer.BaseComponentAdapter.createInstance(BaseComponentAdapter.kt:132)
at com.intellij.serviceContainer.BaseComponentAdapter.access$createInstance(BaseComponentAdapter.kt:19)
at com.intellij.serviceContainer.BaseComponentAdapter$getInstanceAsync$2.invokeSuspend(BaseComponentAdapter.kt:181)
at com.intellij.serviceContainer.BaseComponentAdapter$getInstanceAsync$2.invoke(BaseComponentAdapter.kt)
at com.intellij.serviceContainer.BaseComponentAdapter$getInstanceAsync$2.invoke(BaseComponentAdapter.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceAsync(BaseComponentAdapter.kt:176)
at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsyncIfDefined(ComponentManagerImpl.kt:686)
at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:677)
at com.intellij.idea.ApplicationLoader$preloadCriticalServices$2.invokeSuspend(ApplicationLoader.kt:224)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: com.intellij.diagnostic.ImplementationConflictException: Language with ID 'Jsonnet' is already registered: class today.movatech.plugins.jsonnet.h. Conflicting plugins: [com.github.zzehring.intellijjsonnet, today.movatech.plugins.jsonnet]
at com.intellij.lang.Language.<init>(Language.java:91)
at com.intellij.lang.Language.<init>(Language.java:67)
at com.intellij.lang.Language.<init>(Language.java:63)
at com.github.zzehring.intellijjsonnet.JsonnetLanguage.<init>(JsonnetLanguage.kt:5)
at com.github.zzehring.intellijjsonnet.JsonnetLanguage.<clinit>(JsonnetLanguage.kt:7)
... 39 more
-----
Looks like this is the issue:
...
Caused by: com.intellij.diagnostic.ImplementationConflictException: Language with ID 'Jsonnet' is already registered: class today.movatech.plugins.jsonnet.h. Conflicting plugins: [com.github.zzehring.intellijjsonnet, today.movatech.plugins.jsonnet]
...
it looks like you have a conflict between this plugin and today.movatech.plugins.jsonnet
one (both registering Jsonnet language). I'd recommend removing the other plugin and trying again.
to disable installed plugins on mac use command: open /Applications/Rider.app --args disableNonBundledPlugins
I was unable to find the plugins directory to remove this plugin, thank you @Dinamokid for the above suggestion, only then was I able to remove the plugin from the UI. š
to disable installed plugins on mac use command: open /Applications/Rider.app --args disableNonBundledPlugins
Close to a vanilla install of goland, crashed on installation on M1 Macbook (16 inch 2022)
Here is the plugin log after fresh install.
edit: looks like a conflict somehow with another plugin: is weird and would like guidance edit2: gah completely reset plugins and now I'm getting this