Skip to content

Commit

Permalink
Process exceptions from IDEA are now correctly rethrown during config…
Browse files Browse the repository at this point in the history
… deserialisation (#578)
  • Loading branch information
jshiell committed Jun 17, 2022
1 parent f442e70 commit ae482e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# CheckStyle-IDEA Changelog

* **5.67.4** Fix: Process exceptions from IDEA are now correctly rethrown during config deserialisation (#578).
* **5.67.3** Fix: Bundled configurations now have constant IDs when recreated or ported from earlier versions (#569).
* **5.67.3** Fix: Bundled configurations are restored if absent.
* **5.67.2** Fix: NPE in active modules configurations (#576).
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repositories {
// Project Metadata
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

version = '5.67.3'
version = '5.67.4'

intellij {
version = 'IC-2021.1.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.openapi.diagnostic.ControlFlowException;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.psi.search.scope.packageSet.NamedScope;
Expand Down Expand Up @@ -200,6 +201,9 @@ private org.infernus.idea.checkstyle.model.ConfigurationLocation deserialiseLoca
configurationLocation.setProperties(Objects.requireNonNullElse(location.properties, new HashMap<>()));
return configurationLocation;
} catch (Exception e) {
if (e instanceof ControlFlowException) {
throw e;
}
LOG.error("Failed to deserialise " + location, e);
return null;
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</p>
]]>
</description>
<version>5.67.3</version>
<version>5.67.4</version>
<idea-version since-build="211.7628.21"/>
<vendor url="https://infernus.org/" email="[email protected]">Jamie Shiell</vendor>

Expand All @@ -24,6 +24,7 @@
<change-notes>
<![CDATA[
<ul>
<li>5.67.4: Fix: Process exceptions from IDEA are now correctly rethrown during config deserialisation (#578).</li>
<li>5.67.3: Fix: Bundled configurations now have constant IDs when recreated or ported from earlier versions (#569).</li>
<li>5.67.3: Fix: Bundled configurations are restored if absent.</li>
<li>5.67.2: Fix: NPE in active modules configurations (#576).</li>
Expand Down

0 comments on commit ae482e6

Please sign in to comment.