Marcono1234

Results 265 comments of Marcono1234

For anyone experiencing this: You can add the following to the native-maven-plugin `` in your POM to see the actual `JUnitException` which was thrown: ```xml -H:+ReportExceptionStackTraces ``` This might make...

It seems this cursor approach is also what java-tree-sitter is using: https://github.com/tree-sitter/java-tree-sitter/blob/v0.23.0/src/main/java/io/github/treesitter/jtreesitter/Node.java#L281-L297 (might be helpful for other bindings as well for understanding the logic)

Possibly related to #455 But still the case for the latest Tree-sitter version: - https://github.com/tree-sitter/tree-sitter-python/blob/v0.23.0/grammar.js#L711 - https://github.com/tree-sitter/tree-sitter-python/blob/v0.23.0/src/node-types.json#L396 Just based on the `node-types.json` it is impossible to tell what `as_pattern_target` refers...

It looks like I just experienced the same issue on Windows 10, with: - `cargo 1.72.0 (103a7ff2e 2023-08-15)` - `rust-analyzer version: 0.3.1649-standalone (2df30e1e0 2023-09-03)` (VS Code extension) For me the...

Thanks for the suggestion! That is a good point. Unfortunately it seems to be difficult at the moment to support both sync and async code without duplicating code or running...

> and figuring out whether something like maybe-async makes sense for struson Do you mean https://github.com/fMeow/maybe-async-rs? I will probably not use that due to https://github.com/fMeow/maybe-async-rs/issues/6, since it is conceivable that...

> I quickly hacked together something for my purposes that makes this library compatible with [`embedded-io-async`](https://docs.rs/embedded-io-async): https://github.com/Friz64/struson/tree/embedded-async @Friz64, it seems you also changed Struson to support `no_std` environments. I have...

> In general the idea is to build a "sans-IO" core and then have two implementations for async and sync IO. @Sytten, I am afraid that applying this approach for...

The same probably applies to the C# version https://github.com/bcgit/bc-csharp/blob/master/crypto/src/crypto/generators/BCrypt.cs as well.

A workaround is to use `doReturn(...).when(...)`: ```java when(is.read()).thenThrow(new IOException()); doReturn(42).when(is).read(); ```