Is there a way to get this working with Exponent?

 Issue by elie222
Sunday Oct 16, 2016 at 12:58 GMT
Originally opened as https://github.com/storybooks/react-native-storybook/issues/105

Hi,
I use Exponent to develop. Has anyone managed to get Storybook working with Exponent?
https://getexponent.com/

 Comment by inyono
Tuesday Mar 14, 2017 at 14:50 GMT

Yep, use https://github.com/storybooks/react-native-storybook/blob/master/docs/manual-setup.md as usual and use the exported component as entry point in your App.js (and start the storybook server). See https://github.com/serlo-org/serlo-abc/tree/expo for a working example. If needed, I can create a repository with a minimal example. Feel free to ping me again if you run into any problems. :)

Closing as duplicate to #841


test: re-enable case-management integration test

PR summary
This PR re-enables the integration test for case-management
PR Checklist
Please make sure that your PR fulfills the following requirements:

[ ] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

:tada: This PR is included in version 0.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


./build-infer.sh failed on Ubuntu 16

I clone the master branch and run ./build-infer.sh.
#=== ERROR while installing javalib.2.3.3 =====================================#
# opam-version         1.2.2
# os                   linux
# command              ./configure.sh
# path                 /home/joel/.opam/infer-4.04.2/build/javalib.2.3.3
# compiler             4.04.2
# exit-code            1
# env-file             /home/joel/.opam/infer-4.04.2/build/javalib.2.3.3/javalib-5113-d2c37b.env
# stdout-file          /home/joel/.opam/infer-4.04.2/build/javalib.2.3.3/javalib-5113-d2c37b.out
# stderr-file          /home/joel/.opam/infer-4.04.2/build/javalib.2.3.3/javalib-5113-d2c37b.err
### stdout ###
# * Debug flag set to yes.
# * Ocamlfind found at /home/joel/.opam/infer-4.04.2/bin/ocamlfind.
# * System-wide installation, in /home/joel/.opam/infer-4.04.2/lib.
#
# ! Package extlib old version found
# (/home/joel/.opam/infer-4.04.2/lib/extlib) in version 5fba12c (<
# 1.5.1 needed), please install a more recent version and then re-run
# configure.sh ..
#
### stderr ###
# ./configure.sh: line 133: [: 5fba12c: integer expression expected
# ./configure.sh: line 134: [: 5fba12c: integer expression expected

If I check the extlib on system level, it is 1.7.0.
$ ocamlfind query extlib -format %v
1.7.0

And it is an Ubuntu 16
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

Infer's build script is supposed to install version 1.7.0 by default. You can check which packages have been installed with opam list --switch=infer-4.04.2. Can you paste the output of this command here?
From the error message, it looks like the configure script of javalib fails to parse the version number of extlib since it's "5fba12c" instead of something of the form "x.y.z".

Thank you for prompt response.
The "5fba12c" is from the local ocamlfind under infer-4.04.2.
$ /home/joel/.opam/infer-4.04.2/bin/ocamlfind query extlib -format %v
5fba12c
$ /usr/bin/ocamlfind query extlib -format %v
1.7.0

The output of opam list --switch=infer-4.04.2:
$ opam list --switch=infer-4.04.2
# Installed packages for infer-4.04.2:
ANSITerminal                    0.7  Basic control of ANSI compliant terminals and the windows shell.
atd                          1.12.0  Parser for the ATD data format description language
atdgen                       1.12.0  Generates efficient JSON serializers, deserializers and validators
base                         v0.9.3  Full standard library replacement for OCaml
base-bigarray                  base  Bigarray library distributed with the OCaml compiler
base-bytes                     base  Bytes library distributed with the OCaml compiler
base-num                       base  Num library distributed with the OCaml compiler
base-threads                   base  Threads library distributed with the OCaml compiler
base-unix                      base  Unix library distributed with the OCaml compiler
bin_prot                     v0.9.0  A binary protocol generator
biniou                       1.0.13  Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve
camlp4                       4.04+1  Camlp4 is a system for writing extensible parsers for programming languages
camlzip                        1.07  Provides easy access to compressed files in ZIP, GZIP and JAR format
camomile                      0.8.5  A comprehensive Unicode library
cmdliner                      1.0.0  Declarative definition of command line interfaces for OCaml
conf-aclocal                  1.0.0  Virtual package relying on aclocal
conf-autoconf                   0.1  Virtual package relying on autoconf installation.
conf-m4                           1  Virtual package relying on m4
conf-pkg-config                 1.0  Virtual package relying on pkg-config installation.
conf-which                        1  Virtual package relying on which
configurator                 v0.9.1  Helper library for gathering system configuration
core                         v0.9.1  Industrial strength alternative to OCaml's standard library
core_kernel                  v0.9.0  Industrial strength alternative to OCaml's standard library
cppo                          1.5.0  Equivalent of the C preprocessor for OCaml programs
ctypes                       0.12.0  Combinators for binding to C libraries without writing any C.
easy-format                   1.2.0  High-level and functional interface to the Format module of the OCaml standard library
extlib-compat                 1.7.0  A complete yet small extension for OCaml standard library (full, compatibility)
fieldslib                    v0.9.0  Syntax extension to define first class values representing record fields, to get and set record fields, iterate and fold
integers                      0.2.2  Various signed and unsigned integer types for OCaml
jane-street-headers          v0.9.0  Jane Street C header files
jbuilder                 1.0+beta10  Fast, portable and opinionated build system
lambda-term                    1.11  Terminal manipulation library for OCaml
lock                            1.2 (pinned)
lwt                           3.0.0  Monadic promises and concurrent I/O
lwt_react                     1.0.1  Helpers for using React with Lwt
menhir                     20170101  LR(1) parser generator
merlin-extend                   0.3  A protocol to provide custom frontend to Merlin
num                               0  The Num library for arbitrary-precision integer and rational arithmetic
ocaml-compiler-libs          v0.9.0  OCaml compiler libraries repackaged
ocaml-migrate-parsetree       1.0.1  Convert OCaml parsetrees between different versions
ocamlbuild                   0.11.0  OCamlbuild is a build system with builtin rules to easily build most OCaml projects.
ocamlfind                     1.7.3  A library manager for OCaml
octavius                      1.1.0  Ocamldoc comment syntax parser
ounit                         2.0.0  Unit testing framework loosely based on HUnit. It is similar to JUnit, and other XUnit testing frameworks
parmap                      1.0-rc8  Minimalistic library allowing to exploit multicore architecture
ppx_assert                   v0.9.0  Assert-like extension nodes that raise useful errors on failure
ppx_ast                      v0.9.1  OCaml AST used by Jane Street ppx rewriters
ppx_base                     v0.9.0  Base set of ppx rewriters
ppx_bench                    v0.9.1  Syntax extension for writing in-line benchmarks in ocaml code
ppx_bin_prot                 v0.9.0  Generation of bin_prot readers and writers from types
ppx_compare                  v0.9.0  Generation of comparison functions from types
ppx_core                     v0.9.0  Standard library for ppx rewriters
ppx_custom_printf            v0.9.0  Printf-style format-strings for user-defined string conversion
ppx_deriving                    4.1  Type-driven code generation for OCaml >=4.02
ppx_driver                   v0.9.1  Feature-full driver for OCaml AST transformers
ppx_enumerate                v0.9.0  Generate a list containing all values of a finite type
ppx_expect                   v0.9.0  Cram like framework for OCaml
ppx_fail                     v0.9.0  Add location to calls to failwiths
ppx_fields_conv              v0.9.0  Generation of accessor and iteration functions for ocaml records
ppx_hash                     v0.9.0  A ppx rewriter that generates hash functions from type expressions and definitions
ppx_here                     v0.9.1  Expands [%here] into its location
ppx_inline_test              v0.9.1  Syntax extension for writing in-line tests in ocaml code
ppx_jane                     v0.9.0  Standard Jane Street ppx rewriters
ppx_js_style                 v0.9.0  Code style checker for Jane Street Packages
ppx_let                      v0.9.0  Monadic let-bindings
ppx_metaquot                 v0.9.0  Write OCaml AST fragment using OCaml syntax
ppx_optcomp                  v0.9.0  Optional compilation for OCaml
ppx_optional                 v0.9.0  Pattern matching on flat options
ppx_pipebang                 v0.9.0  A ppx rewriter that inlines reverse application operators `|>` and `|!`
ppx_sexp_conv                v0.9.0  Generation of S-expression conversion functions from type definitions
ppx_sexp_message             v0.9.0  A ppx rewriter for easy construction of s-expressions
ppx_sexp_value               v0.9.0  A ppx rewriter that simplifies building s-expressions from ocaml values
ppx_tools                       5.0  Tools for authors of ppx rewriters and other syntactic tools
ppx_tools_versioned        5.0alpha  A variant of ppx_tools based on ocaml-migrate-parsetree
ppx_traverse                 v0.9.0  Automatic generation of open-recursion classes
ppx_traverse_builtins        v0.9.0  Builtins for Ppx_traverse
ppx_type_conv                v0.9.0  Support Library for type-driven code generators
ppx_typerep_conv             v0.9.0  Generation of runtime types from type declarations
ppx_variants_conv            v0.9.0  Generation of accessor and iteration functions for ocaml variant types
re                            1.7.1  RE is a regular expression library for OCaml
react                         1.2.0  Declarative events and signals for OCaml
result                          1.2  Compatibility Result module
sexplib                      v0.9.1  Library for serializing OCaml values to and from S-expressions
spawn                        v0.9.0  Spawning sub-processes
stdio                        v0.9.0  Standard IO library for OCaml
topkg                         0.8.1  The transitory OCaml software packager
typerep                      v0.9.0  typerep is a library for runtime types.
utop                         1.19.3  Universal toplevel for OCaml
variantslib                  v0.9.0  Part of Jane Street's Core library
xmlm                          1.2.0  Streaming XML codec for OCaml
yojson                        1.3.3  Yojson is an optimized parsing and printing library for the JSON format
zed                             1.5  Abstract engine for text edition in OCaml

Unfortunately, yes.
I removed .opam and run./build-infer.sh several time, the same error happen.
I also tried to remove ocamlfind from Ubuntu, the same error message.

I am getting the same error. Im unable to build Infer on Ubuntu 16.04.3 using VirtualBox on Macbook Pro running Sierra.

