Closed zRevenger closed 8 months ago
Line 165 in CSharpLanguageCodeStyleSettingsProvider.java should be the issue:
return FileUtil.loadTextAndClose(CSharpLanguageCodeStyleSettingsProvider.class.getResourceAsStream("/codeStyle" + file));
The path is missing a "/" as the path is "resources/codeStyle/filename" instead of "resources/codeStylefilename" and since this happened when being called from line 148 of the same file which sends the file string as "spacing.txt" that should be it. Lmk if this could work :)
Hello. I will test today.
Thanks you. You were right about problem. Also I found another issue with UI (not tested after refactoring) - also fixed.
Fix will be in nightly channel (https://consulo.help/platform/settings/platformAndPlugins/updateSettings/)
After having to force manual update on platform this error is returned instead:
java.lang.IllegalAccessError: class consulo.csharp.impl.ide.codeStyle.CSharpCodeGenerationSettingsConfigurable (in module consulo.csharp) cannot access class com.intellij.uiDesigner.core.GridLayoutManager (in module forms.rt) because module consulo.csharp does not read module forms.rt
at consulo.csharp/consulo.csharp@3-SNAPSHOT/consulo.csharp.impl.ide.codeStyle.CSharpCodeGenerationSettingsConfigurable.$$$setupUI$$$(CSharpCodeGenerationSettingsConfigurable.java)
at consulo.csharp/consulo.csharp@3-SNAPSHOT/consulo.csharp.impl.ide.codeStyle.CSharpCodeGenerationSettingsConfigurable.<init>(CSharpCodeGenerationSettingsConfigurable.java:56)
at consulo.csharp/consulo.csharp@3-SNAPSHOT/consulo.csharp.impl.ide.codeStyle.CSharpCodeGenerationSettingsProvider.createSettingsPage(CSharpCodeGenerationSettingsProvider.java:69)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.TabbedLanguageCodeStylePanel.createTab(TabbedLanguageCodeStylePanel.java:190)
at consulo.csharp/consulo.csharp@3-SNAPSHOT/consulo.csharp.impl.ide.codeStyle.CSharpCodeStyleMainPanel.initTabs(CSharpCodeStyleMainPanel.java:44)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.TabbedLanguageCodeStylePanel.ensureTabs(TabbedLanguageCodeStylePanel.java:145)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.TabbedLanguageCodeStylePanel.getPreviewText(TabbedLanguageCodeStylePanel.java:224)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.CodeStyleAbstractPanel.createEditor(CodeStyleAbstractPanel.java:145)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.CodeStyleAbstractPanel.<init>(CodeStyleAbstractPanel.java:102)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.TabbedLanguageCodeStylePanel.<init>(TabbedLanguageCodeStylePanel.java:71)
at consulo.csharp/consulo.csharp@3-SNAPSHOT/consulo.csharp.impl.ide.codeStyle.CSharpCodeStyleMainPanel.<init>(CSharpCodeStyleMainPanel.java:33)
at consulo.csharp/consulo.csharp@3-SNAPSHOT/consulo.csharp.impl.ide.codeStyle.CSharpCodeStyleConfigurable.createPanel(CSharpCodeStyleConfigurable.java:39)
at consulo/consulo.language.code.style.ui.api@3-SNAPSHOT/consulo.language.codeStyle.ui.setting.CodeStyleAbstractConfigurable.createComponent(CodeStyleAbstractConfigurable.java:52)
at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.application.options.codeStyle.NewCodeStyleSettingsPanel.getPanel(NewCodeStyleSettingsPanel.java:52)
at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.application.options.codeStyle.CodeStyleMainPanel.ensurePanel(CodeStyleMainPanel.java:223)
at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.application.options.codeStyle.CodeStyleMainPanel.ensureCurrentPanel(CodeStyleMainPanel.java:212)
at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.application.options.codeStyle.CodeStyleMainPanel.lambda$onCurrentSchemeChanged$0(CodeStyleMainPanel.java:141)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:758)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:777)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue._dispatchEvent(IdeEventQueue.java:688)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:370)
at consulo/consulo.application.impl@3-SNAPSHOT/consulo.application.impl.internal.progress.CoreProgressManager.computePrioritized(CoreProgressManager.java:770)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:369)
at consulo/consulo.application.impl@3-SNAPSHOT/consulo.application.impl.internal.BaseApplication.runIntendedWriteActionOnCurrentThread(BaseApplication.java:795)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.dispatchEvent(IdeEventQueue.java:418)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.dialog.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:799)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.dialog.DialogWrapperPeerImpl.lambda$showAsync$4(DialogWrapperPeerImpl.java:545)
at consulo/consulo.ui.api@3-SNAPSHOT/consulo.ui.UIAccess.lambda$give$1(UIAccess.java:102)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.impl.AWTUIAccessImpl.lambda$give$2(AWTUIAccessImpl.java:98)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:758)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:777)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue._dispatchEvent(IdeEventQueue.java:688)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:370)
at consulo/consulo.application.impl@3-SNAPSHOT/consulo.application.impl.internal.progress.CoreProgressManager.computePrioritized(CoreProgressManager.java:770)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:369)
at consulo/consulo.application.impl@3-SNAPSHOT/consulo.application.impl.internal.BaseApplication.runIntendedWriteActionOnCurrentThread(BaseApplication.java:795)
at consulo.desktop.awt/consulo.desktop.awt.ide.impl@3-SNAPSHOT/consulo.desktop.awt.ui.IdeEventQueue.dispatchEvent(IdeEventQueue.java:418)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
The C# plugin currently seems to have issues with customization. It seems like pages for customization will not load and return errors when trying to access them.
First case scenario (picture below) is oriented towards the "Color & Fonts" section, selecting the language will infinitely load![image](https://github.com/consulo/consulo/assets/56997948/224164c1-0a71-4b60-afdd-ea18f0374098)
The same will happen in the second case (picture below) when trying to change code styles![image](https://github.com/consulo/consulo-csharp/assets/56997948/3216c096-67ba-40b6-9882-ddc260ce40bf)
Following will be the stack trace for the error returned when trying to access the colo & fonts c# page: