[Bug] In 'Arch Linux' there some thing going wrong

Describe the bug
In Windows and macOS, the generated code works well.
 void store_dart_post_cobject(
    DartPostCObjectFnType ptr,
  ) {
    return _store_dart_post_cobject(
      ptr,
    );
  }

  late final _store_dart_post_cobjectPtr =
      _lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
          'store_dart_post_cobject');
  late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
      .asFunction<void Function(DartPostCObjectFnType)>();

But in Arch linux, the generate bridge code has been changed.
void store_dart_post_cobject(
    int ptr,
  ) {
    return _store_dart_post_cobject(
      ptr,
    );
  }

  late final _store_dart_post_cobjectPtr =
      _lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int)>>(
          'store_dart_post_cobject');
  late final _store_dart_post_cobject =
      _store_dart_post_cobjectPtr.asFunction<void Function(int)>();

Please have a see: https://github.com/loaden/gitgui/commit/35571cfe67a41b7a1474bb48edc0b8bee09b3c08
Codegen logs with RUST_LOG=debug environment variable
[arch@lucky gitgui]$ just gen
flutter_rust_bridge_codegen  --rust-input native/src/api.rs --rust-output native/src/bridge_api.rs --dart-output lib/bridge_api.dart --class-name NativeApi --inline-rust
2023/09/24 21:31:21 [INFO] Running cargo expand in '/home/arch/.dev/projects/gitgui/native'
2023/09/24 21:32:42 [INFO] Phase: Validate config(s)
2023/09/24 21:32:42 [INFO] Picked config: Opts { rust_input_path: "/home/arch/.dev/projects/gitgui/native/src/api.rs", dart_output_path: "/home/arch/.dev/projects/gitgui/lib/bridge_api.dart", dart_decl_output_path: None, c_output_path: ["/tmp/.tmptiUTIZ.h"], rust_crate_dir: "/home/arch/.dev/projects/gitgui/native", rust_output_path: "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs", class_name: "NativeApi", dart_format_line_length: 80, dart_enums_style: false, skip_add_mod_to_lib: false, llvm_path: ["/opt/homebrew/opt/llvm", "/usr/local/opt/llvm", "/usr/lib/llvm-9", "/usr/lib/llvm-10", "/usr/lib/llvm-11", "/usr/lib/llvm-12", "/usr/lib/llvm-13", "/usr/lib/llvm-14", "/usr/lib/", "/usr/lib64/", "C:/Program Files/llvm", "C:/msys64/mingw64"], llvm_compiler_opts: "", manifest_path: "/home/arch/.dev/projects/gitgui/native/Cargo.toml", dart_root: Some("/home/arch/.dev/projects/gitgui"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: false, inline_rust: true, bridge_in_method: true, extra_headers: "", dart3: true, keep_going: false }
2023/09/24 21:32:42 [INFO] Phase: Parse source code to AST, then to IR
2023/09/24 21:32:42 [INFO] Phase: Transform IR
2023/09/24 21:32:42 [INFO] Phase: Generate Rust code
2023/09/24 21:32:42 [INFO] Phase: Generate Dart code
2023/09/24 21:32:43 [INFO] Phase: Generating Dart bindings for Rust
2023/09/24 21:33:04 [WARN] See keywords such as `error` in command output. Maybe there is a problem? command=cd "/home/arch/.dev/projects/gitgui" && "sh" "-c" "\"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"/tmp/.tmpYnQmaS\"" output=Output { status: ExitStatus(unix_wait_status(0)), stdout: "Running in Directory: '/home/arch/.dev/projects/gitgui'\nInput Headers: [/tmp/.tmpEYdsfx.h]\n[SEVERE] : Header /tmp/.tmpEYdsfx.h: Total errors/warnings: 1.\n[SEVERE] :     /tmp/.tmpEYdsfx.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: Generated declaration '_Dart_Handle' start's with '_' and therefore will be private.\nFinished, Bindings generated in /tmp/.tmppCnN2t\n", stderr: "Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!\n" }
the path is "/tmp/.tmptiUTIZ.h"
2023/09/24 21:33:04 [INFO] Phase: Running build_runner
2023/09/24 21:33:04 [INFO] Phase: Formatting Dart code
2023/09/24 21:33:25 [INFO] Success!
2023/09/24 21:33:25 [INFO] Now go and use it :)

To Reproduce
No response
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of clang++
No response
Version of ffigen
No response
Additional context
No response

Hi, could you please show the logs when running codegen? It is likely the codegen has some errors

It's only happened on Arch (LLVM16), today i have tested on Debian 12 with LLVM14, it's looks well. I'll try paste the codegen logs when i come back to work on monday.

Sure, take your time!

Here is the log with --verbose args.
[arch@lucky gitgui]$ just gen
flutter_rust_bridge_codegen  --rust-input native/src/api.rs --rust-output native/src/bridge_api.rs --dart-output lib/bridge_api.dart --class-name NativeApi --inline-rust
2023/09/24 21:31:21 [INFO] Running cargo expand in '/home/arch/.dev/projects/gitgui/native'
2023/09/24 21:32:42 [INFO] Phase: Validate config(s)
2023/09/24 21:32:42 [INFO] Picked config: Opts { rust_input_path: "/home/arch/.dev/projects/gitgui/native/src/api.rs", dart_output_path: "/home/arch/.dev/projects/gitgui/lib/bridge_api.dart", dart_decl_output_path: None, c_output_path: ["/tmp/.tmptiUTIZ.h"], rust_crate_dir: "/home/arch/.dev/projects/gitgui/native", rust_output_path: "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs", class_name: "NativeApi", dart_format_line_length: 80, dart_enums_style: false, skip_add_mod_to_lib: false, llvm_path: ["/opt/homebrew/opt/llvm", "/usr/local/opt/llvm", "/usr/lib/llvm-9", "/usr/lib/llvm-10", "/usr/lib/llvm-11", "/usr/lib/llvm-12", "/usr/lib/llvm-13", "/usr/lib/llvm-14", "/usr/lib/", "/usr/lib64/", "C:/Program Files/llvm", "C:/msys64/mingw64"], llvm_compiler_opts: "", manifest_path: "/home/arch/.dev/projects/gitgui/native/Cargo.toml", dart_root: Some("/home/arch/.dev/projects/gitgui"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: false, inline_rust: true, bridge_in_method: true, extra_headers: "", dart3: true, keep_going: false }
2023/09/24 21:32:42 [INFO] Phase: Parse source code to AST, then to IR
2023/09/24 21:32:42 [INFO] Phase: Transform IR
2023/09/24 21:32:42 [INFO] Phase: Generate Rust code
2023/09/24 21:32:42 [INFO] Phase: Generate Dart code
2023/09/24 21:32:43 [INFO] Phase: Generating Dart bindings for Rust
2023/09/24 21:33:04 [WARN] See keywords such as `error` in command output. Maybe there is a problem? command=cd "/home/arch/.dev/projects/gitgui" && "sh" "-c" "\"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"/tmp/.tmpYnQmaS\"" output=Output { status: ExitStatus(unix_wait_status(0)), stdout: "Running in Directory: '/home/arch/.dev/projects/gitgui'\nInput Headers: [/tmp/.tmpEYdsfx.h]\n[SEVERE] : Header /tmp/.tmpEYdsfx.h: Total errors/warnings: 1.\n[SEVERE] :     /tmp/.tmpEYdsfx.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: Generated declaration '_Dart_Handle' start's with '_' and therefore will be private.\nFinished, Bindings generated in /tmp/.tmppCnN2t\n", stderr: "Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!\n" }
the path is "/tmp/.tmptiUTIZ.h"
2023/09/24 21:33:04 [INFO] Phase: Running build_runner
2023/09/24 21:33:04 [INFO] Phase: Formatting Dart code
2023/09/24 21:33:25 [INFO] Success!
2023/09/24 21:33:25 [INFO] Now go and use it :)

