Code typechecks but fails to codegen

I'm writing a Random Number Generator and wanted to have an easy way to compose generators, so I implemented the following andThen function, that takes in an existing generator, it's init and a "mapping function" for the new generator. This typechecks but panics during codegen.
https://github.com/shritesh/raytrace.roc/blob/shritesh/broken-generator/RNG.roc#L5-L39
Generator a b c : RNG, a, (RNG, b -> c) -> c

# Simple linear congruential generator
RNG := U32

default : RNG
default = @RNG 0

andThen : Generator a b c, a, (d, b -> e) -> Generator d e c
andThen = \generator, init, fn ->
    \rng, newInit, newFn ->
        newRng, value <- generator rng init
        newFn newRng (fn newInit value)

u32 : Generator {} U32 *
u32 = \@RNG seed, {}, fn ->
    value =
        seed
        |> Num.mulWrap 1664525
        |> Num.addWrap<PHONE_NUMBER>

    fn (@RNG value) value

real : Generator {} F64 *
real =
    {}, u32Value <- andThen u32 {}
    max = Num.toF64 Num.maxU32 |> Num.add 1

    Num.toF64 u32Value / max

between : Generator { min : F64, max : F64 } F64 *
between =
    { min, max }, realValue <- andThen real {}

    min + (max - min) * realValue

The panic message is:
thread 'main' panicked at 'internal error: entered unreachable code: symbol/layout `21.IdentId(21)` ProcLayout {
    arguments: [
        Builtin(
            Int(
                U32,
            ),
        ),
        Builtin(
            Int(
                U32,
            ),
        ),
        LambdaSet(
            LambdaSet {
                set: [
                    ( 21.21, [LambdaSet(LambdaSet { set: [( 21.27, [])], representation: Interned(1, PhantomData) }), Struct { field_order_hash: FieldOrderHash(0), field_layouts: [] }, LambdaSet(LambdaSet { set: [( 16.50, [Builtin(Int(U64)), Builtin(Int(U64)), Struct { field_order_hash: FieldOrderHash(18117670831054429132), field_layouts: [Struct { field_order_hash: FieldOrderHash(15342153996709418787), field_layouts: [Builtin(Float(F64)), Builtin(Float(F64)), Builtin(Float(F64))] }, Builtin(Int(U32))] }, Builtin(Float(F64))])], representation: Interned(6, PhantomData) })]),
                ],
                representation: Interned(
                    13,
                    PhantomData,
                ),
            },
        ),
    ],
    result: Struct {
        field_order_hash: FieldOrderHash(
<PHONE_NUMBER>1054429132,
        ),
        field_layouts: [
            Struct {
                field_order_hash: FieldOrderHash(
<PHONE_NUMBER>6709418787,
                ),
                field_layouts: [
                    Builtin(
                        Float(
                            F64,
                        ),
                    ),
                    Builtin(
                        Float(
                            F64,
                        ),
                    ),
                    Builtin(
                        Float(
                            F64,
                        ),
                    ),
                ],
            },
            Builtin(
                Int(
                    U32,
                ),
            ),
        ],
    },
    captures_niche: CapturesNiche(
        [
            LambdaSet(
                LambdaSet {
                    set: [
                        ( 21.27, []),
                    ],
                    representation: Interned(
                        1,
                        PhantomData,
                    ),
                },
            ),
            Struct {
                field_order_hash: FieldOrderHash(
                    0,
                ),
                field_layouts: [],
            },
            LambdaSet(
                LambdaSet {
                    set: [
                        ( 16.50, [Builtin(Int(U64)), Builtin(Int(U64)), Struct { field_order_hash: FieldOrderHash(18117670831054429132), field_layouts: [Struct { field_order_hash: FieldOrderHash(15342153996709418787), field_layouts: [Builtin(Float(F64)), Builtin(Float(F64)), Builtin(Float(F64))] }, Builtin(Int(U32))] }, Builtin(Float(F64))]),
                    ],
                    representation: Interned(
                        6,
                        PhantomData,
                    ),
                },
            ),
        ],
    ),
} combo must be in DeclarationToIndex', crates/compiler/mono/src/borrow.rs:165:9
stack backtrace:
   0:        0x104c91b70 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1543c132bc4e188c
   1:        0x10425b7f4 - core::fmt::write::hda8e8eb84b49cbfc
   2:        0x104c8abb4 - std::io::Write::write_fmt::hb84c8996aec7120c
   3:        0x104c963e0 - std::panicking::default_hook::{{closure}}::hdf06011cb093de6a
   4:        0x104c96160 - std::panicking::default_hook::hd7ceb942fff7b170
   5:        0x104c96820 - std::panicking::rust_panic_with_hook::h053d4067a63a6fcb
   6:        0x104c96754 - std::panicking::begin_panic_handler::{{closure}}::hea9e6c546a23e8ff
   7:        0x104c950c0 - std::sys_common::backtrace::__rust_end_short_backtrace::hd64e012cf32134c6
   8:        0x104c964ec - _rust_begin_unwind
   9:        0x105dcc7ac - core::panicking::panic_fmt::hbfde5533e1c0592e
  10:        0x104909078 - roc_mono::borrow::ParamMap::get_param_offset::hbffeaee219e08b36
  11:        0x10490a0c4 - roc_mono::borrow::BorrowInfState::collect_expr::ha86bfec056116858
  12:        0x10490ab74 - roc_mono::borrow::BorrowInfState::collect_stmt::h43969ec2db8ff6ae
  13:        0x104908a40 - roc_mono::borrow::infer_borrow::h31c2266a2ae147ef
  14:        0x10492be8c - roc_mono::ir::Proc::insert_refcount_operations::h6428695833febccd
  15:        0x1048ad064 - roc_load_internal::file::update::ha42494b085ccc93d
  16:        0x10489ed30 - roc_load_internal::file::state_thread_step::he6a3f4e355eb5b81
  17:        0x1048a2fc8 - roc_load_internal::file::load_multi_threaded::h6f2ed5ce1f232de0
  18:        0x10489c908 - roc_load_internal::file::load::h5c8b96246126fbe7
  19:        0x104848670 - roc_load::load_and_monomorphize::hf3820d3b0f9afd40
  20:        0x1045a90ac - roc_cli::build::build_file::h7d8f2cc16ee70b32
  21:        0x1045b84b4 - roc_cli::build::h23083977acb1da5e
  22:        0x10445aad8 - roc::main::h3012192f41c3b7d7
  23:        0x104455a8c - std::sys_common::backtrace::__rust_begin_short_backtrace::hb993bd9ba7844407
  24:        0x104455aac - std::rt::lang_start::{{closure}}::hb8a8e41cbdc0d669
  25:        0x104c83e24 - std::rt::lang_start_internal::hef2161f9571a51d7
  26:        0x10445cde4 - _main

