[Bug] Unable to generate correct code on Windows

Describe the bug
Hi! I downloaded the template according to the tutorial [Generating code] , but the code generated after running just is different from the original and get two errors.

Codegen logs with RUST_LOG=debug environment variable
$ RUST_LOG=debug just
flutter pub get
Running "flutter pub get" in flutter_rust_bridge_template...      2,220ms
flutter_rust_bridge_codegen --rust-input native/src/api.rs --dart-output lib/bridge_generated.dart --c-output ios/Runner/bridge_generated.h --c-output macos/Runner/bridge_generated.h --dart-decl-output lib/bridge_definitions.dart --wasm
[2022-11-07T14:36:37Z DEBUG flutter_rust_bridge_codegen] configs=[Opts { rust_input_path: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src/api.rs", dart_output_path: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.dart", dart_decl_output_path: Some("D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_definitions.dart"), c_output_path: ["D:\\Practice\\flutter\\flutter_rust_bridge_template\\ios/Runner/bridge_generated.h", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\macos/Runner/bridge_generated.h"], rust_crate_dir: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native", rust_output_path: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.rs", class_name: "Native", dart_format_line_length: 80, 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: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native\\Cargo.toml", dart_root: Some("D:\\Practice\\flutter\\flutter_rust_bridge_template"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: true, inline_rust: false }]
[2022-11-07T14:36:38Z DEBUG lib_flutter_rust_bridge_codegen::source_graph] Trying to parse "\\\\?\\D:\\Practice\\flutter\\flutter_rust_bridge_template\\native\\src\\api.rs"
[2022-11-07T14:36:38Z DEBUG lib_flutter_rust_bridge_codegen::source_graph] Trying to parse "\\\\?\\D:\\Practice\\flutter\\flutter_rust_bridge_template\\native\\src\\bridge_generated.rs"
[2022-11-07T14:36:38Z WARN  lib_flutter_rust_bridge_codegen::source_graph] Skipping unresolvable module web (tried \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\web.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\web\mod.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\web.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\web\mod.rs, )
[2022-11-07T14:36:38Z WARN  lib_flutter_rust_bridge_codegen::source_graph] Skipping unresolvable module io (tried \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\io.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\io\mod.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\io.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\io\mod.rs, )
[2022-11-07T14:36:38Z DEBUG lib_flutter_rust_bridge_codegen::parser] parse_function function name: Ident(platform)
[2022-11-07T14:36:38Z DEBUG lib_flutter_rust_bridge_codegen::parser] parse_function function name: Ident(rust_release_mode)
[2022-11-07T14:36:38Z DEBUG lib_flutter_rust_bridge_codegen::tools] Guessing toolchain the runner is run into
[2022-11-07T14:36:38Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute command: bin=powershell args="-noprofile -command & \"flutter\" \"--version\"" current_dir=None cmd="powershell" "-noprofile" "-command" "& \"flutter\" \"--version\""
Flutter 3.0.5 • channel unknown • unknown source
Framework • revision f1875d570e (4 months ago) • 2022-07-13 11:24:16 -0700
Engine • revision e85ea0e79c
Tools • Dart 2.17.6 • DevTools 2.12.2
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] command="powershell" "-noprofile" "-command" "& \"flutter\" \"--version\"" stdout= stderr=
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::tools] Checking presence of ffi in dependencies at D:\Practice\flutter\flutter_rust_bridge_template
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::tools] Checking presence of ffi in dependencies at D:\Practice\flutter\flutter_rust_bridge_template
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::tools] Checking presence of ffigen in dev_dependencies at D:\Practice\flutter\flutter_rust_bridge_template
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::tools] Checking presence of ffigen in dev_dependencies at D:\Practice\flutter\flutter_rust_bridge_template
[2022-11-07T14:36:44Z INFO  lib_flutter_rust_bridge_codegen] Picked config: Opts { rust_input_path: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src/api.rs", dart_output_path: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.dart", dart_decl_output_path: Some("D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_definitions.dart"), c_output_path: ["D:\\Practice\\flutter\\flutter_rust_bridge_template\\ios/Runner/bridge_generated.h", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\macos/Runner/bridge_generated.h"], rust_crate_dir: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native", rust_output_path: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.rs", class_name: "Native", dart_format_line_length: 80, 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: "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native\\Cargo.toml", dart_root: Some("D:\\Practice\\flutter\\flutter_rust_bridge_template"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: true, inline_rust: false }
[2022-11-07T14:36:44Z INFO  lib_flutter_rust_bridge_codegen] Phase: Parse source code to AST, then to IR
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::source_graph] Trying to parse "\\\\?\\D:\\Practice\\flutter\\flutter_rust_bridge_template\\native\\src\\api.rs"
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::source_graph] Trying to parse "\\\\?\\D:\\Practice\\flutter\\flutter_rust_bridge_template\\native\\src\\bridge_generated.rs"
[2022-11-07T14:36:44Z WARN  lib_flutter_rust_bridge_codegen::source_graph] Skipping unresolvable module web (tried \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\web.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\web\mod.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\web.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\web\mod.rs, )
[2022-11-07T14:36:44Z WARN  lib_flutter_rust_bridge_codegen::source_graph] Skipping unresolvable module io (tried \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\io.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\io\mod.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\io.rs, \\?\D:\Practice\flutter\flutter_rust_bridge_template\native\src\bridge_generated\io\mod.rs, )
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::parser] parse_function function name: Ident(platform)
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::parser] parse_function function name: Ident(rust_release_mode)
[2022-11-07T14:36:44Z INFO  lib_flutter_rust_bridge_codegen] Phase: Transform IR
[2022-11-07T14:36:44Z INFO  lib_flutter_rust_bridge_codegen] Phase: Generate Rust code
[2022-11-07T14:36:44Z INFO  lib_flutter_rust_bridge_codegen] Phase: Generate Dart code
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::generator::dart] distinct_input_types=[]
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::generator::dart] distinct_output_types=[Primitive(Bool), Primitive(I32), Delegate(PrimitiveEnum { ir: IrTypeEnumRef { name: "Platform" }, repr: I32 })]
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute format_rust path=["D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.rs", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.io.rs", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.web.rs"]
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute command: bin=rustfmt args="D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.rs D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.io.rs D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.web.rs" current_dir=None cmd="rustfmt" "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.rs" "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.io.rs" "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.web.rs"
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] command="rustfmt" "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.rs" "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.io.rs" "D:\\Practice\\flutter\\flutter_rust_bridge_template\\native/src\\bridge_generated.web.rs" stdout= stderr=
[2022-11-07T14:36:44Z INFO  lib_flutter_rust_bridge_codegen] Phase: Generating Dart bindings for Rust
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute cbindgen rust_crate_dir=D:\Practice\flutter\flutter_rust_bridge_template\native c_output_path=C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.h
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] cbindgen config: Config {
        header: None,
        includes: [],
        sys_includes: [
            "stdbool.h",
            "stdint.h",
            "stdlib.h",
        ],
        after_includes: None,
        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: {},
        },
    }
[2022-11-07T14:36:44Z DEBUG cbindgen::bindgen::parser] Parsing crate native
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::Platform - opaque (Enum is not marked with a valid #[repr(prim)] or #[repr(C)].).
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::DartPort.
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::DartPostCObjectFnType.
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::store_dart_post_cobject.
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::WireSyncReturnStruct.
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::wire_platform.
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::wire_rust_release_mode.
[2022-11-07T14:36:44Z INFO  cbindgen::bindgen::parser] Take native::free_WireSyncReturnStruct.
[2022-11-07T14:36:44Z WARN  cbindgen::bindgen::ir::cfg] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
[2022-11-07T14:36:44Z WARN  cbindgen::bindgen::ir::cfg] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
[2022-11-07T14:36:44Z WARN  cbindgen::bindgen::ir::cfg] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
[2022-11-07T14:36:44Z WARN  cbindgen::bindgen::ir::cfg] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
[2022-11-07T14:36:44Z WARN  cbindgen::bindgen::ir::cfg] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
[2022-11-07T14:36:44Z WARN  cbindgen::bindgen::ir::cfg] Missing `[defines]` entry for `target_family = "wasm"` in cbindgen config.
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute ffigen c_path=C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.h dart_path=C:\Users\P\AppData\Local\Temp\.tmpAEYX4U 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"]
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] ffigen config:
            output: 'C:\Users\P\AppData\Local\Temp\.tmpAEYX4U'
            name: 'NativeWire'
            description: 'generated by flutter_rust_bridge'
            headers:
              entry-points:
                - 'C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.h'
              include-directives:
                - 'C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.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'

[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] ffigen config_file: NamedTempFile("C:\\Users\\P\\AppData\\Local\\Temp\\.tmplrvKcK")
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::tools] Guessing toolchain the runner is run into
[2022-11-07T14:36:44Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute command: bin=powershell args="-noprofile -command & \"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"C:\\\\Users\\\\P\\\\AppData\\\\Local\\\\Temp\\\\.tmplrvKcK\"" current_dir=Some("D:\\Practice\\flutter\\flutter_rust_bridge_template") cmd="powershell" "-noprofile" "-command" "& \"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"C:\\\\Users\\\\P\\\\AppData\\\\Local\\\\Temp\\\\.tmplrvKcK\""
Running in Directory: 'D:\Practice\flutter\flutter_rust_bridge_template'
Input Headers: [C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.h]
[SEVERE] : Header C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.h: Total errors/warnings: 1.
[SEVERE] :     C:\Users\P\AppData\Local\Temp\.tmpQkjiDZ.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]
Finished, Bindings generated in C:\Users\P\AppData\Local\Temp\.tmpAEYX4U
[2022-11-07T14:36:49Z DEBUG lib_flutter_rust_bridge_codegen::commands] command="powershell" "-noprofile" "-command" "& \"flutter\" \"pub\" \"run\" \"ffigen\" \"--config\" \"C:\\\\Users\\\\P\\\\AppData\\\\Local\\\\Temp\\\\.tmplrvKcK\"" stdout= stderr=
[2022-11-07T14:36:49Z INFO  lib_flutter_rust_bridge_codegen] Phase: Running build_runner
[2022-11-07T14:36:49Z INFO  lib_flutter_rust_bridge_codegen] Phase: Formatting Dart code
[2022-11-07T14:36:49Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute format_dart path=["D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.dart", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_definitions.dart", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.web.dart", "D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.io.dart"] line_length=80
[2022-11-07T14:36:49Z DEBUG lib_flutter_rust_bridge_codegen::commands] execute command: bin=powershell args="-noprofile -command & \"dart\" \"format\" \"--line-length\" \"80\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_definitions.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.web.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.io.dart\"" current_dir=None cmd="powershell" "-noprofile" "-command" "& \"dart\" \"format\" \"--line-length\" \"80\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_definitions.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.web.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.io.dart\""
Formatted D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.dart
Formatted D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_definitions.dart
Formatted D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.web.dart
Formatted D:\\Practice\\flutter\\flutter_rust_bridge_template\\lib/bridge_generated.io.dart
Formatted 4 files (4 changed) in 0.29 seconds.
[2022-11-07T14:36:50Z DEBUG lib_flutter_rust_bridge_codegen::commands] command="powershell" "-noprofile" "-command" "& \"dart\" \"format\" \"--line-length\" \"80\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_definitions.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.web.dart\" \"D:\\\\Practice\\\\flutter\\\\flutter_rust_bridge_template\\\\lib/bridge_generated.io.dart\"" stdout= stderr=
[2022-11-07T14:36:50Z INFO  lib_flutter_rust_bridge_codegen] Success!
[2022-11-07T14:36:50Z INFO  flutter_rust_bridge_codegen] Now go and use it :)
flutter pub run build_runner build
[INFO] Generating build script...
[INFO] Generating build script completed, took 434ms

[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 62ms

[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 562ms

[INFO] Running build...
[INFO] Running build completed, took 13ms

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 33ms

[INFO] Succeeded after 59ms with 0 outputs (0 actions)

cd native && cargo fmt
dart format .
Formatted 8 files (0 changed) in 0.42 seconds.

To Reproduce
git clone https://github.com/Desdaemon/flutter_rust_bridge_template.git
cd .\flutter_rust_bridge_template
flutter pub add -d build_runner
flutter pub add -d freezed
flutter pub add freezed_annotation
add flutter pub run build_runner build to justfile
just
Expected behavior
Same as the original generated code of flutter_rust_bridge_template
Generated binding code
No response
OS
Windows 11
Version of flutter_rust_bridge_codegen
1.49.1
Flutter info
[✓] Flutter (Channel unknown, 3.0.5, on Microsoft Windows [version
    10.0.22000.1098])
    • Flutter version 3.0.5 at E:\flutter
    • Upstream repository unknown
    • Framework revision f1875d570e (4 months ago), 2022-07-13
      11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK
    version 33.0.0)
    • Android SDK at E:\android_sdk\
    • Platform android-33, build-tools 33.0.0
    • ANDROID_SDK_ROOT = E:\Android\Sdk
    • Java binary at: E:\android\jre\bin\java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022
    17.3.6)
    • Visual Studio at D:\vs2022
    • Visual Studio Community 2022 version 17.3.32929.385
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2021.3)
    • Android Studio at E:\android
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft
      Windows [version 10.0.22000.1098]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome
      107.0.5304.88
    • Edge (web)        • edge    • web-javascript • Microsoft Edge
      106.0.1370.52

Version of clang++
No response
Version of ffigen
7.2.0
Additional context
pubspec.yaml:
name: flutter_rust_bridge_template
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.17.5 <3.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  ffi: ^2.0.1
  flutter_rust_bridge: ^1.49.1
  freezed_annotation: ^2.2.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^2.0.0
  ffigen: ^7.2.0
  build_runner: ^2.3.2
  freezed: ^2.2.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter packages.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

[SEVERE] :     C:\Users\P\AppData\Local\Temp.tmpQkjiDZ.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]

https://github.com/fzyzcjy/flutter_rust_bridge/issues/402

#402

Thanks! I finally generated the correct code and ran it successfully! I run

flutter_rust_bridge_codegen --rust-input native/src/api.rs --dart-output lib/bridge_generated.dart --c-output ios/Runner/bridge_generated.h --c-output macos/Runner/bridge_generated.h --dart-decl-output lib/bridge_definitions.dart --wasm

in Developer Command Prompt for VS 2022 and it work, maybe I missed some environment variable settings.
Feel free to close this issue, thanks for your support !


Upgraded Rails [4.2.8] and Nokogiri [1.7.1] {{cve:672}} (15m)

Changes Unknown when pulling b23166a1eac07b778147c7345bfcdbd00c34b50d on updates-for-cve-672 into ** on master**.


nvm_self_upgrade to upgrade nvm itself

Let's make nvm upgrade process easier.

Thanks for the PR!
This is to solve #400 - I'm not sure yet if this is the direction I want to go for self-updating. I think using curl or wget isn't ideal, because I'll want to be able to refactor the entire file structure later - but requiring git to self-update might be too restrictive.

@ljharb I'm using git, curl and wget just as its installation, IMO it should be okay since that's the current way nvm getting nodejs files and install itself, and it isn't complex for you or me to refactor in future, instead, I thought the cost is very fair enough since we can upgrade nvm very easily by this method, instead of fetch tags and checkout to new versions manually or even go to the project website and get/do the installation command again, if there is git command, we don't even need to download the whole installation script, what do you think?

Just to make sure I set expectations here: this feature is the final one I want to add before v1.0. If you're comfortable with waiting until I'm ready to add it - and if you're kind enough to check the "let maintainers make edits" box, so that I can add my own commits and do my own rebasing for you if timing doesn't permit you to have the time to do so - then I think a form of what you've contributed here absolutely can make it in! I very much appreciate your contributions and I won't make the same mistake as I did before of closing your PR in favor of my own commits, but I'm very time-driven and change-driven so being able to make my own edits will help me out :-)
In other words, I intend to primarily only rebase this for you as needed, and I'll request changes for at least 24 hours before implementing them myself, but it's still going to be a little while before I'm ready to merge this feature. Hopefully that's OK!

No problem @ljharb , thanks for your review, I'll hope this can be done soon, the later to be merged, the higher possibility to get conflicts, do you have any plan about v1.0.0? btw, the build failed seems to be an accident actually passed the test.

This looks great!

@ljharb just asking, if it's possible to merge this earlier? Leaving this patch until v1.0.0 would only makes conflicts but no any benefits IMO, thanks.

Hello @ljharb ?

It won't be merged earlier and it won't be any time soon' but this feature was never one I intended to be done by someone other than myself, and it's still a long way off.


Please add LICENSE as META-INF/LICENSE, add Bundle-License header

Thanks for Hamcrest

Current hamcrest.jar are hard to bundle into other software due to missing licensing information.

Suggested changes are:
2.1) Package license as META-INF/LICENSE. Current one is LICENSE.txt, and de-facto standard is META-INF/LICENSE. The license files packaged at the root cause problems with Android.
Basically whoever makes an uberjar they have to implement "license merger", and typically they configure for META-INF/LICENSE.
2.2) Please add Bundle-License: BSD-3-Clause manifest entry (where BSD-3-Clause is SPDX identifier, see https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#framework.module-bundle-license )
Unfortunately, there are lots of BSD-style licenses, and it is hard to tell what "New BSD License" means.
2.3) Even though 2.1 and 2.2 would be great, you might want to use BSD-3-Clause for <licence><name> tag in pom.xml. The use of SPDX in pom is not common yet, however BSD-3-Clause there would help even humans.

This seems like a reasonable improvement. Are you able to create a pull request with these changes?

@tumbarumba , here's a PR: https://github.com/hamcrest/JavaHamcrest/pull/399

@tumbarumba , PR #414 does not include LICENSE file to the generated jar. Would you please include it?


TimeDistributed ResNet

Often, CNN+LSTM architectures require a TimeDistributed version of CNNs - one CNN architecture acting on several time-distributed inputs, and then fed into an LSTM.
Invoking the argument time_distributed=True shall create a TimeDistributed version of ResNet, with nb_time_steps versions of the ResNet, with the input_shape specified as (nb_time_steps, nb_rows, nb_cols, nb_channels).

I do not believe this is the correct approach. For CNN + LSTM models, the correct approach is as below :
from keras.layers import TimeDistributed
from keras_contrib.applications.resnet import ResNet

input_layer = Input(shape=(Timedim, rows, cols, channels))
time_distributed_output = TimeDistributed(ResNet(...))(input_layer)

model = Model(input_layer, time_distributed_output)

There is no reason to use TimeDistributed over each block.
However, since @ahundt is the author of the ResNet models in Keras, I will defer the final decision to him.

@titu1994  I had tried that approach but it hadn't worked. That's why I had to wrap TimeDistributed individually over all blocks except the skip connections.
I agree, let's defer the decision to @ahundt, he was the one who had suggested this PR to me.

I'm very interested in this feature, thanks for the PR!
@voletiv do you have test code that can reproduce the issue with what @titu1994 suggested?
@titu1994 do you have any suggestions that might resolve the problem?
A side note is that I've also got a few PRs open for this code, and I think @roatienza identified a bug mentioned in https://github.com/keras-team/keras/pull/8231#issuecomment-338896620. @voletiv have you encountered that problem?
@roatienza do you perhaps have additional details?

@ahundt I don't really work with CNN LSTM models, so I thought that version could work (it was referenced by @fchollet in one of the presentations of Tensorflow, though I can't recall the title of the speech at the moment.
It would seem to work for Inception v3, so I assumed it would apply to ResNets as well. It would be interesting to know if this wasn't the case for some reason.

I used the following code (at the root folder of keras-contrib) to show TImeDistributed(ResNet) does not work properly. Although the error is related to BatchNorm, probing into it further seemed more difficult than making this PR!
import numpy as np

from keras_contrib.applications.resnet import *
from keras.layers import TimeDistributed

time_steps = 8
input_shape = (128, 128, 3)
channels = 10

# Making the naive TimeDistributed version of ResNet
input_tensor = Input(shape=(time_steps, *input_shape))
resnet_model = ResNet18(input_shape, channels)
output_tensor = TimeDistributed(resnet_model)(input_tensor)
naive_time_distributed_resnet_model = Model(inputs=[input_tensor], outputs=[output_tensor])

# To test
a = np.random.random((2, time_steps, *input_shape))

# Testing
b = naive_time_distributed_resnet_model.predict(a)

# We get the following error:
# InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'batch_normalization_1/keras_learning_phase' with dtype bool

# My time_distributed version
my_time_distributed_resnet_model = ResNet18((time_steps, *input_shape), channels, time_distributed=True)

# Testing
b = my_time_distributed_resnet_model.predict(a)

b.shape
# (2, 8, 10)

Let me know what you think.

When I was implementing the keras cifar10_resnet.py, there were some architectural differences from the keras-contrib resnet and the paper that I discovered. This is why keras-contrib version could not reach accuracy >90 for the shallow resnet during the time I tested it.

@voletiv I looked into it and to the best of my knowledge I believe what you've done is the best way to go about this task. However, there were a number of bugs in the code, mostly due to existing bugs.
Can you review #167 and test it out to see if it works for you? I've incorporated your commits there.

@voletiv Can you also try the code you posted above with #167 to confirm that approach still doesn't work? If that's the case I think we should produce a bug report issue upstream on Keras.

I've reviewed #167, my changes have been faithfully reproduced, thanks! I have made a few comments about other minor bugs.
I tried the code I posted above with the updated code in #167, naive way still didn't work, mine did.
In test_resnet.py, maybe include a prediction as well, like I did in the code above? Because naive_time_distributed_resnet_model compiles without hiccups, so mere compilation might not be a good metric for testing.

@roatienza Is it possible the increase in accuracy is simply because of mean subtraction? (which wasn't done in the original file w.r.t. your PR)

closing in favor of #167 which contains these changes


Add multiple Alerting Rules in PrometheusRule to always display the same value

Setup

Rancher version: v2.7.8
Rancher UI Extensions:
Browser type & version:

Describe the bug

When adding a second or more Alerting Rules to a PrometheusRule, the newly added Alerting Rules are the same as the first one
To Reproduce

Enable rancher monitoring, navigate to PrometheusRule and add multiple Alerting Rules
Result
All Alerting Rules are the same, and if you modify one of the Alerting Rules, the other forms will also take effect.

Screenshots

Additional context

automated e2e tests added with this PR: https://github.com/rancher/dashboard/pull/10745

e2e test seems sufficient to me. Moving this to Done cc: @izaac


List prompt gets cut off if too long. Opened issue on repo

https://github.com/magmax/python-inquirer/issues/42

I suppose I could pre-print some of the question, but like c'mon man.


test: add 4 test cases for copy data

1.test copy data from another client
2.test copy data abort
3.test copy data from another dataset
4.test copy data from another commit

Pull Request Test Coverage Report for Build 982330863

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.714%

Totals

Change from base Build 982313642:
0.0%

Covered Lines:
4986

Relevant Lines:
5956

💛  - Coveralls

is covered by https://github.com/Graviti-AI/tensorbay-python-sdk/pull/775


Minor bug fixes after perception refactor

Description
This PR includes some minor bug fixes that got discovered when testing in prod with Minecraft.
Type of change
Please check the options that are relevant.

[x] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[ ] Refactor
[ ] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[ ] This is a unit test
[ ] Documentation only change
[ ] Datasets Release
[ ] Models Release

Type of requested review

[ ] I want a thorough review of the implementation.
[ ] I want a high level review.
[ ] I want a deep design review.

Testing
All unit tests + CI + tested in prod - played with the craftAssist agent in Minecraft
Checklist:

[ ] I have performed manual end-to-end testing of the feature in my environment.
[ ] I have added Docstrings and comments to the code.
[ ] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[ ] New and existing unit tests pass locally with my changes.
[ ] I have added relevant collaborators to review the PR before merge.
[ ] [Polymetis only] I have verified that all scripts in tests/scripts runs on hardware.

Codecov Report

Merging #728 (8214608) into main (b20e1f8) will decrease coverage by 0.16%.
The diff coverage is n/a.

:exclamation: Current head 8214608 differs from pull request most recent head 21cdbdd. Consider uploading reports for the commit 21cdbdd to get more accurate results

@@            Coverage Diff             @@
##             main     #728      +/-   ##
==========================================
- Coverage   34.65%   34.48%   -0.17%
==========================================
  Files         319      318       -1
  Lines       31359    31137     -222
==========================================
- Hits        10868    10739     -129
+ Misses      20491    20398      -93

Impacted Files
Coverage Δ

agents/craftassist/tests/fake_agent.py
71.52% <0.00%> (-0.65%)
:arrow_down:

interpreter/craftassist/tasks.py
72.56% <0.00%> (-0.37%)
:arrow_down:

agents/droidlet_agent.py


Error in  train phase

OutOfRangeError (see above for traceback): PaddingFIFOQueue '_1_get_batch/batch/padding_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
[[Node: get_batch/batch = QueueDequeueManyV2[component_types=[DT_STRING, DT_FLOAT, DT_INT32, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](get_batch/batch/padding_fifo_queue, get_batch/batch/n)]]
I have this error when i train the model, i use the default cfgs, can u give some suggestions?

I have encountered the same question as you and  i have changed the default cfgs, I wonder how you solved this problem ,thanks very much .@ztyxd

@Baby47  you should provide that the name of tf_record is same between the cfg.py and your tf_record

I have encountered the same question as you, I wonder how you solved this problem ,thanks very much . @ztyxd @wenliangsun @Baby47


Fix exported symbol detection on macOS

Since the replacement of --bundle-vst3 with export detection, at least on my machine, running
cargo xtask bundle gain_gui --release

results in Not creating any plugin bundles because the package does not export any plugins.
This diff fixes that.

Never mind; this diff doesn't make sense.

Any idea what caused the symbols to not be detected on your machine? It works fine for the macOS CI with cargo xtask bundle gain_gui --release.

I'm not sure. FWIW I'm running macOS 12.2.1 versus macOS 10.15 for the CI version (no clue if that matters).
Anyway, I opened a better version of this PR: #3


Test per-range skip/enter in diff iterator

By explicitly forbidding diff iterator from entering some ranges we can be more explicit what
should happen where.  Indeed, this hints at a bug (marked) that a range is needlessly entered
after SeekGE.

Codecov Report

Merging #1266 (c3be816) into master (6506fb2) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1266      +/-   ##
==========================================
- Coverage   47.53%   47.51%   -0.02%
==========================================
  Files         203      202       -1
  Lines       15678    15694      +16
==========================================
+ Hits         7452     7457       +5
- Misses       7256     7261       +5
- Partials      970      976       +6

Impacted Files
Coverage Δ

graveler/committed/merge_iterator.go
87.71% <0.00%> (-12.29%)
:arrow_down:

graveler/committed/apply.go
70.12% <0.00%> (-5.93%)
:arrow_down:

catalog/mvcc/cataloger_create_repository.go
59.25% <0.00%> (-3.71%)
:arrow_down:

graveler/committed/iterator.go
58.90% <0.00%> (-1.66%)
:arrow_down:

catalog/rocks/cataloger.go
24.62% <0.00%> (-0.16%)
:arrow_down:

api/api_controller.go
39.66% <0.00%> (-0.06%)
:arrow_down:

graveler/graveler.go
41.64% <0.00%> (ø)

catalog/rocks/entry_catalog.go
15.38% <0.00%> (ø)

api/errors.go

catalog/migrate/migrate.go
65.05% <0.00%> (+0.50%)
:arrow_up:

... and 2 more

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 6506fb2...c3be816. Read the comment docs.

Codecov Report

Merging #1266 (c3be816) into master (6506fb2) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1266      +/-   ##
==========================================
- Coverage   47.53%   47.51%   -0.02%
==========================================
  Files         203      202       -1
  Lines       15678    15694      +16
==========================================
+ Hits         7452     7457       +5
- Misses       7256     7261       +5
- Partials      970      976       +6

Impacted Files
Coverage Δ

graveler/committed/merge_iterator.go
87.71% <0.00%> (-12.29%)
:arrow_down:

graveler/committed/apply.go
70.12% <0.00%> (-5.93%)
:arrow_down:

catalog/mvcc/cataloger_create_repository.go
59.25% <0.00%> (-3.71%)
:arrow_down:

graveler/committed/iterator.go
58.90% <0.00%> (-1.66%)
:arrow_down:

catalog/rocks/cataloger.go
24.62% <0.00%> (-0.16%)
:arrow_down:

api/api_controller.go
39.66% <0.00%> (-0.06%)
:arrow_down:

graveler/graveler.go
41.64% <0.00%> (ø)

catalog/rocks/entry_catalog.go
15.38% <0.00%> (ø)

api/errors.go

catalog/migrate/migrate.go
65.05% <0.00%> (+0.50%)
:arrow_up:

... and 2 more

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 6506fb2...c3be816. Read the comment docs.

Closing -- not worth the extra complexity.

Closing -- not worth the extra complexity.


[webhook,operator] Webhook docker credentials auth + documentation update

Add support for the auth field in docker credentials
Instead of solely relying on the username / password fields in the imagePullSecrets for a given registry, fall back to the auth field if necessary.
I did some research and found no conclusive information if any of the fields are "required". https://github.com/moby/moby/blob/master/api/types/auth.go lists all fields as "omitempty". Doing a docker login with a recent version of docker creates a config.json only containing the auth field. Using kubectl create secret docker-registry creates a secret containing all 3 fields.
Update webhook documentation
Add a reference to the default imagePullSecrets to the webhook documentation
Update operator transit unseal example
From what I see in other examples e.g. https://github.com/banzaicloud/bank-vaults/blob/73c7c5bff7ebcdefec89e640eeb725d99015ce87/operator/deploy/cr.yaml#L123-L126 and my own experiments the ServiceAccount used for the vault-secrets-webhook also needs access to the unseal vault to at least retrieve the VAULT_TOKEN: "vault:login"

@mgruener thanks for the extensions, have you considered this commented out section (I started to implement it, but haven't finished it):
https://github.com/banzaicloud/bank-vaults/blob/master/cmd/vault-secrets-webhook/registry/registry.go#L247

@bonifaido Yes, I have seen the commented out code and the TODO but that is more related to #587 than to this PR, right?
From how I understand it, this would be a third method to retrieve the registry credentials, the other two being the pod imagePullSecrets and the webhook default secret (implemented in the aforementioned PR).
It shouldn't be so hard to implement this and I can give it a shot if you want but it would be nice if this was not tied to acceptance of this current PR :smile:


"rebar ct" ignores "suites", "groups" and "cases" options if there's a ct spec

If you have a test spec, then suites, groups, and cases are ignored on the command line.  There should be some way to ignore the specs.  At a minimum this limitation should be documented.

I guess we have two options here regarding CT:

Document that .spec files always override command line options
Change rebar so that command line options override .spec files

I personally prefer the first, i'm more used to look for CT related stuff in the .spec and not on Makefiles, what's everybody's thoughts on this?
cc @tuncer @ferd

The first would probably prevent breakage given the current status of the project and how stable that kind of stuff has been.

Yes, we shouldn't change the existing behavior. But, you could of course implement something like ignore_ct_spec=1 (or another name). That's opt-in and should of course also be documented in rebar help ct.

I came across an issue with rebar ct that might be relevant to this ticket. In rebar.config you can define  a ct_direntry that states the location of your _SUITE.erl files, this is where rebar goes to look for them, however when it goes looking for .spec files rebar doesn't know use this directory at all, it just recursively searches from the project root.
This feels like a bug and if fixed could allow @MikeBenza to define separate test specs each with it's own set of suites.

See #588 for a possible fix. @MikeBenza, this allows you to separate test specs each with their own groups and cases, would this work for you?

@lrascao I haven't built it and tested it myself, but based on that diff, I strongly believe that will resolve the issue I had.

Hi, this issue was closed in an attempt to do quick basic filtering. All tickets prior to March 2017 were closed and will be reopened on a per-request basis, please give rebar3 a try and feel free to reopen if it's a pressing issue that is still unresolved.


npm install

Describe the bug
it keeps trying to install npm but its not installing. although continuing to retry the same solution over and over and it not working it keeps trying the same thing.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-ulz2wc
Steps to reproduce
go to url. it will automatically try to install npm, it wont work, then when you click fix issue it reconfigures and tries the same thing again.
Expected behavior
a test run i believe at this point.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 195035196,
  "usedJSHeapSize": 191049872,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = renegadesamuri
Chat ID = 0e6c40852daa

Additional context
No response

You need to run pnpm, no npm, remove node_modules and try:
npm install pnpm
pnpm install

I am having the same issue: https://github.com/stackblitz/bolt.new/issues/3520
I have installed pnpm and prompt Bolt to use pnpm but there are still npm issues.


Simple column aggregates defined

This PR adds basic functionality for column aggregates (count not null, count distinct, min, and max) and table aggregates (count not null). This is for issue #304.

I will be updating this issue with a test case for url length limit being exceeded and forcing the request to be split into multiple requests.

@RFSH This PR is ready to be reviewed now. I made a few more minor changes.

Aliasing is now based on the index of the aggregate in the list (test added for this with some aliases defined)
url length limit is handled (and a test case tests this)


Ct-581 grants as configs

resolves #5189
Description
Add "grants" attribute to NodeConfig. Fix up all the tests.
This also contains a fix for a partial parsing error that was encountered when writing the test.
Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

@jtcohen6 We weren't really clear on whether we want to limit the keys that can be contained in the 'grants' dictionary.  I went forward assuming that people might want to create and support their own particular keys, and also that using something really specific like "select" would feel wrong on some warehouses. Or would you prefer to limit the legal keys in the grant dictionary?
I used "my_select" in the test instead of "select" because the test would probably break when we actually implement a "select" grant macro.

I also noticed that the jsonschema artifact test doesn't fail when we add a new attribute to NodeConfig, probably because of the really clever things we do to allow random keys in configs.  I would have updated the jsonschemas, but I'm not sure whether we want to update to a v6 jsonschema now (and keep updating as things change) or do later.

The partial parsing error was that if you have config in a SQL file that's been parsed and add a new schema file that also has config, the config from the SQL file will get lost because I wasn't saving the 'config_call_dict' in the serialized manifest. I switched to saving that dictionary and deleting config_call_dict for the manifest.json instead.  Updates to the schema file will work correctly. Any update to either file would correct the error.
This feels like an edge case and possibly not worth doing as a backport, but if you'd like it backported let me know and I can separate it out.

I went forward assuming that people might want to create and support their own particular keys, and also that using something really specific like "select" would feel wrong on some warehouses. Or would you prefer to limit the legal keys in the grant dictionary?

I agree with your working assumption. I wouldn't want to have to update this every time a warehouse released a new privilege type. It's also infeasible on BigQuery, which supports tons of privileges, and custom privileges.

I would have updated the jsonschemas, but I'm not sure whether we want to update to a v6 jsonschema now (and keep updating as things change) or do later.

Worth thinking about:

Pairing this with the short-term salve for users of Slim CI, proposed in https://github.com/dbt-labs/dbt-core/issues/5213#issuecomment-1117301365, for artifact updates that actually have backwards-compatible changes
Whether we actually need to update the artifact version for non-breaking changes, such as an additional default value in node.config (which can already contain any additional properties)

Nice catch on the partial parsing error! I haven't heard of someone running into this yet, so I'm happy to keep it as a forthcoming bug fix for now, without the backport.

I changed to default of clobbering the grants with the ability of extending them if the grant key starts with '+'. Take a look and see what you think.

@ChenyuLInx Your sum up is correct.


Python gRPC server blocks with CPU bound tasks

We have a long running calculation that behaves similar to the following...
In this implementation of an inefficient Fibonacci algorithm, if two clients call the NexNum function at the same time, the time each of the client's receive the return value is doubled. Is this expected behavior due to Python's GIL? Is there a way to have the first caller receive the result without having to wait?
Proto Message
syntax = "proto3";

package fib;

service Fib {
  rpc NextNum (FibRequest) returns (FibReply) {}
}

message FibRequest {
  int32 num = 1;
}

message FibReply {
  int32 num = 1;
}

gRPC Server
from concurrent import futures
import time

import grpc

import fib_pb2

_ONE_DAY_IN_SECONDS = 60 * 60 * 24

def fib(n):
    if n <= 2:
        return 1
    else:
        return fib(n-1) + fib(n-2)

class Fib(fib_pb2.FibServicer):

    def NextNum(self, request, context):
        nextnum = fib(request.num)
        return fib_pb2.FibReply(num=nextnum)

def serve():
    server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
    fib_pb2.add_FibServicer_to_server(Fib(), server)
    server.add_insecure_port('[::]:50051')
    server.start()
    try:
        while True:
            time.sleep(_ONE_DAY_IN_SECONDS)
    except KeyboardInterrupt:
        server.stop(0)

if __name__ == '__main__':
    serve()

gRPC Client
from __future__ import print_function

import grpc, time

import fib_pb2

def run():
    channel = grpc.insecure_channel('localhost:50051')
    start = time.time()
    stub = fib_pb2.FibStub(channel)
    response = stub.NextNum(fib_pb2.FibRequest(num=38))
    print(response.num)
    end = time.time()
    print(end-start)

if __name__ == '__main__':
    run()

This sounds like the GIL. If you implemented the function w/ native code that releases the GIL (or, say, Cython + with nogil:), I'd expect you to not hit the slowdown. Feel free to re-open the issue if you think this response is unsatisfactory.


Display summation of nutrition facts for a grocery trip

Problem
Scanning individual products is tedious if you want to get a compilation of nutrition facts for many items. You can think of a grocery trip as the main input of your nutrition, so we could use that compiled information (a receipt) as a means to get a better understanding of what will be consumed until the next grocery trip. Bottom line - calories purchased, calories consumed (mostly).
Proposed solution

Scan receipt from a particular store
Search database for the products (need to input receipt names to product to connect names<>barcodes, if barcode not included on receipt)
Sum nutrition content for each product and output totals for that receipt

Alternative solution, not requiring database connection between receipt names and barcodes:

Scan all purchased items from store and add to 'Grocery Trip' list
Sum nutrition content for each product and output totals and display
** This solution may incentivize more product scans since you users will scan everything they've purchased!
** Downside to this method is repetitive for regularly purchased items. This is where the previous solution outperforms.

Additional context
Assuming you're buying a week's worth of food and consuming it all within that week (which many people do), you can average your nutritional intake across that week. Scanning a receipt from one grocery store can provide the summed metrics for all the food you bought (and will consume) so you can know how much of each macronutrient you will be having for that week (averaged).

I had made this project during a hackathon, a couple of years ago: https://github.com/openreceipts/openreceipts-server
This project needs planning because a lot of things have changed since then.
We could store short receipt summaries inside of the Folksonomy Engine, for instance

Amazing to hear you've thought about this!
For learning mostly, I am working on a flutter app to do a similar thing (receipt->OCR->OFF api->nutrition facts and ingredients summary) but the possibilities are endless. I like the calories vs price scatter plot idea!
Maybe receipt insights could be part of the OFF app at some point, not sure if that's out of scope for project plans?

That would be an awesome addition indeed 👍


Changed request module to bent

Hello, @micahbule thank you so much for this! I will review and test this. I will merge soon. Thanks.


Add SteelSeries GG 8.0.0

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

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

Microsoft Reviewers: Open in CodeFlow

Looks like no one was assigned to review the PR, could you take a look @OfficialEsco?


Unable to view images

Orthanc does not appear to be hooked up to the demonstrator

Issue is non-present on http://dev1.ripple.foundation/, the images are viewable


[INSTALLATION FAILED] Unexpected status from HEAD request to Public ECR 403 Forbidden

Description

Observed Behavior:
I'm trying to install kro in my EKS cluster. But unfortunately, It didn't work well. Is there any issue to pull kro image ?
Expected Behavior:
Reproduction Steps (Please include ResourceGroup and Instances files):
Versions:

kro version: v0.1.0
Kubernetes Version (kubectl version): v1.28.5

Involved Controllers:

Controller URLs and Versions (if applicable):

Error Logs (if applicable)**:
Error: INSTALLATION FAILED: unexpected status from HEAD request to https://public.ecr.aws/v2/kro/kro/manifests/0.1.0: 403 Forbidden

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Which option describes the most your issue?
Others (please specify)

In my case I had to delete ECR login items in Keychain Access app to get it working


Keyboard closing problem

New Issue Checklist
I have read the guidelines for contributing and I understand:

[x] My issue is happening in the latest version of SideMenu.
[x] My issue was not solved in the README.
[x] My issue can not be answered on stackoverflow.com.
[x] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
[x] My issue is reproducible in the demo project.

Issue Description
I'm facing the following problem:
I have a textField in the sideMenu and when the keyboard is shown I want that when tapping outside the sideMenu to only close the keyboard and not the sideMenu.
I've seen that you have a exitTapGesture.addTarget(self, action: #selector(SideMenuTransition.handleHideMenuTap(_:))), what can I do to override this?

You'll need to add a transparent overlay to your presenting controller that handles that tap, as well as handle taps from your SideMenu. You'll want to make sure menuPresentingViewControllerUserInteractionEnabled is set to true. See the delegate methods for when to add that transparent overlay.


Update asset-management.md

why jump to English version....

@amluck I think you meant to target this PR towards the chinese fork.

Sorry....


Media popup fixes

Twitters in addition to mp4 and hls m3u8, had a third video container I didn't know about, mpd, so that's been added now. I also noticed that the video.autoplay would never be played if the container was hls, so that's been fixed too.

Working fine. Released as v1.5.1.


Should StdoutLogHandler include label in log output?

Expected behavior
When logging using different loggers, e.g.:
let one = Logger(label: "one")
let two = Logger(label: "two")

I would expect the labels one and two to appear in log output.
This is not the case with the default StdoutLogHandler:
internal struct StdoutLogHandler: LogHandler {
    private let lock = Lock()

    public init(label: String) {} // does not store label

I know the StdOutLogHandler is meant to be super minimal but this seems more like an omission?
Actual behavior
Label is not included in log statements logged through to default std out handler.

I would say it should not because I don't think that's what people really expect. Most logging systems don't actually force you to provide a label. I think the label is useful but we shouldn't force it on users. If they want it, as usually my answer would be 'make you own LogHandler' MYOLH ;)

I think logging to stdout/stderr is really common, people will expect it to work out of the box, and if we're shipping such a LogHandler (and I think we should) we should make it super awesome.

I think logging to stdout/stderr is really common, people will expect it to work out of the box, and if we're shipping such a LogHandler (and I think we should) we should make it super awesome.

Hmm, but this is deliberately just an API package because if we try to make it even 'maybe awesome' people will have conflicting opinions in what that means. So by shipping something barebones, literally that there is some output is I believe better.
Sure, for right now, where there's not many backend implementations it's a bit rough but I think that'll sort itself out :)

In my custom LogHandler I print label only if logLevel is debug or trace. But I'm not entirely sure StdoutLogHandler should utilize this logic, it's not that obvious for a random user :)

In my custom LogHandler I print label only if logLevel is debug or trace. But I'm not entirely sure StdoutLogHandler should utilize this logic, it's not that obvious for a random user :)

Yes, agreed.

I would say it should not because I don't think that's what people really expect. Most logging systems don't actually force you to provide a label. I think the label is useful but we shouldn't force it on users.

API wise we do force it though, so I thought it is weird that we do force passing a label, but it never appears anywhere; printout wise if the label passed in is empty -- there's also no printout of it, so I don't think it changes the printing semantics if it was printed?

If they want it, as usually my answer would be 'bring you own LogHandler' BYOL(H) ;).