This worked for me from a fresh Ubuntu 16.04 install (from Docker):
# apt install -y   autoconf   automake   build-essential   git   libgmp-dev   libmpc-dev   libmpfr-dev   libsqlite3-dev   m4   opam   openjdk-8-jdk   unzip   zlib1g-dev   opam   rsync   pkg-config   libncurses-dev   python   aspcud
# git clone https://github.com/facebook/infer.git
# cd infer/
# ./build-infer.sh

What's your opam show extlib?

The script from @jvillard works for me, thanks!


Notify community of v3.0.0 schema version breaking changes

Given v3.0.0 contains breaking changes that will affect many packages in the hubverse it is a good idea to communicate the changes to the community.
Steps involved:

[x] Prepare draft announcement
[ ] Create Announcement on org dicsussion board
[ ] Send Email announcement

Draft announcement can be found here

Announcement can be found here https://github.com/orgs/Infectious-Disease-Modeling-Hubs/discussions/13 and email notifcation sent out by @mmkerr on same day


Fix snapping lines don't disappearing after drag anchors

Fix #92393
Before:
https://github.com/godotengine/godot/assets/44306054/d73b4bc5-56f4-4f34-a50a-053b4a0d785d

After:
https://github.com/godotengine/godot/assets/44306054/b0460759-ccf6-473c-a5ac-82b8cb24a920

Thanks!


🐛 [firebase_auth] Dependency on intl 0.17 causing problems with beta channel

Bug report
Describe the bug
When switching to the beta channel (dart 3) my moderately complex project only builds when intl: any is given and a number of other packages are downgraded to older versions.
I think  the problem is that firebase_auth_web using intl 0.17 whereas flutter_localized has switched to intl:0.18 in the beta channel but firebase_auth might not be the only package with a dependency on 0.17.
Steps to reproduce

switch to beta channel flutter channel beta; flutter doctor -v
in your pubspec.yaml, change pin the version for intl to any
rebuild pubspec.yaml until all conflicts are resolved
observe that several packages are falling back onto 3-4 month old versions

/Users/sylvia/flutter/bin/flutter --no-color pub outdated
Showing outdated packages.
[*] indicates versions that are not the latest available.

Package Name              Current  Upgradable  Resolvable  Latest

direct dependencies:
firebase_auth             *4.2.2   *4.2.2      *4.2.2      4.4.2
firebase_ui_auth          *1.1.4   *1.1.4      *1.1.4      1.2.4
firebase_ui_oauth_apple   *1.0.11  *1.0.11     *1.0.11     1.1.4
firebase_ui_oauth_google  *1.0.11  *1.0.11     *1.0.11     1.1.4
flutter_svg               *1.1.6   *1.1.6      *1.1.6      2.0.5
google_sign_in            *5.4.4   *5.4.4      *5.4.4      6.1.0
intl                      *0.18.0  *0.18.0     *0.18.0     0.18.1

Expected behavior
Using the latest versions of all major packages.
Sample project
To reproduce, change to beta channel, create a fresh project, and add a few dependencies.

Additional context
Add any other context about the problem here.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
➜  ~/StudioProjects/bar_foo flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.10.0-1.4.pre, on macOS 13.3.1 22E261 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
[✓] VS Code (version 1.77.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
~/StudioProjects/bar_foo flutter pub deps -- --style=compact
Dart SDK 3.0.0-417.3.beta
Flutter SDK 3.10.0-1.4.pre
bar_foo 1.0.0+1

dependencies:
- cloud_firestore 4.5.3 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cupertino_icons 1.0.5
- equatable 2.0.5 [collection meta]
- firebase_auth 4.2.2 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 2.10.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 3.1.2 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_ui_auth 1.1.4 [email_validator firebase_auth firebase_core firebase_dynamic_links firebase_ui_localizations firebase_ui_oauth flutter flutter_localizations flutter_svg]
- firebase_ui_firestore 1.3.4 [cloud_firestore firebase_ui_localizations flutter]
- firebase_ui_oauth_apple 1.0.11 [firebase_auth firebase_ui_oauth flutter]
- firebase_ui_oauth_google 1.0.11 [firebase_auth firebase_ui_oauth flutter google_sign_in]
- flex_color_scheme 7.0.5 [flex_seed_scheme flutter meta]
- flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine]
- flutter_riverpod 2.3.6 [collection flutter meta riverpod state_notifier]
- flutter_svg 1.1.6 [flutter meta path_drawing vector_math xml]
- go_router 7.0.0 [collection flutter flutter_web_plugins logging meta]
- google_fonts 4.0.4 [flutter http path_provider crypto]
- google_sign_in 5.4.4 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- intl 0.18.0 [clock meta path]
- logging 1.1.1
- riverpod_annotation 2.1.1 [meta riverpod]
- rxdart 0.27.7
- shared_preferences 2.1.0 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]

dev dependencies:
- build_runner 2.4.1 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- custom_lint 0.3.4 [analyzer analyzer_plugin args async ci cli_util collection freezed_annotation json_annotation meta package_config path pub_semver pubspec_parse rxdart uuid yaml]
- flutter_lints 2.0.1 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- mocktail 0.3.0 [collection matcher test]
- random_string 2.3.1
- riverpod_generator 2.2.1 [analyzer build build_config collection crypto meta path riverpod_analyzer_utils riverpod_annotation source_gen]
- riverpod_lint 1.3.1 [analyzer analyzer_plugin collection custom_lint_builder meta path riverpod riverpod_analyzer_utils source_span yaml]

transitive dependencies:
- _fe_analyzer_shared 58.0.0 [meta]
- _flutterfire_internals 1.1.1 [collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 5.10.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- analyzer_plugin 0.11.2 [analyzer collection dart_style pub_semver yaml]
- args 2.4.0
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 4.0.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.2.0 [analyzer async build collection crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.7 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.4.4 [built_collection collection fixnum meta]
- characters 1.3.0
- checked_yaml 2.0.2 [json_annotation source_span yaml]
- ci 0.1.0
- cli_util 0.4.0 [meta path]
- clock 1.1.1
- cloud_firestore_platform_interface 5.12.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.4.2 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.4.0 [built_collection built_value collection matcher meta]
- collection 1.17.1
- convert 3.1.1 [typed_data]
- coverage 1.6.3 [args logging package_config path source_maps stack_trace vm_service]
- crypto 3.0.2 [typed_data]
- custom_lint_builder 0.3.4 [analyzer analyzer_plugin collection custom_lint custom_lint_core glob hotreloader meta path pubspec_parse rxdart]
- custom_lint_core 0.3.4 [analyzer analyzer_plugin collection custom_lint matcher meta path pubspec_parse source_span yaml]
- dart_style 2.3.0 [analyzer args path pub_semver source_span]
- desktop_webview_auth 0.0.11 [crypto flutter http flutter_web_plugins plugin_platform_interface]
- email_validator 2.1.17
- fake_async 1.3.1 [clock collection]
- ffi 2.0.1
- file 6.1.4 [meta path]
- firebase_auth_platform_interface 6.13.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.2.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.6.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.3.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.4.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_dynamic_links 5.1.1 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_dynamic_links_platform_interface 0.2.4+1 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_ui_localizations 1.3.1 [flutter flutter_localizations path]
- firebase_ui_oauth 1.1.4 [desktop_webview_auth firebase_auth firebase_ui_auth flutter_svg flutter]
- fixnum 1.1.0
- flex_seed_scheme 1.2.4 [flutter material_color_utilities meta]
- flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- freezed_annotation 2.2.0 [collection json_annotation meta]
- frontend_server_client 3.2.0 [async path]
- glob 2.1.1 [async collection file path string_scanner]
- google_sign_in_android 6.1.14 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.6.2 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.4.0 [flutter plugin_platform_interface quiver]
- google_sign_in_web 0.10.2+1 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- graphs 2.2.0 [collection]
- hotreloader 3.0.6 [collection logging path stream_transform vm_service watcher]
- http 0.13.6 [async http_parser meta]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- io 1.0.4 [meta path string_scanner]
- js 0.6.7 [meta]
- json_annotation 4.8.0 [meta]
- lints 2.1.0
- matcher 0.12.15 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.2.0
- meta 1.9.1
- mime 1.0.4
- node_preamble 2.0.2
- package_config 2.1.0 [path]
- path 1.8.3
- path_drawing 1.0.1 [vector_math meta path_parsing flutter]
- path_parsing 1.0.1 [vector_math meta]
- path_provider 2.0.14 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.27 [flutter path_provider_platform_interface]
- path_provider_foundation 2.2.2 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.10 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.0.6 [flutter platform plugin_platform_interface]
- path_provider_windows 2.1.6 [ffi flutter path path_provider_platform_interface win32]
- petitparser 5.4.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.4 [meta]
- pool 1.5.1 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.3 [collection meta]
- pubspec_parse 1.2.2 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.2.1 [matcher]
- riverpod 2.3.6 [meta stack_trace state_notifier]
- riverpod_analyzer_utils 0.3.0 [analyzer collection crypto custom_lint_core freezed_annotation meta path source_span]
- shared_preferences_android 2.1.4 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.2.1 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.2.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.2.0 [flutter plugin_platform_interface]
- shared_preferences_web 2.1.0 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.2.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.4.0 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 3.0.1 [path shelf shelf_static]
- shelf_static 1.1.1 [convert http_parser mime path shelf]
- shelf_web_socket 1.0.3 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- source_gen 1.2.7 [analyzer async build dart_style glob path source_span yaml]
- source_map_stack_trace 2.1.1 [path source_maps stack_trace]
- source_maps 0.10.12 [source_span]
- source_span 1.9.1 [collection path term_glyph]
- stack_trace 1.11.0 [path]
- state_notifier 0.7.2+1 [meta]
- stream_channel 2.1.1 [async]
- stream_transform 2.1.0
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test 1.24.1 [analyzer async boolean_selector collection coverage http_multi_server io js node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core matcher]
- test_api 0.5.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- test_core 0.5.1 [analyzer async args boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml matcher test_api]
- timing 1.0.1 [json_annotation]
- typed_data 1.3.1 [collection]
- uuid 3.0.7 [crypto]
- vector_math 2.1.4
- vm_service 11.4.0
- watcher 1.0.2 [async path]
- web_socket_channel 2.4.0 [async crypto stream_channel]
- webkit_inspection_protocol 1.2.0 [logging]
- win32 4.1.3 [ffi]
- xdg_directories 1.0.0 [meta path process]
- xml 6.3.0 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]

Hi @githubmonkey, this is a known issue and is being tracked in https://github.com/firebase/flutterfire/issues/10199.
Until a new stable is out, it is recommended that you either use dependency_overrides or downgrade to stable. See https://github.com/firebase/flutterfire/issues/10199#issuecomment-1486304352
Closing from here as duplicate.


Maintenance: remove GH Pages

Summary
We no longer use GH pages for hosting the docs, we should remove the code from GitHub Actions.
Why is this needed?
We now host docs on docs.powertools.aws.dev instead of GitHub Pages
Which area does this relate to?
Other
Solution
Remove GH pages from GH actions
Acknowledgment

[X] This request meets Powertools for AWS Lambda (Java) Tenets
[X] Should this be considered in other Powertools for AWS Lambda (Java) languages? i.e. Python, TypeScript

fixed with #1211


Socket Connection Error?

I was just authoring and testing a (PHP) Kata when I noticed that the tests were not executing.  Usually, when this type of error occurs, the server times out after trying to execute the code for 7 seconds and then the timeout error message pops up.  However, this time, when I click on "Validate Solution", even after I wait for 30 seconds (or more), nothing pops up, not even the timeout message.
So I save my Kata Draft and try out a few random easy Kata.  It turns out that the code execution itself is working just fine - it usually takes about 200ms to run the test cases for most Kata, far from timing out.  However, the absurd time delay was caused by the code runner "Establishing a socket connection...", which for some reason is taking much longer than usual, sometimes as long as half a minute (or more).  Any idea what might be causing this?

Sounds like an issue with the realtime service we use. I'll have to look into making the realtime connection an optional aspect of the initialization process.


Use BServiceType for services and fix using services as values in annotations

Purpose
$title.
Note: Changes to AnnotationDesugar.java, are temporary and will be changed with the annotation change.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f09c510). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master   #15768   +/-   ##
=========================================
  Coverage          ?   10.54%
  Complexity        ?     3362