minimization:
interface B exposes [] imports []

Generator : ({} -> U8) -> U8

andThen : Generator -> Generator
andThen = \generator ->
    \newFn ->
        generator \newRng -> newFn newRng

between : Generator
between =
    andThen (\f -> f {})

it : U8
it =
    between (\{} ->
        between (\{} ->
            10u8
        )
    )

expect
    it == 10u8

The elaboration for
Generator : ({} -> U8) -> U8

andThen : Generator -> Generator
andThen = \generator ->
    \newFn ->
        generator \newRng -> newFn newRng

between : Generator
between =
    andThen (\f -> f {})

it : U8
it =
    between (\{} ->
#   ^^^^^^^
        between (\{} ->
#       ^^^^^^^
            10u8
        )
    )

main = it

is
andThen = \generator -[2]-> \newFn -[8]-> generator \newRng -[10]-> newFn newRng

between = andThen \f -[12]-> f {}

it = between \{} -[14]-> between \{} -[15]-> 10

main = it

between : ({} -[[14]]-> U8) -[[8 (({} -[[10 ({} -[[14]]-> U8)]]-> U8) -[[12]]-> U8)]]-> U8
between : ({} -[[15]]-> U8) -[[8 (({} -[[10 ({} -[[15]]-> U8)]]-> U8) -[[12]]-> U8)]]-> U8

which appears to be correct.
There is a missing specialization
thread 'issue_4734' panicked at 'internal error: entered unreachable code: symbol/layout `#UserApp.8` ProcLayout {
    arguments: [
        LambdaSet(
            LambdaSet {
                set: [
                    ( Test.15, []),
                ],
                representation: Interned(
                    0,
                    PhantomData,
                ),
            },
        ),
        LambdaSet(
            LambdaSet {
                set: [
                    ( Test.8, [LambdaSet(LambdaSet { set: [( Test.12, [])], representation: Interned(0, PhantomData) })]),
                ],
                representation: Interned(
                    1,
                    PhantomData,
                ),
            },
        ),
    ],
    result: Builtin(
        Int(
            U8,
        ),
    ),
    captures_niche: CapturesNiche(
        [
            LambdaSet(
                LambdaSet {
                    set: [
                        ( Test.12, []),
                    ],
                    representation: Interned(
                        0,
                        PhantomData,
                    ),
                },
            ),
        ],
    ),
} combo must be in DeclarationToIndex

but there is one present, where the diff is
❯ diff a.d b.d
6c6
<                     ( Test.15, []),
---
>                     ( Test.14, []),

so, we are missing a specialization of \newFn -[8]-> generator \newRng -[10]-> newFn newRng for the 15 variant. Perhaps this is because the lambda set niche of 8 is seen to be the closure 12 in both cases? But the arguments are materially different, so perhaps this suggests that higher up, we only see one layout to specialize for.

Okay, so the problem here is that between is seen as a module thunk, and we don't fully preserve the shape of the function it returns when we specialize the thunk.
In particular, we have two calls to between:
between : ({} -[[14]]-> U8) -[[8 (({} -[[10 ({} -[[14]]-> U8)]]-> U8) -[[12]]-> U8)]]-> U8
between : ({} -[[15]]-> U8) -[[8 (({} -[[10 ({} -[[15]]-> U8)]]-> U8) -[[12]]-> U8)]]-> U8

but, since between is a module thunk, we only record its return layout when determining specialization. In both cases, the return layout is the unary lambda set 8 which captures a unary lambda set 12; i.e. the layout
LambdaSet {
    set: [
        ( Test.8, [LambdaSet(LambdaSet { set: [( Test.12, [])], representation: Interned(0, PhantomData) })]),
    ],
    representation: Interned(
        1,
        PhantomData,
    ),
},

We might think that somehow the nested captures of [[8 (({} -[[10 ({} -[[14]]-> U8)]]-> U8) -[[12]]-> U8)]]'s captured function arguments need to be represented in the layout. Unfortunately I don't think that's enough. For example, suppose we had instead
andThen =
  \generator -[2]->
  x = generator \{} -[9]-> 10
  \newFn -[10]-> Num.add (newFn {}) x

between = andThen \f -[12]-> f {}

it = between \{} -[14]-> between \{} -[15]-> 10

main = it

now there are two between specializations
between : ({} -[[14]]-> U8) -[[10 U8]]-> U8
between : ({} -[[15]]-> U8) -[[10 U8]]-> U8

but again, we will only wind up storing [10 U8] as the specialized layout of between. And now there is nothing deeper in the captures of the lambda 10 that can help us, we really do need to preserve the structural layout of the proc that between itself resolves to.

@shritesh as a workaround for now, this should work if you explicitly wrap the between and real thunks in a lambda, i.e. something to the effect of
between : Generator { min : F64, max : F64 } F64 *
between = \seed, init, fn ->
    ({ min, max }, realValue <- andThen real {}

    min + (max - min) * realValue) seed init fn


App crashes when tapping on a Sponsor thumbnail that doesn't have Sponsor URL in Contentful

Description of issue
The app will crash if you tap on a Sponsor that doesn't have a Sponsor URL in Contentful.
The Sponsor URL field is not marked as required so it possible to publish sponsor content that doesn't have one.
Expected behaviour
Either the Sponsor URL field is made a required field or if the sponsor doesn't have a URL the tapping functionality is disabled.
Steps to reproduce

Open the 'Partner with us' page from the 'Support us' tab
Tap on an event without a Sponsor URL (e.g. Weyland-Yutani)

App crashes

OS / Browser / Device model
Galaxy S8
iPhone 7+
iPhone 6

Yeah, the sponsor URL is required. I suggest we fix this by making it required in contentful.

I changed the Sponsor URL to be required by default in the Content model for Sponsors. I tested and wasn't able to publish a Sponsor without the URL, so closing this


🐛 [firebase_messaging] ^8.0.0-dev.14 causes badge issues

Bug report
Describe the bug
I've been using messaging in my app for a year with correct behavior.  I just upgraded to firebase_messaging: ^8.0.0-dev.14 and followed the migration guide.  Everything is working except on iOS the badge icon on the application is all messed up.  Sometimes it never goes away no matter what I try.  Sometimes it won't show up, but when you click on the icon the badge turns on while it's expanding, and then when you minimize you see it until it finishes minimizing.
Never had anything like this before upgrading the messaging version.
Expected behavior
Should clear when the app is opened.

Hi @m-j-g
Please see https://github.com/FirebaseExtended/flutterfire/issues/4145#issuecomment-739571979
If you believe that this is caused specifically by this plugin please provide your flutter -doctor -v, flutter pub deps -- --style=compact and a
minimal complete reproducible code sample without any third-party plugins.
Closing this as we do not control this behavior.
Thank you