More logs after export RUST_LOG=debug
[arch@lucky gitgui]$ export RUST_LOG=debug
[arch@lucky gitgui]$ just gen
flutter_rust_bridge_codegen  --rust-input native/src/api.rs --rust-output native/src/bridge_api.rs --dart-output lib/bridge_api.dart --class-name NativeApi --inline-rust
2023/09/24 21:35:37 [DEBUG] configs=[Opts { rust_input_path: "/home/arch/.dev/projects/gitgui/native/src/api.rs", dart_output_path: "/home/arch/.dev/projects/gitgui/lib/bridge_api.dart", dart_decl_output_path: None, c_output_path: ["/tmp/.tmp83RH6w.h"], rust_crate_dir: "/home/arch/.dev/projects/gitgui/native", rust_output_path: "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs", class_name: "NativeApi", dart_format_line_length: 80, dart_enums_style: false, skip_add_mod_to_lib: false, llvm_path: ["/opt/homebrew/opt/llvm", "/usr/local/opt/llvm", "/usr/lib/llvm-9", "/usr/lib/llvm-10", "/usr/lib/llvm-11", "/usr/lib/llvm-12", "/usr/lib/llvm-13", "/usr/lib/llvm-14", "/usr/lib/", "/usr/lib64/", "C:/Program Files/llvm", "C:/msys64/mingw64"], llvm_compiler_opts: "", manifest_path: "/home/arch/.dev/projects/gitgui/native/Cargo.toml", dart_root: Some("/home/arch/.dev/projects/gitgui"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: false, inline_rust: true, bridge_in_method: true, extra_headers: "", dart3: true, keep_going: false }]
2023/09/24 21:35:37 [INFO] Running cargo expand in '/home/arch/.dev/projects/gitgui/native'
2023/09/24 21:35:37 [DEBUG] execute command: bin=cargo args="expand --theme=none --ugly" current_dir=Some("/home/arch/.dev/projects/gitgui/native") cmd=cd "/home/arch/.dev/projects/gitgui/native" && "cargo" "expand" "--theme=none" "--ugly"
2023/09/24 21:35:37 [DEBUG] command=cd "/home/arch/.dev/projects/gitgui/native" && "cargo" "expand" "--theme=none" "--ugly" stdout=#![feature(prelude_import)]
#[prelude_import]
use std::prelude::rust_2021::*;
#[macro_use]
extern crate std;
mod bridge_api {

    #![allow(non_camel_case_types, unused, clippy :: redundant_closure, clippy
    :: useless_conversion, clippy :: unit_arg, clippy :: double_parens,
    non_snake_case, clippy :: too_many_arguments)]
    use crate::api::*;
    use core::panic::UnwindSafe;
    use flutter_rust_bridge::rust2dart::IntoIntoDart;
    use flutter_rust_bridge::*;
    use std::ffi::c_void;
    use std::sync::Arc;
    fn wire_times_from_rust_impl(port_: MessagePort,
        left: impl Wire2Api<usize> + UnwindSafe,
        right: impl Wire2Api<usize> + UnwindSafe) {
        FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, usize,
            _>(WrapInfo {
                debug_name: "times_from_rust",
                port: Some(port_),
                mode: FfiCallMode::Normal,
            },
            move ||
                {
                    let api_left = left.wire2api();
                    let api_right = right.wire2api();
                    move |task_callback|
                        Result::<_, ()>::Ok(times_from_rust(api_left, api_right))
                })
    }
    fn wire_hello_from_rust_impl(port_: MessagePort,
        count: impl Wire2Api<usize> + UnwindSafe) {
        FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, String,
            _>(WrapInfo {
                debug_name: "hello_from_rust",
                port: Some(port_),
                mode: FfiCallMode::Normal,
            },
            move ||
                {
                    let api_count = count.wire2api();
                    move |task_callback|
                        Result::<_, ()>::Ok(hello_from_rust(api_count))
                })
    }
    pub trait Wire2Api<T> {
        fn wire2api(self)
        -> T;
    }
    impl<T, S> Wire2Api<Option<T>> for *mut S where *mut S: Wire2Api<T> {
        fn wire2api(self) -> Option<T> {
            (!self.is_null()).then(|| self.wire2api())
        }
    }
    impl Wire2Api<usize> for usize {
        fn wire2api(self) -> usize { self }
    }
    #[allow(missing_copy_implementations)]
    #[allow(non_camel_case_types)]
    #[allow(dead_code)]
    pub struct FLUTTER_RUST_BRIDGE_HANDLER {
        __private_field: (),
    }
    #[doc(hidden)]
    pub static FLUTTER_RUST_BRIDGE_HANDLER: FLUTTER_RUST_BRIDGE_HANDLER =
        FLUTTER_RUST_BRIDGE_HANDLER { __private_field: () };
    impl ::lazy_static::__Deref for FLUTTER_RUST_BRIDGE_HANDLER {
        type Target = support::DefaultHandler;
        fn deref(&self) -> &support::DefaultHandler {
            #[inline(always)]
            fn __static_ref_initialize() -> support::DefaultHandler {
                Default::default()
            }
            #[inline(always)]
            fn __stability() -> &'static support::DefaultHandler {
                static LAZY:
                    ::lazy_static::lazy::Lazy<support::DefaultHandler> =
                    ::lazy_static::lazy::Lazy::INIT;
                LAZY.get(__static_ref_initialize)
            }
            __stability()
        }
    }
    impl ::lazy_static::LazyStatic for FLUTTER_RUST_BRIDGE_HANDLER {
        fn initialize(lazy: &Self) { let _ = &**lazy; }
    }
    #[cfg(not(target_family = "wasm"))]
    mod io {
        use super::*;
        #[no_mangle]
        pub extern "C" fn wire_times_from_rust(port_: i64, left: usize,
            right: usize) {
            wire_times_from_rust_impl(port_, left, right)
        }
        #[no_mangle]
        pub extern "C" fn wire_hello_from_rust(port_: i64, count: usize) {
            wire_hello_from_rust_impl(port_, count)
        }
        pub trait NewWithNullPtr {
            fn new_with_null_ptr()
            -> Self;
        }
        impl<T> NewWithNullPtr for *mut T {
            fn new_with_null_ptr() -> Self { std::ptr::null_mut() }
        }
        #[no_mangle]
        pub extern "C" fn free_WireSyncReturn(ptr: support::WireSyncReturn) {
            unsafe { let _ = support::box_from_leak_ptr(ptr); };
        }
    }
    #[cfg(not(target_family = "wasm"))]
    pub use io::*;
}
mod api {
    pub fn times_from_rust(left: usize, right: usize) -> usize {
        left * right
    }
    pub fn hello_from_rust(count: usize) -> String {
        let mut s = "".to_string();
        for _ in 0..count { s += "Hello from Rust." }
        { ::std::io::_print(format_args!("{0}, {1}\n", s, count)); };
        s
    }
}
pub fn add(left: usize, right: usize) -> usize { left + right }
 stderr=    Checking native v0.1.0 (/home/arch/.dev/projects/gitgui/native)
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s