=========================================
  Files             ?     1971
  Lines             ?    91526
  Branches          ?    12753
=========================================
  Hits              ?     9651
  Misses            ?    79891
  Partials          ?     1984

Impacted Files
Coverage Δ
Complexity Δ

.../compiler/semantics/analyzer/DataflowAnalyzer.java
0% <0%> (ø)
0 <0> (?)

...lerinalang/compiler/desugar/AnnotationDesugar.java
0% <0%> (ø)
0 <0> (?)

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 f09c510...c16ed8b. Read the comment docs.


Numerical stability of distributions: Add log_p as argument to all distributions?

Hi, I got a problem with the numerical stability when quantile-mapping a negative binomial distribution.
Example code:
def cdf(X, r, mu):
    log_1p = np.log(r) - np.log(mu + r)
    return special.betainc(r, 1. + X, np.exp(log_1p))

stats.norm.ppf(cdf(X, r, mu))

Result:

Even while using float64, the numerical precision is not high enough to properly calculate z-scores above ~ 8.
The solution to this problem would (probably) be to add the possibility to provide log_p values to the distributions like done in e.g. R.
Do you have other ideas how to solve this problem?

rv_continuous has a method logcdf:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.logcdf.html#scipy.stats.rv_continuous.logcdf
same for rv_discrete, so the functionality is available
stats.norm.logcdf(25) # -3.056696706382561e-138
np.log(stats.norm.cdf(25)) # 0.0

But it needs to be implemented for each distribution, otherwise the default uses log(cdf) which loses precision.
From your example, I am not sure which distribution you are look at.

I guess nbinom, it does not have a specific implementation of logcdf. Do you know if a closed form solution is available?

Yes, exactly. SciPy had a different parametrization than I needed and was not really compatible with xarray, so I applied some algebra and wrote my own negative binomial class:

class NegativeBinomial:
    r"""
    Negative binomial distribution.
    This class supports re-parameterising, sampling and calculation of
    probabilities of negative binomial distributed data.
    """

    mean: np.ndarray
    # variance: np.ndarray
    # p: np.ndarray
    r: np.ndarray

    @classmethod
    def mme(cls, data, axis=0):
        r"""
        Fit a Negative Binomial distribution to `data`.
        Uses the closed-form Method-of-Moments to estimate the dispersion.

        :param data: The data
        :param axis: Axis along which the distributions are provided
        :return: `NegativeBinomial` object

        """
        mean = np.mean(data, axis=axis)
        variance = np.mean(np.square(data - mean), axis=axis)

        return cls(mean=mean, variance=variance)

    def __init__(self, r=None, variance=None, p=None, mean=None):
        if r is not None:
            if variance is not None:
                raise ValueError("Must pass either shape 'r' or variance, but not both")

            if p is not None:
                if mean is not None:
                    raise ValueError("Must pass either probs or means, but not both")

                mean = p * r / (1 - p)
                # variance = mean / (1 - p)

            elif mean is not None:
                if p is not None:
                    raise ValueError("Must pass either probs or means, but not both")

                # p = mean / (r + mean)
                # variance = mean + (np.square(mean) / r)

            else:
                raise ValueError("Must pass probs or means")

        elif variance is not None:
            if r is not None:
                raise ValueError("Must pass either shape 'r' or variance, but not both")

            if p is not None:
                if mean is not None:
                    raise ValueError("Must pass either probs or means, but not both")

                mean = variance * (1 - p)
                r = mean * mean / (variance - mean)

            elif mean is not None:
                if p is not None:
                    raise ValueError("Must pass either probs or means, but not both")

                # p = 1 - (mean / variance)
                r = mean * mean / (variance - mean)
            else:
                raise ValueError("Must pass probs or means")
        else:
            raise ValueError("Must pass shape 'r' or variance")

        self.mean = mean
        # self.variance = variance
        # self.p = p
        self.r = r

    @property
    def variance(self):
        return self.mean + (np.square(self.mean) / self.r)

    @property
    def p(self):
        return self.mean / (self.r + self.mean)

    @property
    def log_p(self):
        return np.log(self.mean) - np.log(self.r + self.mean)

    @property
    def log_1p(self):
        return np.log(self.r) - np.log(self.r + self.mean)

    def sample(self, size=None):
        """
        Sample from all distributions data of size `size`.
        :param size: The size
        :return: numpy array containing sampled data
        """
        # numpy uses an alternative parametrization
        # see also https://en.wikipedia.org/wiki/Negative_binomial_distribution#Alternative_formulations
        random_data = np.random.negative_binomial(
            n=self.r,
            p=1 - self.p,
            size=size
        )
        return random_data

    def prob(self, X):
        """
        Calculate the probability of each value in `X` given this distribution
        :param X: The data
        :return: numpy array of probabilitites
        """
        # p = self.p
        # r = self.r
        # return scipy.stats.nbinom(n=r, p=1 - p).pmf(X)
        # return binom(X + r - 1, X) * np.power(p, X) * np.power(1 - p, r)
        return np.exp(self.log_prob(X))

    def log_prob(self, X):
        """
        Calculate the log-probability of each value in `X` given this distribution
        :param X: The data
        :return: numpy array of log-probabilitites
        """
        mu = self.mean
        r = self.r

        # min_p = np.nextafter(0, 1, dtype=self.p.dtype)
        # max_p = np.nextafter(1, 0, dtype=self.p.dtype)
        # log_p = np.fmin(log_p, max_p)
        # log_p = np.fmax(log_p, min_p)

        # broadcasting
        if xr and isinstance(mu, xr.DataArray) and isinstance(r, xr.DataArray) and isinstance(X, xr.DataArray):
            mu, r, X = xr.align(mu, r, X)
        else:
            mu, r, X = np.broadcast_arrays(mu, r, X)

        div = np.log(r + mu)
        log_p = np.log(mu) - div
        log_1p = np.log(r) - div

        # return scipy.stats.nbinom(n=r, p=1 - p).logpmf(X)
        coeff = gammaln(r + X) - gammaln(X + 1) - gammaln(r)
        # return coeff + r * np.log(1 - p) + X * np.log(p)
        return coeff + r * log_1p + X * log_p

    def cdf(self, X):
        r = self.r
        log_1p = self.log_1p

        # broadcasting
        if xr and isinstance(log_1p, xr.DataArray) and isinstance(r, xr.DataArray) and isinstance(X, xr.DataArray):
            log_1p, r, X = xr.align(log_1p, r, X)
        else:
            log_1p, r, X = np.broadcast_arrays(log_1p, r, X)

        return betainc(r, 1. + X, np.exp(log_1p))

However, I was not smart enough to solve betainc for log_p parametrization;
in other words: I have no clue :sweat_smile:
Though, there seem to be some solutions.
At least one could borrow from R's solution:
https://github.com/SurajGupta/r-source/blob/a28e609e72ed7c47f6ddfbb86c85279a0750f0b7/src/nmath/pbeta.c#L69
https://github.com/SurajGupta/r-source/blob/a28e609e72ed7c47f6ddfbb86c85279a0750f0b7/src/nmath/toms708.c#L510

Right, but do you have a bug report or not? This is an issue tracker for bug reports.

@pv Excuse me please, I should have clarified that.
My feature request contains multiple parts:

have the beta-distribution accepting log(x) as input:
beta(a, b, log_x = log(p))
return log(beta(a, b, log_x)):
log_q = scipy.stats.logbeta(a, b, log_x=log(p))
have the normal-distribution's PPF accept log(q) as input:
zscore = scipy.stats.norm.ppf(log_q=log_q)

1. have the beta-distribution accepting log(x) as input

A log_x input is odd, I don't understand why you can't use logpdf(x) and logcdf(x)?
If the numerical precision of those methods is not enough, that needs fixing - but that would be the exact same code you propose to add I'd think.

3\. have the normal-distribution's PPF accept log(q) as input:

this seems very ad-hoc. perhaps we could benefit from adding a logppf method to all distributions? think of this as something that needs design consistency, not just solving your particular problem

1. have the beta-distribution accepting log(x) as input

A log_x input is odd, I don't understand why you can't use logpdf(x) and logcdf(x)?

x is in the range of [0,1], right?

In the end, what I would like to obtain is an equivalent to the following R example:
cdf = pnbinom(mu=10, size=20, q=120, log.p=TRUE)
cdf
[1] -1.24009e-38
zscore = qnorm(cdf, log.p=TRUE)
zscore
[1] 12.94585

