Generate working containers from Neurodocker recipes

Neurodocker (https://github.com/ReproNim/neurodocker) is a Python-based tool for easily generating Singularity and Docker container definitions from shell scripts. Pkg2 has had support for parsing these scripts for a while and supports extracting dependency information. With the recent addition of code to export docker containers I'd like to test generating a working container from these "definitions".
I'll start with the recipes defined in https://github.com/NeuroDesk/neurocontainers

This depends on #8. The previous version worked but it relied on some shell syntax being stubbed which is no longer the case.
This commit updates the script to the latest version https://github.com/tinyrange/pkg2/commit/e7f7daf27c8974c688599c5d781515c2eded1a71

I've got the relevant data extracted from the builder but there are two problems.

The directives are in the wrong order. I currently defer all NeuroDocker packages to after the rest of the directives are evaluated.
I can't resolve a installation plan for the packages. The error is failed to run script: failed to add package for fedora@35/cmake@3.24.2:x86_64: failed to add package for fedora@35/cmake-data@3.24.2:any: failed to add package for fedora@35/cmake-rpm-macros@3.24.2:any: failed to add package for fedora@35/python3@3.10.8:i686: failed to add package for fedora@35/python3-libs@3.10.8:i686: could not find installation candidate among options: [fedora@35/libtinfo.so.6@:].

I think the error is I'm not resolving the name for libtinfo correctly.

The other issue is I'm resolving i686 packages when the install was requested for x86_64. I need to propagate the architecture into names unless a override is set for some reason.

https://github.com/tinyrange/pkg2/commit/d48979434e4fe20287d04dc6dbec43fc384e7de4 Fixes that issue among others. I've now got a installation plan for afni.

https://github.com/tinyrange/pkg2/commit/ce119843fbbe8fb489ed8e7025cf4ae798ee95e6 fetches the contents of the RPM archives. Looking at the basic info it seems like it will be similar code to the Alpine docker image generator (It uses pre and post install scripts, I haven't seen any mentions of triggers).

https://github.com/tinyrange/pkg2/commit/351f280ea8c2ae31c4c34909da5f5489a5f737b3 makes a image using the same rough logic as the alpine code. It should theoretically work but sadly the image it generates has too many layers.
It turns out that at least Podman and Docker are limited to 127 layers in a single image (is this a kernel limit?).
I guess I need to write some logic to merge all the layers into a single final layer. That should be easy enough.

https://github.com/tinyrange/pkg2/commit/598f50fa0d80d1d40996d33007d80ca8a1dea7c0 merges all the layers together. They are now loadable in Docker.
Now for the installation scripts. RPM supports running scripts with Lua (https://rpm-software-management.github.io/rpm/manual/lua). A bunch of the scripts are written in Lua so I have to figure out how to execute them (and figure how to evaluate them in Starlark later).
I don't seem to have the metadata that indicates if a script is a shell script or a lua script. Let's get that from the metadata.

Other projects (like rpm-ostree) have run into the same problem from the looks of things.
The lua code is run by a interpreter embedded inside rpm. More modern versions of rpm offer a tool to run scripts called rpmlua but that was introduced Fedora 37 (https://docs.fedoraproject.org/cs/fedora/f37/release-notes/sysadmin/System_Utilities/).
I guess I have to figure out how rpm runs it's lua scripts to see if there's an alternative entry point. I feel like some of these scripts were introduced pretty recently so the version in Fedora 35 may not be that modern (The AFNI container uses Fedora 35).

The functionality is very old https://blog.labix.org/2004/03/23/embedding-lua-interpreter-into-rpm
A quick browse through the code suggests that the scripting functionality only has a few entry points and none that are externally visible.
As far as a way forward is concerned...

One curious option would be to synthesize RPM files for those scripts and let RPM run the script. It's not going to be as easy as I hoped anyways.
Another option is to write a parse_lua script which translates the Lua scripts into Starlark which can be handled internally or run by a simple bit of Go inside the final container. This library makes me thing that will be possible https://github.com/Shopify/go-lua

Turns out nix ran into the same multi-layer issue and came up with a great solution. https://grahamc.com/blog/nix-and-layered-docker-images/ I'll implement a version of the same thing by exposing the installation plan graph to Starlark.
I looked into the RPM Lua issue a little more and it seems only a few initial packages rely on it. I'll need to give more thought to what a solution looks like. rpm-ostree solves the problem by stubbing out the scripts with replacement shell scripts. I could probably do the same thing since I now know it's not that common.
I'm seeing a few smaller file system issues so I'll fix the tar conversion process first. Right now I'm using a hacky little Starlark function to populate the filesystem but I'll replace it with a real converter that takes a StarArchive (Eventually I'd like to replace that API as well but that's a story for another issue).

https://github.com/tinyrange/pkg2/commit/7f666aa37f495047f09728d63cca1b30d5a8532f removes make_fs and comments out the RPM scripts for now. They are still in the image but they won't execute when /.pkg/install.sh is called.
Next step is fixing the order of the NeuroDocker directives so I can start running shell scripts as well. I'll implement these as layers which get run in the /.pkg/install.sh script.

https://github.com/tinyrange/pkg2/commit/f589a4c609bf30cea3783f30487724a1556c9b6d fixes the order of the directives.
I still need to implement shell script handling. I want to test a bigger variety of the neurocontainer packages besides AFNI first.


update go versions (go1.15, go1.16, go1.17)

see https://github.com/Azure/go-autorest/pull/645#issuecomment-898440791
As part of submitting, please make sure you can make the following assertions:

[x] I've tested my changes, adding unit tests if applicable.
[x] I've added Apache 2.0 Headers to the top of any new source files.

Hmm... probably outdated linter;
/home/vsts/work/_temp/dc578aa8-fc5c-4e34-bd4c-3fb0a4f9ff39.sh: line 1: golint: command not found
/home/vsts/work/_temp/dc578aa8-fc5c-4e34-bd4c-3fb0a4f9ff39.sh: line 2: golint: command not found

@jhendrixMSFT PTAL

Ah, cool, my condition: worked (thanks StackOverflow 😂), and it's green again 👍

I will work on releasing the updated modules a bit later today.

Let me rebase my other PR now that this one's merged


Add support for a configurable "fail fast" validation feature

In production, it makes sense to fail fast when the FHIRValidator encounters an issue with an ERROR severity. A configurable "fail fast" validation feature would allow for development with standard behavior and production with a more performant option.

Created an Observation without issues
Created an Observation (same starting point without a validQuantity) and FailFast as false
Two Errors present
Created an Observation with same starting point and failFast as true
One Error Present (as expected)
    "resourceType": "OperationOutcome",
    "id": "c0-a8-56-14-d7cf56ff-323d-4b1b-881c-130604e5548f",
    "issue": [
        {
            "severity": "error",
            "code": "invariant",
            "details": {
                "text": "vs-3: If there is no a value a data absent reason must be present"
            },
            "expression": [
                "Observation.component[0]"
            ]
        },
        {
            "severity": "warning",


Telescope Plugin

Hi,
@kdheepak, I already mention it before that I'm working on a telescope plugin for lazygit,  butback then I was not sure if anyone could get use of it. Though, I believe it could help some people.
I'm not willing to merge this feature as it is, more important is to discuss some stuff that I have done and maybe collect more Ideas to make it even better.
I have done some refactoring, I just moved some code here and there to make it a bit easier for me to understand the code.
(I hope it's ok for you)
The documentation of the plugin could be found in the readme file. It would be nice if anyone can test it 😃
best

Nice job! Thank you for making the PR and for refactoring the code too! I'll test it out now :)

I'm not a regular telescope user, so I'm not sure exactly where I'm getting this error:

I'm using package and I have the following:
    use({ "~/gitrepos/lazygit.nvim", cmd = "LazyGit" }) -- lazygit

and I've checkout out your PR:

Any idea what I'm missing?

The module is there, but it just isn't being loaded for some reason:

did u install telescope plugin itself, it cannot work without it ?
if not, maybe u can follow the instruction here
https://github.com/nvim-telescope/telescope.nvim

this here is also needed to register the lazygit plugin

I did install it. I'm going to merge the PR, and try again once I use the extension without using my local path, e.g. ~/gitrepos/.

I changed the telescope extension to lazygit btw.

Okay, it works for me. I think I was lazy loading lazygit, and in that case it doesn't work. The only solution to that would be to register the extension in plugin/lazygit.lua or something like that, but I imagine most telescope users don't lazy load telescope (?), and hence all the requirements for telescope would be also not lazy loaded.

cool, I think we could start with this solution, and wait till more people try it .. we could then make more changes when we have more feedback
what do you think ?

Sounds good to me!

I also though about using plenary to execute shell commands but was not sure as it will be then a hard dependency that the user should provide before using lazygit plugin. Though, it's more readable and make the code easier to understand at some places ..
Maybe you did already though about it ?
Do you also think, it's a good idea to re-write plugin/lazygit.vim into lua code  ?
(I enjoy using this plugin, that's why I invest some time to play around with it ..  I have a lot of ideas that I want to do, but I don't want to be annoying)

Not annoying at all! I'm happy you are willing to contribute and make PRs!
I thought about using plenary but figured it was going to be a hard dependency like you mentioned, and didn't seem worth it just for executing shell commands. Also, right now introducing plenary as a dependency may break a lot of user's code. So suggestions for introducing it are welcome. Maybe we can introduce it as an optional dependency, and throw a warning. And it a few months we can drop the old code.
Thoughts?

Do you also think, it's a good idea to re-write plugin/lazygit.vim into lua code ?

Yes definitely. In the very beginning of this plugin, it was supposed to be for vim and neovim, but I quickly realized making it neovim only was going to be a lot easier. That file is still from the very beginning I think.

I think showing warnings is more annoying than braking user configuration :P (just kidding)
Oh wait, I thing we could use the window to show the warnings (or anything), we just need to extend it with one or 2 lines, it must not be pretty it should  only do the job .. is it possible?

Do you also think, it's a good idea to re-write plugin/lazygit.vim into lua code ?

Yes definitely. In the very beginning of this plugin, it was supposed to be for vim and neovim, but I quickly realized making it neovim only was going to be a lot easier. That file is still from the very beginning I think.

I wasn't sure at the beginning if it is your intention that those setting should be done in vim script. I will take a look at it, but before I have to understand how the lazy load works


Update BaselineGenerator TargetFramework

As there is a global.json in the root that force the prelease version of .NET Core 3.0

@alefranz we must be on the same page. I also updated this project yesterday in https://github.com/aspnet/Extensions/pull/1044. I'm closing this now because this change is present in master now.
Thanks,
Nate


[PREVIEW] Tag pdf service as Software engineering team

JIRA link (if applicable)
The hoss asked for it
Change description
Don't tag as CMC platform maintain this service
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No


[2.4.10] Presence of cupsUrfSupported breaks duplex printing on Canon_MG3600

Reported by @compata at https://github.com/OpenPrinting/cups/issues/952 - duplex does not work anymore for the model, generates two sheets of paper.
PPD file
error_log

@compata - would you mind providing debug logs from older CUPS when duplex worked, and ipptool.attr file from the command mentioned in the link https://docs.fedoraproject.org/en-US/quick-docs/cups-debug-printing-issues/#_cups_everywhere_model ?
Thank you in advance!

ipptool.attr file attached. I have no debug log from several months ago before the problem started and no way to downgrade to an earlier Fedora AND CUPS to generate one.
ipptool-attr.zip

@compata you've told in the previous ticket downgrading CUPS to packages with version 2.4.7 and reinstalling the printer fixed the issue, or did I misunderstood?
If the downgrade fixed the issue, then once you downgrade and reinstall the printer, enable debug log level debug2, print duplex, gather the logs and attach them here.
Thank you in advance!

Ok, so from get-printer-attributes request I can see the PPD keyword is generated correctly:
ATTR keyword urf-supported "V1.4","CP1","PQ4-5","RS600","SRGB24","W8","OB9","OFU0","DM3","IS1"
->
*cupsUrfSupported: "V1.4,CP1,PQ4-5,RS600,SRGB24,W8,OB9,OFU0,DM3,IS1"

however there is a difference in options passed into GS:
Old, working:
cfFilterGhostscript: Ghostscript command line: gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dUsePDFX3Profile -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=appleraster -sOutputType=automatic -dDuplex -r600x600 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=19 -dcupsBorderlessScalingFactor=0.0000 -dcupsInteger1=-1 -dcupsInteger2=-1 -scupsRenderingIntent=auto -scupsPageSizeName=Letter -scupsBackSideOrientation=Rotated -dcupsManualCopies -I/usr/share/cups/fonts -sOutputICCProfile=srgb.icc -c -f -_

New, broken:
cfFilterGhostscript: Ghostscript command line: gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dUsePDFX3Profile -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=appleraster -sMediaType=Stationery -dDuplex -r600x600 -dMediaPosition=1 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=19 -scupsRenderingIntent=auto -scupsPageSizeName=Letter -scupsBackSideOrientation=Rotated -dcupsManualCopies -I/usr/share/cups/fonts -sOutputICCProfile=srgb.icc -c -f -_

The old has -sOutputType=automatic and the new one -sMediaType=Stationery and -dMediaPosition=1. Those options are generated in libcupsfilters/libppd, so there is an issue down in them.
Looking into them further...

@compata looks like the "good" logs don't contain any duplex related options:
[Job 233] argv[5]="finishings=3 number-up=1 print-color-mode=color job-uuid=urn:uuid:4337e566-7f3a-39b3-61c6-6e0de9e552b7 job-originating-host-name=localhost date-time-at-creation=        date-time-at-processing= time-at-creation=1722924636 time-at-processing=1722924636 document-name-supplied=testpage2.pdf ColorModel=RGB cupsPrintQuality=Normal"

There is no IPP attribute "sides" nor PPD option "Duplex" among options - have you submitted a duplex job with old CUPS?
If you don't, please reupload the debug logs - I need the same set of options for printing to debug what have changed.
Thank you in advance!

@compata can you try installing these testing rpms (libcupsfilters should suffice) - https://koji.fedoraproject.org/koji/taskinfo?taskID=121847527 and trying to print duplex again?
It implements setting print-content-optimize which is usually created by driverless PPD generator, but not by IPP Everywhere driver generator.
Previously, since there was no cupsUrfSupported in PPD file, raster headers were created on-the-fly when Ghostscript was about to be called. However, since the keyword is now in the file, raster header is created from PPD, and two options are missing now (OutputType and cupsBorderlessScalingFactor).
Let's try setting OutputType for now and see whether it helps.


[fix] #1364 for no-unused-modules: prevent memory overflow

Fixes #1364

Coverage increased (+2.4%) to 97.902% when pulling 4dc92ba038ee83f05c603400551211be5f513ae5 on rfermann:1364 into 92b753310fa0d6d4e9d1a7af1a4cf3c874afcf0a on benmosher:master.

Coverage increased (+2.4%) to 97.902% when pulling 4dc92ba038ee83f05c603400551211be5f513ae5 on rfermann:1364 into 92b753310fa0d6d4e9d1a7af1a4cf3c874afcf0a on benmosher:master.


Sharing complex objects

I m not able to share complex objects.

There's not enough info to help you. Can you post the code you are using to create the NDEF message?


Audacity on unstable is the alpha version

Describe the bug
Audacity on unstable is the 3.2.1-alpha version. Every time I open it, I am warned people should not use this version.
I experienced miscellaneous bugs, freezes and crashes over the past months. I improved the situation by installing the version from nixos-22.05 instead. It is also an alpha version, but while still sometimes freezes, overall behaves much better.
Expected behavior
Even though the channel is called unstable, I believe this just means 'newest functioning version'. I think the version of audacity should be the one they recommend installing, namely [3.2.1]( as of writing).
Notify maintainers

@lheckemann @veprbl
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.74, NixOS, 22.11 (Raccoon), 22.11pre421411.2001e2b31c5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(miki): `"nixgl"`
 - channels(root): `"android-nixpkgs, nixos, stable-22.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

The tag should have been 3.2.1, see #194937 cc @wegank

Wait, I don't think I set the flag wrong in #194937. What should it be other than Audacity-3.2.1?


Issue when using in Vercel edge functions

I'm developing a library ( https://github.com/lgrammel/ai-utils.js ) and was using cuid2. However, it throws the following error when using it in Vercel edge functions:
- error node:crypto
Module build failed: UnhandledSchemeError: Reading from "node:crypto" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
Import trace for requested module:
node:crypto
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>../../dist/vector-db/VectorDB.js
../../dist/vector-db/index.js
../../dist/index.js

It's most likely caused by the limited API availability in edge functions ( see https://nextjs.org/docs/messages/node-module-in-edge-runtime ) and could be solved by configuring webpack. However, since I'm developing a library I don't want to expose my users to this.
I've switched to nanoid v3 for the time being, which seems to work w/o issues in that environment, but I'd like to switch back to cuid2 in case this issue is fixable.

This is a known issue due to a dependency on noblehashes. We can open an issue there and try to get it addressed, or find an alternative, security-audited Sha-3 implementation to depend on. (Maybe one used by the Ethereum Web3 stuff?). I'm leaning this way anyway due to noble's dependency on TextEncoder APIs that are not available in some environments.

fwiw it works with no issue in my nuxt3 project deployed to vercel edge functions

I tracked down an error using cuid2 to this issue on my docker image/node version.  Any progress removing this dependency?

Perhaps something like Oslo's crypto module might be a good option, as it seems to be in the same spirit as @noble/hashes: https://github.com/oslo-project/crypto


Override function couldnt be called in base struct?

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8 linux/amd64
What operating system and processor architecture are you using (go env)?
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
What did you do?
Write some struct.
package main

import (
    "fmt"
)
type T interface{
    Test()
    Test2()
}

type A struct {
}
func (a *A)Test(){
    fmt.Println("A-Test")
}
func (a*A)Test2(){
    a.Test()
}
type B struct {
    A
}

func (b *B)Test(){
    fmt.Println("B-Test")
}

func main(){
    var a T
    a = &B{}
    a.Test2()
    }

run go run test.go
What did you expect to see?
B-Test
What did you see instead?
A-Test

This is working as expected. Go does not implement inheritance or virtual dispatch. When you call a.Test2() that is shorthand for a.A.Test2() because the type of the receiver for Test2 is *A.
We don't the issue tracker to ask questions. Please see https://golang.org/wiki/Questions for good places to ask. Thanks.

thank you

could this be improved? or a option could be set?

package main

import (
    "fmt"
)
type T interface{
    ToChild() T
    Test()
    Test2()
}

type A struct {
    T
}
func (a *A)Test(){
    fmt.Println("A-Test")
}
func (a *A)Test2(){
    a.ToChild().Test()
}
// func (a *A)ToChild()T{
//     return a
// }
type B struct {
    A
}

func (b *B)Test(){
    fmt.Println("B-Test")
}
// func (b *B)Test2(){
//     b.Test()
// }
func (b *B)ToChild()T{
    return b
}

func main(){
    var a T
    a = &B{}
    a.Test2()
}

go run test.go:
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x47b739]
goroutine 1 [running]:
main.(*A).Test2(0xc42000e230)
/root/e/source/device_map/src/device_map/test2.go:19 +0x29
main.main()
/root/e/source/device_map/src/device_map/test2.go:42 +0x4e
exit status 2

Your issue still lies with learning the language, not a bug in Go. I warmly recommend asking for help in a place more suited to your questions. Please see https://golang.org/wiki/Questions for good places to ask

ok, thank you .


Condition OpenAPI document creation to non-CosmosDB database types.

Why make this change?

Closes #2045. Any time that CosmosDB is the configured database, the codepath that attempts to init the OpenAPI documentor service is run and will always fail for CosmosDB. As a result, a "Fail" message always appears on the console which can be misinterpreted as a user fixable error and is a false positive notification of an issue.

What is this change?

OpenAPI documentor service init only occurs for non-CosmosDB database types because db types like MSSQL , PG, MySQL are the only db types that support the REST endpoint in DAB.

How was this tested?

[x] Run DAB with CosmosDB set as db type and ensure OpenAPI init failure is not logged to console.

/azp run

/azp run


MINOR: fix scala warnings

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Sg, will close the PR @ijuma


Update release date

According to this comment, the release date was postboned by two days (to August 20th).
This PR updates the date on the website, which is still set to August 18th (see screenshot below).

Thanks!


Companion support for Base32 CIDv1

This issue tracks changes required by our move to CIDv1 in Base32 (B32) as the new default.
Meta-issue is at: https://github.com/ipfs/ipfs/issues/337:

Lowercase identifiers are required in order to work with legacy URI, web browser security (sub)origins and the experimental Protocol Handler API. So we are moving to finish support for CIDv1 across the ecosystem, and use it as default (while still supporting CIDv0/Multihash).

Draft of TODOs

[ ] Add experiment that defaults all CIDs in UI to cidv1b32
[x] Detect cidv1b32 in subdomains (#526)
[ ] Make sure all issues with label:cidv1b32 are closed

Descoped:

Detect CIDv0 (Base58) and provide option to convert it to cidv1b32

go-ipfs fixed lookup, no longer needed

This is no longer needed with go-ipfs 0.5:

native subdomain feature takes care of CID conversion
going forward, we want to leverage webui for sharing files, so code responsible for file import will be removed, no need to invest time in adding new features.


[MNG-7586] Update Maven Resolver to 1.9.2

Updates resolver to latest release.

https://issues.apache.org/jira/browse/MNG-7586

Cool, thanks for picking up this :smile:

Do we have another release to bound a maven 3.9+ before we reach mvnd-1.0.0-m1?


ci: coverage reporting

Would you like to have coverage reporting setup?
I could do it, using pytest-cov and codecov.

That'd be great!


copper: 4.4 -> 4.5

Motivation for this change
https://nix-cache.s3.amazonaws.com/log/qhk2m29qwx0pwwv4gydpkyq7ldciwjq0-copper-4.4.drv
Once you fix the obvious error of looking for gcc in the makefile, it fails on darwin like this: https://gist.github.com/rmcgibbo/592646f3637232a57ae016d198e6006b
So I marked it as broken on darwin
ZHF: #122042
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 122842 at 19c1af43 run on x86_64-linux 1

2 packages failed to build:

code-browser-gtk
code-browser-qt

1 package built successfully:

copper

4 suggestions:

warning: stale-substitute
Stale substituteInPlace detected.
substituteStream(): WARNING: pattern '-s scripts/' doesn't match anything in file 'Makefile'
Near pkgs/development/compilers/copper/default.nix:29:0:
   |
29 |     description = "Simple imperative language, statically typed with type inference and genericity";
   | ^

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/development/compilers/copper/default.nix:28:3:
   |
28 |   meta = with lib; {
   |   ^

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/development/compilers/copper/default.nix:25:3:
   |
25 |   installPhase = ''
   |   ^

warning: missing-phase-hooks
buildPhase should probably contain runHook preBuild and runHook postBuild.
Near pkgs/development/compilers/copper/default.nix:21:3:
   |
21 |   buildPhase = ''
   |   ^

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

This is aparently a regression for code-browser-qt and code-browser-gtk-- they doesn't look broken on master on x86-linux.

This seems not worth investigating to me. Better to just mark copper as broken on darwin.


FirstOrderMinimizer functionValuesConverged and objectiveNotImproving function are the same

I noticed that the code for the FirstOrderMinimizer functionValuesConverged function (https://github.com/scalanlp/breeze/blob/f4c326f9f219859156a8c55bc667369813fa4b52/math/src/main/scala/breeze/optimize/FirstOrderMinimizer.scala#L179) and the objectiveNotImproving function (https://github.com/scalanlp/breeze/blob/f4c326f9f219859156a8c55bc667369813fa4b52/math/src/main/scala/breeze/optimize/FirstOrderMinimizer.scala#L183) are the same.
By the name, the objectiveNotImproving function looks like it should obviously be doing something different - is this a bug?

hrm, i thought i deleted objectiveNotImproving. Thanks for the report


[BUG] Driver returns SQL State longer than 5 characters

Driver version
7.2.1
SQL Server version
N/A
Client Operating System
N/A
JAVA/JVM version
1.8, 11
Table schema
N/A
Problem description

Expected behaviour: when an error occurs the driver should throw a SQL exception with a 5 character SQL state
Actual behaviour: SQL state is sometimes 6 characters due to this code: https://github.com/Microsoft/mssql-jdbc/blob/9c5cc97f661fe14de11df6be16c8acbc3379d1ff/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerException.java#L364

The EXECUTE AS USER = 'DOMAIN/USER' can for example result in SQL state S00011 (6 chars!) and the message Could not obtain information about Windows NT group/user '[USER_NAME]', error code 0x4bc.
This was reported to us by a customer: See https://github.com/flyway/flyway/issues/2275
We believe the driver's behavior is incorrect in this case as it violates the SQLSTATE standard.

Hi @axelfontaine
We will investigate on this and get back to you soon!

Hi @axelfontaine
I created PR #977 to fix this non-compliance. Let me know if you have any more concerns.


Make waveforms optional for Spikes API

https://github.com/agencyenterprise/neural-data-simulator/issues/30
Introduction
User feedback:

I had a use case where I used the Spikes class to generate fake spikes so I could check the statistics of the fake vs real spikes.  I didn’t need waveforms so factoring Spikes into something that doesn’t depend on waveforms (or only optionally does)... would be great.

This is a common use-case: the user may not want to use the compute-power to simulate full-bandwidth ephys signals and may only be interested in the spike times.
Changes

Decompose Spikes class into a SpikeTimes-generator class (no waveforms) and a Waveforms-loading class (already defined)
Updated pytest tests as needed

Behavior

Works the same, based on pytest and running run_closed_loop locally/
Developers can now instantiate a SpikeTimes generator class without defining Waveforms

Codecov Report
Attention: 4 lines in your changes are missing coverage. Please review.

Files
Coverage Δ

...ural_data_simulator/scripts/run_ephys_generator.py
87.09% <ø> (ø)

src/neural_data_simulator/ephys_generator.py
74.92% <83.33%> (+0.08%)
:arrow_up:

:loudspeaker: Thoughts on this report? Let us know!.


IDseq to the list of resources.

We would love to add IDseq to the list of resources!
https://idseq.net
automated pipeline for building SARS-CoV-2 consensus genomes.
pipeline: https://github.com/chanzuckerberg/idseq-workflows/blob/main/consensus-genome/run.wdl

Added as #18 under bioinformatic tools and methods. Thanks, Liz!

Thank you!!
On Tue, Oct 13, 2020 at 10:57 AM Duncan MacCannell<EMAIL_ADDRESS>wrote:

Closed #30 https://github.com/CDCgov/SARS-CoV-2_Sequencing/issues/30.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CDCgov/SARS-CoV-2_Sequencing/issues/30#event-3872765726,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP25M2ISREPDP6QXBGJRRCTSKSIHPANCNFSM4SPFC6ZA
.


Nest Doorbell and RTSPtoWeb - WebRTC on dashboards Quality and Reliability Issues since around 2022.7

Since 2022.7 came out..  or around that time.  I noticed that the video on my dashboards has not been working right.
If I set the card to 'live', the video will be all kinds of aliased and ghosted and the video will simply freeze after a while. The ghosting effect has a significant growing distortion that will 'pop' back to a refreshed image every few seconds.
If I set the card to 'auto' it will work for a random amount of time before simply doesn't work for another random amount of time and shows an [ X ] type icon..  My video does work to some extent, and my thermostats still work as expected.
I have some Unifi Protect Cams and they are working as that have been.  The older G3 Domes and Bullets do not work well with RTSPtoWeb - WebRTC which I believe has something to do with the way the domes and bullets do rstps.   the G4 dome and g3 instant work as expected.  No weird video distortions.
Is this something that anyone else has experience? or might now any solutions?
Currently running Home Assistant OS 8.2 and 2022.7.2 on a VM in Unraid, MariaDB, latest RTSPtoWeb - WebRTC, access to Home Assistant via nginx, nest doorbell is the original, unifi cams are g3 dome, g3 bullet, g4 dome, and g3 instant connected to the udmp.
I have always had some errors related to the nest that look like:
Logger: homeassistant.components.stream.stream.camera.front_door
Source: components/stream/init.py:416
Integration: Stream (documentation, issues)
First occurred: July 9, 2022 at 11:01:01 PM (577 occurrences)
Last logged: 9:25:49 AM
Error from stream worker: Error opening stream (EXIT, Immediate exit requested) rtsps://stream-ue1-delta.dropcam.com:443/sdm_live_stream/CiU*****?auth=****
Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-ue1-delta.dropcam.com:443/sdm_live_stream/CiUY0w?auth=
Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-ue1-delta.dropcam.com:443/sdm_live_stream/CiUZW0A?auth=
Error from stream worker: Error opening stream (HTTP_FORBIDDEN, Server returned 403 Forbidden (access denied)) rtsps://stream-ue1-delta.dropcam.com:443/sdm_live_stream/CiUaY0w?auth=****
Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-ue1-delta.dropcam.com:443/sdm_live_stream/CiUAHQ?auth=****

Regarding the last message, if you're seeing 404 not found errors, that is a Nest server side stream issue https://github.com/home-assistant/core/issues/60353 and home assistant and RTSPtoWeb can't do anything about it.

Regarding the last message, if you're seeing 404 not found errors, that is a Nest server side stream issue home-assistant/core#60353 and home assistant and RTSPtoWeb can't do anything about it.

I am seeing that too..  where the webrtc stream distorts until it freezes..  if i set the card to ‘auto’ then it updates the picture for a while, then stops and i get that 404 looking broken link page..  then it comes back for a couple hours..
On thing that may be interesting is that i set up this integration the old way and not the new UI way.. does that make a difference?  I just tried to reload the integration.  May have to start over and reinstall the integration using the new method..  could I maybe be hitting the API too much?  Does the api for tstats also impact the cameras?  Or are they separate counters?

Oh..  i also have two ‘tablet dashboards’ that show this cam constantly..  it hasn’t been a problem until recently

RTSPtoWeb doesn't really care much about the home assistant version or how its setup. It's only getting an RTSP url from home assistant to nests servers.
Another way to say this is you are running a version of RTSPtoWeb that has not changed at all in months. I worry something changed on the server side or something else related to the cloud camera degraded.  You may want to disable RTSPtoWeb integration and config things work well in home assistant with HLS.
I think in order to fix something like this you have to capture contents of the stream somehow and work with the RTSPtoWeb author. (I don't know how to do this.)

Closing since this is a duplicate of https://github.com/home-assistant/core/issues/60353


New version: DuckStudio.ChineseGit version v2.7

Checklist for Pull Requests

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

Manifests

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

[Powered by 虚空终端] PS D:\...\winget-pkgs> winget validate --manifest D:\...\winget-pkgs\manifests\d\DuckStudio\ChineseGit\2.7
清单验证成功。

[Powered by 虚空终端] PS D:\...\winget-pkgs> winget install --manifest manifests\d\DuckStudio\ChineseGit\2.7
已找到 中文Git [DuckStudio.ChineseGit] 版本 2.7
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责，也不向第三方程序包授予任何许可证。
正在下载 https://github.com/DuckDuckStudio/Chinese_git/releases/download/v2.7/Chinese_git_Setup_v2.7.exe
  ██████████████████████████████  9.18 MB / 9.18 MB
已成功验证安装程序哈希
正在启动程序包安装...
--> Need: UAC
已成功安装
[Powered by 虚空终端] PS C:\...> 中文git 版本
中文Git by 鸭鸭「カモ」
版本：v2.7-pack
安装在: C:\Program Files (x86)\Chinese_git\中文git.exe
git version 2.42.0.windows.1

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

Edit: No validation Dependencies.

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

Microsoft Reviewers: Open in CodeFlow

CC @Luna-Grace

Is that normal?

/azp run

/azp run

[!NOTE]
Main program: 中文git.exe

Sorry - the https://github.com/microsoft/winget-pkgs/labels/Internal-Error-Dynamic-Scan label occurs consistently to Git packages. I'll need to manually validate this.

Manual Validation ended with:

Trojan:Win32/Phonzy.B!ml

(Automated response - build 886.)

Manual Validation ended with:

Trojan:Win32/Phonzy.B!ml

(Automated response - build 886.)

This package installs and launches normally on a Windows 10 VM.

This package installs and launches normally on a Windows 10 VM.

I think I might have to submit it for validation again...
Update validation progress:

I will try to get the Azure Pipelines running again...

@stephengillie Can you retry this?

/azp run

Sorry - the  Internal-Error-Dynamic-Scan The test for Dynamic Scanning in the Installation Validation failed. label occurs consistently to Git packages. I'll need to manually validate this.

Hopefully this issue will not recur.

Azure Pipelines seems to have taken more than 3 hours...

It seem need to manually validate...

Automatic Validation ended with:
2024-07-13 07:12:09.277 [FAIL] D:\a\1\s\src\AppInstallerRepositoryCore\IconExtraction.cpp(113)\WinGetUtil.dll!00007FFA4356E106: (caller: 00007FFA4356EB22) Exception(1) tid(11a4) 800700E1 Operation did not complete successfully because the file contains a virus or potentially unwanted software.

2024-07-13 07:12:09.288 [FAIL] D:\a\1\s\src\AppInstallerRepositoryCore\IconExtraction.cpp(212)\WinGetUtil.dll!00007FFA436BF6B5: (caller: 00007FFA4356EB22) LogHr(1) tid(11a4) 800700E1 Operation did not complete successfully because the file contains a virus or potentially unwanted software.
Msg:[D:\a\1\s\src\AppInstallerRepositoryCore\IconExtraction.cpp(113)\WinGetUtil.dll!00007FFA4356E106: (caller: 00007FFA4356EB22) Exception(1) tid(11a4) 800700E1 Operation did not complete successfully because the file contains a virus or potentially unwanted software.

Automated error analysis suggests -532462766 may mean EXCEPTION_COMPLUS (Unhandled Exception)
(Automated response - build 886.)

This package installs and launches normally on a Windows 10 VM.

This package installs and launches normally on a Windows 10 VM.

https://github.com/microsoft/winget-pkgs/issues/142854


[Code Cleaning]: Use "HaveLen()" instead of "len(...).To(Equal(..)" in mount test

What this PR does / why we need it:
This small PR replaces all appearences of Expect(len(X)).To(Equal(Y)) to Expect(X).To(HaveLen(Y)) for better readability and error presentation.
Release note:

NONE

/retest

/lgtm


chore(main): release 0.2.0

:robot: I have created a release beep boop
0.2.0 (2024-11-13)
Features

knn: add approximate nearest neighbor search with USearch (#8) (3c2bb44)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.2.0
:sunflower:


Task - New combination - set as current placement

When I create a new combination Aus (Bus) aus
A button set as current sets parent of aus as Aus (Aus), and not Aus (Bus)
Aus (Bus) should be set up as a parent of the species
if I save Aus (Aus) aus and set it as a current combination. the parent set up properly.

What if Bus i not current under Aus?

Well, this is up to user to define if this is current or not. I would say Bus should be set up as a parent of species. Problem now, the system sets completely different parent. Even when Bus is under Aus. If you want to be safe, it could be verified that Bus is under Aus before setting the parent.

@proceps, there have been changes I think?  Status?

Not resolved.

I hit this again, thought it is already fixed:

I have species Arboridia surstyli with Arboridia (Arborifera) as the parent (originally described in different genus).
I created a new combination Arboridia (Arborifera) surstyli and saved
I was suggested to change the parent to Arborida (see the picture), although the parent was already properly set previously
When I clicked the button, the parent was changed to Arboridia (Arboridia) - the wrong one, not Arboridia (Arborifera).

@jlpereira here we need to set the parent to always the second most from the left

Could you check again @proceps and let me know If this fix the problem?

When I did a combination Genus (Genus1) species, I am getting a button "Move species to species". Clicking the button changes nothing. So it tries to move parent to self?

Pushed new fix, @proceps

This works, but I am back to previous issue now. When I create combination like "Genus (Genus) species". The button sets to "Genus" not to the subgenus (the second from the last). When I click the button. the parent sets to the genus. If I refresh the combination page, the button comes back and now say to "set parent to species"

Aha, i see.
Pushed again @proceps

Now, I have the same combination, the species is already in the genus, but not in the subgenus. And the button suggesting moving species to subgenus is missing. When I tried a new species, it was moved to subgenus properly
I created the combination Genus species for the previous species, and I do not have a button again.
So we have several scenario:

Species moved to "Genus (Genus) species"
Species moved to "Genus (Subgenus) species"
Species moved to "Genus species species"
Subspecies moved to "Genus species subspecies"

And opposite. Subspecies moved back to species level. Subgenus moved back to Genus level.
In all cases the parent should be the second from the last. If the parent is different, the button should offer the transfer.

@proceps can you mock examples with ids and before/after?  We're still stumbling here.

So, when I have both genus and subgenus in the database, I almost always use subgenus as a target for both genus and subgenus in the combination, if they are the same.
So exampls:

Combination Subgenus (Subgenus) species. Expected parent - Subgenus
Combination with the same genus but different subgenus will be:
Subgenus (Another Subgenus) species. Expected parent - Another subgenus
Combination Genus Species is straightforward. Expected parent - Genus
4 combination Genus species subspecies - expected parent - species.

When the move button is generated, it should check if the parent is the same as the second from the last element of the combination, if it is different, offer the change.

@proceps You mean Genus (Subgenus) above, not Subgenus (Subgenus) right?

I think we have 2 issue here.
1 - The taxon is not moving to the correct parent.
2 - The button is still visible after moving the taxon to the new parent
Pushed another fix, let me know if one of this issue is solved @proceps

So, when I have both genus and subgenus in the database, I almost always use subgenus as a target for both genus and subgenus in the combination, if they are the same.
So exampls:

Combination Subgenus (Subgenus) species. Expected parent - Subgenus
Combination with the same genus but different subgenus will be:
Subgenus (Another Subgenus) species. Expected parent - Another subgenus
Combination Genus Species is straightforward. Expected parent - Genus
4 combination Genus species subspecies - expected parent - species.

When the move button is generated, it should check if the parent is the same as the second from the last element of the combination, if it is different, offer the change.

Now im little confused with point 1 and 4. Both have 3 taxon but different parent position.
In the first example, the expected parent will be Subgenus or (Subgenus) ?

@jlpereira When I have two TaxonNames with the same name but different rank (genus and subgenus) for example "Zygina" and "Zygina (Zygina)". I have an option which one to select as a label for the genus and subgenus relationships in the combination. So if I have a combination "Zygina (Zygina) alba", I select "Zygina (Zygina)" in both relationships for the genus and for Subgenus. It does not matter which one you select. Each of them will bring the label Zygina for appropriate rank. For me this is just matter of consistency. I try to select the same taxonnameID for each selection where it is possible. In the example 1. Last element - the species - is the taxonName to modify,  Zygina (Zygina) second element before last, it is the new parent for the last element.
Example for "Zygina alba macroptera". This also has 3 elements: genus, species, and subspecies. The taxon name to change the parent is "macroptera", the parent is the second element from the right - "Zygina alba". There is no really two issues. Just the system identifies the wrong New parent taxon.

@proceps This isn't working.  We need numbers, not explanations.  Please provide a table with the following data, one row for every possible different combination we are working with.

genus

id of genus
parent_id of genus

subgenus

id of genus
parent_id of genus

species

id of species
parent_id of species

subspecies

id of subspecies

current_name
id of current name
parent_id of current name
show button (true or false)
parent_id to used when button is clicked

Tribe Eritroneurini - id 1
Genus Erythroneura - id 2 - parent - 1
Genus Zygina - id 3 - parent 1
Subgenus Zygina - id 4 - parent 3
Species alba - id 5 - parent 2
Subspecies macroptera - id 6 - parent 5

I create a new combination Zygina (Zygina) alba
genus in combination - id 4, subgenus - 4, species - 5
New parent for alba (id 5) - id 4, Button to "move alba to Zygina (Zygina)"

I create a new combination Erythroneura (Zygina) alba
genus in combination - id 2, subgenus 4, species 5, Proposed new parent for 5 is 4 - Zygina (Zygina)

New combination Zygina alba macroptera
genus in combination id 3, species 5, subspecies 6, Proposed new parent for 6 is 5 - Zygina alba

Button is visible when the current parent for the last element is different from the proposed new parent (an element of the combination before the right.) It is visible in all examples.

New combination Erythroneura alba
genus in combination id 2, species - 5, proposed new parent - 2, same as present, the button is not visible.

Pushed again, @proceps

Wrong label should be "move doricarni to Zygina (Hypericiella)"
The button does not work. Nothing happens. No error messages.

I think this could be related a protonym order from the response. Just to clarified:
This is the combination?
Zygina Fieber, 1866 (genus)
Zygina (Hypericiella) Dworakowska, 1970 (subgenus)
Erythroneura dorycnii Ribaut, 1936 (species)

Yes, this is correct. I am experimenting on the practice database. I do not need really move it.

Perfect, I pushed a sort order, im pretty sure it was that. Let me know

Mostly works now!
but tried this one:

The label should be "Move to Zygina (Hypericiella) hyperici". I understand the label could be tricky. But the link does not work. Subspecies is not moved to "hyperici" as a parent.

Could you provide me the exact combination? Taxon name, author, rank and the position rank for the combination

The combination string:
Zygina (Hypericiella) hyperici bicornis
genus Zygina (Zygina) Fieber, 1866 (376430)
subgenus Zygina (Hypericiella) Dworakowska, 1970 (376412)
species Zygina (Hypericiella) hyperici (Herrich-Schäffer, 1836) (376420)
subspecies Zygina (Hypericiella) bicornis Dworakowska, 1981 (376414)

Pushed again, I think the button label should be okay now. But im not sure you could use it
Zygina (Hypericiella) hyperici (Herrich-Schäffer, 1836)
Zygina (Hypericiella) bicornis Dworakowska, 1981 (376414)
Both are species, same rank. So I dont think its gonna be possible assign hyperici as parent of bicornis. Im missing something here?

Yes, you are right, I did not think about it. I will be able to use it if I move subspecies from one species to another. If it works in 90% of cases it is great. And as long as it does not assign the protonym to a wrong parent. Maybe an error message, the species cannot change the parent, or something will work. But I am closing the issue for now. Thanks.


Feature/wdm next refactor

Major refactor improvements on wdmNext automation infrastructure.
This is PHASE 1 + PHASE 2 of the design
PHASE 1:

Refactor all parameter options and default values to const file WeaveWdmNextOptions.py.
Options now split between test/client/server
Naming of options now consistent with test-app CLI arguments.
Each parameter option is documented for its use case
Improved processing of client/server options into optimized loop reducing 130 lines -> 20 lines

PHASE 2:

Refactor ALL test parameters for 90+ test files into weave_wdm_next_test_params.json keyed by the test name and then test/client/server parameters. All test parameters were parsed using this script
All 90 tests now will read from json to run their test params.

Main files to review:

weave_wdm_next_test_base.py
WeaveWdmNext.py
WeaveWdmNextOptions.py
weave_wdm_next_test_params.json

All functions in these files are now documented on what they do, what their parameters are, and what they return.
PHASE 3 will be next to group test cases so that they can share the same setup and teardown of weave topology to significantly increase testing speed.
NOTE:
Changes for wdmNext service tests are NOT here. I need to work with @yunhanw-google to figure out how to run them.

If this is the "base" of what becomes normal, is there a need to name the files as part of this "Next" and "next"? I'd recommend just dropping those naming decorations.

If this is the "base" of what becomes normal, is there a need to name the files as part of this "Next" and "next"? I'd recommend just dropping those naming decorations.

I would suggest we decouple concerns: lets refactor the tests and then rename them; at the moment, this PR still maintains the 1-1 correspondence between the previous tests and the new ones; for traceability purposes, it may be cleaner to have at least separate commits but separate PRs may be more appropriate given the size of the change.

Here are logs of Jenkins job using my branch to run the WDM service tests. Logs indicate the same results as running off of master branch that CSI team uses to pull data from.
Note: Not all of the tests "pass", but it seems CSI team pulls other data from the runs which is sufficient for them to consider it passing.
https://paste.googleplex.com/4976942140882944
Jenkins log link was removed because they run many times a day and don't keep older runs.


[SPARK-38885][BUILD] Upgrade Netty to 4.1.76

What changes were proposed in this pull request?
This pr aims to upgrade Netty to 4.1.76
Why are the changes needed?
This version starts to support explicitly bind channels to either IPv4 or IPv6, but this feature only works in Java 15+. The release notes as follows:

https://netty.io/news/2022/04/12/4-1-76-Final.html

Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass GA

Test Link: https://github.com/LuciferYang/spark/runs/6020296111

ok ~ got it

Do you have a link to successful tests in your own github workflow? The PR builder status here still isn't reliable, AFAIK

Test Link https://github.com/LuciferYang/spark/runs/6020234537

merged to master

@srowen I found a very interesting thing:
After this pr, if I execute ./dev/test-dependencies.sh --replace-manifest  on Linux, the result files are same as the files  copy in the current master.
But if I execute ./dev/test-dependencies.sh --replace-manifest  on MacOs, the result files are differences with the files  copy in the current master:

The deps file generated on MacOS lacks the native jars related to Linux, do you have any suggestions

I also saw something weird like that and manually reverted some of the changes so that it was just a straight change of existing dependencies. I'm not sure what's going on with the script or Macos


not really an issue just a question ... but not sure where to ask

First of all thanks for the plugin. Question is: is this plugin just a convenience or is it necessary? Can one just stripe.js to get the token?

@mdipierro read my answer here: https://github.com/zyramedia/cordova-plugin-stripe/issues/3#issuecomment-277621322

Update: I just tried to reproduce the issue I was having initially and I failed. Not sure how I got that error message in the first place.
But anyways, I personally would rather use their native SDK because it will ensure that my stripe functionality works a 100%. Imagine a scenario where the user launches your app while they're offline, the app will try to load Stripe.js from https://js.stripe.com/v2/ and fail. Then when your app tries to call the global variable Stripe, it will return undefined and will probably cause your app to not function properly.


tuple with !ref tag

Hi,
I am trying to use !ref tag inside a tuple but it fails.
load_hyperpyyaml(
"""
a: 10
b: (5, !ref <a>)
""")

gives the following error:
ConstructorError: could not determine a constructor for the tag '!ref'
  in "<unicode string>", line 1, column 5:
    [5, !ref <a>]
        ^

You should put !ref at the beginning. It will be like this
load_hyperpyyaml(
"""
a: 10
b: !ref (5, <a>)
""")

will work perfectly.

Thanks, this works!


E: Unable to locate package scrcpy

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: [Kali linux (2020.2]
scrcpy version: []
installation method: [sudo apt-get install scrcpy]
device model:

Describe the bug
A clear and concise description of what the bug is.
E: Unable to locate package scrcpy (kali 2020.2)
On errors, please provide the output of the console (and adb logcat if relevant).
Please paste terminal output in a code block.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package scrcpy

Please do not post screenshots of your terminal, just post the content as text instead.

So Kali linux does not provide the scrcpy package in their repositories.
You could build manually.


Use "$OSTYPE" instead of "$(uname)" for OS detection.

Description
I just found out that bash sets a variable called $OSTYPE which stores the name of the OS bash is running on. If this variable works correctly in all the operating systems we support then we can drop a uname call and potentially speed up the script some more.
I'm still going to include a fallback to uname just in case the variable is empty for some reason.
I can't check the value of the variable from all systems so I'd love some help.
Testing
Just run this command in a terminal and send me the output:
bash -c "echo $OSTYPE"

OS
$OSTYPE

Linux
linux-gnu

CYGWIN
cygwin

Bash on Windows 10
linux-gnu

OpenBSD
openbsd5.9

FreeBSD
FreeBSD

NetBSD

DragonflyBSD

Mac OS
darwin15.6.0

iOS
darwin9

Solaris
solaris2.11

Android (termux)
linux-android

Android
linux-gnu

Haiku OS
haiku

GNU Hurd

macOS Sierra 10.12.1: darwin15.6.0

Thanks!
I'll make a branch and get Travis to do it, then we can call Mac OS done imo.

PR opened. #434

It might be more ideal to use #432 instead of this since $os is also used as the distro name on some BSDs. The speed benefit is still there since we have to run uname later on anyway.
#432 might actually be faster than this.

Closing in favor of #432.

Hi @dylanaraps - FYI, I just found that $OSTYPE for FreeBSD is freebsd11.0 instead of FreeBSD.

iirc we explored this in the past and I don’t remember why but there was a
reason we couldn’t use it.
I’ll search through previous issues and Gitter to see if I can find it.
On Wed, 13 Dec 2017 at 12:21 am, sharils<EMAIL_ADDRESS>wrote:

Hi @dylanaraps https://github.com/dylanaraps - FYI, I just found that
$OSTYPE for FreeBSD is freebsd11.0 instead of FreeBSD.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dylanaraps/neofetch/issues/433#issuecomment-351049476,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGfAa660UuVZFBMZ9hvSIWgN7XZfhxZfks5s_n3ygaJpZM4KvZlU
.

On NetBSD 8.0, $OSTYPE is netbsd.


Request support for TOMPD-63LW Breaker

TOMPD-63LW Breaker
Log Message
      "dps_strings": [
        "1 (value: 0)",
        "9 (value: 0)",
        "11 (value: False)",
        "13 (value: 0)",
        "15 (value: 0)",
        "16 (value: True)",
        "19 (value: 1234)"

Information about DPS mappings
{
  "result": {
    "category": "dlq",
    "functions": [
      {
        "code": "switch_prepayment",
        "dp_id": 11,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "energy_reset",
        "dp_id": 12,
        "type": "Enum",
        "values": "{\"range\":[\"empty\"]}"
      },
      {
        "code": "charge_energy",
        "dp_id": 14,
        "type": "Integer",
        "values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999,\"scale\":1,\"step\":1}"
      },
      {
        "code": "switch",
        "dp_id": 16,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "alarm_set_1",
        "dp_id": 17,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "alarm_set_2",
        "dp_id": 18,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "leakagecurr_test",
        "dp_id": 21,
        "type": "Boolean",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "total_forward_energy",
        "dp_id": 1,
        "type": "Integer",
        "values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
      },
      {
        "code": "phase_a",
        "dp_id": 6,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "fault",
        "dp_id": 9,
        "type": "Bitmap",
        "values": "{\"label\":[\"short_circuit_alarm\",\"surge_alarm\",\"overload_alarm\",\"leakagecurr_alarm\",\"temp_dif_fault\",\"fire_alarm\",\"high_power_alarm\",\"self_test_alarm\",\"ov_cr\",\"unbalance_alarm\",\"ov_vol\",\"undervoltage_alarm\",\"miss_phase_alarm\",\"outage_alarm\",\"magnetism_alarm\",\"credit_alarm\",\"no_balance_alarm\"]}"
      },
      {
        "code": "switch_prepayment",
        "dp_id": 11,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "energy_reset",
        "dp_id": 12,
        "type": "Enum",
        "values": "{\"range\":[\"empty\"]}"
      },
      {
        "code": "balance_energy",
        "dp_id": 13,
        "type": "Integer",
        "values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":999999,\"scale\":1,\"step\":1}"
      },
      {
        "code": "charge_energy",
        "dp_id": 14,
        "type": "Integer",
        "values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999,\"scale\":1,\"step\":1}"
      },
      {
        "code": "leakage_current",
        "dp_id": 15,
        "type": "Integer",
        "values": "{\"unit\":\"mA\",\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "switch",
        "dp_id": 16,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "alarm_set_1",
        "dp_id": 17,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "alarm_set_2",
        "dp_id": 18,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "breaker_number",
        "dp_id": 19,
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "leakagecurr_test",
        "dp_id": 21,
        "type": "Boolean",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t":<PHONE_NUMBER>259,
  "tid": "5c2c6eb3a9f811edbe05a63cfb33a057"
}

Product ID
    "product_id": "rrmpzckqm5pfd642",
    "model": "",
    "name": "Breaker",
    "online": true,
    "owner_id": "44613254",
    "product_name": "Breaker",

Information about how the device functions
https://aliexpress.ru/item/1005004774173382.html
1. Remote control ON/OFF at anytime from anywhere by phone.
2. Review current ,voltage, leakage current, total kWh on phone
3. Timer function in smartlife TUYA app
4. Can set over voltage/under voltage/over current /leakage current in app or can set these by manual
5. Undervoltage protection 140V-210V (adjustable) (default: 170V)
6. Over voltage proteciton225V-295V (adjustable) (default: 265)
7. Over current protection1A-63A (adjustable) (default: 40A)
8. Reconnect time (delay on time): 1s-500s (default: 30s)
9. Voltage/current/kW calibration: -9.9%-9.9%
10. Action time: 1-30s (detault 1s)
11. power consumption less than 2W

How can I install this patch? Need to install the master version?

The 2023.2.1 release has this.

Home Assistant v2023.2.4
Log Message:
 "dps_strings": [
        "1 (value: 0)",
        "9 (value: 0)",
        "11 (value: False)",
        "13 (value: 0)",
        "15 (value: 0)",
        "16 (value: True)",
        "19 (value: 1234)"

```If the release has it, then why is there no data in the log? Did I have to prescribe the TOMPD-63LW Breaker in some special way? Tell me the instructions, please.

I mean the tuya-local release 2023.2.1, not Home Assistant.

Sorry, I'm confused. I thought I was writing for
https://github.com/rospogrigio/localtuya
but wrote to
https://github.com/make-all/tuya-local
Can I install your integration side by side with another one?

Not for the same device, and if you have localtuya installed, the "Auto" setting for IP address will not work in tuya-local, as the discovery port is already claimed by localtuya.

Thank you! While included one device in different integrations in parallel.
Do I understand correctly that
status: {
       "16": true

equals
"entity_id": "switch.circuit_breaker_energy_meter"
?
Is there a difference in the protocols
  "api_version_set": 3.2
and 3.3 for this device? Visually, it works the same on both 3.2 and 3.3.
tuya_local-04af1652d2a1f1a20788ab10b185eea3-Circuit breaker energy meter-1968c6386062d92c6a9db7affea88ffb.json.txt

3.3
tuya_local-04af1652d2a1f1a20788ab10b185eea3-Circuit breaker energy meter-1968c6386062d92c6a9db7affea88ffb.json(1).txt

3.2 is a variation of 3.3, more like a beta version I think, as it is not very widely deployed.  The differences are minor, if it works with both, chose 3.3, as that is the more common one.  Actual 3.2 devices do not fully work when set to 3.3

Stable error after restarting Home Assistant:
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:503
Integration: Sensor (documentation, issues)
First occurred: 9:10:37 AM (2 occurrences)
Last logged: 9:10:37 AM

Entity sensor.circuit_breaker_energy_meter_balance_energy (<class 'custom_components.tuya_local.sensor.TuyaLocalSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.circuit_breaker_energy_meter_energy (<class 'custom_components.tuya_local.sensor.TuyaLocalSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Support added in 2023.2.3

State Class: ''

I can't see the full message, the full entity name and there is no explanation of the conditions that cause this message to come out.

This message is not in the log. Message in /developer-tools/statistics: "The state class '' of this entity is not supported." and "Unsupported state class"
Entity:
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": "kWh",
          "state": {
            "entity_id": "sensor.circuit_breaker_energy_meter_balance_energy",
            "state": "0.0",
            "attributes": {
              "unit_of_measurement": "kWh",
              "friendly_name": "Circuit breaker energy meter Balance energy"
            },
            "last_changed": "2023-03-08T19:19:34.450479+00:00",
            "last_updated": "2023-03-08T19:19:34.450479+00:00"
          }
        },

As far as I understand it is about
https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

Right, and in there it gives descriptions of only measurement, total and total_increasing state classes.  This is a total remaining, which doesn't really fit into any of those, so it is not tagged with a state class.  As far as I can tell from the HA developer documentation, this is correct.

Why does a similar sensor have a tate_class?
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "energy",
          "icon": null,
          "unit_of_measurement": "kWh",
          "state": {
            "entity_id": "sensor.circuit_breaker_energy_meter_energy",
            "state": "557.32",
            "attributes": {
              "state_class": "total_increasing",
              "unit_of_measurement": "kWh",
              "device_class": "energy",
              "friendly_name": "Circuit breaker energy meter Energy"
            },
            "last_changed": "2023-03-09T05:46:38.532148+00:00",
            "last_updated": "2023-03-09T05:46:38.532148+00:00"
          }
        }

That is an energy meter, which counts the energy consumed.
The one the message is about, sensor.circuit_breaker_energy_meter_balance_energy, is a balance tracker for remaining credit on a prepaid meter.

It looks like a new device class has been added for such sensors, presumably for HA 2023.4.  Once that is added, it will be easier to see what other integrations using it do for state_class (particularly the built in ones).
https://github.com/home-assistant/core/pull/88310

Sorry, I did not understand. There are two sensors:
circuit_breaker_energy_meter_energy
unit_of_measurement: "kWh"
state_class: "total_increasing"
device_class: "energy"
circuit_breaker_energy_meter_balance_energy
unit_of_measurement: "kWh"
state_class: not specified
device_class: not specified
Why do they have different attributes?

One question on this device:  is the energy reset button working?
On issue #577 a similar device (same brand and amp rating) is requested.  The only difference between the data captured in the log and the config for this device is the energy reset (dp 12 from the "Information on DPS mappings" above) is being returned from the device as a boolean value (false).
In the logs posted to this issue, we never captured dp 12, so it was just an assumption that it will be a string based on the "Information on DPS mappings" from iot.tuya.com, which specifies it as Enum with possible value "empty".
It is quite common for iot.tuya.com information to not match the local protocol, so if you can test that button - if it is not working, likely this device and the #577 device are identical, and that button needs to be changed to a boolean.

How to enable debug information? I will run tests and send logs.

configuration.yaml
logger:
  default: warning
  logs:
    homeassistant.core: warning
    custom_components.tuya-local: debug

Does not output debug information.

You need to use an underscore.  But I don't expect to see anything in the logs, as Tuya devices don't really reject anything at the protocol level, just silently fail (some will go offline for a few seconds, probably crashing and watchdogging due to bad input). So I just want to know whether that energy reset button is resetting anything.
If it is ever returning data for dp 12, you should be able to see that in the diagnostics file: Settings / Devices & Services / Integrations - Tuya Local [TOMPD device] / 1 device / Download Diagnostics.

Before energy reset button:
tuya_local-04af1652d2a1f1a20788ab10b185eea3-Circuit breaker energy meter-1968c6386062d92c6a9db7affea88ffb.json(5).txt
After:
tuya_local-04af1652d2a1f1a20788ab10b185eea3-Circuit breaker energy meter-1968c6386062d92c6a9db7affea88ffb.json(6).txt

There doesn't seem to be any effect.  I will try changing the type of the button to boolean and remove the mapping then, so it sends true rather than "empty".

Is it possible to display volts and amps?

Could someone advice how to add volts and amps display in home assistant ?

With this device, you can't.  It does not provide volts and amps in the local protocol.

0V and 580A

tuya_local-04af1652d2a1f1a20788ab10b185eea3-Circuit breaker energy meter-1968c6386062d92c6a9db7affea88ffb.json(8).txt
home-assistant_tuya_local_2023-06-15T19-05-13.221Z.log

It seems the phase_a decoding was just copied from another device without checking.  Both #577 and your diagnostic data show 8 byte data, but the decoding is based on an 11 byte field.  I will update it accordingly.

0V and 580A

tuya_local-04af1652d2a1f1a20788ab10b185eea3-Circuit breaker energy meter-1968c6386062d92c6a9db7affea88ffb.json(8).txt
home-assistant_tuya_local_2023-06-15T19-05-13.221Z.log

Hi. Is your device updating voltage, current, power and total power without internet connection to tuya server, just in LAN ?
Because mine do not do it even in Tuya Smart App((

Hi, i really like this integration for the high level of customization it gives to tuya even the official integration does not.
In this device, there is a possibility to turn on and off some features like the earth leakage, which i really wanted to control as a switch from home assistant
Regards

Hi there, I am kinda newbie in smart home topic and I want to ask for some help) I set up TOMPD-63LW  with this integration and it works like charm but after approximately 40s after connection breaker stops sending updates to HA, i mean voltage, current, etc.
Is there any problem on my side?
Also it would be great to have ability to set parameters like delays or other protection values.

@RuStyC0der
I suggest you first study the logs on the router, then enable debugging in HA
logger:
  default: warning
  logs:
    custom_components.tuya_local: debug

and reboot HA.

Hi, what kind of router do you mean, my wifi router?
My friend also have this issue with same device.
Are you have same device and not have this issue?

Yes, I suggest analyzing the wifi router logs.
That's right, I have the same device and don't have this problem.
I think having router logs and integration will help to understand the problem.

did some additional tests, energy sensor and ability control switch is preserved but sensors in diagnostic section are freezed. When i press "Refresh sensors" they unfreeze for another 10 seconds or so and then again became static.
@garry0garry  do you have the same behavior of your breaker?

I don't have any sensor freeze.

This is the device behaviour, and is the reason why the "Refresh Sensors" button is needed.  I'm not sure why only some people are seeing this, but the intention is that you would set up an automation to call Refresh Sensors at whatever interval you need for tracking granularity.

@make-all  Hi, thanks for your reply. I did know about this but thought of it as workaround, and wanted to confirm it is normal behavior, not some bug from my device)
@garry0garry  So did you also set up automation?
sorry for being kinda noisy Im newbie in this field and just wanna make sure Im not making something wrong)

@RuStyC0der
I don't use "Refresh Sensors". I see the sensor automatically updating every two minutes. In my scenario, this is enough.
For accurate diagnostics, I use PZEM and set the data collection to every three seconds.

I`m confused now @make-all, do you have any guesses in this?
The only guess I can assume that @garry0garry  may also use some tuya cloud application or platform which triggers updates as soon as when I open app it starts to send data

No logs - no attempt to give an answer.

@make-all Please add the device type to "Device info".
"data": {
"name": "Circuit breaker energy meter",
"type": "tompd_63lw_breaker",

@garry0garry  sure, I will check and provide you debug data and network traffic dump data a little bit later, thanks for helping)

"installation_type": "Home Assistant Container", "version": "2024.12.2"
"name": "Tuya Local", "version": "2024.12.0"
power_factor and frequency are always unknown:
          "original_device_class": "power_factor",
          "icon": null,
          "unit_of_measurement": "%",
          "state": {
            "entity_id": "sensor.avtomat_na_septike_koeffitsient_moshchnosti",
            "state": "unknown",

          "original_device_class": "frequency",
          "icon": null,
          "unit_of_measurement": "Hz",
          "state": {
            "entity_id": "sensor.avtomat_na_septike_chastota",
            "state": "unknown",

P.S. It's a pity that they renamed the English entity_id of the sensors into transcription :-(

Please add the device type to "Device info". https://github.com/make-all/tuya-local/issues/388#issuecomment-2459827757


Releases in GitHub are missing automated diff of PRs

Description
Looking at the releases in https://github.com/dotnet/runtime/releases they are missing the list of "what's changed".   @tannergooding shared an example of what this could contain: https://github.com/terrafx/terrafx.interop.windows/releases/tag/v10.0.22621.2.
Could we please include this diff for future releases?  It would be very helpful for customers to see what's in the release vs not at a more granular level then we share in the blog/release-notes.
@leecow @rbhanda
@tannergooding also had some other feedback around releases that would make them useful (like links to our binaries and installers).

Notably GitHub can automatically generate release notes for you: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
It makes it really convenient and gives a commit diff between the previous release and current.

Thanks @ericstj and @tannergooding. We'll move this to our backlog have a look.


Mention - User profile shows the old UI when clicking on user mention after sending it

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.79-7
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:

Go to staging.new.expensify.com
Go to any chat
Mention a user and send it
Click on the mention
Note that the user profile is the old UI
Dismiss the user profile
After a while, click on the mention again

Expected Result:
In Step 4, user profile from mention should show the new UI
Actual Result:
In Step 4, user profile from mention should show the old UI
It shows the new UI after a while when reopening the user profile (Step 7)
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/5f162a15-78bd-404f-984a-1d40498883b2
View all open jobs on GitHub

@tgolen  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #vip-vsp

I'm pretty sure this problem comes from the frontend.

This is not a deploy blocker, it's the same behavior on production too

This new UI is on staging only, so it's not the same behavior on production.
I'm on the fence about whether or not this is a true blocker or not.

Hey I’m only for a moment, but https://github.com/Expensify/App/pull/42385 might solve this issue.

Hey, I didn't have time yesterday to investigate deeply.
I think that this behavior is expected. In the design doc, we planned two separate issues for updating the ProfilePage and then removing DetailsPage. The testing plan in this issue mentions the second case (DetailsPage) which changes hasn't been merged yet (PR).

I'm removing the blocker label as this is an edge case with proposals in place, is potentially expected, and so we can speed up QA. More context here (internal comment)

I have asked QA to retest 👍

Thank you!


Adding-TimSort -Sorting algorithm.

Name:
TimSort Algorithm
About:
I would like to add an sorting Algorithm  name TimSort.  The algorithm is written in c language.

Labels:
new algorithm, gssoc-ext, hacktoberfest, level1

Assignees:

[ ] Contributor in GSSoC-ext
[ ] Want to work on it

"I would love the opportunity to contribute and work on this project.
Could you please assign the issue to me? I'm eager to dive in and make a meaningful impact. Thank you for considering my request!"

I would like to work on this project , please assign me this project.


Update spelling mistake in import

I copy and pasted it and didn't notice the spelling mistake at first, made me upgrade to the latest lit-element from @polymer/lit-element 👍 😄

Thanks @kevinsimper


menu style customization

Description

Make background none in case of choosing the transparent option
Adopt new button style mechanism

Fixes #6117
Type of change

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
This change requires a documentation update

How Has This Been Tested?

Test A
Test B

Checklist:

[x] My code follows the style guidelines of this project
[x] 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
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:red_circle: Total coverage has decreased
// Code coverage diff between base branch:release and head branch: bug/6117-menu-style-customization

Status
File
% Stmts
% Branch
% Funcs
% Lines

:red_circle:
total
54.79 (-0.02)
36.6 (-0.22)
33.16 (0.01)
55.4 (-0.01)

:red_circle:
app/client/src/components/designSystems/appsmith/MenuButtonComponent/index.tsx
25.68 (1.87)
6.62 (-21.95)
0 (0)
28.79 (4.98)

:green_circle:
app/client/src/components/propertyControls/BoxShadowOptionsControl.tsx
64.71 (11.14)
42.86 (2.86)
33.33 (16.66)
67.74 (13.89)

:sparkles: :new:
app/client/src/components/propertyControls/ButtonBorderRadiusControl.tsx
66.67
50
33.33
68

:green_circle:
app/client/src/components/propertyControls/index.ts
84.85 (0.47)
100 (0)
0 (0)
84.38 (0.51)

:red_circle:
app/client/src/utils/WidgetPropsUtils.tsx
72.18 (-0.15)
64.4 (-0.06)
67.03 (0)
71.15 (-0.15)

:green_circle:
app/client/src/utils/autocomplete/TernServer.ts
50.71 (0.24)
38.6 (0.88)
36.21 (0)
55.35 (0.27)

:sparkles: :new:
app/client/src/utils/migrations/MenuButtonWidget.ts
23.08
0
0
16.67

:red_circle:
app/client/src/widgets/MenuButtonWidget.tsx
47.5 (-22.07)
0 (0)
27.27 (-6.06)
47.37 (-24.06)

Deploy preview look good. One thing I have noticed is that in the min width the icon is cut from the side, Can we handle this @wmdev0808?

@wmdev0808

Background is not becoming transparent on choosing the transparent option in background property for menu options.

Migration issues: Old Menu widget are not showing properly.

@wmdev0808 please merge the latest release here, Failing test has been fixed

@wmdev0808 please resolve the conflicts here, @vivekverma2312 once that is done please test this at priority

@wmdev0808 Menu button for older app is not proper.

Menu style and Menu variants is not selected by default

Default button is not looking proper

@wmdev0808 Migration issue is fixed.
Issue Observed:
Menu button do not have any different behaviour on changing menu style to Custom. User is not getting option to change the background colour.

Tested deploy preview and working fine now.


ReactRedux template throws errors out of the box

Title
When creating a new template from the dotnet new reactredux template, it does not run properly out of the box.
Functional impact
Cannot access site
Minimal repro steps
dotnet new reactredux
dotnet restore
npm install
$Env:ASPNETCORE_ENVIRONMENT = "Development"
dotnet run
Expected result
Console shows a successful build & start with no errors
Actual result
Hosting environment: Development
Content root path: C:\Projects\ProjectManagerRedux
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
fail: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Checking finished with 5 errors
fail: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Checking finished with 5 errors
info: Microsoft.AspNetCore.NodeServices[0]
      webpack built b70bfbfe90635866682e in 3082ms
fail: Microsoft.AspNetCore.NodeServices[0]
      Hash: b70bfbfe90635866682e
      Version: webpack 2.5.1
      Time: 3082ms
                   Asset      Size  Chunks                    Chunk Names
          main-client.js    414 kB       0  [emitted]  [big]  main-client
                site.css   1.56 kB       0  [emitted]         main-client
      main-client.js.map    498 kB       0  [emitted]         main-client
            site.css.map  85 bytes       0  [emitted]         main-client
      chunk    {0} main-client.js, site.css, main-client.js.map, site.css.map (main-client) 368 kB [entry] [rendered]
          [0] external "vendor_af2088012a1b2e840d4e" 42 bytes {0} [not cacheable]
          [1] delegated ./node_modules/node-libs-browser/node_modules/process/browser.js from dll-reference vendor_af2088012a1b2e840d4e 42 bytes {0} [not cacheable] [built]
         [63] ./~/react-hot-loader/patch.js 41 bytes {0} [built]
         [64] ./ClientApp/boot-client.tsx 2.19 kB {0} [built]
         [65] (webpack)-hot-middleware/client.js?path=%2F__webpack_hmr 6.68 kB {0} [built]
         [66] delegated ./node_modules/event-source-polyfill/eventsource.js from dll-reference vendor_af2088012a1b2e840d4e 42 bytes {0} [not cacheable] [built]
         [70] ./ClientApp/css/site.css 41 bytes {0} [built]
        [174] ./~/react-hot-loader/index.js 41 bytes {0} [built]
        [181] ./~/react-hot-loader/lib/patch.js 209 bytes {0} [built]
        [188] ./ClientApp/configureStore.ts 2.24 kB {0} [built]
        [199] ./~/strip-ansi/index.js 161 bytes {0} [built]
        [200] (webpack)-hot-middleware/client-overlay.js 1.82 kB {0} [built]
        [201] (webpack)-hot-middleware/process-update.js 3.88 kB {0} [built]
        [202] delegated ./node_modules/bootstrap/dist/js/npm.js from dll-reference vendor_af2088012a1b2e840d4e 42 bytes {0} [not cacheable] [built]
        [210] multi react-hot-loader/patch event-source-polyfill webpack-hot-middleware/client?path=%2F__webpack_hmr ./ClientApp/boot-client.tsx 64 bytes {0} [built]
           + 196 hidden modules

      ERROR in [at-loader] ./ClientApp/routes.tsx:9:12
          TS2322: Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
        Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'Readonly<T>'.

      ERROR in [at-loader] ./ClientApp/routes.tsx:10:12
          TS2322: Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
        Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'Readonly<T>'.

      ERROR in [at-loader] ./ClientApp/routes.tsx:11:12
          TS2322: Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
        Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'Readonly<T>'.

      ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:67:21
          TS2694: Namespace 'React' has no exported member 'ComponentType'.

      ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:102:48
          TS2694: Namespace 'React' has no exported member 'ComponentType'.
      Child extract-text-webpack-plugin:
          chunk    {0} extract-text-webpack-plugin-output-filename 4.08 kB [entry] [rendered]
              [0] ./~/css-loader/lib/css-base.js 2.26 kB {0} [built]
              [1] ./~/css-loader!./ClientApp/css/site.css 1.82 kB {0} [built]
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method ProjectManagerRedux.Controllers.HomeController.Index (ProjectManagerRedux) with arguments ((null)) - ModelState is Valid
info: Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor[1]
      Executing ViewResult, running view at path /Views/Home/Index.cshtml.
info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
      User profile is available. Using 'C:\Users\jwilliams\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action ProjectManagerRedux.Controllers.HomeController.Index (ProjectManagerRedux) in 2941.2875ms
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/dist/site.css?v=Lb5HSsGvBcEgLMQZ61Nva-Lpee8TNSEJ0mFBnX5PmbQ
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/dist/vendor.css?v=2OSKmU2Rna58MvkZa-1vCDjb7C1cgTMqz-guh-WoUGU
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 16.9662ms 200 text/css; charset=UTF-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 3150.877ms 200 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/dist/vendor.js?v=DWcmqEa4HTnl9viXP1YecAKkHkRDogjK-LKI0Dl6Imk
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/dist/main-client.js?v=mtjxitWO_mSOlEGes9SDbY3rpFWi5Kff2U5LnsoQQA8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 10.5292ms 200 application/javascript; charset=UTF-8
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
      Sending file. Request path: '/dist/vendor.js'. Physical path: 'C:\Projects\ProjectManagerRedux\wwwroot\dist\vendor.js'
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
      Sending file. Request path: '/dist/vendor.css'. Physical path: 'C:\Projects\ProjectManagerRedux\wwwroot\dist\vendor.css'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 61.2527ms 200 text/css
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 35.0999ms 200 application/javascript
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr
info: Microsoft.AspNetCore.Server.Kestrel[14]
      Connection id "0HL71KMIKEC0F" communication error.
Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -4081 ECANCELED operation canceled
info: Microsoft.AspNetCore.Server.Kestrel[14]
      Connection id "0HL71KMIKEC0F" communication error.
Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -4081 ECANCELED operation canceled
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/favicon.ico
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
      Sending file. Request path: '/favicon.ico'. Physical path: 'C:\Projects\ProjectManagerRedux\wwwroot\favicon.ico'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 2.896ms 200 image/x-icon
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
      An unhandled exception has occurred while executing the request
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.IO.Stream.<CopyToAsyncInternal>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<PerformProxyRequest>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
warn: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
      The response has already started, the error page middleware will not be executed.
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HL71KMIKEC0F": An unhandled exception was thrown by the application.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.IO.Stream.<CopyToAsyncInternal>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<PerformProxyRequest>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Frame`1.<RequestProcessingAsync>d__2.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 15202.4017ms 200 text/event-stream; charset=utf-8

Further technical details
node -v
v7.5.0
npm -v
4.1.2
dotnet --version
1.0.4
Windows 10 x64

Doh, I found the fix at https://github.com/aspnet/JavaScriptServices/issues/1099#issuecomment-313876245
Just in case anyone else runs into this issue and is running 1.04 dotnet, it looks like the fix is in the latest .NET Core 2.0 Preview 3 SDK, but changing your package.json to the following works:
    ...
    "@types/react": "15.0.35",
    "@types/react-dom": "15.5.1",
    "@types/react-redux": "4.4.45",
    "@types/react-router-dom": "4.0.6",
    "@types/react-router-redux": "5.0.3",
    ...
    "typescript": "2.3.4",


Add remapping when parse file to support embark-solc

Overview
Add remapping when parse file to support embark-solc
Ref: https://github.com/embark-framework/embark-solc/issues/3
Questions
Review
Cool Spaceship Picture

thanks @jrainville , i updated as your recommendation


Update

What version of Go are you using (go version)?

$ go version
go version go1.23.3 darwin/arm64

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/PsyCHV/Library/Caches/go-build'
GOENV='/Users/PsyCHV/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/PsyCHV/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/PsyCHV/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.23.3/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.23.3/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.3'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/PsyCHV/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/sd/8h52byp51j375x118hdp6_xw0000gq/T/go-build2377708322=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOROOT/bin/go version: go version go1.23.3 darwin/arm64
GOROOT/bin/go tool compile -V: compile version go1.23.3
uname -v: Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030
ProductName:		macOS
ProductVersion:		15.1.1
BuildVersion:		24B91
lldb --version: lldb-16<IP_ADDRESS>
Apple Swift version 6.0.2 (swiftlang-<IP_ADDRESS>.2 clang-16<IP_ADDRESS>)

What did you do?

What did you expect to see?
What did you see instead?

Related Issues

run #70024 (closed)
Demo #66258 (closed)
Bugs-Report #62338 (closed)
Update #47124 (closed)
sb #53220 (closed)
Test #70447 (closed)
 #52089 (closed)
go #64466 (closed)
? #43227 (closed)
bug #49374 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)


Milan region not shown

Hi, Milan region missing from region's list :-(

Fix is here: https://github.com/rancher/ui/pull/4888
Hopefully it'll be merged soon.

See also: https://github.com/rancher-plugins/kontainer-engine-driver-oke/issues/53


C-order flag for reshape function

Is your feature request related to a problem? Please describe.
The reshape function currently only supports Fortran ordering.
Describe the solution you'd like
In an ideal world, reshape would take a flag, similar to the numpy reshape function to specify C or Fortran ordering.
Describe alternatives you've considered
None
Additional context
None

This is fixed on master.