Skip to content

Commit

Permalink
Prevent exceptions when mapping messages
Browse files Browse the repository at this point in the history
  • Loading branch information
esensar committed Jun 8, 2022
1 parent b631975 commit bc3459f
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 16 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This change

## [Unreleased]

## [0.4.4] - 2022-06-08

- prevent plugin host from stopping when message mapping fails

## [0.4.3] - 2022-06-08

- fixed error handling in `@NeovimRequestHandler` methods - ensure that response is always sent back to Neovim
Expand Down Expand Up @@ -120,7 +124,7 @@ All notable changes to this project will be documented in this file. This change
- `handler-annotations` for easier way of implementing requests and notifications
- `api-explorer` JavaFX application for exploring Neovim API functions

[Unreleased]: https://github.com/esensar/neovim-java/compare/0.4.1...main
[Unreleased]: https://github.com/esensar/neovim-java/compare/0.4.4...main
[0.1.10]: https://github.com/esensar/neovim-java/compare/0.1...0.1.10
[0.1.11]: https://github.com/esensar/neovim-java/compare/0.1.10...0.1.11
[0.1.12]: https://github.com/esensar/neovim-java/compare/0.1.11...0.1.12
Expand All @@ -135,6 +139,9 @@ All notable changes to this project will be documented in this file. This change
[0.3.0]: https://github.com/esensar/neovim-java/compare/0.2.3...0.3.0
[0.4.0]: https://github.com/esensar/neovim-java/compare/0.3.0...0.4.0
[0.4.1]: https://github.com/esensar/neovim-java/compare/0.4.0...0.4.1
[0.4.2]: https://github.com/esensar/neovim-java/compare/0.4.1...0.4.2
[0.4.3]: https://github.com/esensar/neovim-java/compare/0.4.2...0.4.3
[0.4.4]: https://github.com/esensar/neovim-java/compare/0.4.3...0.4.4
[i77]: https://github.com/esensar/neovim-java/issues/77
[i96]: https://github.com/esensar/neovim-java/issues/96
[i119]: https://github.com/esensar/neovim-java/issues/119
2 changes: 1 addition & 1 deletion api-explorer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core-rpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion handler-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion neovim-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion neovim-notifications/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion neovim-rx-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion plugin-host/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public NeovimJavaPluginHost(NeovimHandlerProxy neovimHandlerProxy) {
ObjectMappers.defaultNeovimMapper().writeValueAsBytes(o)
);
} catch (IOException e) {
throw new RuntimeException(e);
e.printStackTrace();
return null;
}
});
client = RpcClient.getDefaultAsyncInstance();
Expand Down
2 changes: 1 addition & 1 deletion plugins-common-host/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.ensarsarajcic.neovim.java</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>

<modules>
<!-- Core -->
Expand Down
2 changes: 1 addition & 1 deletion reactive-core-rpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion rplugin-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion rplugin-hosted-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion testing-helpers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion unix-socket-connection/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.ensarsarajcic.neovim.java</groupId>
<version>0.4.3-SNAPSHOT</version>
<version>0.4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit bc3459f

Please sign in to comment.