Hi @m-j-g
Please see https://github.com/FirebaseExtended/flutterfire/issues/4145#issuecomment-739571979
If you believe that this is caused specifically by this plugin please provide your flutter -doctor -v, flutter pub deps -- --style=compact and a
minimal complete reproducible code sample without any third-party plugins.
Closing this as we do not control this behavior.
Thank you

Create another issue https://github.com/FirebaseExtended/flutterfire/issues/4930 , hope that we can solve this problem together


[5.5] Add Missing Abstract Relation Method

For some reason, this method is not defined (not even as abstract) even though it's called within its self... (Take a look at line 214)

@ConnorVG Travis tests failing.

Actually this is method doesn't exist in every relationship class and thus can't be added as abstract.

The tests fail because I forgot to update the test. The method is called within its self. There is a separation issue here if there is no availability to add it in to Relation or remove its internal call.

@themsaid can you at-least link to a relationship where this method doesn't exist..?


[MRG] Automatically generate derived Channel schemas

replaces #114

screwed-up the setup.py during rebase. This should do the trick.

Now travis servers are over capacity sigh... Let's try later.

Looks like things are passing now

Rebased on master to get travis changes

I feel like this is in pretty good shape now, @ellisonbg, if you want to take a look

Rebased on master again to get utility updates.

A few extra commits now: the channel wrappers (e.g. X, Y, Row, Col, etc.) are now part of the auto-generation.