That's probably fair; I rely a lot on loggers during library development and have some needs for them -- so might as well just implement my own that "one should never use"™ other than when I run my tests etc, since I need logging there.

Having a label would help to filter out particular logs, without introducing your own handler. As Konrad said, if you provide a label, it should be useful. As a user, I’d expect such behavior. Thanks!

Hey guys, I've created convenience way to create a logger and use a label, see https://gist.github.com/ultraon/2659f1c6c8885e8d8dc47d45b9187449
Finally, I use it in this way: private let LOG = logger("MyTag"),
and then in the same file: LOG.debug("my message),
output: 2019-12-15T22:02:26+0200 debug: MyTag: my message


Battery usage cannot be loaded when com.apple.Preferences is enabled in App List

After enabling the tweak, the configured battery settings fail to load properly

Bug confirmed A13 17.0 with injection into com.apple.Preferences. Possible duplicate of #26

Known issue.
temporarily disable tweak for Settings app.

It used to show fine till a few weeks back as I remember. But now it’s just as this issue mentions.

opa334 fixed the issue in Dopamine 2.0 already, maybe helpful for you:
https://github.com/opa334/Dopamine/issues/359#issuecomment-1961759549
https://github.com/opa334/Dopamine/commit/8f1cf9019fb365298a282d430502e2167f412139

opa334 fixed the issue in Dopamine 2.0 already, maybe helpful for you:
opa334/Dopamine#359 (comment)
opa334/Dopamine@8f1cf90

thats different issue, Bootstrap is not a jailbreak

this issue is not fixable on Bootstrap


A way to view categories and tags

Need a way to view the categories and tags as well as a way to filter the view for the workshops that have the same term.

Keeping this open as I'm not sure we need this anymore.  Added links to tags and categories for each card and search.


Task instances could be double triggered when using the --force

This prevents it, a single task for a specific schedule should never have two instances running at the same time.

Unit tests succeeded, merging.


Create fibonacci.cpp

i have created a program of fibonacci  series solution in c++

please add issue no.

a good coder never give up

Thanks for contributing , please follow the Contributing Guidelines and naming conventions in the guidelines accordingly. 🙂
Also, in this case you also need to create a folder for arrays under Algorithms and change your filename as well.
Following naming guidelines is important to maintain consistency.
Also check if the code does not already exist


Device Request - [Door Window Sensor] - [_TZ3000_bpkijo14] / [TS0203]

Device Name: [Door Window Sensor]
Device Model: [_TZ3000_bpkijo14 / TS0203]
Device Description: [Standard Door Window Sensor to register opening and closing from a Door / Window]
Link to device image: (https://nl.aliexpress.com/item/1005005482833831.html)
Device Interview:
"ids": {
"modelId": "TS0203",
"manufacturerName": "_TZ3000_bpkijo14"
},
"endpoints": {
"ieeeAddress": "a4:c1:38:4e:2f:8b:ea:25",
"networkAddress": 15493,
"modelId": "TS0203",
"manufacturerName": "_TZ3000_bpkijo14",
"endpointDescriptors": [
{
"status": "SUCCESS",
"nwkAddrOfInterest": 15493,
"_reserved": 20,
"endpointId": 1,
"applicationProfileId": 260,
"applicationDeviceId": 1026,
"applicationDeviceVersion": 0,
"_reserved1": 0,
"inputClusters": [
0,
1,
3,
1280
],
"outputClusters": [
25,
10
]
}
],
"deviceType": "enddevice",
"receiveWhenIdle": false,
"capabilities": {
"alternatePANCoordinator": false,
"deviceType": false,
"powerSourceMains": false,
"receiveWhenIdle": false,
"security": false,
"allocateAddress": true
},
"extendedEndpointDescriptors": {
"1": {
"clusters": {
"basic": {
"attributes": [
{
"acl": [
"readable"
],
"id": 0,
"name": "zclVersion",
"value": 3
},
{
"acl": [
"readable"
],
"id": 1,
"name": "appVersion",
"value": 81
},
{
"acl": [
"readable"
],
"id": 2,
"name": "stackVersion",
"value": 2
},
{
"acl": [
"readable"
],
"id": 3,
"name": "hwVersion",
"value": 1
},
{
"acl": [
"readable"
],
"id": 4,
"name": "manufacturerName",
"value": "_TZ3000_bpkijo14"
},
{
"acl": [
"readable"
],
"id": 5,
"name": "modelId",
"value": "TS0203"
},
{
"acl": [
"readable"
],
"id": 7,
"name": "powerSource",
"value": "battery"
},
{
"acl": [
"readable",
"writable"
],
"id": 18,
"name": "deviceEnabled",
"value": true
},
{
"acl": [
"readable"
],
"id": 65533,
"name": "clusterRevision",
"value": 1
}
],
"commandsGenerated": "UNSUP_GENERAL_COMMAND",
"commandsReceived": "UNSUP_GENERAL_COMMAND"
},
"powerConfiguration": {
"attributes": [
{
"acl": [
"readable"
],
"id": 0
},
{
"acl": [
"readable"
],
"id": 32,
"name": "batteryVoltage",
"value": 31
},
{
"acl": [
"readable"
],
"id": 33,
"name": "batteryPercentageRemaining",
"value": 200
},
{
"acl": [
"readable",
"writable"
],
"id": 58
},
{
"acl": [
"readable"
],
"id": 65533,
"name": "clusterRevision",
"value": 1
}
],
"commandsGenerated": "UNSUP_GENERAL_COMMAND",
"commandsReceived": "UNSUP_GENERAL_COMMAND"
},
"identify": {
"attributes": [
{
"acl": [
"readable",
"writable"
],
"id": 0,
"name": "identifyTime",
"value": 0
},
{
"acl": [
"readable"
],
"id": 65533,
"name": "clusterRevision",
"value": 1
}
],
"commandsGenerated": "UNSUP_GENERAL_COMMAND",
"commandsReceived": "UNSUP_GENERAL_COMMAND"
},
"iasZone": {
"attributes": [
{
"acl": [
"readable"
],
"id": 0,
"name": "zoneState",
"value": "notEnrolled"
},
{
"acl": [
"readable"
],
"id": 1,
"name": "zoneType",
"value": "contactSwitch"
},
{
"acl": [
"readable"
],
"id": 2,
"name": "zoneStatus",
"value": {
"type": "Buffer",
"data": [
0,
0
]
}
},
{
"acl": [
"readable",
"writable"
],
"id": 16,
"name": "iasCIEAddress",
"value": "98:0c:33:ff:fe:49:d7:8f"
},
{
"acl": [
"readable"
],
"id": 17,
"name": "zoneId",
"value": 255
},
{
"acl": [
"readable"
],
"id": 65533,
"name": "clusterRevision",
"value": 1
}
],
"commandsGenerated": "UNSUP_GENERAL_COMMAND",
"commandsReceived": "UNSUP_GENERAL_COMMAND"
}
},
"bindings": {
"ota": {},
"time": {}
}
}
}
}
Additional Comments:
[Bought on Aliexpress https://nl.aliexpress.com/item/1005005482833831.html]

I closed this one as i found an earlier request. Sorry.


Doesn't work at all!

Falls on:
numberOfVisibleItems = Int(ceil(width / itemWidthWithSpacing)) + 2

The following callback method is even not called:
func carousel<CGFloat>(_ carousel: CircularCarousel, valueForOption option: CircularCarouselOption, withDefaultValue defaultValue: CGFloat) -> CGFloat {
	    switch option {
...
}

Maybe it is because I added carousel programmatically and with constraints

Hello @Gargo given you have setup the carousel programmatically, can you confirm if you have setup delegate and datasource correctly?
It could also be a bug with 0 items in your datasource delegate.
It could also be a problem with the delegate for the itemWidth. Given your  call does not get called. Does the callback work when you try the following :
`
// MARK: -
// MARK: CircularCarouselDelegate
func carousel(_ carousel: CircularCarousel, valueForOption option: CircularCarouselOption, withDefaultValue defaultValue: Int) -> Int {
if option == .itemWidth {
return Int(carousel.bounds.width)
}
    return defaultValue
}

`

@Gargo if you don't have anymore feedback on this I will close this issue.

No response from OP and without more information I will close this.

Can comment on this, this happened for me when I didn't set a frame on my carousel card. I think there's some problem where the carousel(valueForOption) function is not properly setting the itemWidth on the carousel card, so we need to provide our own width of the actual item or else it errors out.


Add Link component with inline styles

As first part of implementing inline styles into Este I removed styles for a tag from the App.scss and created Link component with corresponding styles.

Your pull request is almost perfect. Thank you!
As for hover. We need the higher order component for that supporting focus as well.
There are a lot of pseudo classes, but we need only hover and focus and active. https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
I think we need pseudoClasses higher order component passing isFocused and IsHovered as props.
Remember to implement "Lord Vader's, Former Handle, Anakin" logic http://codepen.io/jamesbarnett/pen/kiECF Aka, active overrides hover state.

@steida thanks for your feedback. Hopefully I will have time today to implement changes from your comments 😉

@janmarsicek http://jxnblk.com/writing/posts/patterns-for-style-composition-in-react/

@janmarsicek Check https://github.com/jxnblk/rebass

@janmarsicek If you will take a look at the awesome rebass, you will realise there are no pseudo classes, maybe it really belongs to plain old CSS. It makes sense, since it's platform (browser) specific.

@steida Finally had time to look at Rebass which is pretty neat. I used their LinkBlock for this but I am not sure if I like it. Looks weird to me how they handle it, using style and dangerouslySetInnerHTML 😕

@janmarsicek We will probably have to create a custom component, maybe the same for Formatted stuff. Not sure yet. I will do that tomorrow.

Closing, since I will push own solution soon. Thank you for your help :-)


TypeError in islandsTransform.ts affecting storybook

Environment
Working directory: /home/olivier/Code/bitbucket.org/builderhomesiteinc/teledynamics-fe
Nuxt project info:

Operating System: Linux
Node Version:     v20.11.1
Nuxt Version:     3.10.3
CLI Version:      3.10.1
Nitro Version:    2.9.3
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      runtimeConfig, modules, $test, devtools, experimental, vue, tailwindcss, app, nitro, typescript, pinia
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

👉 Report an issue: https://github.com/nuxt/nuxt/issues/new
👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new
👉 Read documentation: https://nuxt.com
Reproduction
On a project using NuxtIslands (via server components), and storybook, running the build-storybook command fails with the following error:
=> Failed to build the preview                                                                                10:43:12 AM
TypeError: Cannot create property 'ActionMessage' on string './node_modules/.pnpm/@storybook+builder-vite@7.6.17_typescript@5.4.2_vite<EMAIL_ADDRESS>                                    10:43:12 AM
    at config (file://./node_modules/.pnpm/nuxt@3.10.3_@types+node@18.19.23_eslint@8.57.0_typescript@5.4.2_vite@5.1.6_vue-tsc@1.8.27/node_modules/nuxt/dist/index.mjs:1866:62)

Describe the bug
In packages/nuxt/src/components/islandsTransform.ts, the componentsChunkPlugin function makes the following type assertion  (config.build.rollupOptions.input as Record<string, string>).
export const componentsChunkPlugin = createUnplugin((options: ComponentChunkOptions) => {
  const { buildDir } = options
  return {
    name: 'componentsChunkPlugin',
    vite: {
      async config (config) {
        const components = options.getComponents()
        config.build = config.build || {}
        config.build.rollupOptions = config.build.rollupOptions || {}
        config.build.rollupOptions.output = config.build.rollupOptions.output || {}
        config.build.rollupOptions.input = config.build.rollupOptions.input || {}
        // don't use 'strict', this would create another "facade" chunk for the entry file, causing the ssr styles to not detect everything
        config.build.rollupOptions.preserveEntrySignatures = 'allow-extension'
        for (const component of components) {
          if (component.mode === 'client' || component.mode === 'all') {
            (config.build.rollupOptions.input as Record<string, string>)[component.pascalName] = await resolvePath(component.filePath)
          }
        }
      },

config.build.rollupOptions.input is declared as type InputOption = string | string[] | { [entryAlias: string]: string }. When using storybook and @storybook/builder-vite, config.build.rollupOptions.input is a string, with a value similar to<EMAIL_ADDRESS>Would a PR that checks first for the type of config.build.rollupOptions.input make sense? Something along the lines of:
   if (component.mode === 'client' || component.mode === 'all') {
      if ('object' === typeof config.build.rollupOptions.input && !Array.isArray(config.build.rollupOptions.input))
        (config.build.rollupOptions.input as Record<string, string>)[component.pascalName] = await resolvePath(component.filePath)

Additional context
Disabling server components is a workaround that fixes the issue when running or building storybook. I have them enabled when building the app, but disabled when building statically with storybook.
Logs
No response

@olivoil can you provide a reproduction (thourhg stackblitz ) so i can clone it and work on it ?

@huang-julien here is a repro: https://stackblitz.com/edit/github-4asygc?file=nuxt.config.ts

in nuxt.config.ts, if componentIslands is turned on, the task pnpm run storybook-build fails:

with experimental turned off, the task pnpm run storybook-build succeeds


Uppercase "IF" treated as "if" statement

I wasn't able to find any documentation on this, so I assume this is a bug.
It is not possible assigning a value to a variable called "IF", as it gets treated like the keyword "if". This code will fail with a Expected an identifier or literal error on line 2:
a = 1
IF = 2
b = 3

In the same way, this is valid code, as IF gets parsed as an if-statement:
def hello():
    IF 1:
        print("Hello")

http://docs.cython.org/en/latest/src/reference/language_basics.html#conditional-compilation


block_covariance(X, window=blocksize)  function reshape has an error.

Hello, I greatly appreciate your code. I encountered the following error with some local EEG files while using your code, which might be related to block_covariance(X, window=blocksize). I'm not sure if you have experienced this issue during your usage. Thank you very much for your time and assistance. Below is the error message:
`
ValueError                                Traceback (most recent call last)
Cell In[109], line 1
----> 1 asr.fit(raw)
File F:\anaconda\lib\site-packages\asrpy\asr.py:233, in ASR.fit(self, raw, picks, start, stop, return_clean_window)
223 clean, sample_mask = clean_windows(
224     X,
225     sfreq=self.sfreq,
(...)
229     min_clean_fraction=self.min_clean_fraction,
230     max_dropout_fraction=self.max_dropout_fraction)
232 # Perform calibration
--> 233 self.M, self.T = asr_calibrate(
234     clean,
235     sfreq=self.sfreq,
236     cutoff=self.cutoff,
237     blocksize=self.blocksize,
238     win_len=self.win_len,
239     win_overlap=self.win_overlap,
240     max_dropout_fraction=self.max_dropout_fraction,
241     min_clean_fraction=self.min_clean_fraction,
242     ab=(self.A, self.B),
243     method=self.method)
245 self._fitted = True
247 # return data if required
File F:\anaconda\lib\site-packages\asrpy\asr.py:431, in asr_calibrate(X, sfreq, cutoff, blocksize, win_len, win_overlap, max_dropout_fraction, min_clean_fraction, ab, method)
428 N = int(np.round(win_len * sfreq))
430 # get block covariances
--> 431 U = block_covariance(X, window=blocksize)
433 # get geometric median for each block
434 # Note: riemann mode is not yet supported, else this could be:
435 # Uavg = pyriemann.utils.mean_covariance(U, metric='riemann')
436 Uavg = geometric_median(U.reshape((-1, nc * nc)) / blocksize)
File F:\anaconda\lib\site-packages\asrpy\asr_utils.py:509, in block_covariance(data, window)
506 for k in range(0, window):
507     idx_range = np.minimum(n_times - 1,
508                            np.arange(k, n_times + k - 2, window))
--> 509     U = U + np.reshape(data[idx_range].reshape([-1, 1, n_ch]) *
510                        data[idx_range].reshape(-1, n_ch, 1), U.shape)
512 return np.array(U)
File <array_function internals>:180, in reshape(*args, **kwargs)
File F:\anaconda\lib\site-packages\numpy\core\fromnumeric.py:298, in reshape(a, newshape, order)
198 @array_function_dispatch(_reshape_dispatcher)
199 def reshape(a, newshape, order='C'):
200     """
201     Gives a new shape to an array without changing its data.
202
(...)
296            [5, 6]])
297     """
--> 298     return _wrapfunc(a, 'reshape', newshape, order=order)
File F:\anaconda\lib\site-packages\numpy\core\fromnumeric.py:57, in _wrapfunc(obj, method, *args, **kwds)
54     return _wrapit(obj, method, *args, **kwds)
56 try:
---> 57     return bound(*args, **kwds)
58 except TypeError:
59     # A TypeError occurs if the object does have such a method in its
60     # class, but its signature is not identical to that of NumPy's. This
(...)
64     # Call _wrapit from within the except clause to ensure a potential
65     # exception has a traceback chain.
66     return _wrapit(obj, method, *args, **kwds)
ValueError: cannot reshape array of size 10820304 into shape (75142,144)
`

I cropped the raw data to have integer seconds and it works:
raw.crop(tmin=0, tmax=int(raw.times[-1])


[docs] Add Form Control Label Position TypeScript demo

[x] I have followed (at least) the PR section of the contributing guide.

#14897

Someone opened already a pull request for this one a day earlier #15408. Thank you for working on this still.


ES6 Rest parameters in arrow functions

Hello again, I'm back with another ES6-related issue, using esnext: true.
The following code:
((...args) => args)();
((...args) => args)();

yields:
'args' is not defined.
'args' is not defined.

while the following:
(function(...args) { return args; })();

doesn't yield any error.
I do believe arrow funcs can have rest parameters, as it is semantically desugared to a lexically-bound function.

Good news! I implemented a fix for this in gh-1989. That the fix landed at dc48781adfd9626be9453a88f209ee1fad23acf4 and was included in the 2.6.0 release of JSHint.
$ git checkout 2.6.0
$ echo "/* jshint esnext: true */'use strict';((...args) => args)();" > tmp.js
$ ./bin/jshint tmp.js
$ echo $?
0

Thanks for the report!


Disable/Enable video/audio tracks on demand programatically

Please ask your question
Is there a way to enable or disable the video/audio tracks programmatically during the playback?

Currently it is not possible to do it, if someone is really interested please let there be an improvement issue so we can study it. Thank you!


How to use subsetMaf to subset to Variant_Classification 5'UTR? (i.e. escape single quote)

I am not sure how to escape the single quote after the number 5 in the term 5'UTR correctly, so that it works in the function subsetMaf. This same problem will also apply to 3'UTR, 3'Flank and 5'Flank.
Here is what I tried so far:
laml.maf = system.file('extdata', 'tcga_laml.maf.gz', package = 'maftools')
laml = read.maf(maf = laml.maf, removeSilent = TRUE, useAll = FALSE)
subsetMaf(maf = laml, includeSyn = T, query='''Variant_Classification == "5'UTR"''')
subsetMaf(maf = laml, includeSyn = T, query='Variant_Classification == "5''UTR"')
subsetMaf(maf = laml, includeSyn = T, query='Variant_Classification == "5'''UTR"')

However, these lines all result in:
Error: unexpected string constant in "subsetMaf(maf = laml, includeSyn = T, query='''Variant_Classification == "5'"
When I instead remove the single quote from 5'UTR,
subsetMaf(maf = laml, includeSyn = T, query='Variant_Classification == "5UTR"')
I do not get an error message, but an empty output (as no Variant classification 5UTR is known).
I created a small test file, where I replaced all 5'UTR by 5UTR, and now the previous line of code works fine, resulting in the expected number of observations.
However, I am sure that there is some smart way to escape the quote character?

Hi,
try this:
subsetMaf(maf = m, includeSyn = TRUE, query = "Variant_Classification %in% '5\\'UTR'")

above example has no 5'UTR variants, so it should return empty data table.

Thanks for your quick reply.
The above command works like a charm!


Fix instr/endin and opcode/endop detection

Pete Goodeve reported that instr/endin and opcode/endop detection doesn't work if the keywords are indented in. Makes sense due to regex used in code.

Fix the detection of instr/endin and opcode/endop
Update the code to work even if cursor is on the lines with instr/endin/opcode/endop

This must be some weird bug in vim.  I played around and found that, for instance, just doing "/^\sendin"/ from within an instrument works just as it should, but ':let end = search("^\sendin")' fails!
OTOH something like  'let end = search("\s*endin")' succeeds.
What also works is 'let end = search("^[ \t]*endin")', so I guess that would be a workaround.  I've changed the plugin on my machine appropriately.


Model Registration Fails

I ran the Ci pipeline and it worked super fine. Everything was working. Now its been two days that i am stuck at this error dataset is the same each and everything is the same but this error appeared from no where and i am having hard time to understand why this is happening? Any help would be appreciated
Thank you

@wissamjur  yes i do have that code in my train_aml.py

@jahanzaibanwar
Well, first I'd look at: parent_tags = run.parent.get_tags()
try to print it, what do you get in the logs?
Make sure your train file succesffully completes with:  run.complete() (after dumping the model of course)
If parent_tags is empty, you can also double check that in your build pipeline, you are passing the pipeline_data param:
    register_step = PythonScriptStep(         name="Register Model ",         script_name=e.register_script_path,         compute_target=aml_compute,         source_directory=e.sources_directory_train,         inputs=[**pipeline_data**],         arguments=[             "--model_name", model_name_param,             "--step_input", **pipeline_data**,         ],         runconfig=run_config,         allow_reuse=False,     )
Your pipeline should have the correct steps in order as well:
train_step.run_after(prep_step) register_step.run_after(train_step) steps = [prep_step, train_step, register_step] train_pipeline = Pipeline(workspace=aml_workspace, steps=steps)
Last thing, I'm not sure if this would be an issue in your case, but since you mentioned that it did work once. Maybe try setting the allow_reuse param to False in your pipeline steps? If you are not using it in the correct way based on your design, you might face such issues


Rewrite file path before loader works

I am doing some crazy stuff to split source code as a bower package from a code repo and run webpack build in bower's postInstall hook.  Is there any chance to rewrite file path before the loader functions?  I tried preloader still too late.

There is a before-resolve hook.
https://github.com/webpack/webpack/blob/master/lib/NormalModuleReplacementPlugin.js

works great! Thanks.


Seems irods namespace has special meaning

We're running iRODS 4.2.10 on CentOS 7.
The plugin is <IP_ADDRESS> Release
A rodsuser cannot modify the guarded metadata if any of the guarded metadata starts with irods as prefix regardless of access level. That is, only rodsadmin has power to modify then.
A rodsuser has at least write access on the zone collection:
-bash-4.2$ ils -A /tempZone
/tempZone:
        ACL - g:public#tempZone:read object   rods#tempZone:own   user1#tempZone:modify object
        Inheritance - Disabled

After the rodsuser guards some metadata starting with irods and other prefixes, he cannot anymore modify any guarded metadata:
[user1@dev-u0137480 ~]$ imeta add -C /tempZone irods::metadata_guard '{"prefixes": ["rules::"], "admin_only": true}'
[user1@dev-u0137480 ~]$ imeta add -C /tempZone irods::metadata_guard '{"prefixes": ["irods::"], "admin_only": true}'
[user1@dev-u0137480 ~]$ imeta rm -C /tempZone irods::metadata_guard '{"prefixes": ["rules::"], "admin_only": true}'
remote addresses: <IP_ADDRESS> ERROR: rcModAVUMetadata failed with error -830000 CAT_INSUFFICIENT_PRIVILEGE_LEVEL

In case he wants to guard metadata not starting with irods, he can modify any:
[user1@dev-u0137480 ~]$ imeta add -C /tempZone irods::metadata_guard '{"prefixes": ["rules::"], "admin_only": true}'
[user1@dev-u0137480 ~]$ imeta add -C /tempZone irods::metadata_guard '{"prefixes": ["fruits::"], "admin_only": true}'
[user1@dev-u0137480 ~]$ imeta rm -C /tempZone irods::metadata_guard '{"prefixes": ["rules::"], "admin_only": true}'

The same happens with a single configuration:
[user1@dev-u0137480 ~]$ imeta rm -C /tempZone irods::metadata_guard '{"prefixes": ["rules::", "irods::"], "admin_only": true}'

However this doesnt happen if the rodsuser configure for editors - not admins:
[user1@dev-u0137480 ~]$ imeta add -C /tempZone irods::metadata_guard '{"prefixes": ["irods::"], "editors": [{"type": "user", "name": "user1"}]}'
[user1@dev-u0137480 ~]$ imeta rm -C /tempZone irods::metadata_guard '{"prefixes": ["irods::"], "editors": [{"type": "user", "name": "user1"}]}'

Perhaps not a big issue at first glance but took some time to understand it :)

Hm, this does seem inconsistent.    We'll take a good look...

rodsadmin has the same issue if not added in the configuration:
[user1@dev-u0137480 ~]$ imeta add -C /tempZone irods::metadata_guard '{"prefixes": ["irods::"], "editors": [{"type": "user", "name": "user1"}]}'
Once the rodsadmin wants to remove:
-bash-4.2$ imeta rm -C /tempZone irods::metadata_guard '{"prefixes": ["irods::"], "editors": [{"type": "user", "name": "user1"}]}'
remote addresses: <IP_ADDRESS> ERROR: rcModAVUMetadata failed with error -830000 CAT_INSUFFICIENT_PRIVILEGE_LEVEL


enum_number/string for v2?

See https://github.com/alteous/gltf/blob/master/src/v1/json/accessor.rs#L11 and https://github.com/alteous/gltf/blob/master/src/v1/json/accessor.rs#L24
Is there a reason why v2 doesn't have those enums?

Never mind, I see that the incoming branch has those constants. https://github.com/alteous/gltf/blob/incoming/src/json/accessor.rs#L14

FYI, the enum_number and enum_string were used for validation during deserialisation and have since been removed to separate these concerns.


Support Optimizables

What does this PR do?
This allows us to support works like Gradient Descent: The Ultimate Optimizer (code)
Example script:
import pytorch_lightning as L
import torch
from pytorch_lightning.demos.boring_classes import RandomDataset

# pip install git+https://github.com/kach/gradient-descent-the-ultimate-optimizer
from gradient_descent_the_ultimate_optimizer import gdtuo

# Versions compatible with the requirements of torch optimizers
# Ideally these would be upstreamed so they are not required
class CompatibleAdam(gdtuo.Adam):
    param_groups = None
    defaults = None

    @property
    def state(self):
        return self.cache

    def state_dict(self):
        return {}

    def load_state_dict(self):
        pass

class CompatibleModuleWrapper(gdtuo.ModuleWrapper):
    param_groups = None
    defaults = None

    @property
    def state(self):
        return self.optimizer.state

    def step(self, closure):
        # ignore the closure - optional during manual optimization anyways
        return super().step()

    def state_dict(self):
        return self.optimizer.state_dict()

    def load_state_dict(self):
        return self.optimizer.load_state_dict()

class GDTUOLightningModule(L.LightningModule):
    def __init__(self):
        super().__init__()
        self.layer = torch.nn.Linear(32, 2)
        self.automatic_optimization = False

    def configure_optimizers(self):
        optimizer0 = gdtuo.SGD(1e-5)
        optimizer1 = CompatibleAdam(optimizer=optimizer0)
        mw = CompatibleModuleWrapper(self, optimizer=optimizer1)
        mw.initialize()
        return mw

    def forward(self, x):
        return self.layer(x)

    def training_step(self, batch):
        mw = self.optimizers()
        mw.begin()  # call this before each step, enables gradient tracking on desired params
        mw.zero_grad()

        pred = self(batch)
        loss = torch.nn.functional.mse_loss(pred, torch.ones_like(pred))

        loss.backward(create_graph=True)  # important! use create_graph=True
        mw.step()

        return loss

dataset = RandomDataset(32, 64)
train_dataloader = torch.utils.data.DataLoader(dataset, batch_size=2)
trainer = L.Trainer(max_epochs=10, accelerator="auto")
model = GDTUOLightningModule()
trainer.fit(model, train_dataloader)

Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[n/a] Did you make sure to update the documentation with your changes? (if necessary)
[n/a] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[n/a] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

cc @borda

Hi paper authors @kach @0aax!
Would you accept a PR that adds the state, state_dict, ... attributes to the gdtuo.Optimizables so that users don't have to do it? (see my script in the PR description).
Sorry to ask here, the https://github.com/kach/gradient-descent-the-ultimate-optimizer repository does not have an issues tab.

Hi @carmocca - we plan to leave the github repository as it is so that it remains a reproducible archive of the paper (hence no "issues" tab). Because the codebase is MIT-licensed, you are welcome to bundle a modified version with your library as long as you preserve the attribution notice.

@williamFalcon @justusschock
sorry for spamming, but this feature would be great!


Roll engine 905c571db50d..72986c39ea36 (2 commits)

https://github.com/flutter/engine/compare/905c571db50d...72986c39ea36
git log 905c571db50d5eb3b10eaa4d3c43c99321032223..72986c39ea3669ef26d4d7d7cd0c44f513fcd117 --no-merges --oneline
72986c39e Move constant definitions out embedder.h (flutter/engine#8498)
e356dbca2 Merge flutter/synchronization contents into fml. (flutter/engine#8525)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


re add code block

I've removed the template override since it doesn't seem necessary
@liamjohnston There does seem to be a big space between the previous block and the code block

Fixed spacing:


Create Custom Activity

Hi,
While creating a custom activity as described in Building your first activity, I ran the below command
flogogen activity HelloWorld
The "activity_test.go" thus created has below import statement:
"github.com/TIBCOSoftware/flogo-lib/flow/test"
which is not present in the master branch.
Because of this go test fails.
Can anyone please tell what changes has to be done in the activity_test.go file ?

The flogo-cli as been fixed.  If you'd like to correct it manually, change that line to 	"github.com/TIBCOSoftware/flogo-contrib/action/flow/test"

I tried changing the import path for the test package and ran "go test" on the files created inside my activity I got the below error:

I have modified the files as per given in the docs.https://tibcosoftware.github.io/flogo/docs/create-activity.
The error is thrown by "TestEval" function of activity_test.go.
I think it has to do something with the return type of Eval function of activity.go. Please correct me if I am wrong.

Did you update your cli?  go get -u github.com/TIBCOSoftware/flogo-cli/...

I've updated the documentation:
https://tibcosoftware.github.io/flogo/docs/create-activity
You should have Flogo installed: go get github.com/TIBCOSoftware/flogo-cli

changed to:
You should have Flogo CLI installed: go get -u github.com/TIBCOSoftware/flogo-cli/...

Code change:
func (a *MyActivity) Eval(context activity.Context) (done bool, evalError *activity.Error) {

changed to:
func (a *MyActivity) Eval(context activity.Context) (done bool, err error)  {

Yes I updated flogo-cli.
The below error
activity_test.go:43: panic during execution: interface conversion: interface {} is nil, not string
comes after changing
func (a *MyActivity) Eval(context activity.Context) (done bool, evalError *activity.Error) {
to
func (a *MyActivity) Eval(context activity.Context) (done bool, err error)  {

I will tell you the process I followed :

Updated flogo-cli
Ran flogogen activity activityName
Changed the import path of test package in activity_test.go
go testreturns PASS
Made the changes to the JSON file and activity.go as mentioned in Building your first activity
Changed the return type of Eval function in activity.go to error
go test fails and shows below error:

--- FAIL: TestEval (0.00s)
        activity_test.go:43: panic during execution: interface conversion: interface {} is nil, not string
FAIL
exit status 1

@Ganitagya are you still having issues?

No, it worked after some changes in the activity.go and activity_test.go