Currently, doing this with SciPy results in +inf since:

scipy negative binomal has no parameterization with mu. This could be simply adapted using the NegativeBinomial class I provided above
scipy betainc function is not as accurate as the bratio version here:
https://github.com/SurajGupta/r-source/blob/a28e609e72ed7c47f6ddfbb86c85279a0750f0b7/src/nmath/pnbinom.c#L69-L84
the normal-distribution's PPF does not have a log=True option

Hi @Hoeze. Can you provide complete, but minimal (not your whole NegativeBinomial class) SciPy code you would use to perform the equivalent of
cdf = pnbinom(mu=10, size=20, q=120, log.p=TRUE)

from R?
In response to item 1 from your last comment: we avoid re-parameterizations, but we can mention other common parameterizations in the documentation. Please suggest what you would like to be added to the nbinom documentation about the alternative parameterization, and please provide a reference.

@Hoeze One thing that might help is that
norm.ppf(p) = -norm.ppf(-np.log(p))

For values of p close to 1.
-norm.ppf(-1 * -1.24009e-38)

produces:
12.945845345334703

I think it's just an approximation, but it seems to be a very good one.

@Hoeze One thing that might help is that
norm.ppf(p) = -norm.ppf(-np.log(p))

For values of p close to 1.
-norm.ppf(-1 * -1.24009e-38)

produces:
12.945845345334703

I think it's just an approximation, but it seems to be a very good one.

@rgommers you wrote:

3\. have the normal-distribution's PPF accept log(q) as input:

this seems very ad-hoc. perhaps we could benefit from adding a logppf method to all distributions? think of this as something that needs design consistency, not just solving your particular problem

Just to be clear, would logppf return the log of the ppf? That is what the name logppf suggests to me, as logpmf and logcdf return the log of the pmf and log of the cdf, respectively.
Or do you mean that logppf would be the inverse function of logcdf, which is what @Hoeze wants to be able to do?
@Hoeze this means that another way to solve #3 of your problem is that since norm has a nice logcdf implementation, you can do:
log_p = -1.24009e-38
from scipy.stats import norm
from scipy.optimize import newton
def f(x, log_p):
    return norm.logcdf(x) - log_p
newton(f, args=(log_p,), x0 = 1, maxiter=1000)

which prints:
12.945845345334702

@rgommers you wrote:

3\. have the normal-distribution's PPF accept log(q) as input:

this seems very ad-hoc. perhaps we could benefit from adding a logppf method to all distributions? think of this as something that needs design consistency, not just solving your particular problem

Just to be clear, would logppf return the log of the ppf? That is what the name logppf suggests to me, as logpmf and logcdf return the log of the pmf and log of the cdf, respectively.
Or do you mean that logppf would be the inverse function of logcdf, which is what @Hoeze wants to be able to do?
@Hoeze this means that another way to solve #3 of your problem is that since norm has a nice logcdf implementation, you can do:
log_p = -1.24009e-38
from scipy.stats import norm
from scipy.optimize import newton
def f(x, log_p):
    return norm.logcdf(x) - log_p
newton(f, args=(log_p,), x0 = 1, maxiter=1000)

which prints:
12.945845345334702

@Hoeze let me try to summarize, since there is a lot here.

[ ] "scipy negative binomal has no parameterization with mu. This could be simply adapted using the NegativeBinomial class I provided above"

You want to be able to use a mu/alphaparameterization of nbinom. This is being addressed by improving the documentation of nbinom; see gh-13292. We avoid providing alternate parameterizations of existing distributions. If you are interested in improving SciPy distributions, please see here for information about subclassing rv_continuous. There is also some important information here.

[ ] "scipy betainc function is not as accurate as the bratio version here:"

You want a more accurate betainc function. I didn't look too closely because that appears to be source code for R. Most R source code is GPL licensed, so we can't refer to it, as SciPy is distributed under a BSD license.
I'm assuming you mention betainc because you are trying to calculate the cdf of the nbinom distribution, e.g. you wrote:
cdf = pnbinom(mu=10, size=20, q=120, log.p=TRUE)

Correct me if I'm wrong, but I don't think what you are really after is a more accurate betainc function. You are asking for an implementation of the log of the incomplete beta function. The CDF of nbinom with these inputs (that is, n=size, p = size/(size+mu)) is too close to 1 to be resolved with double precision. That is why you've specified log.p=TRUE there, so that R returns the log of the probability, so what you really are asking for is for nbinom to have a good logcdf implementation, right?

[ ] "the normal-distribution's PPF does not have a log.p=True option"

More generally, you want a way to calculate the inverse of the logcdf method of distributions, right?

[ ] "have the beta-distribution accepting log(x) as input"

The example:

beta(a, b, log_x = log(p))

You seem to be asking for a way to provide inputs to the beta distribution that are very close to 0 or 1, right?
Depending on how close to 1 you need to go, these might help.
For the PDF, you can use the identity:
beta.pdf(x, a, b) = beta.pdf(1-x, b, a)
so that you can provide an argument close to zero instead.
For the CDF:
beta.cdf(x, a, b) = beta.sf(1-x, b, a)
I am guessing this will get you a lot closer to what you're asking for since float  can represent numbers much closer to zero than to 1. Does this do what you need?

[ ] "return log(beta(a, b, log_x)):"

There is already a logpmf implementation for the beta distribution, so I think you are looking for a logcdf implementation (of course, one that has a way of accepting arguments that are very nearly 0 or 1).

@Hoeze let me try to summarize, since there is a lot here.

[ ] "scipy negative binomal has no parameterization with mu. This could be simply adapted using the NegativeBinomial class I provided above"

You want to be able to use a mu/alphaparameterization of nbinom. This is being addressed by improving the documentation of nbinom; see gh-13292. We avoid providing alternate parameterizations of existing distributions. If you are interested in improving SciPy distributions, please see here for information about subclassing rv_continuous. There is also some important information here.

[ ] "scipy betainc function is not as accurate as the bratio version here:"

You want a more accurate betainc function. I didn't look too closely because that appears to be source code for R. Most R source code is GPL licensed, so we can't refer to it, as SciPy is distributed under a BSD license.
I'm assuming you mention betainc because you are trying to calculate the cdf of the nbinom distribution, e.g. you wrote:
cdf = pnbinom(mu=10, size=20, q=120, log.p=TRUE)

Correct me if I'm wrong, but I don't think what you are really after is a more accurate betainc function. You are asking for an implementation of the log of the incomplete beta function. The CDF of nbinom with these inputs (that is, n=size, p = size/(size+mu)) is too close to 1 to be resolved with double precision. That is why you've specified log.p=TRUE there, so that R returns the log of the probability, so what you really are asking for is for nbinom to have a good logcdf implementation, right?

[ ] "the normal-distribution's PPF does not have a log.p=True option"

More generally, you want a way to calculate the inverse of the logcdf method of distributions, right?

[ ] "have the beta-distribution accepting log(x) as input"

The example:

beta(a, b, log_x = log(p))

You seem to be asking for a way to provide inputs to the beta distribution that are very close to 0 or 1, right?
Depending on how close to 1 you need to go, these might help.
For the PDF, you can use the identity:
beta.pdf(x, a, b) = beta.pdf(1-x, b, a)
so that you can provide an argument close to zero instead.
For the CDF:
beta.cdf(x, a, b) = beta.sf(1-x, b, a)
I am guessing this will get you a lot closer to what you're asking for since float  can represent numbers much closer to zero than to 1. Does this do what you need?

[ ] "return log(beta(a, b, log_x)):"

There is already a logpmf implementation for the beta distribution, so I think you are looking for a logcdf implementation (of course, one that has a way of accepting arguments that are very nearly 0 or 1).

Hi @mdhaber, thanks for all your investigation and happy new year :)

I'm assuming you mention betainc because you are trying to calculate the cdf of the nbinom distribution, e.g. you wrote:
cdf = pnbinom(mu=10, size=20, q=120, log.p=TRUE)

Correct me if I'm wrong, but I don't think what you are really after is a more accurate betainc function. You are asking for an implementation of the log of the incomplete beta function. The CDF of nbinom with these inputs (that is, n=size, p = size/(size+mu)) is too close to 1 to be resolved with double precision. That is why you've specified log.p=TRUE there, so that R returns the log of the probability, so what you really are asking for is for nbinom to have a good logcdf implementation, right?

Yes, that's exactly what I'm searching for :+1:
As you noticed, I tried to solve this issue with my own implementation of the negative binomial class that I posted above.
The reason I failed was because betainc was not precise enough for values of p close to 1, in contrast to the R implementation:
    def cdf(self, X):
        [...]
        return betainc(r, 1. + X, np.exp(log_1p))

Now, assuming I do have a correct value of logcdf(NB(mu, r, X)):

* [ ]  You wrote: "the normal-distribution's PPF does not have a log.p=True option" and "have the normal-distribution's PPF accept log(q) as input:"

More generally, you want a way to calculate the inverse of the logcdf method of distributions, right?

Yes, by passing the logcdf of another distribution to the inverse of the standard distribution's logcdf, I can easily obtain z-scores of any distribution.

Hi @mdhaber, thanks for all your investigation and happy new year :)

I'm assuming you mention betainc because you are trying to calculate the cdf of the nbinom distribution, e.g. you wrote:
cdf = pnbinom(mu=10, size=20, q=120, log.p=TRUE)

Correct me if I'm wrong, but I don't think what you are really after is a more accurate betainc function. You are asking for an implementation of the log of the incomplete beta function. The CDF of nbinom with these inputs (that is, n=size, p = size/(size+mu)) is too close to 1 to be resolved with double precision. That is why you've specified log.p=TRUE there, so that R returns the log of the probability, so what you really are asking for is for nbinom to have a good logcdf implementation, right?

Yes, that's exactly what I'm searching for :+1:
As you noticed, I tried to solve this issue with my own implementation of the negative binomial class that I posted above.
The reason I failed was because betainc was not precise enough for values of p close to 1, in contrast to the R implementation:
    def cdf(self, X):
        [...]
        return betainc(r, 1. + X, np.exp(log_1p))

Now, assuming I do have a correct value of logcdf(NB(mu, r, X)):

* [ ]  You wrote: "the normal-distribution's PPF does not have a log.p=True option" and "have the normal-distribution's PPF accept log(q) as input:"

