Closed CodeMonkey80s closed 1 year ago
@CodeMonkey80s Can't reproduce it on latest GoLand. What exactly you are doing to receive that exception?
I go to the Settings -> Plugins and click "enable" checkbox and after a second I have red icon blinking (on the status bar), when I click it I see the message above.
Also just now I tested this scenario: "disable all downloaded plugins" and enabled only BH plugin, still got the error message.
@CodeMonkey80s Maybe settings file is somehow corrupted? Can you search for "highlightTokenConfiguration-v2.xml" file in idea config folder and remove it ?
P.S. On linux I'm using command - find ~ -name "highlightTokenConfiguration-v2.xml" to locate file, which is in ".config/JetBrains/IntelliJIdea2023.1/options/highlightTokenConfiguration-v2.xml" in my case.
I have done that. Removed this config file. And then it worked but when I go to the settings and check the option "enable comment highlighting in plain text files", save it then it crashes again.
Here is the config after checking this option:
<application>
<component name="HighlightTokenConfiguration">
<option name="a">
<map>
<entry key="COMMENT">
<value>
<list>
<option value="!" />
<option value="?" />
<option value="*" />
</list>
</value>
</entry>
<entry key="KEYWORD">
<value>
<list />
</value>
</entry>
<entry key="METHOD_KEYWORD">
<value>
<list>
<option value="public" />
</list>
</value>
</entry>
</map>
</option>
<option name="a" value="true" />
</component>
</application>
@CodeMonkey80s Super, thanks for you investigation. I see the problem and, most probably, would be able to reproduce it. Will fix that hopefully today.
@CodeMonkey80s Uploaded new release, soon it would be available for update. Meantime I'll close the ticket. If what - you can reopen it.
@clutcher The issue is back for both IDEs: PhpStorm 2023.1
and GoLand 2023.1
.
Plugin version is 2023.4.0
.
After clicking setting to use comment highlighting in plain text files.
<application>
<component name="HighlightTokenConfiguration">
<option name="a">
<map>
<entry key="COMMENT">
<value>
<list>
<option value="!" />
<option value="?" />
<option value="*" />
</list>
</value>
</entry>
<entry key="REGION_COMMENT">
<value>
<list>
<option value="Region" />
<option value="End" />
</list>
</value>
</entry>
<entry key="KEYWORD">
<value>
<list />
</value>
</entry>
<entry key="METHOD_KEYWORD">
<value>
<list>
<option value="abstract" />
<option value="public" />
</list>
</value>
</entry>
</map>
</option>
<option name="a" value="true" />
</component>
</application>%
This what is produced after checking the option.
@CodeMonkey80s Argh.. I'll check, why it is happening again. Also found out in documentation that it is possible to expicitly define namings of options, so that issue would never happen again in future.
@CodeMonkey80s Just pushed a new version 2023.4.3 with more permanent fix.
@CodeMonkey80s Unfortunately in 2023.4.3 I introduced a major deserialization bug. I submited new bersion 2023.5.0, where it should be fixed.
@CodeMonkey80s Version 2023.5.0 just become available and should fix all the issues.. I will close this ticket.
Here's the log after crash
Plugin Version: 2023.2.9