FYI, @ellisonbg, if you want to review this, there are only a handful of relevant files: namely altair/api.py, tools/generate_schema_interface.py, and tools/templates/*. Everything else that is part of this PR is auto-generated by those scripts.

Very minor review comments, I am going to merge and we can iterate in master. I want this to be in so my work tomorrow on the plane won't generated conflicts.


cyrus-sasl: rename from cyrus_sasl

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Build failed on Darwin. (Same as in #334780)

Shouldn't this be zero build?

I mean OfBorg build check.


RPi Segmentation fault

Please provide us with the following information:

7325283  Playback of 0 bytes complete.
New status : Idle
underrun occurred
7329572  startKWS called
7329573  Initializing keyword recognition with: /home/ubuntu/cpp-console/models/computer.table
7329573  KWS initialized
Segmentation fault (core dumped)
This issue is for a: (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

It was running for hours, and stopped working

Any log messages given by the failure

Nothing in syslog. console output given above

Expected/desired behavior

No crash

OS and Version?

RPi Ubuntu

Versions

Mention any other details that might be useful

Thanks! We'll be in touch soon.

Closing, will re-open if happens on latest build


The helm deployment template references to the secrets which is not available in case of disabled Postgres dependency

Current Behavior
The helm deployment template references to the secrets which is not available in case of disabled Postgres dependency.
File: deployment.yaml
The secret mentioned here is not generated if we disable the Postgres dependency. postgres-init.yaml
I believe this secret is used to create Postgres user in case of Postgres installation but it would be irrelevant if the user has pre-existing Postgres server and user.
Expected Behavior
The Postgres init secret reference in the deployment template should be dynamic based on the postgres dependancy enabled/disabled.
Steps To Reproduce
Install the helm chart with existing Postgres server and keep the Postgres dependency disabled. The deployment would fail with 'no secret found' error.
Let me know if more information is needed.
I can also try to contribute to this issue based on the further discussion.

Hi @niteshsakhiya,
thanks for your feedback. We created a PR to fix the bug.


iOS7 Support

Is it possible to make this great project run on IOS7 as well?

Hi !
I pushed a 1.0.1 version with a deployment target of 7.0+.
I did not try it on a real device, let me know if it's ok for you.
The only change made was using the mask property on CALayer instead of the new maskView property on UIView.

It is working now.


Installing Nona and using 'generate.py' with Pillow

Not sure if I am doing this correctly. I am trying to use generate.py and get started using the examples. I have done a pip install Pillow, however, I do not know if nona has been installed.
Running generate.py alma.jpg does not work because it says I do not have nona installed.
Hugin seemed like a longer installation process. Is there any additional steps I have to do to use pillow and generate.py?

Since you don't get an import error, you have Pillow working correctly. As for nona, it needs to either be on your path (in which case you can call nona from a terminal window), or you need to specify the path to the nona executable with the -n flag.

yup, tried looking for that, but I don't think I see it. I assume it's not available globally? which nona does not work either. I do have Pillow in my python modules however.
I went to the module folder for Pillow, but I didn't see it in there either. Is there an intermediate step I'm missing.

nona is part of Hugin, not Pillow. You need to look where you installed Hugin.

Ah ok. I didn't get Hugin. Was a little confused with the docs:

which is available as part of Hugin, as well as Python with the Pillow package.

So I thought it was either/or. I'll try getting up and running with Hugin. Thank You

Perfect it worked! Thank You. I'm running on MacOS For the next user who might need help with this:
1.) Get Hugin
2.) Get the DMG and Move it to Applications
3.) You can find the nona package as part of the HuginStitchProject, right click and open package contents: the path is here /Applications/Hugin/HuginStitchProject.app/Contents/MacOS/nona
4.) run with python generate.py -n /Applications/Hugin/HuginStitchProject.app/Contents/MacOS/nona <img_name>

@rlingineni  Thanks for posting the steps, it is extremely helpful!

The Hugin program for Windows uses nona as and an .exe extension when I try to run:
python generate.py C: \Program Files\Hugin\bin\nona.exe  01.jpg
erro
generate.py: error: argument -n/--nona is required
Or do you have multires panoramas on Windows?

The error is self-explanatory; you need to specify the path to nona.exe using the -n flag, which you aren't providing, e.g. python generate.py -n C:\Program Files\Hugin\bin\nona.exe 01.jpg.

Get more, which is a copy of a bin folder from the Hugin program into the folder where the file is the image and generate.py getting like this
python generate.py -n bin/nona.exe 01.jpg
Everything went well, take the space here to thank for the excellent work @mpetroff

This should be added to the documentation.


Stop camunda 'route' on camel exception.

Hi! I have tried googling around for a solution to this, but I've not found anything so far.
I'm sending data from Camel to Camunda via camunda-bpm://start?.... At several points it calls Camel endpoints, such as ${camel.sendTo('direct:debug')}. However, when any of these Camel routes/endpoints throw an exception, the Camunda route proceeds as if nothing wrong has occurred. This will cause issues later in the Camunda route. Setting an 'exception' variable and checking for it after every call to Camel will make the BPMN extremely bloated real quick.
So, in short: Is it possible to cancel a Camunda 'route/run' when one of its calls to Camel throws an exception?

How did you configure the route? See this example where I map Exceptions to a BPMN Error, so I can use it there:
https://github.com/camunda-consulting/code/blob/master/one-time-examples/camel-use-cases/src/main/java/org/camunda/demo/camel/MyCamelRouteBuilder.java#L62
Or do you want to create an incident in Camunda?

Hi. Thanks for your quick response.
I made a quick example below displaying my issue. I have two processes in my BPMN. I want Camunda not to run/enter the second process if the first process (a call to camel) throws an exception. I have tried appending the code in your example (adding the onException-snippet to one route, both routes  and making it global; also tried to add 'route stop' to the onException clause). It still calls the second process and prints "Got here. Shouldn't have".
Java code:
@Component
public class TestRoute extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        from("timer://foo?period=60000")
                .to(ExchangePattern.InOut, "camunda-bpm://start?processDefinitionKey=TinyTest")
                .process(exchange -> {

                });

        from("direct:throwException")
                .process(exchange -> {
                    System.out.println("Throwing exception!");
                    throw new Exception("This is a test.");
                });

        from("direct:shouldNotGetHere")
                .process(exchange -> {
                    System.out.println("Got here. Shouldn't have.");
                 Or have I misunderstood how Camunda is supposed to handle these situations?


it is not working

hello i setup the nhc2 but it is not working. When i put the integration in debug i get this
Logger: homeassistant.util.loop
Source: util/loop.py:77
First occurred: 4:04:21 AM (1 occurrences)
Last logged: 4:04:21 AM

Detected blocking call to import_module with args ('custom_components.nhc2',) in /usr/src/homeassistant/homeassistant/loader.py, line 1067: ComponentProtocol, importlib.import_module(self.pkg_path) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component component = await integration.async_get_component() File "/usr/src/homeassistant/homeassistant/loader.py", line 1019, in async_get_component comp = self._get_component() File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path)

Can you enable debug logging. Because this should not be something that blocks the setup, just a warning.

that is already on where should I see the logs of it?

See the first step in https://github.com/joleys/niko-home-control-II?tab=readme-ov-file#i-need-to-see-the-device-list

I have 4.5.0 and have the same issue, I cleaned all devices and reinstalled NHCII but I also do not get any devices. I see following error: 2024-09-05 14:00:47.250 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7fbe082d7950>, '/config/custom_components/nhc2/nhccoco/coco_ca.pem') inside the event loop by custom integration 'nhc2' at custom_components/nhc2/nhccoco/coco.py, line 96: client.tls_set(ca_path) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 804: context.load_verify_locations(ca_certs)), please create a bug report at https://github.com/joleys/niko-home-control-II/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last):

I find it really hard to believe that you have enabled debugging as described in https://github.com/joleys/niko-home-control-II?tab=readme-ov-file#i-need-to-see-the-device-list

First you will need to enable debug logging for the integration. You can enable debug logging for this integration by adding the following to your configuration.yaml file:
logger:
  default: warning
  logs:
    custom_components.nhc2: debug

When this is done you will need to restart Home Assistant. After that you can see the device list in the logs. You can find it by searching for Received device list:. The device list itself is a large JSON string.

Because that would output a lot more data into the logs.

I did exactly like you asked, I added  custom_components.nhc2: debug in my configuration.yaml file.  I do not get anything when I look for Received device list:

If Ilook for NIKO I get:
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 09:47:21 (4 occurrences)
Last logged: 09:47:21

Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7fac7c9842d0>, '/config/custom_components/nhc2/nhccoco/coco_ca.pem') inside the event loop by custom integration 'nhc2' at custom_components/nhc2/nhccoco/coco.py, line 96: client.tls_set(ca_path) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 804: context.load_verify_locations(ca_certs)), please create a bug report at https://github.com/joleys/niko-home-control-II/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr> create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/nhc2/__init__.py", line 83, in async_setup_entry coco = CoCo( File "/config/custom_components/nhc2/nhccoco/coco.py", line 96, in __init__ client.tls_set(ca_path)
Detected blocking call to listdir with args ('/config/deps/lib/python3.12/site-packages',) inside the event loop by integration 'twentemilieu' at homeassistant/components/twentemilieu/__init__.py, line 49: await coordinator.async_config_entry_first_refresh() (offender: /usr/local/lib/python3.12/importlib/metadata/__init__.py, line 680: return os.listdir(self.root or '.')), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+twentemilieu%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#listdir Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr> create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/twentemilieu/__init__.py", line 49, in async_setup_entry await coordinator.async_config_entry_first_refresh()
Detected blocking call to read_text with args (PosixPath('/usr/local/lib/python3.12/site-packages/twentemilieu-2.0.1.dist-info/METADATA'),) inside the event loop by integration 'twentemilieu' at homeassistant/components/twentemilieu/__init__.py, line 49: await coordinator.async_config_entry_first_refresh() (offender: /usr/local/lib/python3.12/importlib/metadata/__init__.py, line 819: return self._path.joinpath(filename).read_text(encoding='utf-8')), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+twentemilieu%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#read_text Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr> create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/twentemilieu/__init__.py", line 49, in async_setup_entry await coordinator.async_config_entry_first_refresh()
Detected blocking call to open with args (PosixPath('/usr/local/lib/python3.12/site-packages/twentemilieu-2.0.1.dist-info/METADATA'),) inside the event loop by integration 'twentemilieu' at homeassistant/components/twentemilieu/__init__.py, line 49: await coordinator.async_config_entry_first_refresh() (offender: /usr/local/lib/python3.12/pathlib.py, line 1027: with self.open(mode='r', encoding=encoding, errors=errors) as f:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+twentemilieu%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr> create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/twentemilieu/__init__.py", line 49, in async_setup_entry await coordinator.async_config_entry_first_refresh()

Hi Huub,
At the bottom of the log page in home assistant you will find a button: "Download full log."
Once the log is downloaded, search for the string.
From: Huub @.>
Sent: Friday, 6 September 2024 09:56
To: joleys/niko-home-control-II @.>
Cc: Subscribed @.***>
Subject: Re: [joleys/niko-home-control-II] it is not working (Issue #178)
I did exactly like you asked, I added custom_components.nhc2: debug in my configuration.yaml file. I do not get anything when I look for Received device list:
ss1.png (view on web)https://github.com/user-attachments/assets/b6b0607f-01ec-48a7-b3c6-84c688c99454
If Ilook for NIKO I get:
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 09:47:21 (4 occurrences)
Last logged: 09:47:21
Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7fac7c9842d0>, '/config/custom_components/nhc2/nhccoco/coco_ca.pem') inside the event loop by custom integration 'nhc2' at custom_components/nhc2/nhccoco/coco.py, line 96: client.tls_set(ca_path) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 804: context.load_verify_locations(ca_certs)), please create a bug report at https://github.com/joleys/niko-home-control-II/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/nhc2/init.py", line 83, in async_setup_entry coco = CoCo( File "/config/custom_components/nhc2/nhccoco/coco.py", line 96, in init client.tls_set(ca_path)
Detected blocking call to listdir with args ('/config/deps/lib/python3.12/site-packages',) inside the event loop by integration 'twentemilieu' at homeassistant/components/twentemilieu/init.py, line 49: await coordinator.async_config_entry_first_refresh() (offender: /usr/local/lib/python3.12/importlib/metadata/init.py, line 680: return os.listdir(self.root or '.')), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A"integration%3A+twentemilieu" For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#listdir Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/twentemilieu/init.py", line 49, in async_setup_entry await coordinator.async_config_entry_first_refresh()
Detected blocking call to read_text with args (PosixPath('/usr/local/lib/python3.12/site-packages/twentemilieu-2.0.1.dist-info/METADATA'),) inside the event loop by integration 'twentemilieu' at homeassistant/components/twentemilieu/init.py, line 49: await coordinator.async_config_entry_first_refresh() (offender: /usr/local/lib/python3.12/importlib/metadata/init.py, line 819: return self._path.joinpath(filename).read_text(encoding='utf-8')), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A"integration%3A+twentemilieu" For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#read_text Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/twentemilieu/init.py", line 49, in async_setup_entry await coordinator.async_config_entry_first_refresh()
Detected blocking call to open with args (PosixPath('/usr/local/lib/python3.12/site-packages/twentemilieu-2.0.1.dist-info/METADATA'),) inside the event loop by integration 'twentemilieu' at homeassistant/components/twentemilieu/init.py, line 49: await coordinator.async_config_entry_first_refresh() (offender: /usr/local/lib/python3.12/pathlib.py, line 1027: with self.open(mode='r', encoding=encoding, errors=errors) as f:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A"integration%3A+twentemilieu" For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/twentemilieu/init.py", line 49, in async_setup_entry await coordinator.async_config_entry_first_refresh()

Reply to this email directly, view it on GitHubhttps://github.com/joleys/niko-home-control-II/issues/178#issuecomment-2333467061, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANUSBYNPWULYJMYUL2WWTO3ZVFNZHAVCNFSM6AAAAABNHIXKV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZTGQ3DOMBWGE.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>

If I download the complete LOG, I do not get any entries if I look for Received device list
Again I am sure added the log details in my config.yaml file.

Have you restarted Home Assistant after changing the configuration?

Of course I did
Op vr 6 sep 2024 om 11:00 schreef Tijs Verkoyen @.***>:

Have you restarted Home Assistant after changing the configuration?
—
Reply to this email directly, view it on GitHub
https://github.com/joleys/niko-home-control-II/issues/178#issuecomment-2333582231,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD3CSP2VW67CJDRUJ7Q7ZVTZVFVLJAVCNFSM6AAAAABNHIXKV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZTGU4DEMRTGE
.
You are receiving this because you commented.Message ID:
@.***>

I have just tested with Home Assistant v2024.9.0 and v4.5.0 of this integration. And you should at least see something like below in the logs:
[custom_components.nhc2] Connecting to ... with hobby

Can you search the full log for custom_components.nhc2.
If that is not present I would check if the IP of your Niko Home Assistant Controller is correct and Home Assistant can reach that IP.

okay, then I get:
Home Assistant Core
2024-09-06 09:47:21.309 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('custom_components.nhc2',) in /usr/src/homeassistant/homeassistant/loader.py, line 1067: ComponentProtocol, importlib.import_module(self.pkg_path) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue
2024-09-06 09:47:21.533 DEBUG (MainThread) [custom_components.nhc2] Connecting to 192.XXX.XX.XX with hobby

I masked the IP myself

And nothing below it?
Because if so: your controller can't be reached. Remove the integration and readd it with the correct IP and credentials.

Here a screenshot:

I am sure the IP is correct, but I will re-create a hoppy API tonight when I am at home as it will not work remote. I will let you know the outcome. Thanks all for your support so far.

I don't know how you are running Home Assistant, but check if the Niko Controller can be reached from that machine/docker/...

Hello Tijs, mistery solved! The IP address changed, strange that if an IP or vice is not reachable that you can add it in HA.
Thank you all for your patience, and keep up the good work!

The IP is stored in Home Assistant when the integration is added and configured. I suspect the IP has changed after that.
I would strongly suggest that you make sure the Niko Home Controller has a fixed IP.


Acquisiton engine fixes and various changes GUI to enable performance tests

@bls337 I made some changes to the GUI here to enable speed tests, including adding a speed test button. I also disabled the run acquisition button for now, until we've added in code that makes it work with actual hardware.

Also, the instructions for speed testing:
Load the demo config. When you click the speed test button, it will apply necessary settings, and run an acquisition with the number of frames equal to the time points settings in the GUI and using the saving name and dir supplied on the GUI (all other settings are ignored). After running, it will generate two CSV files with the results, which can be analyzed in the jupyter notebook along in this PR

Thank you Henry!


switch from clusteroperators.operatorstatus.openshift.io to clusteroperator.config.openshift.io

Fixes https://github.com/openshift/cluster-image-registry-operator/issues/75

@legionus please add an e2e test that confirms the ClusterOperator status object is being created and has the correct conditions set on it, and then lgtm.
@coreydaley fyi.

@bparees can I do it as follow up ?

@bparees can I do it as follow up ?

ok.
/lgtm


Wat is er mogelijk technisch gezien qua voorstellen coach etc.

[ ] Robot of poppetje zonder geslacht
[ ] Naam coach

Technical: Create a therapist account with an avatar and name. Same for everyone:

[ ] Decide on a genderneutral name
[ ] Decide on some kind of image


Fix permissions error

#192  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @dawit-0 and the rest of your teammates on  Graphite


Nag nanny improvements

How many times it reminds the user:
once a day
every 30 minutes
every hour
every 3 hours
Start time - end time
Days are checkboxes (7 checkboxes)

how is the once a day / every 30 minutes etc interval different from the current, already implemented "remind in N minutes"? should I remove the remind in N minutes feature now?


No  reactions found

Installed the extension from Chrome Web Store, and navigated to a few issues in a couple of repos. I am seeing this: no reactions found

What am I missing?

I mistook the purpose of the extension. Sorry!


Error : line 18, in convert     mesh.prune() AttributeError: 'Mesh' object has no attribute 'prune'

Hi everyone,
I have some issues converting a 2D msh mesh file to a xdmf for a project, using meshio.
Using those lines of command :
meshio-convert whistle.msh whistle.xdmf
meshio-convert -z whistle.msh whistle.xdmf

It works well .
(But it doesn't work on dolfin after, with the error reading the xdmf file:
*** Error:   Unable to recognise cell type.
*** Reason:  Unknown value "mixed".
*** Where:   This error was encountered inside XDMFFile.cpp.
*** Process: 0
***
*** DOLFIN version: 2019.2.0.dev0
*** Git changeset:  unknown

)
but with the one our teacher suggests :
meshio-convert -pz whistle.msh whistle.xdmf
I get the following error :
shio-convert -pz whistle.msh whistle.xdmf
Traceback (most recent call last):
  File "/home/twanax/.local/bin/meshio-convert", line 8, in <module>
    sys.exit(convert())
  File "/home/twanax/.local/lib/python3.8/site-packages/meshio/_cli/_convert.py", line 18, in convert
    mesh.prune()
AttributeError: 'Mesh' object has no attribute 'prune'

I didn't find this error on another forum, it seems that the module prune is not found and maybe a meshio installation problem. But what is weird is that we are a group of 3 with the same error message.
Here is our intially .geo file :
//Dimensions (mm)
h = 7.69;
D=25.0;
delta = 3.0;
e = 0.5;
L1 = 50;
H1 = 50;
L2 = 50;
H2 = 50;
epsilon = 0.5;
rc = 0.5;
// Points
Point(1) = {-L1, H1/2, 0, rc};
Point(2) = {0, H1/2, 0, rc};
Point(3) = {0, delta/2, 0};
Point(4) = {e, delta/2+epsilon, 0, rc};
Point(5) = {e, D/2, 0, rc};
Point(6) = {h+e, D/2, 0, rc};
Point(7) = {h+e, delta/2, 0, rc};
Point(8) = {h+2e, delta/2+epsilon, 0, rc};
Point(9) = {h+2e, H2/2, 0, rc};
Point(10) = {h+2*e+L2, H2/2, 0, rc};
Point(11) = {-L1, -H1/2, 0, rc};
Point(12) = {0, -H1/2, 0, rc};
Point(13) = {0, -delta/2, 0, rc};
Point(14) = {e, -delta/2-epsilon, 0, rc};
Point(15) = {e, -D/2, 0, rc};
Point(16) = {h+e, -D/2, 0, rc};
Point(17) = {h+e, -delta/2, 0, rc};
Point(18) = {h+2e, -delta/2-epsilon, 0, rc};
Point(19) = {h+2e, -H2/2, 0, rc};
Point(20) = {h+2*e+L2, -H2/2, 0, rc};
// Lines
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,5};
Line(5) = {5,6};
Line(6) = {6,7};
Line(7) = {7,8};
Line(8) = {8,9};
Line(9) = {9,10};
Line(10) = {10,20};
Line(11) = {20,19};
Line(12) = {19,18};
Line(13) = {18,17};
Line(14) = {17,16};
Line(15) = {16,15};
Line(16) = {15,14};
Line(17) = {14,13};
Line(18) = {13,12};
Line(19) = {12,11};
Line(20) = {11,1};
// Loops
Line Loop(1) = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
// Surface
Plane Surface(1) = {1};

*** Reason:  Unknown value "mixed".

That's a known dolfin issue.

AttributeError: 'Mesh' object has no attribute 'prune'

I just re-added prune, but note that it's deprecated.


Whether pinpoint must be deployed in an environment accessible to the Internet？

Whether pinpoint must be deployed in an environment accessible to the Internet？

problem solved


Fixed compatibility with LightGBM master. Fixes GH-238.

In LightGBM master leaf_parent is removed, and constant tree no longer use splits.
2.0.5 and 2.0.6 are still not supported, as they segfault.
Currently there is no newer version on pypi, so tests only check that eli5 is still compatible with LightGBM 2.0.4, but tests pass for me locally with LightGBM master.

Codecov Report

Merging #241 into master will decrease coverage by 0.07%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
- Coverage   97.28%   97.21%   -0.08%
==========================================
  Files          42       42
  Lines        2693     2695       +2
  Branches      521      522       +1
==========================================
  Hits         2620     2620
- Misses         38       39       +1
- Partials       35       36       +1

Impacted Files
Coverage Δ

eli5/lightgbm.py
97.43% <77.77%> (-1.7%)
:arrow_down:


Add author bios block for bottom of content pages

 Add "About this Author" block to bottom of default content layout


support fb format for read request

 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.


Feature Request: public setColor method

Would be nice to have a programmatic  option to set the color. If I missed this already, apologies.

+1 on this

im waiting for my merge-request 9664061afec12d3c6fa79f5f1c57660d15c1f1ce

use mine if there isnt any updates on this compile 'com.github.DavidMont:Pulsator4Droid:1.0.3'

Added to version 1.0.3


Add application emojis

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Use smart commits here to manipulate issues (eg. Fixes #issue)
Connected issues & other potential problems
If changes in PR are connected to other issues or are affecting code in other parts of framework
(e.g. in main package or any other subpackage) make sure to link issue/PR and describe said problem
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] Ran dart analyze or make analyze and fixed all issues
[ ] Ran dart format --set-exit-if-changed -l 160 ./lib or make format and fixed all issues
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works

I am getting the following error while testing:
Error: type '_Map<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast
Stack trace: #0      ApplicationManager.listApplicationEmojis (package:nyxx/src/http/managers/application_manager.dart:220:25)

This is due to the returned body not actually being a List. It's Map<String, dynamic> with the "items" key being a List. I tried printing out an empty result on this:
{items: []}

Not sure what's the direct cause of this is though.


Failed test cases 'Finish Time' information is nested.

Jump out of the nested loop to next possible loop.
fix #508

Feels it's hard to find a good scenario to tests. This can only be tested with multiple testcases (targets) and some of testcases failed and some passed. The failed one can't be the final one.  Existing failed builds take long as more than a few hours and may not have failed testcases. Triggered a grinder by manually selecting multiple testcases with high possibility of  failing all passed. temurin-compliance/view/Grinder/job/Grinder/4095. Note in grinder set target as multiple testcases testList TESTLIST=jck-compiler-lang-ANNOT_0,jck-runtime-api-javax_naming-spi_0,jck-compiler-lang-ANNOT_0,jck-runtime-api-java_net_0,jck-runtime-api-org_ietf_0,jck-runtime-api-java_nio_0,jck-runtime-api-java_util-regex_0 the order of testcases running are not guaranteed as the order of input.

re: https://github.com/adoptium/TKG/pull/509#issuecomment-1984124125 I would likely refer to contents in autoManuals list and run targets that those belong to, and leaving as you have done the APPLICATION_OPTIONS="" so that we do not try to exclude those often flaky tests.

@sxa There are actually two different issues

test summary can't be fully generated - nested Finish Time for failed jck testcases.
rerun link was't generated.     -- related with regex test result with skipped. Detailed https://github.com/adoptium/TKG/issues/508#issuecomment-1985016087


Cropperfield creates New Image file, but cropped image not saved

Cropperfield looks to be working, but does not save the cropped image.
It creates a New Image file without an extension.

What version of SilverStripe? Can you confirm the steps you're taking to replicate this?

Hmm, interesting. It shouldn't be doing that :wink:
Would you mind sharing some source code so I can investigate?

Hi dhensby and Wilmorgan,
So its using the latest release 3.3.1 and 0.5 release of Cropperfield.
Currently attached to HomePage;
PHP
`
 'Image',
		'MyArtDirectionCrop' => 'Image',
	);

	public function getCMSFields() {
		$fields = parent::getCMSFields();
			$fields->addFieldToTab("Root.Main", $uploadField = new UploadField('Image', 'Big Photo Uploader'));
			$fields->addFieldToTab("Root.Main", $cropperField = new CropperField\CropperField(
				'MyArtDirectionCrop',
				'Cropped Image',
				new CropperField\Adapter\UploadField(
					$uploadField
				)
			));
			$cropperField->aspect_ratio = 16/9;

		return $fields;
    }

}
class HomePage_Controller extends Page_Controller {

}
`

Im beginning to think this is to do with permissions over the assets folder.

Im beginning to think this is to do with permissions over the assets folder.

@helenclarko Do you see any other errors when you try to save? Can you upload files normally? If not, try chowning the assets folder to the same user as your web server user (Apache / nginx) and try again. Failing that try 0777.
Also you will need to use $cropperField->setOption('aspect_ratio', 16/9); if you want that aspect ratio setting to work.

@willmorgan
Thanks for the info on aspect ratio, that's all working.
Was able to get cropperfield working once uploaded to my server. The issue seems to be within my local test environment. I still haven't worked out what the issue is, but suspect its something to do with permissions. I'll need to check that though (using XAMPP on Windows).
Sorry for wasting you time, for now I'm happy to say this has been solved.


"Header\IHeader" does not contain "getEmail()"

$message = Message::from($raw_email, true);
$from = $message->getHeader('From');
$email = mb_strtolower($from->getEmail());

getHeader returns IHeader, but IHeader does not contain getEmail.
The code works, but my IDE complains :)
Thanks!

Hi @ghnp5 -- you're not wrong, getEmail is part of AddressHeader which is what's returned if you call getHeader('From') -- a class that implements IHeader.
I don't know what makes the most sense here, maybe in documentation I can specify all the concrete classes returned so IDEs are happy.  Another option could be to put a docblock before the $from line, or actually specify all classes that could be returned in the function's signature.  Open to suggestions if anyone has any.
/** @var AddressHeader $from */