More generally, you want a way to calculate the inverse of the logcdf method of distributions, right?

Yes, by passing the logcdf of another distribution to the inverse of the standard distribution's logcdf, I can easily obtain z-scores of any distribution.

so what you really are asking for is for nbinom to have a good logcdf implementation, right?
Yes, that's exactly what I'm searching for 👍

OK. Since nbinom.cdf(k, n, p) is implemented as
special.betainc(n, floor(k)+1, p)

we can use can use the symmetry of betainc as described for beta.cdf above to implement the logcdf:
np.log1p(-sc.betainc(np.floor(k + 1), n, 1-p))

so what you really are asking for is for nbinom to have a good logcdf implementation, right?
Yes, that's exactly what I'm searching for 👍

OK. Since nbinom.cdf(k, n, p) is implemented as
special.betainc(n, floor(k)+1, p)

we can use can use the symmetry of betainc as described for beta.cdf above to implement the logcdf:
np.log1p(-sc.betainc(np.floor(k + 1), n, 1-p))


Price-feeder improve metrics

Summary

Change reconnect metric to have the provider as a parameter, so instead of

price_feeder_websocket_reconnect_provider_coibase
price_feeder_websocket_reconnect_provider_gate
price_feeder_websocket_reconnect_provider_okx
We should have price_feeder_websocket_reconnect{provider="gate"}

Problem Definition

Proposal

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

@adamewozniak let me know what do you think about this ^^

@julio-jimenez what were the other metrics to do this?

price_feeder_websocket_message_type_candle_provider_x
price_feeder_websocket_message_type_ticker_provider_x
price_feeder_websocket_message_type_trade_provider_x

We could merge these three and have only
price_feeder_websocket_message{type="x", provider="x"}

Also
price_feeder_failure_provider_candle
price_feeder_failure_provider_type_ticker

=>
price_feeder_failure_provider{type="x", provider="x"}

And
price_feeder_websocket_subscribe_currency_pairs_provider_x

=>
price_feeder_websocket_subscribe_currency_pairs{provider="x"}


gulp does not work if base path has brackets [ ]

What were you expecting to happen?
When executing a gulp task
gulp.src('dist/js/**/*.js')
.pipe(gulp.dest('wwwroot/assets')

the task failed. When I used gulp-debug it reported no items found even though they were there and I can find them using
const glob = require("glob");
var glb = glob.sync('dist/js/**/*.js')
console.log(glb);

this listed the files correctly
I expected the gulp task to copy the files from the dist/js folder to the wwwroot/assets folder.
What actually happened?
Nothing happened.
After much debugging, I finally discovered that the issue is the the basepath.
If the basepath is something like 'c:\users\myname\projects[currentCompany]\webproject'
and I execute the gulp task in this path, nothing happens.
When I changed the basepath to 'c:\users\myname\projects\currentCompany\webproject'
the gulp task worked like it should.
Please change the globbing to deal with paths that have the [] brackets.
I would expect that gulp would work with every legal path.

The issue you are encountering is that square bracket have a special meaning in glob patterns.  They are often used to match a single character, i.e. folder[123] will match folder1 but not folder4.
If you want to match projects[currentCompany], you need to escape the brackets, i.e.:
src('projects\\[currentCompany\\]')

This should be resolved in v5, but feel free to let me know if not and I'll reopen.


Data type was missing in an example in README

Tiny change

Type but appreciated, @nayanshah. I love accuracy.
Thank you :)


NoMethodError: undefined method 'abc_path' for UserSerializer:Class

I inclue the routes helper in UserSerializer file like this:
include ABC::Engine.routes.url_helpers
but when i use link method in UserSerializer model, like this:
link :custom_url do |object|       "#{api_user_profile_path(object.id)}"     end
i got error NoMethodError: undefined method api_user_profile_path for ABC::UserSerializer:Class
but it run ok on active_model_serializer
Anybody have a solution for this?

I'm having the same issue when trying to use Rails.application.routes.url_helpers within the model.
Does anyone know a solution to this? I'd like to be able to use url_helpers in the model to help generate links.

I have been doing this in my serializers:
  class << self
    delegate :abc_url, :def_url, :ghi_url, to: :'Rails.application.routes.url_helpers'
  end

with that you can call those helpers

I've defined this in a BaseSerializer class which all my serializers inherit from:
class BaseSerializer
  class << self
    delegate :url_helpers, to: :'Rails.application.routes'
  end
end

then in my serializer I call it something like:
link :self do |object|
  url_helpers.widget_path(object)
end


Support cataloging R packages

What would you like to be added:
Support for cataloging R packages.  The package metadata spec is at https://r-pkgs.org/description.html#description and the package url spec is at https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#cran
Why is this needed:
Extends support for SBOM generation to the R ecosystem

As an example, this is what the DESCRIPTION file looks like for the odbc package
Package: odbc
Title: Connect to ODBC Compatible Databases (using the DBI Interface)
Version: 1.3.3
Authors@R:
    c(person(given = "Jim",
             family = "Hester",
             role = "aut"),
      person(given = "Hadley",
             family = "Wickham",
             role = c("aut", "cre"),
             email = "hadley@rstudio.com"),
      person(given = "Oliver", "Gjoneski", role = "ctb", comment = "detule"),
      person(given = "lexicalunit",
             role = "cph",
             comment = "nanodbc library"),
      person(given = "Google Inc.",
             role = "cph",
             comment = "cctz library"),
      person(given = "RStudio",
             role = c("cph", "fnd")))
Description: A DBI-compatible interface to ODBC databases.
License: MIT + file LICENSE
URL: https://github.com/r-dbi/odbc, https://db.rstudio.com
BugReports: https://github.com/r-dbi/odbc/issues
Depends: R (>= 3.2.0)
Imports: bit64, blob (>= 1.2.0), DBI (>= 1.0.0), hms, methods, rlang,
        Rcpp (>= 0.12.11)
Suggests: covr, DBItest, magrittr, RSQLite, testthat, tibble
LinkingTo: Rcpp
ByteCompile: true
Encoding: UTF-8
RoxygenNote: 7.1.2
SystemRequirements: C++11, GNU make, An ODBC3 driver manager and
        drivers.
Collate: 'odbc.R' 'Driver.R' 'Connection.R' 'DataTypes.R'
        'RcppExports.R' 'Result.R' 'Table.R' 'Viewer.R' 'db.R'
        'hidden.R' 'utils.R' 'zzz.R'
NeedsCompilation: yes
Packaged: 2021-11-29 20:57:53 UTC; jhester
Author: Jim Hester [aut],
  Hadley Wickham [aut, cre],
  Oliver Gjoneski [ctb] (detule),
  lexicalunit [cph] (nanodbc library),
  Google Inc. [cph] (cctz library),
  RStudio [cph, fnd]
Maintainer: Hadley Wickham<EMAIL_ADDRESS>Repository: RSPM
Date/Publication: 2021-11-30 09:10:02 UTC
Built: R 4.1.0; x86_64-pc-linux-gnu; 2021-12-01 11:02:45 UTC; unix

It may be useful to be able to locate and parse up on renv.lock files


Update the versions in the examples

Description:
Updated the versions in the workflow examples in the README.
Related issue:
N/A
Check list:

[ ] Mark if documentation changes are required.
[ ] Mark if tests were added or updated to cover the changes.

Duplicate of #447.


'Quiter' logging?

Hey there, just came to ask if theirs an easy way to limit the logging in the console, it's a little verbose for my tastes and most of it has nothing to do with my tests!
Thanks for the great plug-in,
Ben

I'm not sure which output you'd like suppressed, but if you give an example I can probably take a look.
Closing this for now since the issue is so old. Let me know and I'll reopen if necessary


[UsePythonVersionV0] Notify task users about Python 3.5 retirement on January, 24

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Feature
Enter Task Name: UsePythonVersion
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment

Server - Azure Pipelines or TFS on-premises?

If using TFS on-premises, provide the version:

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name:

If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description
Hey, folks 👋
Our team owns hosted images generation in the https://github.com/actions/virtual-environments repository. According to our Software and image guidelines policy tools and versions will typically be removed 6 months after they are deprecated or have reached end-of-life. Python 3.5 has reached and of life more than a year ago and we would like to remove it from the image, however, lots of users (~17k builds a month) still use Python 3.5 judging by the task telemetry.
Could you create a warning notification for those Python 3.5 users that the version will be removed on January, 24?
Task logs
N\A
Troubleshooting
N\A
Error logs
N\A

Due to the deployment freeze, there will be a delay with the rollout of the changes for this item. The rollout of these changes will start on 2022-01-03.

@EzzhevNikita no problem, thanks for the update!


So-so detection ?

Hello,
i tried to run your lib against the carmen overture from bizet, and it resulted as only 32 beats found...

I also couldn't get really satisfying results so I looked in the code and realised that for good results you should dive into the modules mentioned in the readme:

AudioOwl is using librosa and RNN models to run fast analysis of music files

This AudioOwl module gives a very simple interface to these modules, I think we should rather use it as an example how to use librosa and RNN models than as a fits-all solution to do beat analysis.
@dodiku , thanks for your work. I think it might be helpful to add a little note to the readme, mentioning that for improved detection people should dive into librosa/RNN models.

@ksuedile Thanks for the feedback. Beat detection is still a challenging task for small Python packages, but I'm sure there'e room for improvement here. Since the last update of AudioOwl, librosa has improved and new RNN and CNN models have been proven to be more accurate for some cases. A more robust interface for AudioOwl might be able to provide these options.
@Humphreybas That's a good idea. I'm not sure when I'll be available to update AudioOwl, but I'd appreciate any pull request.
I appreciate both of your feedback!


elemental v0.0.1?

Any Idea why version is v.0.0.1 here?
DEBU[2022-11-24T11:45:29Z] Starting elemental version v0.0.1 on commit b549edafa8430967b3cb61b41a50deb792395b4f

