repo
string
pull_number
int64
instance_id
string
issue_numbers
list
base_commit
string
patch
string
test_patch
string
problem_statement
string
hints_text
string
created_at
string
version
string
updated_at
string
environment_setup_commit
string
FAIL_TO_PASS
list
PASS_TO_PASS
list
FAIL_TO_FAIL
list
PASS_TO_FAIL
list
fzyzcjy/flutter_rust_bridge
1,809
fzyzcjy__flutter_rust_bridge-1809
[ "1807" ]
db1de32321c1b02f05a74d11f3ece5b38c837057
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.0.0-dev.28 + +* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2. +* Fix error when using build.rs instead of standard way to trigger ...
diff --git a/frb_codegen/src/library/codegen/parser/attribute_parser.rs b/frb_codegen/src/library/codegen/parser/attribute_parser.rs --- a/frb_codegen/src/library/codegen/parser/attribute_parser.rs +++ b/frb_codegen/src/library/codegen/parser/attribute_parser.rs @@ -449,6 +449,13 @@ mod tests { Ok(()) } ...
flutter run with build.rs generates bridge code as if frb marker has no effect ### Describe the bug After setting up to use build.rs rather than manually running `flutter_rust_bridge_codegen generate`, I found that the code generated using `build.rs` was different from running `flutter_rust_bridge_codgen generate`. ...
Hmm, is it possible because of the 2.0.0-dev.27's new mechanism of frb_macros? So could you please firstly try dev.26 and see whether it works. Tried to lower to .26 but still the same, the bridge still generated async code rather than the expected sync. Is there anything to do with this WARN mentioning cargo-expand i...
2024-03-10T19:55:55Z
0.1
2025-03-10T14:05:36Z
40809a250198223e1bcafb603e9cc739194e2353
[ "library::codegen::parser::attribute_parser::tests::test_double_colon" ]
[ "library::codegen::config::internal_config_parser::tests::test_compute_path_map", "library::codegen::generator::misc::comments::tests::test_generate_codec_comments", "library::codegen::config::internal_config_parser::tests::test_compute_path_map_faulty", "library::codegen::ir::namespace::tests::test_namespace...
[ "tests::test_execute_generate_on_frb_example_pure_dart", "tests::test_execute_generate_on_frb_example_dart_minimal" ]
[]
fzyzcjy/flutter_rust_bridge
1,780
fzyzcjy__flutter_rust_bridge-1780
[ "1767" ]
cfd88621f77de211a9c214508b2dfcca29efd4e7
diff --git a/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/class/field.rs b/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/class/field.rs --- a/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/class/field.rs +++ b/frb_codegen/src/library/codegen/generator/api_dart...
diff --git a/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/class/field.rs b/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/class/field.rs --- a/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/class/field.rs +++ b/frb_codegen/src/library/codegen/generator/api_dart...
Generation failing when non-enum default value and `dart_enums_style: true` ### Describe the bug When defining a default value that is not an enum, like this: `#[frb(default = "10")]`, and the `dart_enums_style` option is set to `true`, the generator crashes with the following error: ``` thread 'main' panicked a...
On that note, having default values in function parameters yields a Rust compiler error: ```rust #[frb] pub fn test(#[frb(default = "10")] value: usize) { println!("Hello, world!"); } ``` ```shell error: documentation comments cannot be applied to function parameters --> src\api.rs:3:1 | 3 | #[frb...
2024-02-25T20:40:12Z
0.1
2025-02-25T01:32:51Z
40809a250198223e1bcafb603e9cc739194e2353
[ "library::codegen::generator::api_dart::spec_generator::class::field::tests::test_default_value_to_dart_style" ]
[ "library::codegen::generator::misc::comments::tests::test_generate_codec_comments", "library::codegen::config::internal_config_parser::tests::test_compute_path_map", "library::codegen::ir::namespace::tests::test_namespace_display", "library::codegen::ir::namespace::tests::test_to_pseudo_io_path", "library::...
[ "tests::test_execute_generate_on_frb_example_pure_dart", "tests::test_execute_generate_on_frb_example_dart_minimal" ]
[]
fzyzcjy/flutter_rust_bridge
1,739
fzyzcjy__flutter_rust_bridge-1739
[ "1735" ]
f4d5f48da5420efdb5cd530fd8e597d76b4c8054
diff --git a/frb_codegen/src/library/codegen/parser/function_parser/argument.rs b/frb_codegen/src/library/codegen/parser/function_parser/argument.rs --- a/frb_codegen/src/library/codegen/parser/function_parser/argument.rs +++ b/frb_codegen/src/library/codegen/parser/function_parser/argument.rs @@ -2,6 +2,7 @@ use crate...
diff --git a/frb_codegen/src/library/codegen/parser/mod.rs b/frb_codegen/src/library/codegen/parser/mod.rs --- a/frb_codegen/src/library/codegen/parser/mod.rs +++ b/frb_codegen/src/library/codegen/parser/mod.rs @@ -145,13 +145,14 @@ mod tests { use crate::codegen::parser::parse; use crate::codegen::parser::re...
Failed to execute `flutter run` when using &mut inside Rust code ### Describe the bug The documentation suggests [link](https://cjycode.com/flutter_rust_bridge/#example-2-show-off-skills-) that `&mut` should be working. However, the error occurs when trying to run the project, specifically indicating an issue with the...
Hi! Thanks for opening your first issue here! :smile: I've got the same problem. I saw an issue about allowing support for &mut self so I think it's just not supported. Did anyone solve this problem? ``` SEVERE: note: method defined here SEVERE: --> src/api/simple.rs:21:12 SEVERE: | SEVERE: 21 | pub fn an...
2024-02-07T09:21:50Z
0.1
2025-02-07T02:26:35Z
40809a250198223e1bcafb603e9cc739194e2353
[ "library::codegen::parser::tests::test_error_non_opaque_mut" ]
[ "library::codegen::generator::misc::comments::tests::test_generate_codec_comments", "library::codegen::config::internal_config_parser::tests::test_compute_path_map", "library::codegen::ir::namespace::tests::test_namespaced_name_serialization", "library::codegen::ir::namespace::tests::test_namespace_display", ...
[ "tests::test_execute_generate_on_frb_example_dart_minimal", "tests::test_execute_generate_on_frb_example_pure_dart" ]
[]
fzyzcjy/flutter_rust_bridge
1,949
fzyzcjy__flutter_rust_bridge-1949
[ "1948" ]
1eddf8740bb655aa9682aed7705181bfddf723d1
diff --git a/frb_codegen/src/binary/commands.rs b/frb_codegen/src/binary/commands.rs --- a/frb_codegen/src/binary/commands.rs +++ b/frb_codegen/src/binary/commands.rs @@ -88,6 +88,10 @@ pub(crate) struct GenerateCommandArgsPrimary { #[arg(long)] pub dart_format_line_length: Option<u32>, + /// Raw header ...
diff --git a/frb_codegen/src/library/codegen/generator/api_dart/mod.rs b/frb_codegen/src/library/codegen/generator/api_dart/mod.rs --- a/frb_codegen/src/library/codegen/generator/api_dart/mod.rs +++ b/frb_codegen/src/library/codegen/generator/api_dart/mod.rs @@ -48,21 +48,31 @@ mod tests { use crate::utils::logs::...
custom ignore_for_file in generated dart file **Is your feature request related to a problem? Please describe.** Show too much lint messages in VSCode problem panel, if I had defined some strict lint rules in analysis_options.yaml. Even if I add a exclude config in analysis_options.yaml, As soon as I open the generat...
Hi! Thanks for opening your first issue here! :smile: Looks reasonable, and feel free to PR for this! > Looks reasonable, and feel free to PR for this! Seems easy, I'll give it a try. Feel free to ping me if needing any hints :) Just done,but I don't know if there's anything missing.
2024-05-17T23:01:33Z
0.1
2024-05-18T12:56:06Z
40809a250198223e1bcafb603e9cc739194e2353
[ "library::codegen::config::internal_config_parser::tests::test_parse_wildcard_rust_input", "library::codegen::config::internal_config_parser::tests::test_parse_single_rust_input" ]
[ "library::codegen::generator::misc::comments::tests::test_generate_codec_comments", "library::codegen::config::internal_config_parser::tests::test_compute_path_map_faulty", "library::codegen::ir::namespace::tests::test_namespace_display", "library::codegen::ir::namespace::tests::test_to_pseudo_io_path", "li...
[ "library::codegen::generator::api_dart::tests::test_functions", "library::codegen::generator::api_dart::tests::test_simple", "library::codegen::parser::tests::test_generics", "library::codegen::parser::tests::test_qualified_names", "library::codegen::parser::tests::test_methods", "library::codegen::parser...
[]
fzyzcjy/flutter_rust_bridge
1,856
fzyzcjy__flutter_rust_bridge-1856
[ "1830" ]
4e2992bb838f48f279002d0c16bc9ddc1bfe1bc0
diff --git a/frb_codegen/src/library/commands/cargo_expand.rs b/frb_codegen/src/library/commands/cargo_expand.rs --- a/frb_codegen/src/library/commands/cargo_expand.rs +++ b/frb_codegen/src/library/commands/cargo_expand.rs @@ -71,7 +71,8 @@ fn extract_module(raw_expanded: &str, module: Option<String>) -> Result<String>...
diff --git a/frb_codegen/src/library/commands/cargo_expand.rs b/frb_codegen/src/library/commands/cargo_expand.rs --- a/frb_codegen/src/library/commands/cargo_expand.rs +++ b/frb_codegen/src/library/commands/cargo_expand.rs @@ -202,8 +203,8 @@ mod another {}"; // some code } }"; - let extracted = e...
Using Rust conditional compilation when running flutter_rust_bridge_codegen generate ### Describe the bug Hello there ! First of all, congratulations for making such an amazing tool, and a very clear and useful documentation 🙌 I am trying to update a project using it, and I am facing an issue : inside the Rust ...
Hi! Thanks for opening your first issue here! :smile: Hi, thanks! I guess currently this is not supported yet (since this has not been proposed before IIRC), but it may not be hard (e.g. maybe it is something in https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_codegen/src/library/commands/cargo_expand.rs...
2024-04-05T19:58:56Z
0.1
2025-04-11T01:33:19Z
40809a250198223e1bcafb603e9cc739194e2353
[ "library::commands::cargo_expand::tests::test_extract_module_with_prefix" ]
[ "library::codegen::generator::misc::comments::tests::test_generate_codec_comments", "library::codegen::ir::namespace::tests::test_namespace_display", "library::codegen::ir::namespace::tests::test_namespaced_name_serialization", "library::codegen::ir::namespace::tests::test_to_pseudo_io_path", "library::code...
[ "tests::test_execute_generate_on_frb_example_dart_minimal", "tests::test_execute_generate_on_frb_example_pure_dart" ]
[]
lloydmeta/frunk
102
lloydmeta__frunk-102
[ "100" ]
032d435764cac94cf32ee136c2c7aef2361a250b
diff --git a/core/src/coproduct.rs b/core/src/coproduct.rs --- a/core/src/coproduct.rs +++ b/core/src/coproduct.rs @@ -104,46 +104,6 @@ pub enum Coproduct<H, T> { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum CNil {} -/// Returns a type signature for a Coproduct of the provided types -/// ...
diff --git a/core/src/lib.rs b/core/src/lib.rs --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -58,12 +58,17 @@ //! 2. [Crates.io page](https://crates.io/crates/frunk) #[macro_use] +mod macros; + pub mod hlist; pub mod coproduct; pub mod generic; pub mod labelled; mod tuples; +#[cfg(test)] +mod test_structs...
Rest pattern in hlist/coprod macros I think it can be useful to have a syntax for representing "the rest of the list" in `hlist!`, `Coprod!`, etc It is tempting to use `..rest` for this syntax but that would be ambiguous with otherwise perfectly valid patterns and expressions. I suggest `/rest` as the syntax: `...
Seems like an interesting idea! I'd like to think over some bikeshed tomorrow though. Interesting indeed! Although ... I do like the `..rest` syntax :) Could we use the `...` (note triple `.`) syntax now that `..=` will be used in its stead? It seems to me more legible than `/`, even if two tokens longer. It would...
2018-03-26T02:09:00Z
0.1
2018-03-26T13:44:39Z
409471ca979c7c76530895eb3bfcc8b31df82fc4
[ "src/macros.rs - Hlist (line 87)", "src/macros.rs - Coprod (line 112)", "src/macros.rs - hlist_pat (line 48)", "src/macros.rs - hlist (line 10)" ]
[ "coproduct::tests::test_coproduct_embed", "coproduct::tests::test_coproduct_fold_consuming", "coproduct::tests::test_coproduct_subset", "coproduct::tests::test_coproduct_inject", "coproduct::tests::test_coproduct_fold_non_consuming", "hlist::tests::test_Hlist_macro", "hlist::tests::test_foldl_consuming"...
[]
[]
Jon-Becker/heimdall-rs
398
Jon-Becker__heimdall-rs-398
[ "374" ]
0d5784d343dc99a225bf4f8cf67c94c3e53341df
diff --git a/crates/common/src/ether/evm/core/opcodes.rs b/crates/common/src/ether/evm/core/opcodes.rs --- a/crates/common/src/ether/evm/core/opcodes.rs +++ b/crates/common/src/ether/evm/core/opcodes.rs @@ -70,11 +70,13 @@ impl Opcode { 0x41 => Opcode { code, name: "COINBASE", mingas: 2, inputs: 0, outputs...
diff --git a/crates/common/src/ether/evm/core/vm.rs b/crates/common/src/ether/evm/core/vm.rs --- a/crates/common/src/ether/evm/core/vm.rs +++ b/crates/common/src/ether/evm/core/vm.rs @@ -1964,6 +1993,17 @@ mod tests { ); } + #[test] + fn test_mcopy() { + let mut vm = new_test_vm("0x7f000102...
Add support for dencun opcodes ### Component Heimdall (Core) ### Describe the feature you would like specifically: https://eips.ethereum.org/EIPS/eip-6780 https://eips.ethereum.org/EIPS/eip-5656 https://eips.ethereum.org/EIPS/eip-7516 https://eips.ethereum.org/EIPS/eip-4844
2024-05-09T10:03:01Z
0.7
2024-12-27T07:02:55Z
6a9d01f781139e7594e38a9f4afa165200b793bd
[ "ether::evm::core::vm::tests::test_mcopy", "ether::lexers::solidity::tests::test_wrapped_opcode_solidify_prevrandao" ]
[ "ether::compiler::test_compiler::test_detect_compiler_proxy_minimal", "ether::compiler::test_compiler::test_detect_compiler_proxy_vyper", "ether::compiler::test_compiler::test_detect_compiler_solc", "ether::compiler::test_compiler::test_detect_compiler_solc_metadata_known", "ether::compiler::test_compiler::...
[ "utils::io::file::tests::test_write_file_failure", "ether::rpc::tests::test_get_trace", "ether::calldata::tests::test_get_calldata_when_target_is_txhash", "ether::bytecode::tests::test_get_bytecode_when_target_is_address" ]
[]
Jon-Becker/heimdall-rs
397
Jon-Becker__heimdall-rs-397
[ "364" ]
6cbcae102fa92405a47a8846c767276a3a2772ba
diff --git a/crates/decompile/src/core/postprocess.rs b/crates/decompile/src/core/postprocess.rs --- a/crates/decompile/src/core/postprocess.rs +++ b/crates/decompile/src/core/postprocess.rs @@ -106,6 +106,23 @@ impl PostprocessOrchestrator { ) })); + // add known variables to memory_type...
diff --git a/crates/core/tests/test_decompile.rs b/crates/core/tests/test_decompile.rs --- a/crates/core/tests/test_decompile.rs +++ b/crates/core/tests/test_decompile.rs @@ -172,7 +172,7 @@ mod integration_tests { // assert that the output is correct for line in &["function Unresolved_06fdde03() publ...
Decompiler - Incorrect output types ### Component Heimdall (Core) ### Have you ensured that you are up to date? - [X] Bifrost - [X] Heimdall ### What version of Heimdall are you on? heimdall 0.7.3 ### Operating System macOS (Apple Silicon) ### Describe the bug The output params generated by the decompiler modu...
i'll take a look at why this is flagging as false positive! weth param cases resolved in #372 , output type is still assuming `address` because of the cast `address` in ``` return address(this).balance; ``` I can resolve this tonight very easily before 0.8.0
2024-05-09T07:26:38Z
0.7
2024-12-27T07:02:55Z
6a9d01f781139e7594e38a9f4afa165200b793bd
[ "integration_tests::test_decompile_weth" ]
[ "integration_tests::test_decompile_vyper", "integration_tests::test_decompile_huff", "integration_tests::test_decompile_ctf", "integration_tests::test_decompile_precompile", "benchmark::benchmark_build_abi_simple", "benchmark::benchmark_decompile_yul_simple", "benchmark::benchmark_decompile_solidity_sim...
[]
[ "benchmark::benchmark_build_abi_complex", "benchmark::benchmark_decompile_yul_complex" ]
nats-io/nats.rs
119
nats-io__nats.rs-119
[ "118" ]
9ace00fc4056ec6eab5699c4fcbe1abe9889e2a5
diff --git a/src/asynk/connection.rs b/src/asynk/connection.rs --- a/src/asynk/connection.rs +++ b/src/asynk/connection.rs @@ -1,5 +1,6 @@ use std::io::{self, Error, ErrorKind}; use std::net::IpAddr; +use std::sync::Arc; use std::time::{Duration, Instant}; use crate::asynk::client::Client; diff --git a/src/asynk/...
diff --git a/tests/drop.rs b/tests/drop.rs --- a/tests/drop.rs +++ b/tests/drop.rs @@ -37,3 +37,19 @@ fn async_drop_flushes() -> io::Result<()> { Ok(()) }) } + +#[test] +fn two_connections() -> io::Result<()> { + smol::block_on(async { + let nc1 = nats::asynk::connect("demo.nats.io").await?; + ...
asynk::Connection is shut down when a clone is dropped. #### NATS version (`grep 'name = "nats"' Cargo.lock -A 1`) `version = "0.8.1"` #### rustc version (`rustc --version` - we support Rust 1.37 and up) `rustc 1.46.0 (04488afe3 2020-08-24)` #### Steps or code to reproduce the issue: ```rust #[tokio::te...
I'm guessing this is a regression introduced recently by #113?
2020-11-02T21:42:04Z
0.8
2020-11-02T13:52:41Z
829d8676de3bc1293089f178189efb49eda9d8f3
[ "two_connections" ]
[ "connect_failure", "connect_success", "connect_tls", "async_drop_flushes", "sync_drop_flushes", "src/lib.rs - (line 53)", "src/lib.rs - Connection::publish_with_reply_or_headers (line 661)", "src/options.rs - options::Options::tls_required (line 450)", "src/subscription.rs - subscription::Subscripti...
[ "src/options.rs - options::Options::with_user_pass (line 130)", "src/options.rs - options::Options::with_token (line 113)" ]
[]
rust-num/num
311
rust-num__num-311
[ "310" ]
8964c65f38565fc041e48965249a661bc40c6500
diff --git a/rational/src/lib.rs b/rational/src/lib.rs --- a/rational/src/lib.rs +++ b/rational/src/lib.rs @@ -39,7 +38,7 @@ use integer::Integer; use traits::{FromPrimitive, Float, PrimInt, Num, Signed, Zero, One, Bounded, NumCast}; /// Represents the ratio between 2 numbers. -#[derive(Copy, Clone, Hash, Debug)] +...
diff --git a/rational/src/lib.rs b/rational/src/lib.rs --- a/rational/src/lib.rs +++ b/rational/src/lib.rs @@ -27,8 +27,7 @@ extern crate num_integer as integer; use std::cmp; use std::error::Error; use std::fmt; -#[cfg(test)] -use std::hash; +use std::hash::{Hash, Hasher}; use std::ops::{Add, Div, Mul, Neg, Rem, S...
num_rational::Ratio's Hash is incompatible with Eq. As of 0.1.38, `num_rational::Ratio` implements `PartialEq` and `Eq` by the numeric value, while `Hash` is derived. This violates [the rule of Eq + Hash](https://doc.rust-lang.org/core/hash/trait.Hash.html#hash-and-eq) which is `a == b ⇒ hash(a) == hash(b)` when non-re...
Ugh. Yes, I agree this is wrong, and needs to be fixed. I wish we could just assume they're in reduced form as an invariant, but we'd probably need to make `new_raw` unsafe to signal that contract. I wonder if it's worth trying to be more clever than performing a full GCD-reduction in `Hash`? I'm thinking somet...
2017-06-30T02:35:49Z
0.1
2017-07-10T20:18:12Z
5c7cb7d793655006e10db69127d5b3ee7455b8db
[ "test::test_hash" ]
[ "test::arith::test_div", "test::arith::test_div_0", "test::arith::test_add", "test::arith::test_mul", "test::arith::test_zero", "test::test_cmp", "test::arith::test_neg", "test::test_approximate_float", "test::arith::test_sub", "test::arith::test_rem", "test::test_fract", "test::test_denom", ...
[]
[]
rust-num/num
169
rust-num__num-169
[ "7" ]
8be7e7bab5ffc7f998e713547b67c1a424d3b9b1
diff --git a/src/rational.rs b/src/rational.rs --- a/src/rational.rs +++ b/src/rational.rs @@ -224,33 +224,67 @@ impl Ratio<BigInt> { /* Comparisons */ -// comparing a/b and c/d is the same as comparing a*d and b*c, so we -// abstract that pattern. The following macro takes a trait and either -// a comma-separated...
diff --git a/src/rational.rs b/src/rational.rs --- a/src/rational.rs +++ b/src/rational.rs @@ -597,6 +631,43 @@ mod test { assert!(_1 >= _0 && !(_0 >= _1)); } + #[test] + fn test_cmp_overflow() { + use std::cmp::Ordering; + + // issue #7 example: + let big = Ratio::new(128u8, ...
Comparison of `num::rational::Ratio` is incorrect with overflow <a href="https://github.com/huonw"><img src="https://avatars.githubusercontent.com/u/1203825?v=2" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [huonw](https://github.com/huonw)** _Monday Aug 12, 2013 at 09:23 GMT_ _For earlier dis...
2016-02-23T10:19:56Z
0.1
2017-01-11T23:41:43Z
5c7cb7d793655006e10db69127d5b3ee7455b8db
[ "rational::test::test_cmp_overflow" ]
[ "bigint::bigint_tests::test_abs_sub", "bigint::bigint_tests::test_binary", "bigint::bigint_tests::test_checked_add", "bigint::bigint_tests::test_checked_sub", "bigint::bigint_tests::test_cmp", "bigint::bigint_tests::test_convert_from_biguint", "bigint::bigint_tests::test_convert_from_int", "bigint::bi...
[]
[]
orogene/orogene
290
orogene__orogene-290
[ "166" ]
7d9b476ed2f732485b9f25655ed0598f0c2110aa
diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target .vscode +.DS_Store diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -1680,6 +1680,15 @@ version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28b29a3cd74f0...
diff --git /dev/null b/book/src/commands/login.md new file mode 100644 --- /dev/null +++ b/book/src/commands/login.md @@ -0,0 +1,1 @@ +{{#include ../../../tests/snapshots/help__login.snap:8:}} diff --git /dev/null b/book/src/commands/logout.md new file mode 100644 --- /dev/null +++ b/book/src/commands/logout.md @@ -0,0...
Add `oro login` command with a nice login workflow
2023-08-10T11:40:10Z
0.3
2023-09-27T05:04:43Z
7d9b476ed2f732485b9f25655ed0598f0c2110aa
[ "add_markdown", "reapply_markdown", "logout_markdown", "remove_markdown", "view_markdown", "apply_markdown", "ping_markdown" ]
[ "api::stream_external::test::stream_external", "api::packument::test::packument_fetch", "api::ping::test::ping" ]
[ "login_markdown" ]
[]
mfontanini/presenterm
454
mfontanini__presenterm-454
[ "453" ]
5507ea4dfd6c496893321035cf9140c711b797b5
diff --git a/config-file-schema.json b/config-file-schema.json --- a/config-file-schema.json +++ b/config-file-schema.json @@ -282,9 +282,6 @@ }, "OptionsConfig": { "type": "object", - "required": [ - "auto_render_languages" - ], "properties": { "auto_render_languages":...
diff --git a/src/config.rs b/src/config.rs --- a/src/config.rs +++ b/src/config.rs @@ -510,4 +511,9 @@ mod test { let config = KeyBindingsConfig::default(); CommandKeyBindings::try_from(config).expect("construction failed"); } + + #[test] + fn default_options_serde() { + serde_yaml::...
Including Options in a Presentation's Frontmatter Throws an Unrelated Error When trying to include the following frontmatter: ```yaml --- options: end_slide_shorthand: true title: <title> sub_title: <sub> author: Jackson Singleton --- ``` or ```yaml --- title: <title> sub_title: <sub> author: Jackson Singleton opti...
2025-02-15T08:16:25Z
0.10
2025-02-15T00:20:43Z
7437422a0b6b918648577c4eedc9d842916f42be
[ "config::test::default_options_serde" ]
[ "code::padding::test::right_padding::case_1", "code::padding::test::right_padding::case_3", "code::padding::test::right_padding::case_2", "code::padding::test::zero_count", "code::padding::test::right_padding::case_4", "code::snippet::test::code_executable_contents", "code::snippet::test::code_visible_l...
[]
[]
mfontanini/presenterm
395
mfontanini__presenterm-395
[ "392" ]
61cd49f2b2feb258cfae24380ebb22b619aa762f
diff --git a/src/processing/builder.rs b/src/processing/builder.rs --- a/src/processing/builder.rs +++ b/src/processing/builder.rs @@ -466,6 +466,9 @@ impl<'a> PresentationBuilder<'a> { // Ignore any multi line comment; those are assumed to be user comments // Ignore any line that doesn't star...
diff --git a/src/processing/builder.rs b/src/processing/builder.rs --- a/src/processing/builder.rs +++ b/src/processing/builder.rs @@ -1664,6 +1667,8 @@ mod test { #[case::multiline("hello\nworld")] #[case::many_open_braces("{{{")] #[case::many_close_braces("}}}")] + #[case::vim_command("vim: hi")] + ...
ignore vim modeline can't use html comment for vim modeline test.md ```markdown --- title: Presentation author: Author theme: name: terminal-dark --- <!-- vim: set fenc=utf-8 spell spl=en: --> ``` start presentation error: ```sh Error loading presentation: error p...
You can set a command prefix for now (see [docs](https://mfontanini.github.io/presenterm/guides/configuration.html#command_prefix)) to disambiguate between vim commands and presenterm's. I will fix this tho so vim prefixed commands are skipped given I presume you're not the only one with this issue. Hi, thx. that i...
2024-11-15T07:51:03Z
0.9
2024-11-14T23:52:24Z
fd9a1284b2b6acd9f0a3708b643147bafc8a2512
[ "processing::builder::test::ignore_comments::case_5_padded_vim_command", "processing::builder::test::ignore_comments::case_4_vim_command" ]
[ "diff::test::different_colors", "diff::test::different_column", "diff::test::chunk_change", "diff::test::different_column_layout", "diff::test::different_text", "custom::test::default_bindings", "diff::test::different_text_alignment", "diff::test::no_slide_changes", "demo::test::demo_presentation", ...
[]
[]
mfontanini/presenterm
356
mfontanini__presenterm-356
[ "355" ]
9e87136dfde3cd2a7107c0b405024a516cd5c4de
diff --git a/src/processing/code.rs b/src/processing/code.rs --- a/src/processing/code.rs +++ b/src/processing/code.rs @@ -51,7 +51,7 @@ impl<'a> CodePreparer<'a> { let padding = " ".repeat(horizontal_padding as usize); let padder = NumberPadder::new(code.visible_lines(self.hidden_line_prefix).count()...
diff --git a/src/processing/code.rs b/src/processing/code.rs --- a/src/processing/code.rs +++ b/src/processing/code.rs @@ -770,4 +770,11 @@ println!("Hello world"); let code = Snippet { contents, language: SnippetLanguage::Rust, attributes: Default::default() }; assert_eq!(expected, code.executable_co...
Tabs in codeblocks behave unexpectedly ![image](https://github.com/user-attachments/assets/f4fb7cc8-1bab-4861-afe5-fc928c7fec5a) In this example the second function (main) uses tabs instead of spaces.
Ughhhhhh. I'll replace it with 4 spaces. Thanks!
2024-08-21T08:11:17Z
0.8
2024-08-21T01:16:16Z
9e87136dfde3cd2a7107c0b405024a516cd5c4de
[ "processing::code::test::tabs_in_snippet" ]
[ "diff::test::chunk_change", "diff::test::different_colors", "diff::test::different_column_layout", "diff::test::different_column", "custom::test::default_bindings", "diff::test::different_text", "diff::test::different_text_alignment", "diff::test::no_slide_changes", "diff::test::presentation_changed...
[]
[]
mfontanini/presenterm
347
mfontanini__presenterm-347
[ "344" ]
3cffa040778fbbb85e7e31fdaaa3a99a3572257e
diff --git a/src/processing/padding.rs b/src/processing/padding.rs --- a/src/processing/padding.rs +++ b/src/processing/padding.rs @@ -6,7 +6,7 @@ pub(crate) struct NumberPadder { impl NumberPadder { pub(crate) fn new(upper_bound: usize) -> Self { - let width = upper_bound.ilog10() as usize + 1; + ...
diff --git a/src/processing/padding.rs b/src/processing/padding.rs --- a/src/processing/padding.rs +++ b/src/processing/padding.rs @@ -37,4 +37,9 @@ mod test { let rendered: Vec<_> = numbers.iter().map(|n| padder.pad_right(*n)).collect(); assert_eq!(rendered, expected); } + + #[test] + fn z...
Presenterm will panic/crash if you hide all lines in a code block Reproduce: ```bash /// echo "hi" ``` will cause this: ``` thread 'main' panicked at src/processing/padding.rs:9:33: argument of integer logarithm must be positive note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ...
2024-08-19T03:26:32Z
0.8
2024-08-18T19:31:36Z
9e87136dfde3cd2a7107c0b405024a516cd5c4de
[ "processing::padding::test::zero_count" ]
[ "diff::test::chunk_change", "diff::test::different_colors", "diff::test::different_column", "diff::test::different_column_layout", "diff::test::different_text", "diff::test::different_text_alignment", "custom::test::default_bindings", "diff::test::no_slide_changes", "diff::test::presentation_changed...
[]
[]
mfontanini/presenterm
195
mfontanini__presenterm-195
[ "194" ]
e3a85c58f47693a141d2bda1ac271b52fa8454db
diff --git a/src/main.rs b/src/main.rs --- a/src/main.rs +++ b/src/main.rs @@ -174,7 +174,7 @@ fn run(mut cli: Cli) -> Result<(), Box<dyn std::error::Error>> { args.extend(["--theme", theme]); } if let Some(path) = cli.config_file.as_ref() { - args.extend(["--config-file", &pat...
diff --git a/src/markdown/parse.rs b/src/markdown/parse.rs --- a/src/markdown/parse.rs +++ b/src/markdown/parse.rs @@ -706,17 +716,17 @@ echo hi mom #[test] fn block_quote() { let parsed = parse_single( - r" -> bar + r#" +> bar!@#$%^&*()[]'"{}-=`~,.<>/? > foo > > * a > * b ...
! rendered as \! when in a quote Hi, just made a presentation with this awesome tool for work. However, I think I found something odd. The following file seems to render incorrectly: ```md > Hello! ``` <img width="507" alt="image" src="https://github.com/mfontanini/presenterm/assets/300791/ae6f9f69-cbbe-4a93...
2024-02-12T03:14:14Z
0.6
2024-02-11T19:17:22Z
e3a85c58f47693a141d2bda1ac271b52fa8454db
[ "markdown::parse::test::block_quote" ]
[ "diff::test::chunk_change", "diff::test::different_colors", "diff::test::different_column", "diff::test::different_column_layout", "custom::test::default_bindings", "diff::test::different_text", "diff::test::different_text_alignment", "diff::test::no_slide_changes", "diff::test::presentation_changed...
[]
[]
mfontanini/presenterm
162
mfontanini__presenterm-162
[ "159" ]
b59511caef9e7c3e5b0456e49c47e5190d1e07b0
diff --git a/src/markdown/parse.rs b/src/markdown/parse.rs --- a/src/markdown/parse.rs +++ b/src/markdown/parse.rs @@ -110,8 +110,11 @@ impl<'a> MarkdownParser<'a> { // Remote leading and trailing delimiters before parsing. This is quite poopy but hey, it // works. let contents = contents.str...
diff --git a/src/markdown/parse.rs b/src/markdown/parse.rs --- a/src/markdown/parse.rs +++ b/src/markdown/parse.rs @@ -469,6 +472,8 @@ impl Identifier for NodeValue { #[cfg(test)] mod test { + use rstest::rstest; + use super::*; use crate::markdown::elements::CodeLanguage; use std::path::Path; dif...
Front matter block causing error on Windows On a Windows machine (Windows 11), if I include the yaml matter block and run `presenterm [path]` I get the following error: ``` invalid presentation metadata: deserializing from YAML containing more than one document is not supported ``` If I remove the block, the pr...
Forgot to add, I'm using presenterm version `0.4.1`
2024-01-23T07:03:03Z
0.4
2024-01-22T23:07:19Z
b59511caef9e7c3e5b0456e49c47e5190d1e07b0
[ "markdown::parse::test::front_matter_newlines::case_2_crlf" ]
[ "diff::test::different_column", "diff::test::chunk_change", "diff::test::different_colors", "diff::test::different_column_layout", "custom::test::default_bindings", "diff::test::different_text", "diff::test::different_text_alignment", "diff::test::no_slide_changes", "diff::test::presentation_changed...
[]
[]
mfontanini/presenterm
89
mfontanini__presenterm-89
[ "65" ]
7dac66e1aac4ee8bf80ae6e39136f1082476f8d9
diff --git a/src/builder.rs b/src/builder.rs --- a/src/builder.rs +++ b/src/builder.rs @@ -98,9 +98,16 @@ impl<'a> PresentationBuilder<'a> { /// Build a presentation. pub(crate) fn build(mut self, elements: Vec<MarkdownElement>) -> Result<Presentation, BuildError> { + let mut skip_first = false; ...
diff --git a/src/builder.rs b/src/builder.rs --- a/src/builder.rs +++ b/src/builder.rs @@ -1518,6 +1522,17 @@ mod test { assert_eq!(slides.len(), 3); } + #[test] + fn implicit_slide_ends_with_front_matter() { + let elements = vec![ + MarkdownElement::FrontMatter("theme:\n name: l...
More succint syntax for `slide_end` and `pause` Would you consider supporting an alternative syntax for the commands that currently use HTML comments? I understand that they are "more correct", but I also miss the writability (mitigated by the use of snippets) and readability of https://github.com/maaslalani/slides/...
Can you expand on what you mean by alternative syntax? Do you want an abbreviation? `slides` doesn't support pauses and I know they use thematic breaks (`---`) to end slides but I explicitly went another route because a) `end_slide` is much easier to spot than `---` and b) `---` is a real markdown element that you may ...
2023-12-10T10:46:14Z
0.3
2023-12-10T03:00:26Z
6fd0ee9bcac6e820726544b6fe8a0939c536d7d4
[ "builder::test::implicit_slide_ends_with_front_matter" ]
[ "builder::test::code_with_line_numbers", "builder::test::command_formatting::case_1_pause", "builder::test::command_formatting::case_2_pause", "builder::test::command_formatting::case_3_end_slide", "builder::test::command_formatting::case_6_reset_layout", "builder::test::command_formatting::case_5_column"...
[]
[]
mfontanini/presenterm
25
mfontanini__presenterm-25
[ "22" ]
80b0561c149cda7586f34fc03df4c7c18c0c98bb
diff --git a/src/diff.rs b/src/diff.rs --- a/src/diff.rs +++ b/src/diff.rs @@ -73,6 +73,10 @@ impl ContentDiff for RenderOperation { } (RenderImage(original), RenderImage(updated)) if original != updated => true, (RenderPreformattedLine(original), RenderPreformattedLine(updated)) ...
diff --git a/src/diff.rs b/src/diff.rs --- a/src/diff.rs +++ b/src/diff.rs @@ -136,6 +140,9 @@ mod test { } ))] #[case(RenderOperation::RenderDynamic(Rc::new(Dynamic)))] + #[case(RenderOperation::InitColumnLayout{ columns: vec![1, 2] })] + #[case(RenderOperation::EnterColumn{ column: 1 })] + ...
hot reload doesn't jump to a page when change to column layout is made For example when I change columns from `[2,1]` to `[1,1]` it still reloads, but doesn't jump to the page I changed.
2023-10-24T09:56:18Z
0.2
2023-10-24T02:23:52Z
d280d697725e41172d263c38b01ec4bbe9a325bb
[ "diff::test::different_column", "diff::test::different_column_layout" ]
[ "builder::test::command_formatting::case_2_pause", "builder::test::command_formatting::case_1_pause", "builder::test::command_formatting::case_3_end_slide", "builder::test::command_formatting::case_4_column_layout", "builder::test::command_formatting::case_6_reset_layout", "builder::test::command_formatti...
[]
[]
googleforgames/quilkin
574
googleforgames__quilkin-574
[ "555", "572" ]
de03e95f6aac8d363d0579aef31ab83c0d23d0eb
diff --git a/docs/src/quickstart-netcat.md b/docs/src/quickstart-netcat.md --- a/docs/src/quickstart-netcat.md +++ b/docs/src/quickstart-netcat.md @@ -21,31 +21,19 @@ This routes all UDP packets that `ncat` receives to the local `cat` process, whi ## 2. Start Quilkin -Next, let's configure Quilkin, with a static c...
diff --git a/cloudbuild.yaml b/cloudbuild.yaml --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -46,16 +46,33 @@ steps: args: - build id: build - # Run the built images for 5 seconds to make sure that the entrypoint and default config works out of the box + + # + # Run the built images for 5 seconds i...
Fix `Config::default` impl, and use default when no config is present Previously the default from `serde` and the default from `Default::default` were slightly different (namely admin was null). This fixes that and removes the superfluous requirement to provide a config file at startup since Quilkin is now runtime upda...
**Build Failed :sob:** _Build Id: b027ff2b-cae7-4719-9467-6b420893dc32_ Status: FAILURE - [Cloud Build view](https://console.cloud.google.com/cloud-build/builds/b027ff2b-cae7-4719-9467-6b420893dc32?project=328742829241) - [Cloud Build log download](https://storage.googleapis.com/quilkin-build-logs/log-b027ff2b-ca...
2022-08-25T21:21:41Z
1.5
2022-11-11T22:45:02Z
0f66af6a3740b9f0c36228bc4f51a68d217d1732
[ "config::tests::config_default" ]
[ "config::config_type::tests::get_json_config", "config::slot::tests::watch", "admin::health::tests::panic_hook", "admin::tests::collect_metrics", "config::tests::parse_default_values", "config::tests::parse_management_servers", "endpoint::tests::endpoint_metadata", "filters::capture::config::tests::co...
[]
[]
googleforgames/quilkin
304
googleforgames__quilkin-304
[ "269" ]
c5e564a9b92af6f6ea9d479677884ea831a3d944
diff --git a/src/cluster/cluster_manager.rs b/src/cluster/cluster_manager.rs --- a/src/cluster/cluster_manager.rs +++ b/src/cluster/cluster_manager.rs @@ -14,12 +14,13 @@ * limitations under the License. */ +use std::sync::Arc; + // We use a parking_lot since it's significantly faster under low contention // an...
diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,7 @@ tokio = { version = "1.1.0", features = ["rt-multi-thread", "signal", "test-util tokio-stream = "0.1.2" tonic = "0.4.0" uuid = {version = "0.8.1", default-features = false, features = ["v4"]} +thiserror = "1.0.25" [dev-depend...
Add Error Handling Library Currently quilkin has multiple error types, and it is quite a bit of boilerplate to add all the trait implementations for each one. I think we should decide on an error handling library to use to reduce the boilerplate to errors. Two leading error crates. - [`eyre`](https://docs.rs/eyre...
I think this makes sense to revisit! snafu LGTM! if we decide to. @markmandel wdyt? Yeah, snafu does look good! +1 from me too!
2021-06-28T14:52:55Z
1.0
2021-06-28T21:25:15Z
f3a8bd5a5b1130f7b2dc4ec21390a24dc1fd4876
[ "xds::listener::tests::listener_manager_reject_updates" ]
[ "config::endpoints::tests::new_endpoints", "config::endpoints::tests::upstream_all_iter", "config::endpoints::tests::upstream_some_iter", "config::endpoints::tests::keep", "config::endpoints::tests::retain", "cluster::cluster_manager::tests::static_cluster_manager_metrics", "config::endpoints::tests::up...
[]
[]
googleforgames/quilkin
221
googleforgames__quilkin-221
[ "73" ]
b5e088ffc1d16f1f9bce1d8306fda4eaa8c81551
diff --git a/docs/admin.md b/docs/admin.md --- a/docs/admin.md +++ b/docs/admin.md @@ -14,6 +14,13 @@ admin: The admin interface provides the following endpoints: +## /live + +This provides a liveness probe endpoint, most commonly used in +[Kubernetes based systems](https://kubernetes.io/docs/tasks/configure-pod-...
diff --git /dev/null b/src/proxy/health.rs new file mode 100644 --- /dev/null +++ b/src/proxy/health.rs @@ -0,0 +1,83 @@ +/* + * Copyright 2021 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + *...
Add health endpoint #65 Includes a http server with endpoint for serving metrics. We want to reuse this server to include an endpoint for health checks
Pretty sure this is done, yeah? @iffyio It hasn't been worked on yet. coming to think of it not sure what a health check of the proxy would look like, but at least the server is still a metrics server in the code rather than a generic admin server Weird, I swore we did. Clearly I'm working on too many things at the sa...
2021-03-31T02:22:44Z
1.0
2021-03-30T19:30:59Z
f3a8bd5a5b1130f7b2dc4ec21390a24dc1fd4876
[ "tests::health_server" ]
[ "config::endpoints::tests::new_endpoints", "config::endpoints::tests::upstream_len", "config::endpoints::tests::upstream_all_iter", "config::endpoints::tests::keep", "cluster::cluster_manager::tests::static_cluster_manager_metrics", "config::endpoints::tests::upstream_some_iter", "config::endpoints::tes...
[]
[]
linera-io/linera-protocol
1,980
linera-io__linera-protocol-1980
[ "1970" ]
b0d7efc92bfe0ee7b89a0ce69e1419192d6f5721
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -102,14 +102,12 @@ name = "amm" version = "0.1.0" dependencies = [ "async-graphql", - "bcs", "fungible", "linera-sdk", "matching-engine", "num-bigint", "num-traits", "serde", - "serde_json", ] [[package]] diff --git a/Cargo.lo...
diff --git a/examples/amm/Cargo.toml b/examples/amm/Cargo.toml --- a/examples/amm/Cargo.toml +++ b/examples/amm/Cargo.toml @@ -6,23 +6,17 @@ edition = "2021" [dependencies] async-graphql.workspace = true -bcs.workspace = true fungible.workspace = true linera-sdk.workspace = true matching-engine.workspace = true ...
Remove requirement to have `serde-json` and `bcs` as dependencies in applications # Motivation Some macros assume that the caller has `serde-json` and `bcs` included as dependencies. This leads to the requirement that all Linera applications using the SDK must include those two crates even if they don't use them. Th...
2024-04-30T20:20:33Z
0.4
2024-04-30T13:40:33Z
518b0a6e0097dbad2f6a23f8480884abf56900ee
[ "tests::test_derive_mutation_root" ]
[]
[]
[]
linera-io/linera-protocol
1,745
linera-io__linera-protocol-1745
[ "1692" ]
574ecdca41b1be826ce610f433fa53616ab8b80a
diff --git a/linera-views/src/queue_view.rs b/linera-views/src/queue_view.rs --- a/linera-views/src/queue_view.rs +++ b/linera-views/src/queue_view.rs @@ -450,6 +450,7 @@ where /// # }) /// ``` pub async fn iter_mut(&'a mut self) -> Result<IterMut<'a, T>, ViewError> { + *self.hash.get_mut() = None...
diff --git a/linera-views/tests/queueview_tests.rs b/linera-views/tests/queueview_tests.rs --- a/linera-views/tests/queueview_tests.rs +++ b/linera-views/tests/queueview_tests.rs @@ -14,8 +14,6 @@ pub struct StateView<C> { pub queue: QueueView<C, u8>, } -// TODO(#1692) this suffers from a hash collision — re-en...
`QueueView`'s `HashableView` implementation suffers from a hash collision Reproduction steps: - Check out `e624f9fdf28a7bfcd38bef316d30399ce87400ac` - Apply the following patch to make `queue_view_mutability_check` deterministic: <details><summary>Test determinism patch</summary> <p> ```diff diff --git a/line...
2024-03-04T21:48:39Z
0.4
2024-03-13T16:11:50Z
518b0a6e0097dbad2f6a23f8480884abf56900ee
[ "queue_view_mutability_check" ]
[]
[]
[]
linera-io/linera-protocol
2,901
linera-io__linera-protocol-2901
[ "2819" ]
0d7ba39218b45c8abcf66f121e76cf423fc4777a
diff --git a/linera-base/src/ownership.rs b/linera-base/src/ownership.rs --- a/linera-base/src/ownership.rs +++ b/linera-base/src/ownership.rs @@ -63,7 +63,7 @@ pub struct ChainOwnership { impl ChainOwnership { /// Creates a `ChainOwnership` with a single super owner. - pub fn single(public_key: PublicKey) -...
diff --git a/linera-chain/src/test.rs b/linera-chain/src/test.rs --- a/linera-chain/src/test.rs +++ b/linera-chain/src/test.rs @@ -73,9 +73,10 @@ pub trait BlockTestExt: Sized { /// Returns the block with the specified epoch. fn with_epoch(self, epoch: impl Into<Epoch>) -> Self; - /// Returns a block pro...
Make owners regular by default. Currently the default admin chain owner is a super owner, and the faucet also creates new chains with super owners. It is safer to make both of these default to regular owners. Users can always use the `change-ownership` command to reconfigure their chains later.
2024-11-15T23:39:44Z
0.14
2024-11-25T13:54:25Z
fbe073297c12d67ce87f8f280c64855168428f84
[ "chain::chain_tests::test_block_size_limit" ]
[ "chain::empty_executed_block_size", "inbox::inbox_tests::test_inbox_add_then_remove_mixed", "outbox::outbox_tests::test_outbox", "inbox::inbox_tests::test_inbox_remove_then_add_skippable", "inbox::inbox_tests::test_inbox_add_then_remove_unskippable", "inbox::inbox_tests::test_inbox_add_then_remove_skippab...
[]
[]
linera-io/linera-protocol
691
linera-io__linera-protocol-691
[ "675" ]
ff0c96359dd555f92d468e8ab17f6becaa2c3ccb
diff --git a/examples/crowd-funding/src/contract.rs b/examples/crowd-funding/src/contract.rs --- a/examples/crowd-funding/src/contract.rs +++ b/examples/crowd-funding/src/contract.rs @@ -11,19 +11,17 @@ use fungible::{Account, AccountOwner, Destination}; use linera_sdk::{ base::{Amount, ApplicationId, SessionId},...
diff --git a/examples/reentrant-counter/src/service.rs b/examples/reentrant-counter/src/service.rs --- a/examples/reentrant-counter/src/service.rs +++ b/examples/reentrant-counter/src/service.rs @@ -44,21 +39,21 @@ pub enum Error { InvalidQuery, } -#[cfg(test)] +#[cfg(all(test, target_arch = "wasm32"))] mod te...
Hide generics from linera-views in wasm applications
2023-05-03T02:52:56Z
1.0
2023-05-18T01:22:04Z
2b8fa740f1ddce2b38c1a2f362f1ed8a7d4dc838
[ "tests::test_generate_crypto_hash_code", "tests::test_generate_hash_view_code", "tests::test_generate_save_delete_view_code", "tests::test_generate_view_code", "tests::test_generate_graphql_code" ]
[]
[]
[]
linera-io/linera-protocol
1,506
linera-io__linera-protocol-1506
[ "488" ]
34f4b740f1ae2fe231fe040f3f5c1aa89dca1b4b
diff --git a/linera-execution/src/lib.rs b/linera-execution/src/lib.rs --- a/linera-execution/src/lib.rs +++ b/linera-execution/src/lib.rs @@ -56,18 +56,24 @@ use serde::{Deserialize, Serialize}; use std::{fmt, io, path::Path, str::FromStr, sync::Arc}; use thiserror::Error; -/// An implementation of [`UserContractM...
diff --git a/linera-execution/tests/test_execution.rs b/linera-execution/tests/test_execution.rs --- a/linera-execution/tests/test_execution.rs +++ b/linera-execution/tests/test_execution.rs @@ -938,7 +938,7 @@ async fn test_multiple_messages_from_different_applications() -> anyhow::Result< pub async fn register_mock_...
Reuse application execution runtimes between cross-application calls # Motivation Linera applications currently operate in an actor-model like execution model. Every operation, effect, cross-application call, etc. use a new application runtime specific for handling that request. However, this is not optimal and may ...
2024-01-17T04:00:54Z
1.0
2024-01-18T12:33:38Z
2b8fa740f1ddce2b38c1a2f362f1ed8a7d4dc838
[ "test_simple_session", "test_message_from_session_call", "test_simple_user_operation" ]
[ "ownership::tests::test_ownership_round_timeouts", "system::tests::bytecode_message_index", "system::tests::application_message_index", "wasm::sanitizer::tests::doesnt_change_already_sanitized_bytecode", "system::tests::open_chain_message_index", "applications::applications_tests::test_topological_sort_wi...
[]
[]
linera-io/linera-protocol
1,350
linera-io__linera-protocol-1350
[ "1344" ]
28ffc748d39e8efeb69a51cf1e623852031b80f0
diff --git a/linera-execution/src/execution.rs b/linera-execution/src/execution.rs --- a/linera-execution/src/execution.rs +++ b/linera-execution/src/execution.rs @@ -216,15 +216,28 @@ where contract.execute_message(context, runtime_sender, message) } }); - runtime_actor.ru...
diff --git a/linera-execution/tests/test_execution.rs b/linera-execution/tests/test_execution.rs --- a/linera-execution/tests/test_execution.rs +++ b/linera-execution/tests/test_execution.rs @@ -9,6 +9,7 @@ use self::utils::create_dummy_user_application_description; use linera_base::{ crypto::PublicKey, data...
Panic on user application error during cross-application call # Motivation If a cross-application call fails with a custom error, an assertion fails in `linera_execution::ExecutionStateView::run_user_action`. ``` thread 'tokio-runtime-worker' panicked at /mnt/git/linera-protocol/linera-execution/src/execution...
2023-12-09T01:33:34Z
1.0
2023-12-12T02:21:04Z
2b8fa740f1ddce2b38c1a2f362f1ed8a7d4dc838
[ "test_cross_application_error" ]
[ "test_missing_bytecode_for_user_application", "test_simple_user_operation_with_leaking_session", "test_simple_user_operation" ]
[]
[]
linera-io/linera-protocol
3,168
linera-io__linera-protocol-3168
[ "3163" ]
903b97533c5e28cded60b1c80ac3f2ff99c27d45
diff --git a/CLI.md b/CLI.md --- a/CLI.md +++ b/CLI.md @@ -200,6 +200,7 @@ Open (i.e. activate) a new multi-owner chain deriving the UID from an existing o If they are specified there must be exactly one weight for each owner. If no weights are given, every owner will have weight 100. * `--multi-leader-rounds <M...
diff --git a/linera-base/src/ownership.rs b/linera-base/src/ownership.rs --- a/linera-base/src/ownership.rs +++ b/linera-base/src/ownership.rs @@ -197,6 +204,7 @@ mod tests { super_owners: BTreeSet::from_iter([super_owner]), owners: BTreeMap::from_iter([(owner, 100)]), multi_leade...
Permissionless consensus rounds Add a flag to `ChainOwnership` that completely removes the ownership check in multi-leader rounds.
2025-01-23T17:26:20Z
0.14
2025-01-23T13:20:07Z
fbe073297c12d67ce87f8f280c64855168428f84
[ "chain::chain_tests::test_block_size_limit" ]
[ "chain::empty_block_size", "outbox::outbox_tests::test_outbox", "inbox::inbox_tests::test_inbox_add_then_remove_skippable", "inbox::inbox_tests::test_inbox_remove_then_add_unskippable", "inbox::inbox_tests::test_inbox_add_then_remove_mixed", "inbox::inbox_tests::test_inbox_add_then_remove_unskippable", ...
[]
[]
linera-io/linera-protocol
3,160
linera-io__linera-protocol-3160
[ "3165" ]
6a8789e11ca29ab7e78b1a370a2e13ff1474ce6c
diff --git a/CLI.md b/CLI.md --- a/CLI.md +++ b/CLI.md @@ -92,7 +92,7 @@ A Byzantine-fault tolerant sidechain with low-latency finality and high throughp * `publish-and-create` — Create an application, and publish the required bytecode * `request-application` — Request an application from another chain, so it can be ...
diff --git a/examples/hex-game/tests/hex_game.rs b/examples/hex-game/tests/hex_game.rs --- a/examples/hex-game/tests/hex_game.rs +++ b/examples/hex-game/tests/hex_game.rs @@ -23,7 +23,7 @@ async fn hex_game() { .add_block(|block| { let operation = Operation::Start { board_size: 2,...
Remove `PublicKey` from `ChainOwnership`. If we have permissionless consensus rounds, we cannot use `ChainOwnership` as a lookup table for public keys anymore. It should only care about `Owner`s. We are also using public keys in a few other places where we should be using the `Owner` type. This is an opportunity to cl...
2025-01-22T02:01:09Z
0.14
2025-01-30T09:23:16Z
fbe073297c12d67ce87f8f280c64855168428f84
[ "chain::chain_tests::test_block_size_limit" ]
[ "chain::empty_block_size", "outbox::outbox_tests::test_outbox", "inbox::inbox_tests::test_inbox_add_then_remove_unskippable", "inbox::inbox_tests::test_inbox_add_then_remove_mixed", "inbox::inbox_tests::test_inbox_add_then_remove_skippable", "inbox::inbox_tests::test_inbox_remove_then_add_skippable", "i...
[]
[]
matrix-org/matrix-rust-sdk
3,435
matrix-org__matrix-rust-sdk-3435
[ "3432" ]
6c18bcf748d796518c685cdfce8cefabcbc48e61
diff --git a/crates/matrix-sdk-base/src/store/memory_store.rs b/crates/matrix-sdk-base/src/store/memory_store.rs --- a/crates/matrix-sdk-base/src/store/memory_store.rs +++ b/crates/matrix-sdk-base/src/store/memory_store.rs @@ -206,7 +206,7 @@ impl StateStore for MemoryStore { ); } ...
diff --git a/crates/matrix-sdk-base/src/store/integration_tests.rs b/crates/matrix-sdk-base/src/store/integration_tests.rs --- a/crates/matrix-sdk-base/src/store/integration_tests.rs +++ b/crates/matrix-sdk-base/src/store/integration_tests.rs @@ -58,6 +58,8 @@ pub trait StateStoreIntegrationTests { async fn test_m...
UserAvatarUrl saved as filter in memory_store in https://github.com/matrix-org/matrix-rust-sdk/blob/6c18bcf748d796518c685cdfce8cefabcbc48e61/crates/matrix-sdk-base/src/store/memory_store.rs#L209 and https://github.com/matrix-org/matrix-rust-sdk/blob/6c18bcf748d796518c685cdfce8cefabcbc48e61/crates/matrix-sdk-base/src...
2024-05-20T16:50:23Z
0.8
2024-05-20T09:03:09Z
57919f5480baa99474bb16ecef94525d78e23107
[ "store::memory_store::tests::statestore_integration_tests::test_user_avatar_url_saving" ]
[ "latest_event::tests::test_call_invites_are_suitable", "latest_event::tests::test_encrypted_messages_are_unsuitable", "latest_event::tests::test_different_types_of_messagelike_are_unsuitable", "latest_event::tests::test_polls_are_suitable", "latest_event::tests::test_replacement_events_are_unsuitable", "l...
[]
[]
matrix-org/matrix-rust-sdk
1,456
matrix-org__matrix-rust-sdk-1456
[ "1424" ]
5f933b103322fbfedcdb852e0f6fd02cdb3bba0f
diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -82,8 +82,8 @@ use crate::{ Signatures, }, verification::{Verification, VerificationMachine, VerificationReques...
diff --git a/bindings/matrix-sdk-crypto-js/tests/device.test.js b/bindings/matrix-sdk-crypto-js/tests/device.test.js --- a/bindings/matrix-sdk-crypto-js/tests/device.test.js +++ b/bindings/matrix-sdk-crypto-js/tests/device.test.js @@ -69,7 +69,39 @@ describe(OlmMachine.name, () => { test('can read a user device'...
User own device is not locally trusted It's probably `LocalTrust::Unset` It's messing up with the logic in EAR and trigger unwanted "You have unverified session" popup. I don't think there is a reason for not making own device as locally trusted?
2023-02-06T23:09:52Z
0.1
2023-02-13T13:01:33Z
5f933b103322fbfedcdb852e0f6fd02cdb3bba0f
[ "machine::tests::create_olm_machine" ]
[ "backups::keys::recovery::tests::base64_decoding", "file_encryption::key_export::tests::test_decode", "file_encryption::attachments::tests::real_decrypt", "file_encryption::attachments::tests::encrypt_decrypt_cycle", "file_encryption::attachments::tests::decrypt_invalid_hash", "backups::keys::recovery::te...
[]
[]
matrix-org/matrix-rust-sdk
2,806
matrix-org__matrix-rust-sdk-2806
[ "2802" ]
3481cde1dc02b4a80b9054bcae5076e94d28f00b
diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -408,6 +408,9 @@ impl OlmMachine { /// This can be useful if we need the results from [`get_identity`] or /// [`get_user...
diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -4053,4 +4054,52 @@ pub(crate) mod tests { "Our identity should not be verified when there's a mismatch in the cross-...
Deadlock in `OlmMachine::wait_if_user_pending` https://github.com/matrix-org/matrix-rust-sdk/pull/2792 (specifically, https://github.com/matrix-org/matrix-rust-sdk/commit/380735ab46ffc6c94f42406e307bb989b197ad01#diff-0490ba44b7c253f252ee1c54b2a46ee9fa3f75d92b2206785eeaf5becf2a6730L1612-R1618) appears to have introduced...
2023-11-02T17:43:29Z
0.8
2023-11-03T10:36:55Z
57919f5480baa99474bb16ecef94525d78e23107
[ "machine::tests::test_wait_on_key_query_doesnt_block_store" ]
[ "ciphers::test::mac_decoding", "file_encryption::key_export::tests::test_decode", "ciphers::test::encryption_roundtrip", "file_encryption::attachments::tests::encrypt_decrypt_cycle", "file_encryption::attachments::tests::decrypt_invalid_hash", "file_encryption::attachments::tests::real_decrypt", "file_e...
[]
[]
matrix-org/matrix-rust-sdk
2,413
matrix-org__matrix-rust-sdk-2413
[ "2300" ]
47e7360b046b1eeee44491a271a987e44ca25ae2
diff --git a/crates/matrix-sdk-base/src/client.rs b/crates/matrix-sdk-base/src/client.rs --- a/crates/matrix-sdk-base/src/client.rs +++ b/crates/matrix-sdk-base/src/client.rs @@ -468,7 +468,7 @@ impl BaseClient { pub(crate) async fn handle_state( &self, raw_events: &[Raw<AnySyncStateEvent>], - ...
diff --git a/crates/matrix-sdk-base/src/sliding_sync.rs b/crates/matrix-sdk-base/src/sliding_sync.rs --- a/crates/matrix-sdk-base/src/sliding_sync.rs +++ b/crates/matrix-sdk-base/src/sliding_sync.rs @@ -17,16 +17,17 @@ use std::ops::Deref; #[cfg(feature = "e2e-encryption")] use matrix_sdk_common::deserialized_respo...
Leaving a DM returns the room that was left when calling get_dm_room This is all through the FFI. Steps to reproduce: - Create a DM room with someone (EX code [here](https://github.com/vector-im/element-x-ios/blob/6b030172e59d8fb3307018e1a7f18c1f985515a2/ElementX/Sources/Services/Client/ClientProxy.swift#L160-L161))...
This is very likely caused by the thing this `FIXME` explains: https://github.com/matrix-org/matrix-rust-sdk/blob/0f6dd644b5dcc5377ed0a1153a581ebb62bd613b/crates/matrix-sdk-base/src/sliding_sync.rs#L309-L321 One thing to note, we do mark a room as left based on a 200 response on the `/leave` endpoint: https://gi...
2023-08-16T19:04:06Z
0.2
2023-08-17T13:32:59Z
2f3cab431f0a26222711fb0b8d48c8481086a85b
[ "sliding_sync::test::left_a_room_from_required_state_event", "sliding_sync::test::left_a_room_from_timeline_state_event" ]
[ "latest_event::test::different_types_of_messagelike_are_unsuitable", "latest_event::test::encrypted_messages_are_unsuitable", "latest_event::test::room_messages_are_suitable", "latest_event::test::state_events_are_unsuitable", "latest_event::test::redacted_messages_are_unsuitable", "rooms::normal::test::s...
[]
[]
matrix-org/matrix-rust-sdk
3,911
matrix-org__matrix-rust-sdk-3911
[ "3906" ]
224292ab3e3425600a6ee25aa5df17eb197c3831
diff --git a/crates/matrix-sdk-ui/src/timeline/builder.rs b/crates/matrix-sdk-ui/src/timeline/builder.rs --- a/crates/matrix-sdk-ui/src/timeline/builder.rs +++ b/crates/matrix-sdk-ui/src/timeline/builder.rs @@ -157,7 +157,6 @@ impl TimelineBuilder { let (room_event_cache, event_cache_drop) = room.event_cache()...
diff --git a/crates/matrix-sdk-ui/tests/integration/timeline/focus_event.rs b/crates/matrix-sdk-ui/tests/integration/timeline/focus_event.rs --- a/crates/matrix-sdk-ui/tests/integration/timeline/focus_event.rs +++ b/crates/matrix-sdk-ui/tests/integration/timeline/focus_event.rs @@ -20,7 +20,7 @@ use assert_matches2::as...
timeline: handle local echoes on non-live timelines too Fixes https://github.com/element-hq/element-x-ios/issues/3208, and will allow local echoes to display for pinned timelines too.
2024-08-29T21:14:29Z
0.8
2024-09-02T09:08:47Z
57919f5480baa99474bb16ecef94525d78e23107
[ "timeline::focus_event::test_focused_timeline_local_echoes" ]
[ "room_list_service::filters::fuzzy_match_room_name::tests::test_empty_pattern", "room_list_service::filters::fuzzy_match_room_name::tests::test_no_pattern", "room_list_service::filters::fuzzy_match_room_name::tests::test_literal", "room_list_service::filters::fuzzy_match_room_name::tests::test_ignore_case", ...
[]
[ "sync_service::test_sync_service_state" ]
matrix-org/matrix-rust-sdk
3,405
matrix-org__matrix-rust-sdk-3405
[ "3379" ]
83427b325cd5a407537f97aa5aca2c30e40161d2
diff --git a/crates/matrix-sdk-ui/src/timeline/inner/mod.rs b/crates/matrix-sdk-ui/src/timeline/inner/mod.rs --- a/crates/matrix-sdk-ui/src/timeline/inner/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/inner/mod.rs @@ -1125,6 +1125,8 @@ impl TimelineInner { &self.room_data_provider } + /// Given an e...
diff --git a/crates/matrix-sdk-ui/tests/integration/timeline/replies.rs b/crates/matrix-sdk-ui/tests/integration/timeline/replies.rs --- a/crates/matrix-sdk-ui/tests/integration/timeline/replies.rs +++ b/crates/matrix-sdk-ui/tests/integration/timeline/replies.rs @@ -4,7 +4,10 @@ use assert_matches::assert_matches; use...
FFI: Timeline::fetch_details_for_event updates the item's stable ID. Calling `fetch_details_for_event` to get the reply details of an item <del>works fine when the request succeeds. But when it fails, the item is replaced with a new stable ID.</del> replaces the item with a new one, changing its stable ID. In EXI this ...
The relevant logs for this happening: ``` 2024-05-02T15:47:27.096576Z INFO elementx: Fetching event details for $YN_K1QEhAV_UGH4iY1VIzNwMvpBfuRUwscEFhyjEKu8 | TimelineProxy.swift:126 | spans: root 2024-05-02T15:47:27.096763Z DEBUG matrix_sdk::http_client: Sending request | crates/matrix-sdk/src/http_client/mod.rs...
2024-05-13T21:49:26Z
0.8
2024-05-13T16:29:36Z
57919f5480baa99474bb16ecef94525d78e23107
[ "timeline::replies::test_in_reply_to_details" ]
[ "room_list_service::filters::any::tests::test_two_filters_with_true_false", "room_list_service::filters::any::tests::test_one_filter_is_false", "room_list_service::filters::all::tests::test_two_filters", "room_list_service::filters::any::tests::test_two_filters_with_true_true", "room_list_service::filters::...
[]
[ "sync_service::test_sync_service_state" ]
matrix-org/matrix-rust-sdk
3,328
matrix-org__matrix-rust-sdk-3328
[ "3315" ]
7c68096237f8b3f36781a648f60eb3188ba6678b
diff --git a/crates/matrix-sdk-base/src/sliding_sync.rs b/crates/matrix-sdk-base/src/sliding_sync.rs --- a/crates/matrix-sdk-base/src/sliding_sync.rs +++ b/crates/matrix-sdk-base/src/sliding_sync.rs @@ -528,7 +528,7 @@ impl BaseClient { if let AnySyncStateEvent::RoomMember(member) = &event { ...
diff --git a/crates/matrix-sdk-base/src/sliding_sync.rs b/crates/matrix-sdk-base/src/sliding_sync.rs --- a/crates/matrix-sdk-base/src/sliding_sync.rs +++ b/crates/matrix-sdk-base/src/sliding_sync.rs @@ -784,14 +784,14 @@ mod tests { } #[async_test] - async fn can_process_empty_sliding_sync_response() { +...
Kick or Ban action is not updating the RoomInfo.membership When the current user is kicked or banned from a room, his `roomInfo.membership` is not updated to `LEFT` but stays `JOINED`. If I restart the app, it does get updated, so might be something wrong with the sliding sync? Note from @kegsay : that's by desi...
2024-04-12T23:55:31Z
0.8
2024-04-18T08:38:45Z
57919f5480baa99474bb16ecef94525d78e23107
[ "sliding_sync::tests::test_kick_or_ban_updates_room_to_left" ]
[ "latest_event::tests::test_call_invites_are_suitable", "latest_event::tests::test_different_types_of_messagelike_are_unsuitable", "latest_event::tests::test_encrypted_messages_are_unsuitable", "latest_event::tests::test_polls_are_suitable", "latest_event::tests::test_replacement_events_are_unsuitable", "l...
[]
[]
redlib-org/redlib
146
redlib-org__redlib-146
[ "137" ]
9013e589dd67443c4267b8be58286f5c4ea2790a
diff --git a/.env.example b/.env.example --- a/.env.example +++ b/.env.example @@ -36,6 +36,8 @@ REDLIB_DEFAULT_HIDE_HLS_NOTIFICATION=off REDLIB_DEFAULT_AUTOPLAY_VIDEOS=off # Define a default list of subreddit subscriptions (format: sub1+sub2+sub3) REDLIB_DEFAULT_SUBSCRIPTIONS= +# Define a default list of subreddit ...
diff --git a/src/config.rs b/src/config.rs --- a/src/config.rs +++ b/src/config.rs @@ -231,6 +237,12 @@ fn test_default_subscriptions() { assert_eq!(get_setting("REDLIB_DEFAULT_SUBSCRIPTIONS"), Some("news+bestof".into())); } +#[test] +#[sealed_test(env = [("REDLIB_DEFAULT_FILTERS", "news+bestof")])] +fn test_defau...
💡 Feature request: Default filters ## Is your feature request related to a problem? Please describe. <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> ## Describe the feature you would like to be implemented I would like to have default filters for subreddit...
2024-06-18T12:22:29Z
0.34
2024-07-24T11:31:43Z
9013e589dd67443c4267b8be58286f5c4ea2790a
[ "config::test_default_filters" ]
[ "config::test_deserialize", "oauth::test_creating_device", "server::tests::test_determine_compressor", "utils::tests::format_num_works", "config::test_alt_env_config_precedence", "config::test_config", "config::test_config_legacy", "config::test_default_subscriptions", "config::test_env_config_prece...
[ "oauth::test_oauth_client", "oauth::test_oauth_client_refresh", "oauth::test_oauth_token_exists", "subreddit::test_fetching_subreddit", "utils::test_fetching_ws", "utils::test_fetching_subreddit_quarantined", "client::test_localization_popular", "client::test_obfuscated_share_link", "utils::test_fet...
[]