I apply the docblock approach, it keeps phpstorm happy


[NETBEANS-481] JDK10-LVTI: Added new ErrorRule to fix compiler error on initialization of var type variable with array

Jira Id : https://issues.apache.org/jira/browse/NETBEANS-481
Below statement throws compiler error.
var arr = {1,2};
: error: cannot infer type for local variable var k = { 1 , 2 }; ^
(array initializer needs an explicit target-type)
Proposed fix:
int[] arr = { 1, 2 };
The fix is  provided for numeric primitive type array or for array with homogeneous members.
a)Homogeneous type

var arr =  { new Object(), new Object()};
fix: Object[] arr = { new Object(), new Object()};

var arr = {"hello", "world"};
fix: String[] arr = {"hello", "world"};

b)Primitive type numeric array
var arr = {1,2.2};
fix: double[] arr = {1,2.2};

Great, thanks for the work on this and for the reviewers.


Someone try to sign in to my account on 23 - Jan 2022 at 2:21am (GMT +7)

Not sure if this bot has leaked my password, but I have only leaked my riot account to 2 sites. This valorina, and valorant.store (already shut down). Valorant.store claim that they do nor store our password (and the fact that I have to type password every time, make me believe the leak must came from valorina)
Luckily, I have 2-factor auth, but I am not feeling safe with valorina anymore.

