IntelliJ not able to find .icls files. Renaming them to .xml allows them to be found. Is this good?

I recently had an issue with my color scheme plugin development and that issue I believe is still occurring (https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000444230-ERROR-rationStore-ComponentStoreImpl-Cannot-read-scheme-from-?page=1#community_comment_115000355790 ).

 

I recently found a possible workaround that I feel is not good. There are some incorrect colors, and it appears that some inherited attributes are not inherited.

Basically, all my color scheme files had the .icls file extension. However, the idea.log could not find the xml file versions of those icls files. So I renamed those icls files to be xml files.

 

colors/ChroMATERIAL.icls            --> colors/ChroMATERIAL.xml
colors/ChroMATERIAL -- Darker.icls  --> colors/ChroMATERIAL -- Darker.xml
colors/ChroMATERIAL -- Darcula.icls --> colors/ChroMATERIAL -- Darcula.xml

 

Plugin.xml

<idea-plugin>

...

<idea-version since-build="131"/>

<depends>com.intellij.modules.lang</depends>

<extensions defaultExtensionNs="com.intellij">
<bundledColorScheme path="colors/ChroMATERIAL"/>
<bundledColorScheme path="colors/ChroMATERIAL -- Darker"/>
<bundledColorScheme path="colors/ChroMATERIAL -- Darcula"/>
</extensions>

</idea-plugin>
0
1 comment
Avatar
Permanently deleted user

This is the error message I WAS getting before I renamed the file extension to be .xml

Summary

ERROR - rationStore.ComponentStoreImpl - Cannot read scheme from colors/ChroMATERIAL -- Darker.xml 

Full Detail

2017-07-04 14:59:59,626 [  31308]  ERROR - rationStore.ComponentStoreImpl - Cannot read scheme from colors/ChroMATERIAL -- Darker.xml 
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.configurationStore.SchemeManagerImpl.loadBundledScheme(SchemeManagerImpl.kt:237)
at com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.loadBundledSchemes(EditorColorsManagerImpl.java:178)
at com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.<init>(EditorColorsManagerImpl.java:144)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:103)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:80)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:63)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:220)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:239)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:206)
at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:48)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:38)
at com.intellij.openapi.editor.colors.EditorColorsManager.getInstance(EditorColorsManager.java:35)
at com.intellij.application.options.editor.EditorOptionsPanel.reset(EditorOptionsPanel.java:236)
at com.intellij.application.options.editor.EditorOptions.reset(EditorOptions.java:68)
at com.intellij.ide.ui.ConfigurableOptionsTopHitProvider.getOptions(ConfigurableOptionsTopHitProvider.java:128)
at com.intellij.openapi.actionSystem.impl.ActionPreloader.preloadTopHits(ActionPreloader.java:46)
at com.intellij.openapi.actionSystem.impl.ActionPreloader.preload(ActionPreloader.java:39)
at com.intellij.openapi.application.Preloader.lambda$null$0(Preloader.java:74)
at com.intellij.openapi.application.Preloader$$Lambda$84/1833536503.run(Unknown Source)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda$67/928471901.run(Unknown Source)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.application.Preloader.lambda$initComponent$1(Preloader.java:72)
at com.intellij.openapi.application.Preloader$$Lambda$83/1312042113.run(Unknown Source)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2017-07-04 14:59:59,669 [ 31351] ERROR - rationStore.ComponentStoreImpl - IntelliJ IDEA (Community Edition) 2017.2 EAP Build #IC-172.3198.6
2017-07-04 14:59:59,670 [ 31352] ERROR - rationStore.ComponentStoreImpl - JDK: 1.8.0_05
2017-07-04 14:59:59,670 [ 31352] ERROR - rationStore.ComponentStoreImpl - VM: Java HotSpot(TM) 64-Bit Server VM
2017-07-04 14:59:59,671 [ 31353] ERROR - rationStore.ComponentStoreImpl - Vendor: Oracle Corporation
2017-07-04 14:59:59,671 [ 31353] ERROR - rationStore.ComponentStoreImpl - OS: Windows 8.1
2017-07-04 14:59:59,671 [ 31353] ERROR - rationStore.ComponentStoreImpl - Last Action:
2017-07-04 14:59:59,672 [ 31354] ERROR - rationStore.ComponentStoreImpl - Cannot read scheme from colors/ChroMATERIAL -- Darcula.xml
0

Please sign in to leave a comment.