2023/09/24 21:35:38 [DEBUG] Trying to parse "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs"
2023/09/24 21:35:38 [DEBUG] Trying to parse "/home/arch/.dev/projects/gitgui/native/src/api.rs"
2023/09/24 21:35:38 [DEBUG] parse_function function name: Ident(times_from_rust)
2023/09/24 21:35:38 [DEBUG] parse_function function name: Ident(hello_from_rust)
2023/09/24 21:35:38 [INFO] Phase: Validate config(s)
2023/09/24 21:35:38 [INFO] Picked config: Opts { rust_input_path: "/home/arch/.dev/projects/gitgui/native/src/api.rs", dart_output_path: "/home/arch/.dev/projects/gitgui/lib/bridge_api.dart", dart_decl_output_path: None, c_output_path: ["/tmp/.tmp83RH6w.h"], rust_crate_dir: "/home/arch/.dev/projects/gitgui/native", rust_output_path: "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs", class_name: "NativeApi", dart_format_line_length: 80, dart_enums_style: false, skip_add_mod_to_lib: false, llvm_path: ["/opt/homebrew/opt/llvm", "/usr/local/opt/llvm", "/usr/lib/llvm-9", "/usr/lib/llvm-10", "/usr/lib/llvm-11", "/usr/lib/llvm-12", "/usr/lib/llvm-13", "/usr/lib/llvm-14", "/usr/lib/", "/usr/lib64/", "C:/Program Files/llvm", "C:/msys64/mingw64"], llvm_compiler_opts: "", manifest_path: "/home/arch/.dev/projects/gitgui/native/Cargo.toml", dart_root: Some("/home/arch/.dev/projects/gitgui"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: false, inline_rust: true, bridge_in_method: true, extra_headers: "", dart3: true, keep_going: false }
2023/09/24 21:35:38 [INFO] Phase: Parse source code to AST, then to IR
2023/09/24 21:35:38 [DEBUG] Trying to parse "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs"
2023/09/24 21:35:38 [DEBUG] Trying to parse "/home/arch/.dev/projects/gitgui/native/src/api.rs"
2023/09/24 21:35:38 [DEBUG] parse_function function name: Ident(times_from_rust)
2023/09/24 21:35:38 [DEBUG] parse_function function name: Ident(hello_from_rust)
2023/09/24 21:35:38 [INFO] Phase: Transform IR
2023/09/24 21:35:38 [INFO] Phase: Generate Rust code
2023/09/24 21:35:38 [DEBUG] execute format_rust path=["/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs"]
2023/09/24 21:35:38 [DEBUG] execute command: bin=rustfmt args="/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs" current_dir=None cmd="rustfmt" "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs"
2023/09/24 21:35:38 [DEBUG] command="rustfmt" "/home/arch/.dev/projects/gitgui/native/src/bridge_api.rs" stdout= stderr=
2023/09/24 21:35:38 [INFO] Phase: Generate Dart code
2023/09/24 21:35:38 [DEBUG] Guessing toolchain the runner is run into
2023/09/24 21:35:38 [DEBUG] execute command: bin=sh args="-c \"flutter\" \"--version\"" current_dir=None cmd="sh" "-c" "\"flutter\" \"--version\""
2023/09/24 21:35:38 [DEBUG] command="sh" "-c" "\"flutter\" \"--version\"" stdout=Flutter 3.13.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 12fccda598 (5 天前) • 2023-09-19 13:56:11 -0700
Engine • revision bd986c5ed2
Tools • Dart 3.1.2 • DevTools 2.25.0
 stderr=
2023/09/24 21:35:38 [DEBUG] Checking presence of ffi in dependencies at /home/arch/.dev/projects/gitgui
2023/09/24 21:35:38 [DEBUG] Checking presence of ffi in dependencies at /home/arch/.dev/projects/gitgui
2023/09/24 21:35:38 [DEBUG] Checking presence of ffigen in dev_dependencies at /home/arch/.dev/projects/gitgui
2023/09/24 21:35:38 [DEBUG] Checking presence of ffigen in dev_dependencies at /home/arch/.dev/projects/gitgui
2023/09/24 21:35:38 [INFO] Phase: Generating Dart bindings for Rust
2023/09/24 21:35:38 [DEBUG] execute cbindgen rust_crate_dir=/home/arch/.dev/projects/gitgui/native c_output_path=/tmp/.tmpLRfPH9.h
2023/09/24 21:35:38 [DEBUG] cbindgen config: Config {
    header: None,
    includes: [],
    sys_includes: [
        "stdbool.h",
        "stdint.h",
        "stdlib.h",
    ],
    after_includes: Some(
        "typedef struct _Dart_Handle* Dart_Handle;",
    ),
    trailer: None,
    include_guard: None,
    pragma_once: false,
    no_includes: true,
    autogen_warning: None,
    include_version: false,
    namespace: None,
    namespaces: None,
    using_namespaces: None,
    braces: SameLine,
    line_length: 100,
    tab_width: 2,
    line_endings: LF,
    language: C,
    cpp_compat: false,
    style: Both,
    sort_by: None,
    usize_is_size_t: false,
    parse: ParseConfig {
        parse_deps: false,
        include: None,
        exclude: [],
        expand: ParseExpandConfig {
            crates: [],
            all_features: false,
            default_features: true,
            features: None,
            profile: Debug,
        },
        clean: false,
        extra_bindings: [],
    },
    export: ExportConfig {
        include: [],
        exclude: [],
        rename: {},
        pre_body: {},
        body: {},
        prefix: None,
        item_types: [],
        renaming_overrides_prefixing: false,
        mangle: MangleConfig {
            rename_types: None,
            remove_underscores: false,
        },
    },
    macro_expansion: MacroExpansionConfig {
        bitflags: false,
    },
    layout: LayoutConfig {
        packed: None,
        aligned_n: None,
    },
    function: FunctionConfig {
        prefix: None,
        postfix: None,
        must_use: None,
        args: Auto,
        rename_args: None,
        swift_name_macro: None,
        sort_by: None,
        no_return: None,
    },
    structure: StructConfig {
        rename_fields: None,
        derive_constructor: false,
        derive_eq: false,
        derive_neq: false,
        derive_lt: false,
        derive_lte: false,
        derive_gt: false,
        derive_gte: false,
        derive_ostream: false,
        associated_constants_in_body: false,
        must_use: None,
    },
    enumeration: EnumConfig {
        rename_variants: None,
        rename_variant_name_fields: SnakeCase,
        add_sentinel: false,
        prefix_with_name: false,
        derive_helper_methods: false,
        derive_const_casts: false,
        derive_mut_casts: false,
        cast_assert_name: None,
        must_use: None,
        derive_tagged_enum_destructor: false,
        derive_tagged_enum_copy_constructor: false,
        derive_tagged_enum_copy_assignment: false,
        derive_ostream: false,
        enum_class: true,
        private_default_tagged_enum_constructor: false,
    },
    constant: ConstantConfig {
        allow_static_const: true,
        allow_constexpr: true,
        sort_by: None,
    },
    defines: {},
    documentation: true,
    documentation_style: Auto,
    documentation_length: Full,
    pointer: PtrConfig {
        non_null_attribute: None,
    },
    only_target_dependencies: false,
    cython: CythonConfig {
        header: None,
        cimports: {},
    },
}
2023/09/24 21:35:38 [DEBUG] Parsing crate native
2023/09/24 21:35:38 [INFO] Take native::DartPort.
2023/09/24 21:35:38 [INFO] Take native::DartPostCObjectFnType.
2023/09/24 21:35:38 [INFO] Take native::store_dart_post_cobject.
2023/09/24 21:35:38 [INFO] Take native::get_dart_object.
2023/09/24 21:35:38 [INFO] Take native::drop_dart_object.
2023/09/24 21:35:38 [INFO] Take native::new_dart_opaque.
2023/09/24 21:35:38 [INFO] Take native::init_frb_dart_api_dl.
2023/09/24 21:35:38 [INFO] Take native::DartCObject - opaque (Struct is not marked #[repr(C)] or #[repr(transparent)].).
2023/09/24 21:35:38 [INFO] Take native::WireSyncReturn.
2023/09/24 21:35:38 [INFO] Take native::wire_times_from_rust.
2023/09/24 21:35:38 [INFO] Take native::wire_hello_from_rust.
2023/09/24 21:35:38 [INFO] Take native::free_WireSyncReturn.
2023/09/24 21:35:38 [WARN] Can't find Dart_Handle. This usually means that this type was incompatible or not found.
2023/09/24 21:35:38 [WARN] Can't find Dart_Handle. This usually means that this type was incompatible or not found.
2023/09/24 21:35:38 [WARN] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
2023/09/24 21:35:38 [WARN] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
2023/09/24 21:35:38 [WARN] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
2023/09/24 21:35:38 [DEBUG] execute ffigen c_path=/tmp/.tmpLRfPH9.h dart_path=/tmp/.tmpGLfMpV llvm_path=["/opt/homebrew/opt/llvm", "/usr/local/opt/llvm", "/usr/lib/llvm-9", "/usr/lib/llvm-10", "/usr/lib/llvm-11", "/usr/lib/llvm-12", "/usr/lib/llvm-13", "/usr/lib/llvm-14", "/usr/lib/", "/usr/lib64/", "C:/Program Files/llvm", "C:/msys64/mingw64"]
2023/09/24 21:35:38 [DEBUG] ffigen config:
        output: '/tmp/.tmpGLfMpV'
        name: 'NativeApiWire'
        description: 'generated by flutter_rust_bridge'
        headers:
          entry-points:
            - '/tmp/.tmpLRfPH9.h'
          include-directives:
            - '/tmp/.tmpLRfPH9.h'
        comments: false
        preamble: |
          // ignore_for_file: camel_case_types, non_constant_identifier_names, avoid_positional_boolean_parameters, annotate_overrides, constant_identifier_names

        llvm-path:
           - '/opt/homebrew/opt/llvm'
           - '/usr/local/opt/llvm'
           - '/usr/lib/llvm-9'
           - '/usr/lib/llvm-10'
           - '/usr/lib/llvm-11'
           - '/usr/lib/llvm-12'
           - '/usr/lib/llvm-13'
           - '/usr/lib/llvm-14'
           - '/usr/lib/'
           - '/usr/lib64/'
           - 'C:/Program Files/llvm'
           - 'C:/msys64/mingw64'

2023/09/24 21:35:38 [DEBUG] ffigen config_file: NamedTempFile("/tmp/.tmpDY2pUG")
2023/09/24 21:35:38 [DEBUG] Guessing toolchain the runner is run into
2023/09/24 21:35:38 [DEBUG] execute command: bin=sh args="-c \"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"/tmp/.tmpDY2pUG\"" current_dir=Some("/home/arch/.dev/projects/gitgui") cmd=cd "/home/arch/.dev/projects/gitgui" && "sh" "-c" "\"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"/tmp/.tmpDY2pUG\""
2023/09/24 21:36:00 [DEBUG] command=cd "/home/arch/.dev/projects/gitgui" && "sh" "-c" "\"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"/tmp/.tmpDY2pUG\"" stdout=Running in Directory: '/home/arch/.dev/projects/gitgui'
Input Headers: [/tmp/.tmpLRfPH9.h]
[SEVERE] : Header /tmp/.tmpLRfPH9.h: Total errors/warnings: 1.
[SEVERE] :     /tmp/.tmpLRfPH9.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]
[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle
[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle
[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject
[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject
[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle
[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle
[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle
[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle
[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject
[WARNING]: Generated declaration '_Dart_Handle' start's with '_' and therefore will be private.
Finished, Bindings generated in /tmp/.tmpGLfMpV
 stderr=Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

2023/09/24 21:36:00 [WARN] See keywords such as `error` in command output. Maybe there is a problem? command=cd "/home/arch/.dev/projects/gitgui" && "sh" "-c" "\"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"/tmp/.tmpDY2pUG\"" output=Output { status: ExitStatus(unix_wait_status(0)), stdout: "Running in Directory: '/home/arch/.dev/projects/gitgui'\nInput Headers: [/tmp/.tmpLRfPH9.h]\n[SEVERE] : Header /tmp/.tmpLRfPH9.h: Total errors/warnings: 1.\n[SEVERE] :     /tmp/.tmpLRfPH9.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: _Dart_Handle, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct _Dart_Handle, usr: c:@S@_Dart_Handle\n[WARNING]: No definition found for declaration - (Cursor) spelling: DartCObject, kind: 2, kindSpelling: StructDecl, type: 105, typeSpelling: struct DartCObject, usr: c:@S@DartCObject\n[WARNING]: Generated declaration '_Dart_Handle' start's with '_' and therefore will be private.\nFinished, Bindings generated in /tmp/.tmpGLfMpV\n", stderr: "Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!\n" }
the path is "/tmp/.tmp83RH6w.h"
2023/09/24 21:36:00 [DEBUG] distinct_input_types=[Primitive(Usize)]
2023/09/24 21:36:00 [DEBUG] distinct_output_types=[Delegate(String), Primitive(U8), PrimitiveList(IrTypePrimitiveList { primitive: U8 }), Primitive(Usize)]
2023/09/24 21:36:00 [INFO] Phase: Running build_runner
2023/09/24 21:36:00 [INFO] Phase: Formatting Dart code
2023/09/24 21:36:00 [DEBUG] execute format_dart path=["/home/arch/.dev/projects/gitgui/lib/bridge_api.dart"] line_length=80
2023/09/24 21:36:00 [DEBUG] execute command: bin=sh args="-c \"dart\" \"format\" \"--line-length\" \"80\" \"/home/arch/.dev/projects/gitgui/lib/bridge_api.dart\"" current_dir=None cmd="sh" "-c" "\"dart\" \"format\" \"--line-length\" \"80\" \"/home/arch/.dev/projects/gitgui/lib/bridge_api.dart\""
2023/09/24 21:36:20 [DEBUG] command="sh" "-c" "\"dart\" \"format\" \"--line-length\" \"80\" \"/home/arch/.dev/projects/gitgui/lib/bridge_api.dart\"" stdout=Formatted /home/arch/.dev/projects/gitgui/lib/bridge_api.dart
Formatted 1 file (1 changed) in 0.25 seconds.
 stderr=
2023/09/24 21:36:20 [INFO] Success!
2023/09/24 21:36:20 [INFO] Now go and use it :)

After follow this guide:  https://cjycode.com/flutter_rust_bridge/integrate/deps.html
I've set CPATH in .bashrc and justfile:
export CPATH="$(clang -v 2>&1 | grep "Selected GCC installation" | rev | cut -d' ' -f1 | rev)/include"
now the justfile way works well, but thd build.rs way still does not work.
use lib_flutter_rust_bridge_codegen::{
    config_parse, frb_codegen, get_symbols_if_no_duplicates, RawOpts,
};

// Path of input Rust code
const RUST_INPUT: &str = "src/api.rs";
// Path of output generated Dart code
const DART_OUTPUT: &str = "../lib/bridge_api.dart";
// Path of output Rust code
const RUST_OUTPUT: &str = "src/bridge_api.rs";
// Class name to use in dart, corresponding to each Rust block
const CLASS_NAME: &str = "NativeApi";

fn main() {
    // Tell Cargo that if the input Rust code changes, to rerun this build script.
    println!("cargo:rerun-if-changed={RUST_INPUT}");

    // Options for frb_codegen
    let raw_opts = RawOpts {
        // Path of input Rust code
        rust_input: vec![RUST_INPUT.to_string()],
        // Path of output generated Dart code
        dart_output: vec![DART_OUTPUT.to_string()],
        // Path of output Rust code
        rust_output: Some(vec![RUST_OUTPUT.to_string()]),
        // Class name of each Rust block of api
        class_name: Some(vec![CLASS_NAME.to_string()]),
        // Other options
        llvm_path: Some(vec![llvm_path()]),
        dart_format_line_length: 80,
        inline_rust: true,
        wasm: false,
        // for other options use defaults
        ..Default::default()
    };

    // get opts from raw opts
    let all_configs = config_parse(raw_opts);
    // generation of rust api for ffi
    let all_symbols = get_symbols_if_no_duplicates(&all_configs).unwrap();
    frb_codegen(&all_configs[0], &all_symbols).unwrap();
}

fn llvm_path() -> String {
    if cfg!(target_os = "windows") {
        String::from("D:/Dev/LLVM")
    } else {
        "".to_string()
    }
}

Any solutions should be thankful.

That's what I expected:
[SEVERE] :     /tmp/.tmpLRfPH9.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]
It happens so many times for people using frb. Just search stdbool.h in the issue tracker to see solutions!

[SEVERE] : /tmp/.tmpLRfPH9.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]
It happens so many times for people using frb. Just search stdbool.h in the issue tracker to see solutions!

I've noticed this error and done the searching, but the 'CPATH' env setup in .bashrc does not work if using build.rs.
Do i need set the env 'CPATH' on build.rs too?

After set the CPATH on build.rs, now it's works perfect.
I've put the build.rs in here, maybe someone who need.
use std::env;
use std::io::Read;
use std::path::PathBuf;
use std::process::Command;
use std::process::Stdio;

use lib_flutter_rust_bridge_codegen::{
    config_parse, frb_codegen, get_symbols_if_no_duplicates, RawOpts,
};

// Path of input Rust code
const RUST_INPUT: &str = "src/api.rs";
// Path of output generated Dart code
const DART_OUTPUT: &str = "../lib/bridge_api.dart";
// Path of output Rust code
const RUST_OUTPUT: &str = "src/bridge_api.rs";
// Class name to use in dart, corresponding to each Rust block
const CLASS_NAME: &str = "NativeApi";

fn main() {
    // Tell Cargo that if the input Rust code changes, to rerun this build script.
    println!("cargo:rerun-if-changed={RUST_INPUT}");

    // Options for frb_codegen
    let raw_opts = RawOpts {
        // Path of input Rust code
        rust_input: vec![RUST_INPUT.to_string()],
        // Path of output generated Dart code
        dart_output: vec![DART_OUTPUT.to_string()],
        // Path of output Rust code
        rust_output: Some(vec![RUST_OUTPUT.to_string()]),
        // Class name of each Rust block of api
        class_name: Some(vec![CLASS_NAME.to_string()]),
        // Other options
        llvm_path: Some(vec![llvm_path()]),
        dart_format_line_length: 80,
        inline_rust: true,
        wasm: false,
        // for other options use defaults
        ..Default::default()
    };

    // set CPATH: export CPATH="$(clang -v 2>&1 | grep "Selected GCC installation" | rev | cut -d' ' -f1 | rev)/include"
    // https://cjycode.com/flutter_rust_bridge/integrate/deps.html
    if cfg!(target_os = "linux") {
        env::set_var("CPATH", c_path());
    }

    // get opts from raw opts
    let all_configs = config_parse(raw_opts);
    // generation of rust api for ffi
    let all_symbols = get_symbols_if_no_duplicates(&all_configs).unwrap();
    frb_codegen(&all_configs[0], &all_symbols).unwrap();
}

fn llvm_path() -> String {
    if cfg!(target_os = "windows") {
        let mut str = String::new();
        if let Ok(mut child) = Command::new("clang")
            .arg("-v")
            .stderr(Stdio::piped())
            .spawn()
        {
            let mut stderr = child.stderr.take().unwrap();
            stderr.read_to_string(&mut str).unwrap();
            let v: Vec<_> = str.split("InstalledDir:").collect();
            let mut path = PathBuf::from(v[1].trim());
            path.pop();
            if let Some(s) = path.to_str() {
                str = s.into();
            }
        }
        str
    } else {
        "".to_string()
    }
}

fn c_path() -> String {
    let mut str = String::new();
    if let Ok(mut child) = Command::new("clang")
        .arg("-v")
        .stderr(Stdio::piped())
        .spawn()
    {
        let mut stderr = child.stderr.take().unwrap();
        stderr.read_to_string(&mut str).unwrap();
        let v: Vec<_> = str.split("Selected GCC installation:").collect();
        for line in v[1].lines() {
            let mut path = PathBuf::from(line.trim());
            path.push("include");
            if let Some(s) = path.to_str() {
                return s.to_string();
            }
        }
    }
    str
}

By the way, here is the justfile solution.
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
llvm_path := if os_family() == "windows" { "--llvm-path D:/Dev/LLVM" } else { "" }
c_path := if os() == "linux" { 'CPATH="$(clang -v 2>&1 | grep "Selected GCC installation" | rev | cut -d" " -f1 | rev)/include"' } else { "" }

run:
  flutter run

gen:
  {{c_path}} flutter_rust_bridge_codegen {{llvm_path}} \
    --rust-input native/src/api.rs \
    --rust-output native/src/bridge_api.rs \
    --dart-output lib/bridge_api.dart \
    --class-name NativeApi \
    --inline-rust

build:
  cargo build --manifest-path native/Cargo.toml
  dart run build_runner build

get:
  flutter pub get

upgrade:
	flutter pub upgrade


User can see an event input box containing an event name field, an date field, an optional time, and a ‘Start’ button.

In my understanding this user-story is related to the Event Form to submit an event, so this will be very related to the UI.
AC:

should be displayed the name input field
should be displayed the date input field
should be displayed an optional time
should be displayed a button to start the event

Other AC with great to have features:

should be able to see a list of the upcoming events
should be ordered by the nearest events
should be displayed in aside the top featured events, sorted by the nearest ones first.
should be displayed the last created events sorted by previously created.
should be able to expand more details of the event after clicking at any items in the UI

Was closed automatically before being completed, that's why I'm reopening it.

Deployed and tested thanks to the PRs  #2, #4 #6 #8 #9 and #10


Update the plugin to Godot v2 Android plugin

Update based on https://github.com/godotengine/godot/pull/80740.
Will be removed from draft once that PR is landed.

Cool, so we'll also need to do another test release once merged. :)

@m4gr3d the upstream PR has been merged into master, is there anything left to do here or should we take this out of draft?

@m4gr3d the upstream PR has been merged into master, is there anything left to do here or should we take this out of draft?

Ready for review!


HeaderCommentFixer - do not remove class docs

This PR tries to fix #4067.
It is difficult to find the correct/best behavior.
My proposal follows these rules:

A comment is a class doc comment, if it is a T_DOC_COMMENT (not a T_COMMENT) and if there is no blank line between the comment and the class/interface/trait/function:

/**
 * this is a class doc comment
 * header comment will be added above
 */
class Foo {}

/**
 * this is NOT a class doc comment (blank line)
 * will be replaced by header comment
 */

class Foo {}

/*
 * this is NOT a class doc comment (no T_DOC_COMMENT)
 * will be replaced by header comment
 */
class Foo {}

If configuration for separate is top or none, the behavior does not change with this pr, because it is not possible then to make the decision by the blank line after the comment.

If separate is both/bottom and comment_type is PHPDoc and the comment looks like a class doc comment (see 1.), but the content is the same as the expected header, then it is considered as the header comment, and only the missing blank line is added.

Thank you @gharlan.


Make size optional for objectstore file-like objects

This makes the API for objectstore file-like objects closer to the standard library file object.
It also fixes a bug when running:
bcbio_vm.py template s3://bla.yaml s3://foo.csv
which fails in my hands because the the S3 object is read without a size argument here: https://github.com/chapmanb/bcbio-nextgen/blob/master/bcbio/workflow/template.py#L131

Andrew -- thanks much for the fix. Please let us know if you run into any other issues at all.


ENH: Add support for 2-way Random Effects model

Hi,
I am working with random and fixed effects. Is there a way to control for entity effects and time effects in the random effect model? The fixed effects have it but random doesn't. How should I approach this problem?
I am trying to compare the fixed effects and random effects with entity effects only, time effects only, and then both time and entity effects.

looking at the code it seems like there should be a way from using the from_formula method. It passes it into a parser that then decides what effects to set on it.
    def _parse(self) -> None:
        parts = self._formula.split("~")
        parts[1] = " 0 + " + parts[1]
        cln_formula = "~".join(parts)

        mod_descr = ModelDesc.from_formula(cln_formula)
        rm_list = []
        effects = {"EntityEffects": False, "FixedEffects": False, "TimeEffects": False}
        for term in mod_descr.rhs_termlist:
            if term.name() in effects:
                effects[term.name()] = True
                rm_list.append(term)
        for term in rm_list:
            mod_descr.rhs_termlist.remove(term)

I basically want to first do "EntityEffects" only using RandomEffects model, then only "TimeEffects", and lastly use both "EntityEffects" and "TimeEffects" with RandomEffects

I only have 1-way RE models. For 2-way models only FE are available. The formula parse can't change the internals of RandomEffects()

You probably can model it using statsmodels:
https://www.statsmodels.org/stable/mixed_linear.html

I don't think 2-way RE are a goal of this project.  Mixed Linear models are available in statsmodels.

I don't think 2-way RE are a goal of this project.  Mixed Linear models are available in statsmodels.


Translate setup/ in Japanese

This is a...

[x]  Feature Request
[ ]  Bug Report

Problem:
No setup/ in Japanese.
Proposed Solution:
Translate setup/ in Japanese.
Copy from en content and Update content/ja/docs/setup/_index.md.
Page to Update:
https://kubernetes.io/ja/setup/

#12070


Sanitize the participant name

Sanitize the participant name, in order to avoid the highlighted name in the following image

Already merge


Issue in isActive

PFA i am facing this issue whenever i am trying to search isActive as true

Hi @deepakgd , it appears you may have posted on the wrong repo. Your issue looks to be related to https://github.com/ssuperczynski/ng2-easy-table following your stack trace there. You might try posting an issue there, best of luck!


All-day tasks and time zone

Is there a way to set time zones for "All Day" tasks? I'm in EST (GMT-4) time zone but tasks I create are being shown in UTC/GMT in some places.
e.g. If I create a task that's due on July 20 (which it correctly shows on the actual task's detail page), it says "Jul 19, 2014" on the Current Tasks widget. Also, on July 19 at 8:00 PM EST, I get a notification that the task is due.

This has been fixed as a side-product of another issue in OpenTasks-Provider. All-day task notifications should show up at midnight in the current time zone now. While this is still far from being ideal (we plan to add an option to show all-day task notifications at a specific time on that day or the day before), it's at least a more deterministic behavior.


Create a folder for the React app named frontend and initialize the app

Acceptance criteria:
As a developer, I want to be able to initialize the application for my team so that other developers can collaborate by adding more code.
Time Taken: 1 hour and 30 minutes


Swagger problem with service functions without input parameters

Service Interface:
[OperationContract]
long Test();
Swagger Curl:
curl -X 'POST'
'http://localhost:5000/ICalculator/Test'
-H 'accept: application/json'
-d ''
Error Code 415 - Unsupported Media Type
content-length: 0
date: Wed,19 Jan 2022 16:56:00 GMT
grpc-message: Content-Type is missing from the request.
grpc-status: 13
server: Kestrel
Proposed Resolution:
SwaggerOperationProcessor.cs
    public bool Process(OperationProcessorContext context)
    {
        var description = (context as AspNetCoreOperationProcessorContext)?.ApiDescription;
        var descriptor = description?.ActionDescriptor as GrpcActionDescriptor;
        if (descriptor == null)
        {
            return true;
        }

        var operation = context.OperationDescription.Operation;

        if (operation.RequestBody == null)
        {
            operation.RequestBody = new OpenApiRequestBody();
            operation.RequestBody.Content.Add(Multipart, new OpenApiMediaType());
        }

        FixRequestType(operation);
        UpdateSummary(operation, descriptor);
        UpdateDescription(operation, descriptor);

        for (var i = 0; i < description!.SupportedResponseTypes.Count; i++)
        {
            AddResponseHeaders(operation, description.SupportedResponseTypes[i], context.SchemaResolver, context.SchemaGenerator);
        }

        return true;
    }

Fix released in version 1.4.2.
Thank you for the bug report and hint.

since no activity, I am closing this issue.
If this in error, let me know with a comment and I will be happy to reopen the issue.


briar-desktop: init at 0.2.1-beta

Motivation for this change
Packaging briar, a decentralized p2p messenger
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/please-package-briar-desktop/17887/2

TODO: @edrex review this

I really doubt the installPhase is correct.

Not sure if you were thinking to package the upstream jar or build with gradle. For the latter, #17342

Thanks for pinging this PR. I updated it to the latest version and want to package the jar file. Right now I'm looking into how to use makeWrapper for it correctly.

It's now possible to execute and run briar. Unfortunately it is shipping it's own tor-binary so we need to patch it somehow

Got it patched :) It's working now

@onny I'm a briar-desktop dev and just had a chat with a user trying to run on the briar-desktop jar on NixOS instead of installing your package here. I see you've added this workaround for this:

It's now possible to execute and run briar. Unfortunately it is shipping it's own tor-binary so we need to patch it somehow

Could you maybe explain or point me to a resource explaining why we cannot run our own tor binary on NixOS? Thanks!

@sebkur

Could you maybe explain or point me to a resource explaining why we cannot run our own tor binary on NixOS? Thanks!

NixOS isn't FHS-compliant. It doesn't have /usr/lib, or /lib. This means any binaries compiled for traditional Linux distros won't work out of the box - they have to either be patched, or run in a sandbox.
Any self-respecting Linux distro maintainer will try to remove vendored deps as much as it is feasible, because vendoring introduces duplication of storage space, duplication of efforts (if version X of library Y is broken/requires a workaround or a security fix, you now have to fix not only the package Y, but also all packages that vendor it). In fact, excessive vendoring is grounds for not packaging something at all (for example, I wanted to package frida, and I did, kinda - and due to all the vendoring I'm not going to maintain it, or put it into nixpkgs; plus the vendoring made the codebase so fickle the package didn't even fully work)


⚠ Bofrost.de has degraded performance

In 86bc27f, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1174 ms

Resolved: Bofrost.de performance has improved in 09a53bc.


Decorated private propoerty flagged as unused with noUnusedLocals:true

noUnusedLocals:true
import { Component } from '@angular/core';

@Component({
  selector: 'my-component',
  template: `
    {{text}}
  `,
})
export class MyComponent {
  @Input()
  private text: string;//'text' is declared but never used
}

So the proposal is to allow decorated properties to go unflagged?

I believe that this is almost impossible to predict all template usage (if we are talking not only about decorated properties/functions). E.g. in one project we use webpack and fucntion require('...') to include template into decorator metadata
@Component({
  selector: 'my-component',
  template: require('path/to/template'),
})

BTW, in any case template should be compiled into factory by angular's compiler in order to check "usage" of any local (not only decorated).
@kgtkr as a workaround you can use comment like // tslint:disable-... to avoid compiler error for your property.
Sure, requested feature (detect usage in templates) would be very nice, but it requries integration with angular's compiler like it is done for react I guess...

The problem is really annoying for angular projects. Especially for re-usable components lib when some properties/methods should be private, but they are called only from component's template. This causes "unused local" error for such a methods/variables. So, if there is no possibility to check templates then the best solution is to introduce some "ignore" comment to avoid compiler errors in such a cases.

Just remember that if you ever try to use the angular aot compiler, which is essentially a subset of typescript, all of your private fields used in template bindings will cause compilation errors and you have to rewrite your code.
This is off topic, since it isn't typescript at all at that point, but I thought I'd mention it since it seems to nullify the use case for many users.

Some more background:
https://github.com/mgechev/codelyzer/issues/212
Using private member in template is explicitly listed as anti-pattern. A template system will use a class' member as public when hydrating template code. So technically a member in template should be annotated as private.

It is flagged only because it is private? What does it happen when it is declared as public?
In case it doesn't flag, there's the case for @Output() members, that noUnusedLocals should report if there's no reference to it. There's a bit of coding style attached to this, but still a good task for a compiler, instead of a linter.

Sure, requested feature (detect usage in templates) would be very nice, but it requries integration with angular's compiler like it is done for react I guess...

The ngc compiler would be able to do it. First it generates .ts files from .html templates, then it feeds everything to tsc to parse, compile and generate .js files.

It is flagged only because it is private? What does it happen when it is declared as public?

public properties on a class or an interface, and exporteded members on a module, are part of your public API, it does not make much sense to check if they are used or not, since they may be intended only for users of your library, and will never be used in the library itself.
private properties, as well as non-exported declarations, are not visible outside the scope, and thus cannot be used. if they are not used inside the class/module, the compiler can certify that they will never be used.
now, for the decorator scenario, this is something that is happening outside the knowledge of the compiler. it can not attest to its correctness or validity. for these cases, my recommendation is to switch off --noUnusedLocals.

I ran into a related issue that I think highlights the problem without the private annotation muddying the waters.
In Glimmer, we have some test suite helpers that rely on classes and class decorators. E.g<EMAIL_ADDRESS>Simplified example:
import {
  VersionedObject,
  strip,
  template,
  testModule,
  RenderingTest
} from "@glimmer/test-helpers";

@testModule('Static Content Tests')
class StaticContentTests extends RenderingTest {
  @template(`Hello World!`)
  ['renders text']() {
    this.render({});
    this.assertContent(`Hello World!`);
    this.assertStableRerender();
  }
}

This example triggers the noUnusedLocals warning, even though the imported decorator adds it to a global test harness.
Given that:

Semantically, class decorators are just functions that are passed the class.
If I imported a function and passed the class to that function, I would not get the noUnusedLocals error.

It seems to follow that class decorators should be considered "use" from the perspective of noUnusedLocals.

@tomdale a simplified repro
(function () {
  @decorated class A {
    render(arg1: {}): {} {
      throw new Error('Method not implemented.');
    }
  }

  function decorated(t: new (...args: Array<{}>) => object) {};
}());

The only way to avoid error is to disable the flag noUnusedLocals which doesn't make sense at all
private readonly cacheStrategy;

constructor() {
    this.cacheStrategy = new ExpirationStrategy(new MemoryStorage());
}

@Cache(this.cacheStrategy, 300)
public async getApiKeyAsync(): Promise<string> {
...
}

With or without noUnusedLocals does not matter. A private method with decorator is flagged as unused (never read; grayed out in VSCode).

'myMethod' is declared but its value is never read. ts(6133)

I understand the problem. TS doesn't know if the method is finally called or not (e.g. just set some property configs, etc.) 🤔
In my case, I've created an OnChange method-decorator which calls the method when another property has changed (by setter). It works great. But it's a bit annoying that this method is marked as unused.
But how should it work? I have no idea. Maybe with another type like MethodDecorator? For example CalledMethodDecorator to tell TS that this method is used. Idk.
Workaround
Use protected instead of private for the method, etc. It's also private.

The protected modifier acts much like the private modifier with the exception that members declared protected can also be accessed within deriving classes.
Source

So it's maybe not the best idea. Just for the people who cannot live this that. ^^

With or without noUnusedLocals does not matter. A private method with decorator is flagged as unused (never read; grayed out in VSCode).

'myMethod' is declared but its value is never read. ts(6133)

I understand the problem. TS doesn't know if the method is finally called or not (e.g. just set some property configs, etc.) 🤔
In my case, I've created an OnChange method-decorator which calls the method when another property has changed (by setter). It works great. But it's a bit annoying that this method is marked as unused.
But how should it work? I have no idea. Maybe with another type like MethodDecorator? For example CalledMethodDecorator to tell TS that this method is used. Idk.
Workaround
Use protected instead of private for the method, etc. It's also private.

The protected modifier acts much like the private modifier with the exception that members declared protected can also be accessed within deriving classes.
Source

So it's maybe not the best idea. Just for the people who cannot live this that. ^^


[FLOC-3914] Integrate the CloudFormation installer with Volume Hub

Fixes: https://clusterhq.atlassian.net/browse/FLOC-3914
We've generated a new CloudFormation template and uploaded it to https://s3.amazonaws.com/installer.downloads.clusterhq.com/flocker-cluster.cloudformation.json
You can test this branch by logging in to Volume Hub and then starting the Cloud Formation installer supplying the VolumeHubToken when you get to the parameters page.
Or by running the automated tests from #2449 with a command like:
KEEP_STACK=1 \
CLOUDFORMATION_TEMPLATE_URL=https://s3.amazonaws.com/installer.downloads.clusterhq.com/flocker-cluster.cloudformation.json \
AWS_DEFAULT_REGION=us-west-1 \
KEY_PAIR="..." \
ACCESS_KEY_ID="..." \
SECRET_ACCESS_KEY="..." \
VOLUMEHUB_TOKEN="..." \
trial flocker.acceptance.endtoend.test_installer

It looks fine to me . I've made some comments, but I don't know if you need to take any action on those. That is all I could see.
I haven't tested it as I am not familiar with CloudFormation and volume hub.I guess today's demo in the engineering meeting will fix that :) I will try sometime this week though, as I want to learn how it works

Thanks @mpgomez
All good points which I've addressed or answered.
Also merged in the (now merged) automated test from master and modified it to accommodate the volumehub_token parameter.
That revealed a bug in the setup script which I've also fixed.
The test isn't yet run by Jenkins but I verified that it passed locally with and without a volumehub_token.
So I'll merge this now.


[Markdown]Numbered lists aren't rendered with numbers

From riot-web:

On android (0.6.9 1866137)

Event:
{
  "origin_server_ts":<PHONE_NUMBER>268,
  "sender": "@travis:t2l.io",
  "event_id": "$14912473031035GcTek:t2l.io",
  "unsigned": {
    "age": 573,
    "transaction_id": "m1491247302572.128"
  },
  "content": {
    "body": "1. This is the first point\n2. This is the second point\n3. This is the third point",
    "msgtype": "m.text",
    "formatted_body": "
\n
This is the first point
\n
This is the second point
\n
This is the third point
\n
\n",
    "format": "org.matrix.custom.html"
  },
  "type": "m.room.message",
  "room_id": "!vfFxDRtZSSdspfTSEr:matrix.org"
}

I think this should be bumped to more than P1, because it breaks messages that start with something like 7., which is surprisingly common when discussing dates. On web, you don't notice it, because it shows the correct number, the android users will be confused by that message though.


Update version: Glarysoft.GlaryUtilities version <IP_ADDRESS>

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335215
2024-06-17 01:41:59.560 [CLI ] Package hash verification failed. SHA256 in manifest [1365c1ca9a1ca1897f71c04ec3daa65a33eae8f93dfc0e28ffacd0c3755115e7] does not match download [87a1c21df2baa4e8b7a05bc1c559cfad46371679260fbb2e40185ab12b7db8a7]

Automated error analysis suggests -1978335215 may mean Hash mismatch.
(Automated response - build 885.)

/azp run


Zuul: Content-Encoding header always return to the client

Bug report

Client send request to Zuul, without Accept-Encoding header. We use PHP GuzzleHttp/6.3.3 lib;
Zuul will add Accept-Encoding: gzip header, and forward to the remote service;
remote service return compression response and Content-Encoding: gzip header.
Zuul will decompress response, then return to the client; but the response header also has the Content-Encoding header。
GuzzleHttp Client receive the response has Content-Encoding: gzip header. so it will decompress response body but the body is not compressed. then throw exception.

Detail info:
$: curl  -v -I http://<IP_ADDRESS>:7777/provider/env
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 7777 (#0)
> GET /provider/env HTTP/1.1
> Host: <IP_ADDRESS>:7777
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200
HTTP/1.1 200
... some other headers ....
< Content-Encoding: gzip
Content-Encoding: gzip
< Transfer-Encoding: chunked
Transfer-Encoding: chunked

request not accept gzip and response body not compressed,
but return the Content-Encoding: gzip header.

GuzzleHttp Exception:
cURL error 23: Error while processing content unencoding: invalid distance too far back (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Solution:
https://github.com/spring-cloud/spring-cloud-netflix/blob/c24e7e05bfbacbfe26e1189fb326e5e3103f9cc9/spring-cloud-netflix-zuul/src/main/java/org/springframework/cloud/netflix/zuul/filters/ProxyRequestHelper.java#L232  add which case need  add Content-Encoding header  maybe can solve this problem.
// if request client not support gzip, don't add content-encoding header
 if (name.equalsIgnoreCase(HttpHeaders.CONTENT_ENCODING) && !isGzipRequested(context))) {
   return false;
}

Can you tell us what version of Spring Cloud you are using?  What does the request look like that you are sending?

Spring Cloud Version:  Finchley.SR2

I believe this was introduced by #3062

I think I got to the bottom of it. With the fix introduced in #3062, the Content-Encoding header is always copied from the downstream response, and because of that, the SendResponseFilter can't decide if it should be included or not.
It should probably be fixed by having 2 lists of ignored headers, one for requests and one for responses. Content-Encoding, for instance, should be ignored for responses but not for requests.
Until this is fixed, here's a workaround that I found:
@Component
// This is a workaround for bug https://github.com/spring-cloud/spring-cloud-netflix/pull/3062
public class ContentTypeFixFilter extends ZuulFilter {

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() throws ZuulException {
        RequestContext.getCurrentContext().getZuulResponseHeaders().removeIf(h -> h.first().equals(HttpHeaders.CONTENT_ENCODING));
        return null;
    }

    @Override
    public String filterType() {
        return FilterConstants.ROUTE_TYPE;
    }

    @Override
    public int filterOrder() {
        return FilterConstants.RIBBON_ROUTING_FILTER_ORDER + 1;
    }
}

Was this issue ever resolved?
I think we are experiencing it still in Hoxton.RELEASE.


[Bug]: Error: Could not find expected browser (chrome) locally when running puppeteer 19 with a google cloud function

Bug description
Steps to reproduce the problem:

Create a google cloud function that uses puppeteer 19
Trigger the function

Puppeteer version
19.0.0
Node.js version
16.14.2
npm version
8.5.0
What operating system are you seeing the problem on?
Windows
Relevant log output
"Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (1045629).
    at ChromeLauncher.launch (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:69:23)
    at PuppeteerNode.launch (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:149:31)
    at PuppeteerExtra.launch (/workspace/node_modules/puppeteer-extra/dist/index.cjs.js:128:41)
    at async upload (/workspace/lib/uploaders/uploader/uploader.js:91:21)
    at async /workspace/lib/uploaders/amazon_uploader/amazon_uploader.js:59:20"

Downgrading to the previously installed version (18.2.1) doesn't fix this issue.

Duplicate of https://github.com/puppeteer/puppeteer/issues/9128


First pass at fixing #340

Essentially what I've done here is add a function to load_dump.py that iterates through the loaded data dict and checks for any None values, raising an error if it finds one. There may be a much more elegant way of doing this, and this solution feels a bit hacky. It does seem to work though, and if we're just forbidding null entries in the YAML until we make a final decision on what they mean and how they should be handled, this could be a reasonable stopgap.
Thoughts @jeromekelleher @grahamgower @molpopgen?


Publish Shaded JAR-File

It would be useful to have a shaded jar with packaged dependencies and relocated to another package to prevent version conflicts (specially because of other dependencies which require a different version of netty).

I think this is a good idea, but I regret that it's highly unlikely to become a priority for us any time in the near term. Pull requests are welcome, though!

Lest it go unsaid/unnoticed, @ifrins opened a pull request to do this in #587, but we it might be a while before we can merge it.


PowerShell cmdlet missing

The PowerShell line:
"RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"  -MoveResource “PSDemoRM”
which is in point 2 "Initiate the move of the source resource group" of the section "Prepare the source resource group:" is missing a PowerShell cmdlet at the start of the line and -ResourceGroupName before "RG-MoveCollection-demoRMS" . I don't know what the missing cmdlet is

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b7a56a91-9a2a-645d-c89d-b9c5142adb00
Version Independent ID: 59167a01-f1eb-0a0c-9a6b-b450411fc0be
Content: Move resources across regions using PowerShell in Azure Resource Mover
Content Source: articles/resource-mover/tutorial-move-region-powershell.md
Service: resource-move
GitHub Login: @rayne-wiselman
Microsoft Alias: raynew

@guyrleech Thanks for the feedback. We shall evaluate and update the document as appropriate.

@guyrleech Thanks for bringing this to our attention. I have submitted a PR to fix the issue that's in review. The changes should reflect post the merge.


Fix bug in InternalThreadLocal and provides unit test

Fix bug in InternalThreadLocal which cause a execption in method removeAll
Provide unit test for InternalThreadLocal

Codecov Report

Merging #1803 into master will increase coverage by 0.14%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1803      +/-   ##
============================================
+ Coverage     40.01%   40.16%   +0.14%
- Complexity     4347     4364      +17
============================================
  Files           626      626
  Lines         30078    30079       +1
  Branches       5319     5319
============================================
+ Hits          12037    12082      +45
+ Misses        16129    16077      -52
- Partials       1912     1920       +8

Impacted Files
Coverage Δ
Complexity Δ

.../dubbo/common/threadlocal/InternalThreadLocal.java
70.58% <100%> (+34.76%)
16 <0> (+8)
:arrow_up:

...om/alibaba/dubbo/rpc/filter/ActiveLimitFilter.java
83.33% <0%> (-5.56%)
6% <0%> (-1%)

...baba/dubbo/remoting/transport/mina/MinaClient.java
59.37% <0%> (+1.56%)
9% <0%> (+1%)
:arrow_up:

...a/dubbo/remoting/transport/netty/NettyChannel.java
66.25% <0%> (+5%)
21% <0%> (+1%)
:arrow_up:

...alibaba/dubbo/common/utils/NamedThreadFactory.java
76.47% <0%> (+11.76%)
4% <0%> (+1%)
:arrow_up:

...bbo/common/threadlocal/InternalThreadLocalMap.java
82.43% <0%> (+18.91%)
21% <0%> (+6%)
:arrow_up:

...common/threadlocal/NamedInternalThreadFactory.java
80% <0%> (+20%)
3% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71366d6...64bc20c. Read the comment docs.


[1.6] Stoked fire and dragon vessel xp have incorrect colors

Also applies to vessel of the dragon xp inner texture

Likely caused by incorrect adaptation of new pixel buffer system from bytes to ints
/*m_frameBuffer[iPixelIndex * 4 + 0] = (byte)iRed;
            m_frameBuffer[iPixelIndex * 4 + 1] =  (byte)iGreen;
            m_frameBuffer[iPixelIndex * 4 + 2] = (byte)iBlue;
            m_frameBuffer[iPixelIndex * 4 + 3] = (byte)cAlpha;*/
            m_frameBuffer[iPixelIndex] = ((iRed & 0xFF) << 24)   |
                                        ((iGreen & 0xFF) << 16) |
                                        ((iBlue & 0xFF) << 8)  |
                                        (cAlpha & 0xFF);


Avoid executing docker command every time gauge version is called?

This could be achieved either through caching or through state. May be other solutions too.

Duplicate of #47 which was fixed in #77


feat: add initial website

Fixes #24

:tada: This PR is included in version 0.19.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Adding Liquidity not possible (LTC/DFI Pool) and LTC are gone

Hey Defi Team,
Since yerterday i have a Problem with my Defi APP ... i send LTC from Cake do Defi-Wallet und DFI from Bittrex to DFI Wallet and than i wanted to add it into the LTC/DFI Liquidity Pool .... got always an Error (Screenshot)
after that i tried almost everything ... updated the Wallet from Version 2.3.0 to 2.3.2 ... did not work... reindexing dident work...
i installed the app on an other pc und recoverd with the seed ( than my LTC are gone ) the transaktions i made aren not right in the wallet ... can not unterstand that ... and also my Liquidity witch is already added is not working anymore ??
please help me out with that ... realy lot of LTC and DFI i have in the wallet ....
defilogs.zip

What would you like to be added:
Why is this needed:

Hi @jokerty1 , thanks for your feedback. Can you try Restore Wallet from Backup (wallet.dat).

To find your wallet.dat files:
Windows — C:
\Users\<username>\AppData\Roaming\DeFi Blockchain\wallets\wallet.dat
So long as you've your wallet.dat & passphrase your funds are safe.

Hi @jokerty1 , if your app is not synced to 100% yet — it needs reach 100% before you can Restore wallet from backup. There was a node issue on 05/04/2021 that may have cause the network error, everything is back online now, you may try the following:
Option 1 — Reset & Reindex (sync from 0%)

Settings > Reset & Reindex

Option 2 — Snapshot (sync from 90%+)

Ensure you’ve at least 27GB of extra space
Click on i located at bottom-left corner of app screen
Download Snapshot

Thank you for your patience.

hey
the problem is that my Harddisk c:\ is to small ... is it possible to
move it on a other Drive ?
i know the defichain-wiki for it - but it dont work with version 2.3.3 ?
Greeds Chris
Am 07.04.2021 um 14:02 schrieb Bella:

Hi @jokerty1 https://github.com/jokerty1 , if your app is not synced
to 100% yet — it needs reach 100% before you can |Restore wallet from
backup|. There was a node issue on 05/04/2021 that may have cause the
|network error|, everything is back online now, you may try the following:
Option 1 — Reset & Reindex (sync from 0%)

Settings > |Reset & Reindex|

Settings Reset Reindex
https://user-images.githubusercontent.com/65014479/113691297-ddae9d80-96fe-11eb-85e8-a888f16a8df3.png
Option 2 — Snapshot (sync from 90%+)

Ensure you’ve at least 27GB of extra space
Click on |i| located at bottom-left corner of app screen
Download Snapshot

i to trigger Snapshot download
https://user-images.githubusercontent.com/65014479/113691572-2403fc80-96ff-11eb-94c9-1e7ebafd697f.png
Thank you for your patience.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DeFiCh/app/issues/707#issuecomment-814857232, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ATNENE2K22N2MPBOICS3OU3THRCT5ANCNFSM4Z3BZKHQ.

Hi @jokerty1 , you can try, just ensure that you wallet.dat & passphrase is backup-ed and safe. Our team is working on reducing the storage size, which might be released in future versions.

Even when an app does not support relocation, you can do it yourself with links. I don't use Windows, but I believe it is called a junction there cf: https://docs.microsoft.com/en-us/windows/win32/fileio/hard-links-and-junctions
so you'd see a folder like c:\defi but it's really just some link to the real folder in d:\defi .

Hi @jokerty1 , update v2.4.0 is out, this is a mandatory update.
Please read through the release notes before updating. Do give a thumbs up to this comment if your issue has been resolved, otherwise, you may reopen this issue with new information (include screenshots) and app logs. Thank you.


Improve interoperability by moving Request and Response to a separate crate

Hello @reem. I have found myself in creating my own Request and Response traits in Rustless because I want to be able to work with other (potential) backend libraries.
What if we move these items into a separate crate and unify this layer in nickel, iron, restful, rustless and any future libraries?
cc @cburgdorf, @Ryman, @Ogeon

I'm interested. It's obvious that we have slightly different approaches to the problem, but our libraries exposes mostly similar request handling. Having a common API would make it easier to use the same additions on top of different base libraries. It fits well with the Rustful philosophy :)
The big question is "How?"

I think that we can pass it through an RFC process. Maybe I could write the RFC if you forgive my poor English. But at first I want to hear that all are interested.

In #261, I have a proposal that make iron decoupled with hyper or any other backend. I think it shares the same idea of this one. Iron can be a standard request/response and middleware framework. The will be lower level adapters for hyper, and higher level frameworks for url routing, session/cookies, etc.

The problem I can see right now is that we will have to unify the way we handle data. It may even require an adapter layer. Rustful, for example, uses Hyper as a base and extends the request with more context and the response with a filtering plugin stack. I would rather not drop them from the library and I'm sure each library has its own complicating factor. Nickel, for example, is still using its own version of rust-http (right?) and Iron seems to be built to create the response inside the handler and return it.

@sunng87

Iron can be a standard request/response and middleware framework

I don't think that we must and need to peek a standard framework, because all people has their own opinion. Time will put everything in its place. But we are able to pick some small standard parts now. Let's begin with that.

@s-panferov Yes, there's no such "standard" thing. The idea is to make iron decoupled from underlying network layer. That is, do not use anything "hyper" specific in the request and response struct.
Currently there's no need to persuade other framework like nickle to adopt. Just to make iron API more beautiful.

https://github.com/conduit-rust/conduit
Conduit is aimed to be such a library, not sure if iron has plan to adopt.

Very interested in this, it's crossed my mind a few times, and I agree that 'how' is the question.
Rusts ownership model makes this tricky as @Ogeon has pointed out, where iron creates Responses in the handler while others pass them down into the handlers. At least we could start with a common base of traits based on hypers request and its Streaming and Fresh responses?
@Ogeon re: rust-http: Yeah, still on a fork, but will hopefully be using hyper in the next week or so.
@sunng87 things have probably changed a lot since then, but @reem did leave feedback on conduit's issue tracker back in November where he considers a potential common base.
cc @SimonPersson

I almost forgot about Conduit for a moment. It can surely function as a minimal common set of features. I mean, it's all just HTTP in the end. The trick is to identify this set and make sure the interface is flexible enough to avoid turning everything into Hyper+overhead.

I agree we want this long term, but I honestly don't think we really know enough about what Rust web development will look like for us to make these decisions right now.

For what it's worth I own the http name on crates.io - that seems to me to be a fine place to aggregate standards for web development in rust.

Any progress on this? I'm approaching the same issue from the other end (fastcgi / uwsgi / etc connectors) and I'm not sure which traits should be provided to applications (for headers/env/body) and what should expect back.
This is an open question for uwsgi-rust, which is currently abusing strings everywhere.

No, not as far as I know. You could possibly reuse pieces of some general HTTP library, in your case, but it would probably come with a lot more than what you need.


add control on each result

Codecov Report

Merging #7 (53b7963) into master (3c9216b) will not change coverage.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##            master        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           13        13
  Lines          313       318    +5
  Branches        56        59    +3
=========================================
+ Hits           313       318    +5

Impacted Files
Coverage Δ

nornir_f5/plugins/tasks/atc.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Transaction is generated with a typo

In section authorization there is "permissaion" instead of "permission":
               "authorization": [
                    {
                        "actor": "abcydgmzqhfge",
                        "permissaion": "active"
                    }
                ],

@schabluk we didn't modify a code of eos.js library, so if this error occasionally occurs, its means that it is a bug in https://github.com/eosio/eosjs
Nevertheless, could you elaborate this a little bit more? How often something like this happen?

I have downloaded eos.js locally, maybe the file got corrupted.

@schabluk please be aware, that if you are using our instruction, you do not have to manually download eos.js, because a browser can do it for you, when you will save a page by Save as...
Please take a look on: https://github.com/tokenika/secure-bp-voting/issues/16#issuecomment-397282762

@noisy I don't trust my browser. It could alter the content of eos.js while "Saving as" and then, the altered eos.js could generate a transaction that would clean my account, no?


i18n: Typing bug on class attributes

The transformation by the i18n phase does not preserve the type of literal string attributes.
module a is i18n

import gettext

class A
	var a = "hello" # Error: untyped attribute `a#A#a`. Implicit typing allowed only for literals and new.
end

It is because i18n does AST transformation before typing, so there is no type yet to preserve.
An hackish but working solution could be to detect this special case and inject a static type declaration String in the attribute definition.


insert return a array or string?

insert($table, $data)
Return: [number] The last insert id
But in code:
https://github.com/catfan/Medoo/blob/634bcef389e4eaa40d10e6d66a9eecc0f7638cc7/medoo.php#L717
$lastId = array();
……
$lastId[] = $this->pdo->lastInsertId();
……
return count($lastId) > 1 ? $lastId : $lastId[ 0 ];

It is better?
if (count($lastId) === 0) {
    return 0;
}
else {
    return count($lastId) > 1 ? (int)end($lastId) : (int)$lastId[0];
}

When the $data argument includes multi rows, an array contains each inserted row id will be returned. end($lastId) gets the last element of the array and it is incorrect.
The numeric string comes from the return value of PDO::lastInsertId(). Type-casting by force may lose precision if the underlying database use very large int as auto-increment id.

@SyuTingSong Thx, you are right.
I think should modify Documentation (http://medoo.in/api/insert).
"Return: [string|array] The last insert id"
And in php documentation:

PDO::lastInsertId
Note:
This method may not return a meaningful or consistent result across different PDO drivers, because the underlying database may not even support the notion of auto-increment fields or sequences.
Medoo Documentation would be best warn this.

when using enter mssql with freetds,  PDO::lastInsertId() [pdo.lastinsertid]: SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()
I add a try-catch
try {
    $lastId[] = $this->pdo->lastInsertId();
}catch (Exception $e){
    return 0;
}

It's updated on Medoo 1.2. Use new API id() instead.


Fix "currentURL" property for older Ember versions

resolves #8

@rwjblue how do you survive without being at the computer for 5 days? 😜

LOL, no more like I just forgot 🤦♂


Allow connection keepalive to be configured

This PR allows the connector keep alive settings to be configured. It also bumps the cookbook version to 2.2.0.

Waiting for fixes to tungsten.ini.erb before accepting the PR.

:+1: I'm going to test them tomorrow morning hopefully.


Messaging.messaging().token gives a request timed out in China

Environment

Xcode version: 12.1
Firebase SDK version: 7.0.0
Installation method: CocoaPods
Firebase Component: Messaging

Problem
We have used following code snippet (as given in the doc) to get the FCM Token,
Messaging.messaging().token { token, error in
  if let error = error {
    print("Error fetching FCM registration token: \(error)")
  } else if let token = token {
    print("FCM registration token: \(token)")
  }
}

And this works as expected in US,SL, etc but it gives the following error for all the iOS devices in China,
Error fetching FCM registration token: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <22F1AB3C ...>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <22F1AB3C ...>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://device-provisioning.googleapis.com/checkin, NSErrorFailingURLKey=https://device-provisioning.googleapis.com/checkin, _kCFStreamErrorDomainKey=4}

Appreciate any insights on this...

Hi @Koronaa, sorry for the late reply here. May I know if you're still encountering an issue in getting the FCM token for all the devices in China? If not, have you tried it using VPN in order to isolate the issue?


[DUOS-994][risk=no] Standardize ConsentDAO

DUOS-994

Standardized column and table names for consents and consent_associations.
Standardized SQL queries for easier readability.
Added DB updates as an increment to the changelog.
Updated associated mappers and DAO classes where updated tables and columns were referenced.
Also refactored container init/teardown for SupportRequestServiceTest, which was failing. Modeled changes from Greg's container refactor PR.

Have you read CONTRIBUTING.md lately? If not, do that first.

Label PR with a Jira ticket number and include a link to the ticket
Label PR with a security risk modifier [no, low, medium, high]
PR describes scope of changes
Get a minimum of one thumbs worth of review, preferably two if enough team members are available
Get PO sign-off for all non-trivial UI or workflow changes
Verify all tests go green
Test this change deployed correctly and works on dev environment after deployment

Had to refactor SupportRequestServiceTest but all tests are passing now.

Have a look at src/main/resources/test-data.xml. That file is used to insert data for automated tests. It looks like some inserts should fail, but tests are passing, so not sure what's going on there.


dartdoc appears to generate bad documentation with SDK 22.0

Investigation ongoing in dart-lang/dartdoc#1603.

Version rev to 0.16.0 should fix the issue, PR coming up shortly.


fix: support "setup" attribute in

In Vue 3, when

:tada: This PR is included in version 7.0.0-alpha.15 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Analyzer keeps on restarting  on flutter clean and doing a debug

stop running flutter clean then, it should not be necessary for "normal" development - and if it is there is a bug report that would be really helpful to get.
In the future, please actually fill out the issue template so that it is actionable


Adopt to pre-release extension support

Hi VS Code PM here 👋
Refs: https://github.com/microsoft/vscode/issues/15756
VS Code now supports pre-release extensions. Docs that should help: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions
I know VSCode-graphql has a separate Insiders extension. Ideally you would adopt to our pre-release support and we would deprecate that other extension. VS Code can automatically migrate your existing VSCode-graphql Insiders users to the pre-release version of the extension once you have done the adoption.
Let me know what you think

@isidorn we have tried, but the lack of support for semver pre-release tags makes it very difficult to support with standard tooling. I still have a plan for how to work around it, but we may need to wait

@acao thanks for trying to use pre-release support.
You can wait for semver support by the Marketplace but that will not happen this year.
Did you try following the workaround recommendation from this docs https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions
"Because of this we recommend that extensions use major.EVEN_NUMBER.patch for release versions and major.ODD_NUMBER.patch for pre-release versions"
All the extensions we talked to so far have been successful in adopting to pre-release support.


3x4 Slatwall Adapter

Allows for the use of standard Slatwall accessories with DDD Printable Wall Control System
Print with a left/right set of 4x0 Flats

Fantastic, thanks for the contribution!


Bug: [Entity] cast boolean in entity from PostgreSQL is always true

PHP Version
8.1
CodeIgniter4 Version
4.3.4
CodeIgniter4 Installation Method
Composer (as dependency to an existing project)
Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
PostgreSQL 15.2
What happened?
When try to cast boolean value in entity when use PostgreSQL the value is always true
When check the entity the value true is set as string t, and the value false is set as string f
The BooleanCast cast as (bool) $value so the value always returns true
Steps to Reproduce
class TestEntity extends BaseEntity
{
    protected $casts = [
        'bolean_value'  => 'boolean',
    ];
    protected $datamap = [
        'boleanValue' => 'bolean_value',
    ];
}

class TestModel extends APIBaseModel
{
    protected $table = 'postgresql_table';
    protected $returnType = TestEntity::class;
}

class TestController extends BaseController
{
    protected $modelName = TestModel::class;

    public function find(): Response
    {
        return $this->respond($this->model->first());
    }
}

Expected Output
{
    "boleanValue": false
}

When postgresql DB entry is false but always returns true
Anything else?
No response

@kenjis is there any update to that issue?

No. I think this is not a bug. The current implementation does not support PostgreSQL bool type.
Supporting it needs an enhancement.
If you need it, try to send a PR to 4.4 branch.

You can extend the BooleanCast class and cast the type you need.
@kenjis Entity is a representation of data and is not directly related to the DBMS. I don't think this is a good solution.

@iRedds What do you mean? You think adding PostgreBooleanCast is better?
I think it is better that BooleanCast supports PostgreSQL boolean type column if possible.

<?php

namespace App\Entities\Cast;

use CodeIgniter\Entity\Cast\BooleanCast as BaseCast;

class BooleanCast extends BaseCast
{
    public static function get($value, array $params = []): bool
    {
        if ($value === 't') {
            return true;
        }
        if ($value === 'f') {
            return false;
        }

        return parent::get($value, $params);
    }
}

Actually this is what i have done in my own extended cast.
But i was wondering why it is not handled by CI by default because the Postgre driver exists

@iRedds CI4 supports PostgreSQL but the Entity cannot support boolean type column.
Isn't it a missing feature?

#8243 would solve this issue.

Thank you @kenjis  ~


atkinson-monolegible: init at 0-unstable-2023-02-27

Close https://github.com/NixOS/nixpkgs/issues/353640

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thanks so much for packaging/reviewing this so quickly! Really appreciate it.


Fix Issues and new Fan type

Issues solved:
#3 : Added Support to Fan devices
#9 : Added Support to DIY devices
#10 : Fixed update status
#11 : The Air Conditioner is a DIY device, solved

Please Test the code first, its my first time with Python 😆

@joshepw Hello, have you tested this changes? I check the code and seems good.

@joshepw Do you read me?

Sorry, bussy week, but yes i read you

Hello, have you tested this changes? I check the code and seems good.
R:// No, i only tested the fix of A/C, i dont have Fans and Lights/Media IRs

@joshepw ok, let's release as another beta.


Add header format for snark keys from RFC 0039

This PR adds the JSON-encodable format to be used in the header for the URS, snark keys, etc. as proposed in RFC 0039. This header allows us to identify and check files for compatibility with the current configuration, as part of the path to specifying keys in the config file.
Checklist:

[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them:

@Mergifyio refresh