Hey @havinhphu188 , if you go through our code over here in line 17 and 25. You will get a better oversight of how we store your password encrypted which is necessary to get the headers from Riot. If I'm not wrong riot sends notification when there is an unsuccessful login (password entered incorrectly). We store the passwords encrypted and only decrypt it when we need to make an API call to retrieve the headers. For example we retrieve headers in line 112 when someone enters the command +store.


Support for custom ciphers and protocols for https requests

Is your feature request related to a problem? Please describe.
I would like to allow only a specific tls protocol to prevent the client communicating with older protocols. I also want to use specific ciphers for the client.
Describe the solution you'd like
I would prefer a simple configuration just like configuring the SSLContext and HostnameVerifier
Unirest.config()
    .sslContext(sslContext)
    .protocols("TLSv1.2")
    .ciphers("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384");

Describe alternatives you've considered
I couldn't discover an alternative

pull request https://github.com/Kong/unirest-java/pull/381 has been merged so this issue can be closed


Azure Resource Group Deployment - How to pass subscription as a variable

In a Resource Group Deployment task, I need to be able to pass the subscription / service connection information as a VSTS Build variable.  When I tried to pass the subscription ID, I got the error:
##[error]Required: 'fed7f475-6055-4e3c-8529-c1345df70589' service endpoint URL
What format should the service endpoint be in?
If you need additional info, I'm a MSFT FTE and my alias is teodelas.

