Plugin conflicts with IDEA CORE

已回答

Hello,

I've encountered a strange error, that I cannot use my language plugin in Rider (tested only Rider & IntelliJ)

Verification results for compability shows no problems:

Yet when I try to install this new plugin's version to Rider 2022.3 it throws an error:

I've even updated IntelliJ version in build.gradle to newly one:

id 'org.jetbrains.intellij' version '1.11.0'

But error remains. Does anyone have an idea what it might be causing?

Also for some reason that problems occurs after restarting Rider -> plugin can be installed (at least from local file), it does parse it's files, but after restarting IDE this happens.

0

Is there anything in the IDE log file? does it still happen if you remove `<incompatible-with>` from your plugin.xml?

0

I've deleted <incompatible>, but didn't help.

Looking into idea logs I can't find anything gdscript specific, but there is something I'm not sure if could be the reason:

2022-12-20 17:44:34,546 [  13477]   INFO - #c.i.i.p.DisabledPluginsState - Plugins to enable: [ice.explosive.gdscript]
2022-12-20 17:44:34,547 [  13478]   INFO - #c.i.i.p.DynamicPlugins - Plugins to load: [PluginDescriptor(name=GdScript, id=ice.explosive.gdscript, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\Rider2022.3\plugins\GdScript-0.4.3, version=0.4.3, package=null, isBundled=false)]
2022-12-20 17:44:34,555 [  13486]   INFO - #c.i.i.p.PluginManager - Module intellij.clouds.docker.java is not enabled because dependency com.intellij.java is not available
Module intellij.webDeployment/phpStorm is not enabled because dependency com.intellij.modules.phpstorm is not available
Module intellij.sh.python is not enabled because dependency com.intellij.modules.python is not available
Module intellij.sh.copyright is not enabled because dependency com.intellij.copyright is not available
Module intellij.cloudConfig.migrationToSettingsSync is not enabled because dependency com.intellij.settingsSync is not available
Module rider-plugins-appender/completionstats is not enabled because dependency com.intellij.stats.completion is not available
...
2022-12-20 17:44:34,559 [  13490]   INFO - #c.i.u.i.FileBasedIndexImpl - START INDEX SHUTDOWN
2022-12-20 17:44:34,700 [  13631]   INFO - #c.i.p.s.StubIndexImpl - StubIndexExtension-s were unloaded
2022-12-20 17:44:34,700 [  13631]   INFO - #c.i.p.s.SerializationManagerImpl - Start shutting down C:\Users\david\AppData\Local\JetBrains\Rider2022.3\index\rep.names
2022-12-20 17:44:34,702 [  13633]   INFO - #c.i.p.s.SerializationManagerImpl - Finished shutting down C:\Users\david\AppData\Local\JetBrains\Rider2022.3\index\rep.names
2022-12-20 17:44:34,706 [  13637]   INFO - #c.i.u.i.FileBasedIndexImpl - END INDEX SHUTDOWN
022-12-20 17:44:34,979 [  13910]   WARN - #c.i.o.o.e.ConfigurableCardPanel - auto-dispose 'Plugins' id=preferences.pluginManager
2022-12-20 17:44:35,034 [ 13965] INFO - #c.i.u.i.RootChangesLogger - New rootsChanged event for "Example" project with full rescanning with trace_hash = -742105706:
java.lang.Throwable
    at com.intellij.util.indexing.RootChangesLogger.info(RootChangesLogger.java:27)
    at com.intellij.util.indexing.EntityIndexingServiceImpl.logRootChanges(EntityIndexingServiceImpl.java:141)
    at com.intellij.util.indexing.EntityIndexingServiceImpl.runFullRescan(EntityIndexingServiceImpl.java:126)
    at com.intellij.util.indexing.EntityIndexingServiceImpl.indexChanges(EntityIndexingServiceImpl.java:44)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.kt:250)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.java:483)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$2.fireRootsChanged(ProjectRootManagerImpl.java:160)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$2.fireRootsChanged(ProjectRootManagerImpl.java:157)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.java:107)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.java:115)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent$registerListeners$2.fileTypesChanged(ProjectRootManagerComponent.kt:152)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:655)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:621)
    at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:395)
    at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:374)
    at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:433)
    at jdk.proxy2/jdk.proxy2.$Proxy165.fileTypesChanged(Unknown Source)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.fireFileTypesChanged(FileTypeManagerImpl.java:1041)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl$2.extensionAdded(FileTypeManagerImpl.java:204)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl$2.extensionAdded(FileTypeManagerImpl.java:193)
...
2022-12-20 17:44:35,185 [  14116]   INFO - #c.i.d.WindowsDefenderChecker - Windows Defender status: Failed to get excluded patterns
2022-12-20 17:44:35,232 [  14163]   WARN - #c.i.o.o.e.ConfigurableCardPanel - auto-dispose 'Plugins' id=preferences.pluginManager
2022-12-20 17:44:35,271 [  14202]   INFO - #c.i.i.p.DynamicPlugins - Plugin ice.explosive.gdscript loaded without restart in 716 ms

Thats the only exception I've found.

But between two logs (below) of "loaded" and "to disable" there are only info about other plugins and such - no error or exceptions at all.

2022-12-20 17:44:42,085 [    254]   INFO - #c.i.i.p.PluginManager - Loaded custom plugins: GdScript (0.4.3)

...

2022-12-20 17:44:45,236 [ 3405] INFO - #c.i.i.p.DisabledPluginsState - Plugins to disable: [ice.explosive.gdscript]
2022-12-20 17:44:45,239 [ 3408] INFO - #c.i.i.p.DisabledPluginsState - Plugins to disable: [com.intellij]

I'll later try to reset latests commits one by one if there's some specific change it started it - but I've never actually used it in Rider until now.

0

I've finally localized the issue - the conflict was at FileType name property.

I've registered 3rd FileType a while ago as:

<fileType name="Project file" implementationClass="project.ProjectFileType" fieldName="INSTANCE" language="GodotProject" extensions="godot"/>

And it seems that name="Project file" was the conflict and whole issue.

0

Thanks for the update.

0

请先登录再写评论。