It happens when starting building a custom .iso for x86-64
Status: Downloaded newer image for quay.io/kairos/osbuilder-tools:latest
+ elemental --config-dir /config --name out --debug build-iso --date=false --local --overlay-iso /cOS/files-iso quay.io/kairos/kairos-alpine-ubuntu:v1.2.0-k3sv1.25.3-k3s1 --output /cOS/
DEBU[2022-11-24T11:45:29Z] Starting elemental version v0.0.1 on commit b549edafa8430967b3cb61b41a50deb792395b4f
DEBU[2022-11-24T11:45:29Z] Full config loaded: &v1.BuildConfig{
  Date: false,
  Name: "out",
  OutDir: "/cOS/",
  Config: v1.Config{

so it depends on this:
FROM quay.io/kairos/packages:elemental-cli-system-$ELEMENTAL_CLI_VERSION AS elemental

When I see v0.0.1 I'm always very suspicious...

This should be fixed in new releases - however we need to propagate that down to osbuilder

should be fixed by now!


Add a transfer function group

Should add a transfer functions group to the file.  This should be under experiment - > survey - > station -> transfer_functions
There can be a group for each estimate then this can be saved as multi-dimensional arrays.
This way an MTH5 can be a collection of transfer functions as well.

added with PR #84


fallback to regular Files on Windows

closes #2

@homunkulus r+

@homunkulus r+

:pushpin: Commit 1602590 has been approved by japaric

:hourglass: Testing commit 1602590 with merge 1602590...

:broken_heart: Test failed - status-appveyor

@homunkulus retry

:hourglass: Testing commit 1602590 with merge 1602590...

:broken_heart: Test failed - status-travis

:pushpin: Commit 45021d4 has been approved by japaric

@homunkulus r+

:hourglass: Testing commit 45021d4 with merge 45021d4...

:broken_heart: Test failed - status-appveyor

@homunkulus retry

:hourglass: Testing commit 45021d4 with merge 45021d4...

@homunkulus r+

:pushpin: Commit 5ef2e87 has been approved by japaric

:hourglass: Testing commit 5ef2e87 with merge 5ef2e87...

:sunny: Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing 5ef2e8770bede3df58c4945df5dded37baa82cb4 to master...


Improve the styling

I would love to see a few changes in the UI like the styling of buttons and navigation bar made better and uniform.
Could you please assign this issue to me

Full name:    Smriti Srinivas
GitHub Profile Link:   https://github.com/SmritiSrinivas3
Participant ID (If not, then put NA):  NA
Approach for this Project: Improving the UI and UX
What is your participant role?   Hacktoberfest

I will make this website look more attractive and modify navbar and footer as well. pls assign this project to me

Hey , I am interested to contribute to your repo by adding a requirement on it, can you please assign it to me?


spring-data-dynamodb:1.0.2.RELEASE does not work with spring boot 1.3.0.RELEASE.

Migration of https://github.com/michaellavelle/spring-data-dynamodb/issues/72

Closed as per @czmatsunaga-naoko's upstream comment


How to update HPA minReplicas thru istioctl

Hi,
Running version Istio 1.19.6 in a kubernetes cluster. Was wondering what is the proper method to update the HPA (for any of the controlplane resources). I can use kubectl to modify the HPA directly. Is there a way to update the HPA thru istioctl without a reinstall?
Thanks

Is this what you want? https://github.com/istio/istio/blob/master/manifests/charts/istio-control/istio-discovery/values.yaml#L6
You can try with istioctl install --set.

Is this what you want? https://github.com/istio/istio/blob/master/manifests/charts/istio-control/istio-discovery/values.yaml#L6-L7
You can try with istioctl install --set.

I think the goal is to maintain one IstioOperator definition that's referenced through the lifecycle of the installation. After installation, if a change is required (such as changing hpaMin/hpaMax or adding a port to the ingress controller), is there a way to make these changes from within the istioctl/IstioOperator framework? If so, I don't see that in the documentation.

@aboje In this case, I think you can try to maintain an IstioOperator resource file and install it with istioctl install -f iop.yaml. When you need to change the HPA, edit the field and run istioctl install -f iop.yaml again.

Yes I think what I was missing before was adding --revision parameter which I believe somehow points to the correct istio operator. (we had 2 operators running since we had just upgraded to v1.9.6) We can close this.. Thanks for your help!


FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory  1: 003806CE node::MakeCallback+3982  2: 007AA9D2 v8::internal::Heap::MaxHeapGrowingFactor+8194  3: 007A1BB1 v8::internal::ScavengeJob::operator=+14993  4: 007A930E v8::internal::Heap::MaxHeapGrowingFactor+2366

🐞 Bug report
Description
After upgrade ag-grid version from 21.2.2 - > 23.0.0  and npm i
🌍 Environment

Angular CLI: 9.1.13
Node: 10.16.3
OS: win32 ia32

Angular: 9.1.13
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.13
@angular-devkit/build-angular     0.901.13
@angular-devkit/build-optimizer   0.901.13
@angular-devkit/build-webpack     0.901.13
@angular-devkit/core              11.0.7
@angular-devkit/schematics        11.0.7
@angular/cdk                      8.2.2
@angular/fire                     5.4.2
@angular/pwa                      0.803.29
@ngtools/webpack                  9.1.13
@schematics/angular               11.0.7
@schematics/update                0.901.13
rxjs                              6.6.3
typescript                        3.7.5
webpack                           4.42.0

Anything else relevant?

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.


Adding custom queries

Discussed in https://github.com/nvim-orgmode/orgmode/discussions/233

Originally posted by ranjithshegde March 22, 2022
Since setting conceal from treesitter has been merged in core, I have been trying to set my own queries for org bullets like this
(
((stars) @stars (#eq? @stars "*")) @_conceal
(#set! conceal "◉")
)
(
((stars) @stars (#eq? @stars "**")) @_conceal
(#set! conceal "○")
)
(
((stars) @stars (#eq? @stars "***")) @_conceal
(#set! conceal "✸")
)
(
((stars) @stars (#eq? @stars "****")) @_conceal
(#set! conceal "✿")
)

When I append the above snippet to packer/*/orgmode/queries/org/highlights.scm it works perfectly. However when I do it in my ~/.config/nvim/after/queries/org/highlights.scm it does not apply.
according to @kristijanhusak's checking, disabling todo-keyfaces highlight solves this as a workaround for now

I think the issue is here. According to the treesitter docs (here), the set_query() function will override the defaults, so any user query files in /after/queries/highlights.scm are ignored after running filetype detect.
The solution might be to iterate over all query_files and gather the user-set queries then call vim.treesitter.set_query() and filetype detect at the end.

@ranjithshegde can you check if it works now?

I somehow missed the merge notification. Yes it works!!
Thanks @kristijanhusak and @gerritvreeman for your wonderful work


How do I extend the CallableResolver or why is the CallableResolver final?

Hey,
I'd love to extend the basic CallableResolver on my own, but I want to still be able to use the Slim standard implementation. The only option I have in this scenario would be to copy and paste the resolve method into my own resolver and add my changes.
This way I might not be compatible with future Slim updates on this piece of code. Is there a way to make this right or is this just like it is?

Okay, nevermind. My custom resolver now looks like this. It's not what I had in mind in the first place but I guess it's okay.
class CallableResolver implements CallableResolverInterface
{
    /**
     * @var ContainerInterface
     */
    protected $container;

    /**
     * @var CallableResolverInterface
     */
    protected $resolver;

    /**
     * @param ContainerInterface $container
     */
    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
        $this->resolver = new \Slim\CallableResolver($container);
    }

    /**
     * @param mixed $toResolve
     * @return callable
     */
    public function resolve($toResolve)
    {
        if (is_string($toResolve) && class_exists($toResolve) && method_exists($toResolve, 'execute')) {
            $toResolve = $toResolve . ':execute';
        }
        return $this->resolver->resolve($toResolve);
    }
}


Update installation.mdx

The dependencies were recently all moved to pyproject.toml. Updating the installation doc to reflect that

Documentation moved to https://docs.haystack.deepset.ai


If haxe Reflection is used, the csproj won't compile.

When haxe Reflection is used, the generated C# contains code which tries to set readonly properties:
public virtual double __hx_setField_f(string field, int hash, double @value, bool handleProperties) {
		unchecked {
			#line 7 "/home/nat/repos/kisslang/projects/nat-godot-playground/scripts/GodotUI.hx"
			switch (hash) {
				case<PHONE_NUMBER>:
				{
					#line 7 "/home/nat/repos/kisslang/projects/nat-godot-playground/scripts/GodotUI.hx"
					this.DynamicObject = ((object) (@value) );
					#line 7 "/home/nat/repos/kisslang/projects/nat-godot-playground/scripts/GodotUI.hx"
					return @value;
				}

Adding @:readOnly to the property declaration in Object.hx fixes the bug. I can PR the fix.

This actually wasn't happening for the reason I thought it was, and I had to work around it in a different way.


Reusable Workflows

Closing issues
Closes #[217]

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Webview cannot load a file from remote URI

Description
I have a service that returns a binary file (xls/pdf/html) back to user.  I tested in the browser by hitting service URL directly, and it works fine.  It also works fine on iOS if I have startInLoadingState set to false.   It never works on Android with or without flag.
Reproduction Steps and Sample Code
Load a webview that points to remote uri that needs Authentication.
Expected result -- view loaded with a file content
Actual result -- blank screen
An example of your code or a repro using Snack is REQUIRED
<WebView
          source={{
            uri,
            headers: {"Authorization": `Bearer ${token}`},
            token: `${token}`,
          }}
          startInLoadingState={true}
          scalesPageToFit={false}
        />

Additional Information

React Native version: 0.44
Platform: ios/Android
Development Operating System: Mac
Dev tools: Genymotion/Xcode

Can you reproduce this using Snack?

I have some problem on React Native version 0.42.0 on Android platform. But If use:
<WebView url="http://url" />, it work and page is loading.

Closing this issue as we haven't heard back from the author.

@opolyo01  @Ilyaololo did you solve this?
I have same problem.  Android only.  Using: RN 0.53.3
Copying the URL opens fine on a desktop or on native Android browser.
In a WebView it results in blank screen?
https://acme.com.io/user?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZC
TmpkRlFqRTBPRFl5TkVJeVEwUkJPRUZFT1VFNE4wWXpNZyJ9.eyRwczovL2F1dGguc3Vic2l
....
HV9Pcyya_g8xq_VmLKvFx4JF7EqeKXXOQbGx5iDJohQkQJ0O85C0HF3LtvBvf9xBHSpMhtZ
gWQVsXhMfqNX1gmg23dwzbGroPz4k_EQ057GKTajVwwnWDXpgz6JAVTuFQ6S9Dg1ZQEtw

  render() {
    return (
      <WebView
        source={{ uri: this.props.uri }}
        style={{ marginTop: 0 }}
        scalesPageToFit
        onError={() => {
          this.trackLoadTime(-1);
          }}
        onLoadEnd={() => this.onLoadEnd(0)}
      />
    );
  }

Using:
		"react": "^16.2.0",
		"react-native": "^0.53.3",

Please open a new issue.


Display current Spanner's status when execute "kubectl get spannerautoscaler"

Hello. Thank you for the great tool.
What you want to add
I want to display Spanner's status (current node/current cpu), when execute kubectl get spannerautoscaler
Why this is needed
Now, kubectl get spannerautoscaler displayed only the setting values. (target cpu/min node/max node/etc...)
So, If you want to know Spanner' status , you need to display the GCP console, etc.
I want to be able to check both configuration and setting values at once, like kubectl get hpa.
Since I already have a diff for this feature, can I create a PR for it?
$ kubectl get spannerautoscaler
NAME                 PROJECT ID   INSTANCE ID     MIN NODES   MAX NODES   CURRENT NODES   MIN PUS   MAX PUS   CURRENT PUS   TARGET CPU   CURRENT CPU   AGE
spanner-autoscaler   my-project   test-instance                           0               100       300       100           30           4             3d20h

Thank you for suggesting this. Please feel free to create a PR for this 👍

Thanks your comment. I created a PR!!

Thank you for your contribution!
Released 🎉  https://github.com/mercari/spanner-autoscaler/releases/tag/v0.2.3

Thanks for your quick review and release 👍


Set the samples URL in the quickstart as absolute

Set the samples URL in the quickstart as absolute

Hood benchmark comparison:
:heavy_check_mark: Decoding (Threshold:<PHONE_NUMBER>3000368)

Benchmark
Value

master_benchmark
11528.209678887742

helios_benchmark
14892.26173926956

:heavy_check_mark: Parsing (Threshold:<PHONE_NUMBER>5112173)

Benchmark
Value

master_benchmark
21731.173589092683

helios_benchmark
23995.690787383322


add driveAlias

Description
Implements the base features for space aliases in the decomposedFS
Detailed description
https://github.com/owncloud/ocis/pull/3283#issue-1161675086

I discovered a possible problem in https://github.com/cs3org/reva/blob/40f7f008a1f7f476e3f10c6d422ead61c4512fd6/pkg/storage/utils/decomposedfs/spaces.go#L223
We cannot assume that the length is as we expect it to be. I found that during unit testing.
../../spaces/4c/510ada-c86b-4815-8820-42cdf82c3d51/nodes/4c/51/0a/da/-c86b-4815-8820-42cdf82c3d51 could be
../../spaces/us/erid/nodes/4c/51/0a/da/-c86b-4815-8820-42cdf82c3d51

Create a user with a userid which is not UUIDv4
Log in, we will create a personal space with the userid as spaceID
the string will be shorter as we expect it

@kobergj I added configurable template strings.

general approach needs to be discussed
@dragotin FYI

general approach needs to be discussed
@dragotin FYI


Upgrade Guava to the latest version

Spring Cloud GCP uses google-cloud-bom for the common dependencies. We have recently turned on Snyk vulnerability detection, and it found a deserialization issue with Guava 20.0.
The recommended remediation step is to upgrade to 24.1.1 or higher.
Would it be possible to upgrade Guava version in google-cloud-clients POM?
Spring Cloud GCP tracking issue: spring-cloud/spring-cloud-gcp#1207

@elharo, can you please chime in?

A more recent version of grpc-java is using guava 26.0-android now, so we should bump to that.

I feel like we should upgrade everything or nothing. 26.0-android is likely strictly better but there's more than grpc to fix here.


HTTPClient status does not change when calling HTTPClient.close

Godot version:

OS/device including version:

Issue description:
I use HTTPClient to gather streaming data from a data provider.
I use a combination of a while loop and client.get_status, which then emits data on each new chunk that arrives.
In another thread, I call client.close(), expecting the client to show any status except HTTPClient.STATUS_BODY, but the status remains the same after closing the client.
Steps to reproduce:
StreamProcess.gd
	func stream(interface, remote_url):
		# Perform stream connection...

		while interface.get_status() == HTTPClient.STATUS_BODY:
			chunk = interface.read_response_body_chunk()
			if chunk.size() != 0:
				# Perform some extraction of payload
				# Emit signal that new data has been received

Somewhere else in the code (another thread)
interface.close()

I would expect that after calling close() the interface would no longer present HTTPClient.STATUS_BODY but rather something like HTTPClient.STATUS_DISCONNECTED but this is not the case.
Workaround
I've worked around this in my project by extending HTTPClient and adding a running toggle. I then check to see if the client should be running each iteration of the loop.
CustomHttpClient.gd
extends HTTPClient

var running = true

StreamProcess.gd
	func stream(interface, remote_url):
		# Perform stream connection...

		while interface.get_status() == HTTPClient.STATUS_BODY and interface.running:
			chunk = interface.read_response_body_chunk()
			if chunk.size() != 0:
				# Perform some extraction of payload
				# Emit signal that new data has been received

Now in another thread I can use:
interface.running = false

I'm not so sure this is a bug but rather a limitation in the current design. Changing this would not be backwwrds compatible, so if we want to change it, we should consider doing so for 4.0 and noting the incompatibility

@jonbonazza is there some reason you don't believe it to be a bug? Most code from my perspective should be multi-thread compliant. (Especially networking code).
This could also be tested in the same thread, I think but have not verified the bug exists in that case too

@tavurth im not saying whether its a bug or not. Im saying im unsure. You are right that it probably should return status_disconnected, but it might not di so by design. It was just an observation.
If it IS by design, then changing it outside of 4.0 isn't possible since there may be people relying on this behavior.
We'd need @Faless to chime in to see if he has any thoughts.

is there some reason you don't believe it to be a bug? Most code from my perspective should be multi-thread compliant. (Especially networking code).

In general, functions are not thread-safe, and the reason is that thread safety always has a cost (very high if you make everything thread safe). And you don't want to pay that price when you know you are always using a given resource in the same thread (i.e. most of the time).
The rule of thumb is that shared data across threads must be protected with Mutexes (or other synchronization techniques). This is also mentioned in the Thread documentation

Hmm then I would highly recommend flagging the network streaming components as NOT_THREAD_SAFE since this bug cost me, (and will likely cost other developers in future), many hours of debugging to find.
From my pespective there is a common use case to access the status of a HTTPStream from a separate thread. Using mutexes seems like a good alternative, but only if we protect those variables from being read in the wrong thread.
Perhaps some warning: This variable is not thread safe would suffice?

Hmm then I would highly recommend flagging the network streaming components as NOT_THREAD_SAFE since this bug cost me, (and will likely cost other developers in future), many hours of debugging to find.

Feel free to open a pull request for this :slightly_smiling_face:

Is there some way in Godot to track if a resource is being used in a thread which was not the creator? It would be nice to add a warning here if we start doing it accidentally

@tavurth If that's not implemented already, I guess we'd have to add a "thread ID" property to Resource so we can compare it with the current thread ID in debug builds.


Fonts installing Error

Denying the installing of neovim well not download the fonts xD.


Unable to delete records with polymorphic belongsTo associations

This PR addresses #1112. @samselikoff I wasn't sure where the test should live, so I just threw it into tests/integration/belongs-to for now. It might be possible to reduce the test further, this was just the simplest analogue to my app, and caused the same sort of failure I was seeing.

@omghax just submitted another polymorphism-related PR; may be helpful: https://github.com/samselikoff/ember-cli-mirage/pull/1153

@omghax great work! I wanted to understand the bug so it took me a while but your solution is perfect. The user was being correctly disassociated, but then it was getting re-associated because that dependents search was returning the comment as a dependent of itself, leading to weirdness.
I guess in the future methods like this could use some more lower-level tests (given this setup, getDependents() returns the correct models). For now this is great.

https://github.com/samselikoff/ember-cli-mirage/pull/1173 closes


add redux store

👷 Deploy Preview for laughing-lumiere-a8c520 processing.
🔨 Explore the source changes: 4857c8a068f809d67d53f0b2563a4119123ccc46
🔍 Inspect the deploy log: https://app.netlify.com/sites/laughing-lumiere-a8c520/deploys/61a1086249c25c0008bfbf9c


Documentation not clear on support for Fragments - Please clarify support for Fragments

The existence of a FragmentActivity would suggest support for Fragments. However, it seems that Fragments are not actually supported by React Native.  They do not exist at all in any sample code. (Prove me wrong!).  There is an outstanding issue to integrate a ReactFragment class. There are issues in handling on touch events inside a fragment that is based on react.  Is there someone who can clarify the situation?  What is the best option for those that want to use react native inside a fragment vs. activity?  In particular to have an activity with some fragments that are native and one or more fragments that is react native.  I need clarification if this can be done. This question obviously needs answering for anyone who is planning on a hybrid approach with the UI like integrating into an existing Android app.

Having this problem here too... And it is a stopper to use react native as an hybrid solution, since I have a native view pager on my main activity, and am trying to have one os the fragments with react native

+1

I guess we will never get a reply for this :(

@githubdoramon @aditijoshi It's taking a while.  Looks like there is some movement on https://github.com/facebook/react-native/pull/12199 to release some sample code for at least one approach to doing this.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/documentation-not-clear-on-support-for-fragments---please-clarify-support-for-fr


Webinterface fails to start when stream host is unavailable.

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?

Yes

Are you sure you're not using someone else's docker image?

Yes

Have you searched for similar issues (both open and closed)?

Yes

Describe the bug

Configuring stream hosts on NPM by hostname prevents startup while repeatedly reporting: host not found in upstream "<hostname>".
Nginx Proxy Manager Version

v2.10.4
To Reproduce
Steps to reproduce the behavior:

Add a stream host to nginx proxy manager. Refer to the stream host by container name.
Start nginx proxy manager when the stream host is down.
NPM fails to start, and web interface is unreachable.

Expected behavior

NPM management interface should still be reachable when a stream host is unavailable. Currently the container files need to be edited/removed manually if there is a typo in the hostname, or otherwise a host must be made available with that name for NPM to start.
Additional context

NPM repeatedly reports the following log messages while failing to start:
" nginx-proxy-manager  | ❯ Starting nginx ...
nginx-proxy-manager  | nginx: [emerg] host not found in upstream "<hostname>" in /data/nginx/stream/x.conf:11"

The problem seems similar to issue https://github.com/NginxProxyManager/nginx-proxy-manager/issues/633
server {
  listen 2200;
listen [::]:2200;

  proxy_pass <hostname>:<port>;

  # Custom
  include /data/nginx/custom/server_stream[.]conf;
  include /data/nginx/custom/server_stream_tcp[.]conf;
}

The generated nginx config file seems to follow the format above. It looks like the hostname is used directly in the proxy_pass directive which causes nginx to fail when it can't find the host. I imagine changing the behaviour to first store the hostname in a variable and use that veriable in the proxy_pass directive would circumvent this issue like it does in the generated configs for for the proxy hosts.
If possible it would also be good if the NPM would first serve it's own web interface first before attempting to serve any of the configured hosts, to prevent issues like this from requiring command line intervention, or diving into the dockerfiles of the NPM container. I'm not sure how feasible this would be though since I have not looked at the code at all.

Ran across this also. Glad to see an issue is already open for it.

+1

:+1:

same

:+1:

#3970 is the same issue (and, I favor, this IS an issue. If you enjoy making docker services come and go at whim, NPM now has you on a leash. Better tell NPM before you shut down that service for a bit.)

This is a huge issue for us, as we are using Portainer to stop the container, reboot the server just to add more HDD space. After it restarts, we can't go to Portainer to start the container as NPM is stuck on an error upstream of that container.  And now every containers we're hosting are all down.


[JointTrajectoryController] Revive angle_wraparound option

In the current implementation, there is no possibility to wraparound joint angles. Add this functionality from ROS1 version of the controller. Start at this line.

also in #85 ?

Duplicate of #85? Anyways, fixed with #772.


Fix resource and formula name case

Once this is ready I'll release 0.4.

I'll create a better PR

Thanks! (And thanks for keeping me honest on my indentation. :P)


ball-game

this a game that i have been working lately, there comes random holes, through which the ball is supposed to get passed, otherwise you lose.
i would like to make it look more professional, and later add some sound effects.
i've attached a snapshot of it below, and this is my project link. also, to count and display the highscore made by user in the game itself.
(https://github.com/Asttttha/game)
please assign me.

Sure!

I WANT TO WORK ON THIS ISSUE UNDER GSSOC'22.


[Bug]: Climate card temp step

Is your feature request related to a problem?
Not able to set 0.5 degree temp
Describe the solution you'd like
It would be great if somehow you can configured desired temp step like 0.5 degree step.
Right now you are only able to make 1 degree step.
Describe alternatives you've considered
No response
Additional context
No response

In default thermostat card I am able to set 0.5 but in  mushroom only 1.0

thanx


misc usability and robustness improvements

https://github.com/Agoric/agoric-3-proposals/pull/94 passed CI with PR trigger and manual trigger that runs the same job as main. Unfortunately, CI failed in main after merge.
It's surprising that the Depot builder rebuilt anything since it should all have been cached. Regardless, rebuilding shouldn't fail and it implies flaky builds.
This adds diagnostics to help debug them. It also includes misc fixes and usability improvements.

I'm merging now to test the main build that pushes.
I’m merging without first triggering main to test the main build without running it twice because we pay by the minute.
I’m merging without review because these are small uncontroversial changes that won’t affect other tools. I’ll fast follow with any requested changes.

I’m merging without review because these are small uncontroversial changes that won’t affect other tools. I’ll fast follow with any requested changes.

I probably would have missed the downstream effect of changing parts of the implementation of src/lib to TS, but it did break agoric-sdk which does want to deep import from there.


Make load similar decks work on lists of decks for performance.

See #4739. Saves 10s on /admin/archetypes load.

bors r+


Question about sourcing ROS

Hi, thanks for this great set of tools and settings, it is tremendously useful.  I am trying to use this on my local machine and running into a couple issues.  All the tasks that are type 'shell' seem to be working fine.  However, I run into an issue with the 'ament' type tasks.
eg. when I run the flake8 task, it says ament_flake8 command not found.  Is there a way to add a 'source /opt/ros/humble/setup.bash' before the tasks run?

It should be doing that already - I'll see if I can reproduce.  What docker image ar you using?

I am using it without docker.

That's probably the issue, the workspace was made to run with a docker.  I'll look into updating the plugin to source before running itself.
In the meantime you can try either of the following:

Source the terminal you're in before starting vscode

source /opt/ros/humble/setup.bash
code .

Add a dedicated source task and add it as a dependency of the ament tasks

tasks.json
        {
            "label": "source",
            "detail": "Source workspace",
            "type": "shell",
            "command": "source /opt/ros/humble/setup.bash",
            "problemMatcher": []
        },
        {
            "label": "cpplint",
            "detail": "Lint files with cpplint.",
            "type": "ament",
            "task": "cpplint",
            "path": "src/",
            "problemMatcher": "$ament_cpplint",
            "presentation": {
                "reveal": "silent",
                "clear": true
            },
            "dependsOn": ["source"],
            "dependsOrder": "sequence"
        },

Ok, I updated the ament task provider extension so you can specify a pre-run command.  Update that plugin and pull the latest.

@athackst thanks for the PRs.  This helps make everything work smoothly.


Just testing out several features...

Question Description:
Getting used to the format of things...
Your Contribution:
Nevertheless, why Tell-Don't-Ask? Because you (as an object) should not make a decision for another object if the other object will face the consequences of your decision.  Whatever that is.
Screenshots
Err... No I guess?

Alamak! I did not get the assignment!


Cannot apply prow/plugins.yaml

@zirain Seems this configmap is bad formated
https://github.com/kurator-dev/test-infra/blob/main/prow/plugins.yaml#L52-L56

yes, looks like there's wrong intend.

/assign


Inconsistent field/property names in the releases.json file

The releases.json file for 1.0, 1.1, and 2.1 have inconsistent field/property names which causes errors when specific properties are accessed in code such as powershell. From one release record to another, there will be some sdk records that will have a version property while others will have version-sdk.
Take for example this releases.json file for 1.1. In this code snippet, I have set $Platform to x64 and $ReleaseType = sdk so it is only looking at the sdk property of a given release if it exists. $RawContentUrl is a variable calculated from the release index. If the release index for 1.1 is https://github.com/dotnet/core/blob/master/release-notes/1.1/releases.json, $RawContentUrl will be https://raw.githubusercontent.com/dotnet/core/master/release-notes/1.1/releases.json.
$DotnetRelease = ((New-Object System.Net.WebClient).DownloadString($RawContentUrl) | ConvertFrom-Json )

$DotnetRelease.releases.GetEnumerator() | Where-Object { (-not $_.'release-version'.ToString().Contains('-')) -and $_.PSOBject.Properties['sdk'].Value } ` |
                        Select-Object -Property 'sdk' | Where-Object { -not $_.sdk.version.ToString().Contains('-') } | ForEach-Object {
                            $_.sdk.files.GetEnumerator() | Where-Object { $_.name -ilike "*win-$($Platform)*.exe" } ` |
                            Select-Object -Property @{ label = 'ReleaseType'; expression = { $ReleaseType }}, url, hash }

I get an error You cannot call a method on a null-valued expression but only on specific release records. 1.1.11 -1.1.9 works just fine. I get an error for 1.1.8 because the property is called version-sdk instead of version. 1.1.7 is fine too.
In the 1.0 releases.json file, release 1.0.1 does not have a release-version property while others do. This causes a similar error with the expression -not $_.'release-version'.ToString().Contains('-').
In general, I'm writing a utility that will enumerate available SDK, WindowsHosting, or Runtime executables to facilitate selection of the proper file to download given a known target runtime while also excluding pre-release versions with dashes in the value. There is a dotnet-install.ps1 utility but it does not install Windows hosting executables. There is a dotnetcore-windowshosting package but it does some strange things I do not understand, such as downloading the server hosting package, but only installing IIS ASP.Net Core Module even though both dotnetcore and asp.net core runtimes are already packaged with the windows hosting bundle.
Would it be possible to correct the releases.json files to be more consistent?

Really having a hard time to get the auto-update of chocolatey packages working. Each and every release of every version seems to have a different format.

Hi @riezebosch, I did get some traction on this though at the expense of ignoring ones that cause issues. I'm also thinking that some of the values are incorrect. Try this cmdlet to see if it works out for you. Feel free to use it and provide comments.
Get-AvailableDotnetCoreReleaseFile.txt

Thanks for the feedback and patience as we polish these up.
The release-version is giving me a bit of a fit. As you noticed this week, we do sometimes have an SDK release which carries a previously released runtime. With this scenario in mind, what should latest-release and release-version mean? I did add latest-runtime and latest-sdk to the top element as well as runtime-version to the sdk to enable better reasoning about those versions.
If the runtime and sdk versions are represented at each level to tie the data together, latest-version is really just a release identifier and almost unnecessary.
Once this bit is worked out, I'll run some update code on all of the channel jsons so that each will have the same field layout.
cc @vivmishra

@tristanbarcelon - I'm going to make a pass through the releases.json files and clean up the field inconsistencies this morning.

Thanks @leecow @vivmishra for looking into this issue. I believe @riezebosch might also be helped by cleanup of releases.json. Would it help if you publish some kind of a schema or structure intent for release.json files so we can parse them successfully in the future? I like the idea of having a release index for each major.minor since the Microsoft's support status coincides with them. Parsing 1.0's releases.json was error prone for me so I just avoided it in my provided script.

@tristanbarcelon As far as I know the releases.json is deprecated and will be removed in the (near) future.

@riezebosch are you referring to the version specific releases.json? I believe that's what they are moving to (referred to as v2)[https://github.com/dotnet/core/pull/1960]. They are indeed retiring v1 releases.json which contains all the releases. I distinctly recall install-dotnet.ps1 using it, but that too may change once they move over to v2.

@leecow and @vivmishra  I also noticed the addition of runtimeidentifier rid field in the newer files entries. Will this be backfilled for prior releases? Is files.name intended to be a version-agnostic file name pattern? That's what I used it for at least when I wanted to search for an executable (exe) version of sdk or runtime or hosting package, as opposed to zip files used by dotnet-install.ps1. Is the value for files.name consistently derived from package type ( runtime, sdk, aspnetcore-runtime, symbols) + rid + fileformat (exe, zip, tar.gz, etc)?