Yes, having this option would help with significantly reducing the number of definitions we need to create/maintain. Our definitions are comprised mostly of Azure PowerShell tasks for deploying ARM templates as well as Service Fabric apps to various test clusters in different subscriptions.

@Teodelas - we currently support updating endpoint details within a task using the following command:
##vso[task.setendpoint]value
Detailed command documentation can be found here:
https://github.com/Microsoft/vsts-tasks/blob/master/docs/authoring/commands.md
With this command, you could author a custom task that takes an endpoint that exists & update fields of the endpoint specific to the deployment & subsequent in the deployment can use the updated endpoint.
Would this work for you?

This may work.  Could you provide any more information on the values I would need to provide?  The examples in the documentation seem to show that I need to pass additional information:
##vso[task.setendpoint id=000-0000-0000;field=authParameter;key=AccessToken]testvalue
##vso[task.setendpoint id=000-0000-0000;field=dataParameter;key=userVariable]testvalue
The Azure Resource Manager endpoint takes:
Connection name, Subscription ID, Subscription Name, Service Principal Client ID, Service Principal Key, and Tenant ID. But those are just the displaynames.
Teo
From: Sriram B<EMAIL_ADDRESS>Sent: Tuesday, February 6, 2018 7:49 AM
To: Microsoft/vsts-tasks<EMAIL_ADDRESS>Cc: Teo De Las Heras<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Microsoft/vsts-tasks] Azure Resource Group Deployment - How to pass subscription as a variable (#6284)
@Teodelashttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fteodelas&data=02|01|teodelas%40microsoft.com|8e1968d414ea4cc023b808d56d5ff497|ee3303d7fb734b0c8589bcd847f1c277|1|0|636535181262120475&sdata=becptGt9edxyXz5kOh93BDFVjgqMeOolh5Cgw3ITULQ%3D&reserved=0 - we currently support updating endpoint details within a task using the following command:
##vso[task.setendpoint]value
Detailed command documentation can be found here:
https://github.com/Microsoft/vsts-tasks/blob/master/docs/authoring/commands.mdhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvsts-tasks%2Fblob%2Fmaster%2Fdocs%2Fauthoring%2Fcommands.md&data=02|01|teodelas%40microsoft.com|8e1968d414ea4cc023b808d56d5ff497|ee3303d7fb734b0c8589bcd847f1c277|1|0|636535181262120475&sdata=yQmRpWHL%2F0CJCCjoHZOQZtL%2Fc%2B9OuAw1G4Jc%2FFwd56E%3D&reserved=0
With this command, you could author a custom task that takes an endpoint that exists & update fields of the endpoint specific to the deployment & subsequent in the deployment can use the updated endpoint.
Would this work for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvsts-tasks%2Fissues%2F6284%23issuecomment-363411962&data=02|01|teodelas%40microsoft.com|8e1968d414ea4cc023b808d56d5ff497|ee3303d7fb734b0c8589bcd847f1c277|1|0|636535181262130485&sdata=OhzEaIvj7ieVQAQSXtqIQS0M8ZRDDy%2FNWBljI5P%2FfjU%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFIsLd2K17V-Npd4dTsrD2dxJjpKqsX-ks5tSEoqgaJpZM4RsNce&data=02|01|teodelas%40microsoft.com|8e1968d414ea4cc023b808d56d5ff497|ee3303d7fb734b0c8589bcd847f1c277|1|0|636535181262130485&sdata=PuXeHq2eLbpynrk1XldsqUqWBxiy2w8EwACwmCBYW38%3D&reserved=0.

You can get the keys for the AzureRm endpoint inputs by querying the endpoint type:
https://{accountName}.visualstudio.com/_apis/serviceendpoint/types?type=AzureRm
The API is documented here:
https://docs.microsoft.com/en-us/rest/api/vsts/serviceendpoint/types/list
subscriptionId & subscriptionName are the keys in AzureRm endpoint's data dictionary.,
servicePrincipalId, servicePrincipalKey, tenantId are the keys in AzureRm endpoint's authorization parameters.
You can try updating the values for these fields using the command (you would need to invoke 1 command to update 1 field).

Not quite sure why service endpoints not being supported as a variable is in issue.
Ultimately   Get-VstsEndpoint is called with the string name of the service endpoint to get the endpoint back.
Seems like it would be relatively easy to enable an advanced mode in this task that allows the name of the service endpoint to be passed directly.
Personally i would make this update myself but the VSTS instance to which i have access does not allow for the install of tasks.    So no way to test or use even if i made the update.

@cschertzmsft -
Get-VstsEndpoint takes endpoint Id as a parameter (although the parameter name is -Name, the value to be passed is endpoint id). Typically tasks will pass value of the inputs corresponding to service endpoint as the value for the -Name parameter.
Allowing task input corresponding to a service endpoint to take a variable implies we support endpoint as a first class variable type. Currently we only support variable values to be only strings.
You should be able to install custom tasks on to your VSTS account using tfx-cli:
https://www.npmjs.com/package/tfx-cli

@Teodelas , @cschertz  very surprised by your use case where you require subscription info during build phase, especially to deploy an ARM template that will use the current subscription at deployment time. In devops practices, you build only one time a generic artefact that can be configured for a specific environment/subscription at deployment time.
In my current project we've many environments, each one using a dedicated subscription and we're also targeting Mooncake without the need to use a subscription at build time (speaking of Mooncake, you can now use the same ARM template to deploy in both stock Azure and Mooncake).

The issue is for supporting CI not CD or devops.     Specifically handling deployment for testing scenarios during CI and not having to maintain multiple build defs for separate subs.


no headers showing up

I don't think this is working. I am looking to add section numbered heading to my dcosify project, and when I import this plugin I do not see any change.
The examples as well do not show any change.
~
Gagan

@gagandaroach thanks for pointing that out. I'll have to look into it when i get some spare time and see if i can add some other functions too. a reload seems to fix it but not ideal

hi @markbattistella, let me know if there is a way I can help :)

@gagandaroach I think I solved the problem on the way it renders the numbers but I'm trying to solve this other bug at the moment thats popped up since changing the structure. once I have that working i will release it. the testing copy is in https://github.com/markbattistella/docsify-autoHeaders-docs/tree/mb/sidebar if you want to have a look? happy for you to spin it up and submit a pull request if you want :)

I gave it a shot but I made some errors in importing the min.js version from the testing copy.
My skillset is with CDN :), when main updates I can test from there.

@markbattistella have you been able to vet and update the core plugin with this fix?

This should be fixed in v5.0.0


fido2luks: incorrect licensing info

The license listed for fido2luks is incorrect. It has been re-licensed upstream: https://github.com/shimunn/fido2luks/commit/4136b1bfad95b996e9575dc454b74b038a227aca
Checklist

[x] Checked the nixpkgs master branch
[x] Checked the nixpkgs pull requests

Project name
nix search name: fido2lusk
current version: 0.2.20
desired version: n/a
Notify maintainers
maintainers: @prusnak @mmahut
Note for maintainers
Please tag this issue in your PR.

Fix in https://github.com/NixOS/nixpkgs/pull/195645


Tidy up deprecated options

Following options are removed since they have been deprecated for a long time.
enableIPSecTunnel
nplPortRange
multicastInterfaces
multicluster.enable
legacyCRDMirroring

multicluster.enable is deprecated after 1.10 around 5 months ago, but it maybe safe to remove since it's still in alpha stage.
For #5070

Sure, I can add this to milestone 2.0 when it's ready.

/test-all

Rebased it on main and tested with a legacy ConfigMap that contains the removed options, Pods ran well due to lenient decoding. So it should be quite safe to remove them.
BTW, nplPortRange has been removed by https://github.com/antrea-io/antrea/pull/5943, I will update the commit message when merging.


 changes the image colors

See examples

It seems the lightning is messing up the images. I think by default the images should have their default colors, at least with the default lightning.

I've switched to MeshStandardMaterial which helps the image react to light a little better, but we also need to choose which default lighting we want to commit to. It's going to impact the white balance of any image you pass in.
I've also fixed the hand clipping/shadow issue.