Trying to compile libratbag on Ubuntu 18.04

In trying to compile libratbag on Ubuntu 18.04 with:
git clone https://github.com/libratbag/libratbag.git
cd libratbag
meson builddir --prefix=/usr/

I get:
~/libratbag$ meson builddir --prefix=/usr/
The Meson build system
Version: 0.45.1
Source dir: /home/dgroos/libratbag
Build dir: /home/dgroos/libratbag/builddir
Build type: native build
Project name: libratbag
Native C compiler: cc (gcc 7.3.0 "cc (Ubuntu 7.3.0-16ubuntu3) 7.3.0")
Native C++ compiler: c++ (gcc 7.3.0 "c++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program git found: YES (/usr/bin/git)
Found Pkg-config: NO

meson.build:50:0: ERROR: Pkg-config not found.

A full log can be found at /home/dgroos/libratbag/builddir/meson-logs/meson-log.txt

Neither checking out the logs nor googling "meson.build:50:0: ERROR: Pkg-config not found" provided me with a direction useful to me. Am I asking for support in the wrong quarters?

It did provide useful information. You are missing pkg-config
Please do the following.
sudo apt install pkg-config

This worked and thanks for the advice on searching application-specific error messages.
After successfully installing pkg-config I continued the process of installing all of the dependencies, 1 at a time (literally some 25 other packages!). Finally I got glib-2.0 to work and successfully ran: meson builddir --prefix=/usr/
I rebooted and tried: sudo ratbagd but it returned:  sudo: ratbagd: command not found
(Also, I saw there was an issue on my install of ubuntu 18.04 with glib-2.0 but sent in an auto error report but that's probably not connected to me being unable to find the ratbagd command). Any ideas?

Did you actually compile and install the compiled files? After running meson, you need to first compile with ninja -C builddir and then install with ninja -C builddir install.

I see, I misunderstood the directions (due to limited experience). So, I did what you said and went through the rest of the directions and got ratbagd.service running, Thanks!
I then installed piper. I then launched piper by clicking on the icon. It didn't work then after a bit it issued a crash report containing lots of info. Here's seemingly most important:

Title: "piper crashed with ModuleNotFoundError in_main_:No module named 'piper'"
The traceback said:
File "/usr/bin/piper",line 36, in
from piper.application import Application
ModuleNotFoundError: No module name 'piper'
And then it says the UnreportableReason is: "This package does not seem to be installed correctly"

So it looks like even though piper installation seemed to complete successfully, it didn't. Any ideas?

If you run it again, the behavior is the same or does it not start at all?

Show the output of python --version.

python --version
Python 2.7.15rc1
But by typing in python3 -V I get Python 3.6.5.
I guess I need to make python 3 default. Will I have to reinstall things related to libratbag and piper?
Thanks again.

No, that shouldn't be the problem as piper specifies python 3 as the environment. There was no need to check the version, sorry. That is probably a bad installation.

np. Are you saying I should try to reinstall piper?

Yeah, you should try.

Since it wouldn't overwrite it, I removed builddir
sudo rm -r piper/builddir
Then ran
meson builddir --prefix=/usr/
giving this output:

meson builddir --prefix=/usr/
The Meson build system
Version: 0.45.1
Source dir: /home/myuser/piper
Build dir: /home/myuser/piper/builddir
Build type: native build
WARNING: Newline character in a string detected, use ''' (three single quotes) for multiline strings instead.
This will become a hard error in a future Meson release. config_piper_devel.set('devel', ' 43 32
Project name: piper
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency python3 found: YES 3.6
Native dependency pygobject-3.0 found: YES 3.26.1
Configuring AboutDialog.ui using configuration
Native dependency glib-2.0 found: YES 2.56.1
Message: Getting Python3 install dir
Configuring piper using configuration
Configuring piper.devel using configuration
Program meson_install.sh found: YES (/usr/bin/env sh /home/myuser/piper/meson_install.sh)
Build targets in project: 4
Found ninja-1.8.2 at /usr/bin/ninja

From there I tried to start piper by clicking on the icon of the application and it showed it tried to open for 5-10 seconds then the booting application icon was gone. Here's the output of /var/log/syslog:

Apr 22 14:31:20 myputer org.freedesktop.Piper.desktop[3583]: Traceback (most recent call last):
Apr 22 14:31:20 myputer org.freedesktop.Piper.desktop[3583]:   File "/usr/bin/piper", line 36, in
Apr 22 14:31:20 myputer org.freedesktop.Piper.desktop[3583]:     from piper.application import Application
Apr 22 14:31:20 myputer org.freedesktop.Piper.desktop[3583]: ModuleNotFoundError: No module named 'piper'

Ideas?

I'm thinking I ought to move that last post to the piper bugs list--yes?

Did you run this?
ninja -C builddir
sudo ninja -C builddir install

aarg! I checked and saw I didn't so therefore repeated the steps:
myuser@myputer:~/piper$ sudo rm -r builddir/
myuser@myputer:~/piper$ meson builddir --prefix=/usr/

The Meson build system
Version: 0.45.1
Source dir: /home/myuser/piper
Build dir: /home/myuser/piper/builddir
Build type: native build
WARNING: Newline character in a string detected, use ''' (three single quotes) for multiline strings instead.
This will become a hard error in a future Meson release. config_piper_devel.set('devel', ' 43 32
Project name: piper
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency python3 found: YES 3.6
Native dependency pygobject-3.0 found: YES 3.26.1
Configuring AboutDialog.ui using configuration
Native dependency glib-2.0 found: YES 2.56.1
Message: Getting Python3 install dir
Configuring piper using configuration
Configuring piper.devel using configuration
Program meson_install.sh found: YES (/usr/bin/env sh /home/myuser/piper/meson_install.sh)
Build targets in project: 4
Found ninja-1.8.2 at /usr/bin/ninja

myuser@myputer:~/piper$ ninja -C builddir

ninja: Entering directory `builddir'
[1/1] Generating piper_gresource with a custom command.

myuser@myputer:~/piper$ sudo ninja -C builddir install

ninja: Entering directory `builddir'
[0/1] Installing files.
Installing subdir /home/myuser/piper/piper to /usr/lib/python3.6/site-packages/piper
Installing data/piper.gresource to /usr/share/piper/piper.gresource
Installing /home/myuser/piper/data/org.freedesktop.Piper.desktop to /usr/share/applications
Installing /home/myuser/piper/data/org.freedesktop.Piper.svg to /usr/share/icons/hicolor/scalable/apps
Installing /home/myuser/piper/builddir/piper to /usr/bin
Running custom install script '/usr/bin/python3 /usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=piper'
Installing /home/myuser/piper/builddir/po/de.gmo to /usr/share/locale/de/LC_MESSAGES/piper.mo
Installing /home/myuser/piper/builddir/po/hr.gmo to /usr/share/locale/hr/LC_MESSAGES/piper.mo
Installing /home/myuser/piper/builddir/po/nl.gmo to /usr/share/locale/nl/LC_MESSAGES/piper.mo
Installing /home/myuser/piper/builddir/po/pl.gmo to /usr/share/locale/pl/LC_MESSAGES/piper.mo
Installing /home/myuser/piper/builddir/po/sv.gmo to /usr/share/locale/sv/LC_MESSAGES/piper.mo
Running custom install script '/usr/bin/env sh /home/myuser/piper/meson_install.sh'
gtk-update-icon-cache: Cache file created successfully.

Still doesn't work :-(
syslog shows:

Apr 22 15:30:38 myputer org.freedesktop.Piper.desktop[4215]: Traceback (most recent call last):
Apr 22 15:30:38 myputer org.freedesktop.Piper.desktop[4215]:   File "/usr/bin/piper", line 36, in
Apr 22 15:30:38 myputer org.freedesktop.Piper.desktop[4215]:     from piper.application import Application
Apr 22 15:30:38 myputer org.freedesktop.Piper.desktop[4215]: ModuleNotFoundError: No module named 'piper'

That's weird. Maybe @Hjdskes could help? At this point, I think you should open an issue in the piper repository.

Thanks for your efforts to help me @FFY00 !
Will open issue in piper repository.

No problem! You can close this issue now.


consolidate HeaderText and BaseHeader into PageHeader

From the header consolidation work done, it looks like we can have 1 header component to suit all situations. it's structure is:

breadcrumb
free / part 1 of labels (no idea what to call these, so calling them what they are)
title
content type specific info (dates, status, summary)
labels
feature media

This PR introduces the component, then next few will be deprecating the old components.

#3330 is more evolved and actually shows the component being used.


Patch vscode-lldb only on non-darwin systems

The recent override for vscode-lldb does not work on Darwin systems. This PR changes the override to not patch on Darwin.

@deemp


python312Packages.robotframework-seleniumlibrary: 6.5.0 -> 6.6.1

Description of changes
Diff: https://github.com/robotframework/SeleniumLibrary/compare/refs/tags/v6.5.0...v6.6.1
Changelog:
https://github.com/robotframework/SeleniumLibrary/blob/refs/tags/v6.6.1/docs/SeleniumLibrary-6.6.0.rst
https://github.com/robotframework/SeleniumLibrary/blob/refs/tags/v6.6.1/docs/SeleniumLibrary-6.6.1.rst

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

@ofborg build
python311Packages.robotframework-seleniumlibrary

diff --git a/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix b/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix
index 77a5b8be2ad8..c32adc8dc309 100644
--- a/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix
+++ b/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix
@@ -46,6 +46,8 @@ buildPythonPackage rec {
     mkdir utest/output_dir
   '';

+  __darwinAllowLocalNetworking = true;
+
   meta = {
     changelog = "https://github.com/robotframework/SeleniumLibrary/blob/${src.rev}/docs/SeleniumLibrary-${version}.rst";
     description = "Web testing library for Robot Framework";

Result of nixpkgs-review pr 342910 run on aarch64-darwin 1

4 packages built:

python311Packages.robotframework-selenium2library
python311Packages.robotframework-selenium2library.dist
python311Packages.robotframework-seleniumlibrary
python311Packages.robotframework-seleniumlibrary.dist


Users/subraman/ua mi public preview

ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo.  If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month. 02/15/2023
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month. 02/15/2023
By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.

These changes are already approved in Private Repository in the following PR
https://github.com/Azure/azure-rest-api-specs-pr/pull/9319
And these are also approved in Public Repository in the following PR
https://github.com/Azure/azure-rest-api-specs/pull/21765
The Public Repository PR has been accidentally merged by the previous PR owner, so I had to revert and create new one.

@leni-msft can you merge this PR, our service changes are deployed.

/azp run


center_x bug when setting position in Python

I'm trying to layout a widget like this:
    ----------------------------
    |          [IMAGE]         |
    |[.....a label here.......]|
    ----------------------------

Where the image is centered at the top, and the label is centered at the bottom. A sample program is at this gist:
https://gist.github.com/winstonwolff/6356247

Here is a screenshot of the output. Notice that the image is positioned in a different place depending on if I create the Marker widget in the KV file or in Python. In the KV file, the image correctly appears at the center top of the Marker. If setting position by Python, the image is not positioned correctly. I think it has something to do with the reevaluation of Image.top and Image.center_x. When initialized by python, it's evaluating center_x using a size of 100,100, and not reevaluating center_x when the Image.size changes to the texture_size.
By the way, tshirtman took a look at this on IRC.

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

Hello,
I took a look at this issue, and got some interesting information. It seems like the position of the image depends on how it's specified in the KV file.
I've tried to change the order of lines in Image widget with all possible variants: position (center_x and top), size and source.

Two combinations size and source before position (the order between size and source is irrelevant), place the image correctly.
One combination is in the original post - size, then position, then source places the image above the widget.
Three other combinations position before size place the image in the lower left corner of the widget.

You can see them all here:

Here's the gist with code.

@hey-sancho when testing master, were you using pygame or sdl2?

@dessant, I've tried both. However, SDL2 doesn't load the image - log. It just draws the crossed box with widget name in the same wrong place.

I don't know how i didn't see that back then, but for me it's completely normal, the "center" settings doesn't bind on self.size, because it has no way to know it should, if you need that, you should always specify something like:
center: self.size and root.center
so when self.size changes, the rule is evaluated again.
Yes, it would be great if kvlang or the property system could do such thing, but there is currently no support for such logic afaik.
considering the lifetime of the bug while market as important, i'm closing this as wontfix.


API modification: add ability to fetch uniquely named packages; return list of versions available for each

Current Behavior
Right now, the /api/v1/package/ endpoint fetches the packages which are available for the user to install. Currently, I can control the list of packages returned to me by using the appropriate query parameters. For example, if I send a GET to /api/v1/package/?page=1&size=10&distinct_on=name&distinct_on=version&sort_by=name, the response is a list of results which have distinct names and versions:
{
    "count": 109441,
    "data": [
        {
            "build": "py38h9a4a7a8_1",
            "channel_id": 2,
            "id": 101824,
            "license": "MIT",
            "name": "21cmfast",
            "sha256": "383a4dde58ca57811108d44cde454e04d6ac861e77e5f200e8dad803f863d914",
            "summary": "A semi-numerical cosmological simulation code for the 21cm signal",
            "version": "3.0.2"
        },
        {
            "build": "py39h20ed36d_1",
            "channel_id": 2,
            "id": 101833,
            "license": "MIT",
            "name": "21cmfast",
            "sha256": "545806eb2664ead4becc0ab147d54c7d8dbc523cd0b3ce7d7481c99430506c2e",
            "summary": "A semi-numerical cosmological simulation code for the 21cm signal",
            "version": "3.0.3"
        },
        {
            "build": "py36h29bcdb0_0",
            "channel_id": 2,
            "id": 101835,
            "license": "MIT",
            "name": "21cmfast",
            "sha256": "33b624be3076a788e12853df26c19058a37b832dc69839a73378488c0a208788",
            "summary": "A semi-numerical cosmological simulation code for the 21cm signal",
            "version": "3.1.1"
        },
        {
            "build": "py36h29bcdb0_0",
            "channel_id": 2,
            "id": 101839,
            "license": "MIT",
            "name": "21cmfast",
            "sha256": "d8c9436f006009a7bd64b3fde5253a4818f33510a32a036159198dcce7880ddb",
            "summary": "A semi-numerical cosmological simulation code for the 21cm signal",
            "version": "3.1.2"
        },
        {
            "build": "py38ha5b31ff_0",
            "channel_id": 2,
            "id": 324514,
            "license": "MIT",
            "name": "21cmfast",
            "sha256": "4412925b69a7aa627374446eaa4e942c5626732e018e92a2574ea6a9e7d14234",
            "summary": "A semi-numerical cosmological simulation code for the 21cm signal",
            "version": "3.1.3"
        },
        {
            "build": "hbb7d975_1",
            "channel_id": 2,
            "id": 101847,
            "license": "Public Domain",
            "name": "2dfatmic",
            "sha256": "3b80e7812c33f825a20ccec3b8d16655de1b396a3b8dc71844a80c3b2823a9b7",
            "summary": "Two-Dimensional Subsurface Flow, Fate and Transport of Microbes and Chemicals Model",
            "version": "1.0"
        },
        {
            "build": "h618b193_0",
            "channel_id": 2,
            "id": 101850,
            "license": "GPLv2+",
            "name": "4ti2",
            "sha256": "d9f122bbb25d291391f1b4438e556ccee350e2487bde1fd3942d3577dcee8f42",
            "summary": "A software package for algebraic, geometric and combinatorial problems on linear spaces",
            "version": "1.6.9"
        },
        {
            "build": "pyh9f0ad1d_0",
            "channel_id": 2,
            "id": 27962,
            "license": "GPL-3.0-or-later",
            "name": "aadict",
            "sha256": "43e3e090dde8469e2514e1526ea446b9338a2204ffe94e51b51ac404d376447e",
            "summary": "An auto-attribute dict (and a couple of other useful dict functions)",
            "version": "0.2.3"
        },
        {
            "build": "pyhd8ed1ab_0",
            "channel_id": 2,
            "id": 27963,
            "license": "Apache-2.0",
            "name": "aalto-boss",
            "sha256": "86640eb12bba8927475c1356bf6a19211331437c21589da314253c8ffc662098",
            "summary": "Bayesian optimization structure search",
            "version": "1.1"
        },
        {
            "build": "pyhd8ed1ab_0",
            "channel_id": 2,
            "id": 27964,
            "license": "Apache-2.0",
            "name": "aalto-boss",
            "sha256": "cf886fdd2605e679c68a9209e565ca8457d3d17d71a93ce8956cda4d5827d5a9",
            "summary": "Bayesian optimization structure search",
            "version": "1.2"
        }
    ],
    "page": 1,
    "size": 10,
    "status": "ok"
}

For conda-store integration in Gator this is not optimal, because packages can have many versions; for each single fetch request, only a few distinct packages are returned, with most of the results just different versions of the same package.
Proposed behavior
Instead of treating distinctly-versioned packages as separate treat them as a single package, and return a list of installable versions for each uniquely named package:
{
    "count": 109441,
    "data": [
        {
            "channel_id": 2,
            "license": "MIT",
            "name": "21cmfast",
            "summary": "A semi-numerical cosmological simulation code for the 21cm signal",
            "versions": ["3.0.2", "3.0.3", "3.1.1", "3.1.2", "3.1.3"]
        },
        {
            "channel_id": 2,
            "license": "Public Domain",
            "name": "2dfatmic",
            "summary": "Two-Dimensional Subsurface Flow, Fate and Transport of Microbes and Chemicals Model",
            "versions": ["1.0"]
        },
        {
            "channel_id": 2,
            "license": "GPLv2+",
            "name": "4ti2",
            "summary": "A software package for algebraic, geometric and combinatorial problems on linear spaces",
            "versions": ["1.6.9"]
        },
        {
            "channel_id": 2,
            "license": "GPL-3.0-or-later",
            "name": "aadict",
            "summary": "An auto-attribute dict (and a couple of other useful dict functions)",
            "versions": ["0.2.3"]
        },
        {
            "channel_id": 2,
            "license": "Apache-2.0",
            "name": "aalto-boss",
            "summary": "Bayesian optimization structure search",
            "versions": ["1.1", "1.2"]
        },
    ],
    "page": 1,
    "size": 10,
    "status": "ok"
}

I haven't yet worked out the implications for cases where different versions of a package are provided on different channels, or handling different builds, but I just wanted to get the discussion going. I think if the user wants more information about a specific package (individual version information, for example), they can use the search query parameter on the /api/v1/package/ endpoint. This change would greatly improve the user experience for browsing packages with the Gator JupyterLab extension.

Thanks for this issue @peytondmurray. Totally agree that this is an important thing for the conda-store api to return. Thinking of how we would like the api to return results. I like your proposed behavior. Thinking of how this can be done efficiently within a database.

I don't want to forget about this, and I'm interested in trying to implement this. I'll give it a shot this weekend and report back here.

I'm going to give some pushback on this feature. I've been working on implementing it. Suppose the endpoint returns:
{
   license: ...
   name: ...
   channel_id: ...
   summary: ...
   versions: [
         [package_id, version_str],
         ...
   ]
}

A few of my concerns:

what is the endpoint going to be? /package/ is already taken and Id prefer to not add another not totaly orthogonal endpoint.
this is tricky to implement database side (as in sqlalchemy supported by all databases, easy to do for one database but not all) and pagination doesn't mean much if anything here because how should we limit queries? By number of package names? But what if a package has 100+ versions this means the api could return 100*N results.
this can be easily implemented client side

I agree that right now the api is not fast enough making this take awhile. I need to speed up these queries.

Got more color in our meeting today. We will limit the scope to individual packages.
E.g. /api/v1/package/<channel-identifier>/<package-name>

@costrouc is this still valid?

perhaps not - we can close and if needed we can reopen or make a better scoped issue

Yeah I agree on closing this issue. When @pierrotsmnrd significantly improved the performance of the package api I don't think there is as much of a use case. Since you can just normally query the api.


having duplicate keys for any object breaks the linter

for example
apiVersion: apps/v1
kind: Deployment
metadata:
  name: example-nginx
  labels:
    app: example
    component: nginx
spec:
  replicas: 1
  replicas: 1

resolved by #24


Dropping sqlite like telescope-frecency?

Hi,
Recently I saw that telescope-frecency has dropped the sqlite3 requirement, and since this plugin was inspired by that I wonder if it is considered to follow/borrow from it and drop this requirement as well.
I tried telescope-frecency and see it faster to startup as well, however I still like the "smart" search of this plugin.
Thanks for the plugin.

It doesn't have any requirements that are so complex that they would absolutely require it, but sqlite is supposed to be good at querying and sorting, which it does quite well.  I hadn't actually noticed a perceptible delay in opening - at least not one that I could attribute to the persistence mechanism.  And unfortunately, while I'm grateful to telescope-frecency project for inspiration and the initial codebase, this project has evolved so much since then that it wouldn't be trivially easy to pull in that implementation I would imagine.
Even so, having fewer dependencies makes for an easier installation, and if it's true that opening the picker is noticeably faster, that would be good too.  I'd be willing to take a PR for it if anyone's willing to contribute a noticeable performance improvement on that initial popup.  I probably wouldn't be able to contribute this work due to other priorities, but I do respond quickly to PRs
Thanks for the input.


ISLE: Resolve remaining x64 overlap errors

Resolve the remaining isle overlap errors with the x64 backend. For reviewing convenience, each clif instruction that contained overlap errors in its lowering has been broken out into a single commit.

good confirmation that the changes are benign

I spoke too soon actually; it seems that the simd_lane test is failing, but hopefully it's an easy reordering/fix...

good confirmation that the changes are benign

I spoke too soon actually; it seems that the simd_lane test is failing, but hopefully it's an easy reordering/fix...

Yep, I'll make sure to add a filetest once I diagnose the problem :+1:

Fixed in 3b7b4ce4fff71159176b112b86122c45a60a46bf. I was trying to avoid using a priority when I could add a negative assertion on a flag value, but given that the branch I was trying to assert the negation of used an and with two flags, this just wasn't sound: I would need an or here to make it work.

Performance seems pretty unaffected:
Here's a measurement on my laptop (which is admittedly noisy) for compiling the bz2 benchmark:
% hyperfine --runs=100 --warmup=10 --show-output "taskset 0x1 ./target/release/wasmtime compile ../sightglass/benchmarks/bz2/benchmark.wasm"
Benchmark 1: taskset 0x1 ./target/release/wasmtime compile ../sightglass/benchmarks/bz2/benchmark.wasm
  Time (mean ± σ):     102.2 ms ±   1.2 ms    [User: 96.9 ms, System: 5.3 ms]
  Range (min … max):    99.7 ms … 105.1 ms    100 runs

And here's the same measurement on main:
% hyperfine --runs=100 --warmup=10 --show-output "taskset 0x1 ./target/release/wasmtime compile ../sightglass/benchmarks/bz2/benchmark.wasm"
Benchmark 1: taskset 0x1 ./target/release/wasmtime compile ../sightglass/benchmarks/bz2/benchmark.wasm
  Time (mean ± σ):     100.8 ms ±   1.2 ms    [User: 95.1 ms, System: 5.6 ms]
  Range (min … max):    98.9 ms … 103.6 ms    100 runs

I got pretty large variance between individual runs, but both were pretty consistently close.


Routes with query segments don't work

Problem
Creating a route with query segments according to the recipe in the router docs produces errors. The query segment information is not passed on to the receiving component.
impl FromQuery for SearchQuerySegments {
    fn from_query(query: &str) -> Self {
        debug!("from query {:?}", query);
        ...

According to the browser log FromQuery::from_query always gets an empty query string, although the query string was written using Display::fmt.
Steps To Reproduce
Steps to reproduce the behavior:

Use the query segment router demo
Run dx serve and navigate to http://localhost:8080/blog?name=John&surname=Doe
The app will panic at line 53: panicked at 'called Option::unwrap() on a None value'. Because from_query received an empty query string, the query segments were never overwritten.

Environment:

Dioxus version: 0.4 (dioxus-router 0.4.1)
Rust version: 1.72.1, stable
OS info: Linux, Ubuntu
App platform: web

Questionnaire

[x] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

Query segments were fixed in https://github.com/DioxusLabs/dioxus/pull/1406. If you run the example inside of the main repo it should be fixed. You can switch Dioxus to the git version in your Cargo.toml to fix the issue in your own project:
dioxus = { git = "https://github.com/DioxusLabs/dioxus" }


Use array for fullnames in defaults

I'm also faced with issue #155 , and looks like a culprit in my case is  the difference in the full names ([Gmail]/Trash vs [Gmail]/Bin). Probably, it will be better to have multiple options for a possible fullname in the Default module?

Hey @erthalion, thanks for the patch. We do have a workaround for this problem as documented in this wiki. But I guess there are some English UK users for whom we can avoid this additional configuration.

I will release a new version on rubygems in a week.


Improve CI

Fixes #7

~/.cargo was locked to install codesnip in snippet job, and this slowed down workflow.


nixos/lxqt: needs upower

Motivation for this change
Issue #38317
Things done

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

[x] 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 nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

18.03:
[detached HEAD 207b429e4ba] nixos/lxqt: enable upower if config.powerManagement is enabled (#38318)
Author: Tim Engler<EMAIL_ADDRESS>Date: Fri Apr 6 07:49:55 2018 +0000
1 file changed, 2 insertions(+)


Adding Diagnostic Model Example

Earth-2 MIP Pull Request
Description

Closes: https://github.com/NVIDIA/earth2mip/issues/119
Checklist

[ ] I am familiar with the Contributing Guidelines.
[ ] New or existing tests cover these changes.
[ ] The documentation is up to date with these changes.
[ ] The CHANGELOG.md is up to date with these changes.
[ ] An issue is linked to this pull request.

Dependencies

/blossom-ci


Expose index stats for debugging

we want to expose the vector index stats to the user (in python) for debugging purposes:

index name, id, and file location
index type
if ivf_pq: num ivf partitions, num pq sub vectors, num pq bits
if ivf_pq: for each partition, the centroid vector for the partition and the number of vectors in that partition.

on the python side, the api can look like:
dataset.list_index => [Index]
dataset.get_index("name") -> Index
Index should have:

index_type
name
index-id
uri

IvfPqIndex (subclass of Index) should have:

num ivf partitions
num pq sub vectors
num pq bits
each ivf centroid
num vectors in in partition

I will work on this.

This may also be useful for merging indices


Catch up tt-sport-mobile fork from airbnb v0.15.2

When creating this PR, there is a warning "Can't automatically merge", not sure if this indicates that tt-sport-mobile fork/ master has diverted from original fork. Or, it is just a routine warning.

Hello! Still getting emails on this repo apparently :D
Can't merge because of conflicts with AirMapPolyline.java

:D, should kick you out, but, useful to keep you here!

@rops, I've removed you from collaborators' list, you should not be bothered by email alerts now. If you still want to be a collaborator, join back in!


[FEATURE] Basic guardrails for remote model input and output

Is your feature request related to a problem?
LLM may generate biased/impolite/hate outputs. We need to build guardrail to block such result.
What solution would you like?
Add basic guardrail based on stop words and regex. If model input and output contains stop word or regex, will throw exception. This will be released in 2.13.
What alternatives have you considered?
No
Do you have any additional context?
We plan to add guardrail based on other guardrail service and semantic after 2.13.

Can this guardrail be turned on and off by users?

https://github.com/opensearch-project/ml-commons/pull/2209


How to drop partition from the distributed table on clickhouse ?

I made a cluster setup with multiple shards and host a distributed table over the local table on each shard. I want to drop partition on each shard from the distributed table. In documentation, I find the way to drop a partition from the table from the shard but not from the cluster. https://clickhouse.yandex/docs/en/query_language/alter/#alter_drop-partition

Distributed table doesn't store any data itself. You need to drop partitions from underlying tables.
Use ON CLUSTER clause to run the queries across the shards.


增加功能 : 后台和 polygon 出题页面明示输入格式为 markdown 并超链接指路教程

Markdown is preferred over MarkDown. Also for the sake of simplicity [MD语法参考] is much better than [MarkDown 教程 click here]. It’s trivial but I think it’s slightly better.
From: yyym @.>
Sent: Thursday, January 25, 2024 11:54 PM
To: scnu-socoding/scnuoj @.>
Cc: Subscribed @.***>
Subject: [scnu-socoding/scnuoj] 增加功能 : 后台和 polygon 出题页面明示输入格式为 markdown 并超链接指路教程 (PR #151)

You can view, comment on, or merge this pull request online at:
https://github.com/scnu-socoding/scnuoj/pull/151
Commit Summary

be5e505https://github.com/scnu-socoding/scnuoj/pull/151/commits/be5e5058adb74c4323f5d0c30b4851aa00b558fa 增加功能 : 后台和 polygon 出题页面明示输入格式为 markdown 并超链接指路教程

File Changes
(2 fileshttps://github.com/scnu-socoding/scnuoj/pull/151/files)

M modules/polygon/views/problem/_form.phphttps://github.com/scnu-socoding/scnuoj/pull/151/files#diff-94afde9bbd401adcfab87b6651b4228424513696aacbe2248ef6ff7f33bcdf0f (8)
D polygon/config.inihttps://github.com/scnu-socoding/scnuoj/pull/151/files#diff-48229bf78fb271f4215be4e745505eede954def85ec5bd6b7307cb404608f21c (18)

Patch Links:

https://github.com/scnu-socoding/scnuoj/pull/151.patch
https://github.com/scnu-socoding/scnuoj/pull/151.diff

—
Reply to this email directly, view it on GitHubhttps://github.com/scnu-socoding/scnuoj/pull/151, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEPBVSXBDZ2TOJZPXZBN2OTYQJ5YRAVCNFSM6AAAAABCKYGBVGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDANRYGI4TAOI.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>

Also polygon/config.ini is deleted (accidentally), I believe. Might wanna restore it.


Discussion: create a helpers folder

Is it a good idea to create a helpers folder instead of putting helpers into the views folder? Or is this the best way to do it? It might geht a bit cluttered in this folder after some time.

Good thinking. Is there any naming convention for such a folder?

Later


iptables: Fix data race in iptables manager

The haveIp6tables parameter is initially set to true, but its initializiation is completed in the manager Start hook.  That hook is executed in its onw goroutine, while another one runs the iptables reconciler oneshot job. Those two goroutines may run concurrently thus leading to a data race when accessing the haveIp6tables parameter.
Since that parameter enables or disable the support for IPv6 rules, we must enforce an ordering between the two goroutines, specifically we must force the reconciler to wait for the initialization to be completed.
Therefore, use a wait group to force the reconciler to wait for both the ip{4,6}tables wait arguments and haveIp6tables config parameter to be fully initialized.

/test

/test

/test


Swift5

Housekeeping. No source changes were required for Swift 5.

Changing osx_image in .travis.yml might help this build failure.
osx_image: xcode10.2


WorkspaceEdit is incompatible with the protocol

https://github.com/Microsoft/vscode-languageserver-node/blob/master/types/src/main.ts#L366
export interface WorkspaceEdit {
	changes: TextDocumentEdit[];
}

In the protocol it described as follows:
interface WorkspaceEdit {
    /**
     * Holds changes to existing resources.
     */
    changes: { [uri: DocumentUri]: TextEdit[]; };
}

Also asWorkspaceEdit is wrong.
This is cause of the problem in my extension.
It worked on "vscode-languageclient": "^2.6.3", but it doesn't on "vscode-languageclient": "3.0.4".

@dbaeumer https://github.com/Microsoft/vscode-languageserver-node/commit/75c63564a3a678d8fc39dd63117b8e0be645cbe7 seems to have broken the asWorkspaceEdit. This is now a blocker for https://github.com/redhat-developer/vscode-java/issues/99 since we can not move to the 3.x version of the library.

@gorkem I will have a look. I know that we discussed this but I need to refresh my memory.

Reading through the code I remember why we changed this for the 3.0 version of the protocol. The reason was that the old WorkspaceEdit was a map from URI to edit. The problem was that this didn't allow to specify on which version of a document an edit is applicable. This is why we changed this from a map to an array where the TextDocumentEdit contains a textDocument property pointing to a VersionedTextDocumentIdentifier.
I know this is breaking but to support proper version checking when applying text edits this was the best way to go forward. Now users of the protocol have to think about this.
So bottom line is that the spec is incorrect. I will fix this. Would you be able to adopt this?

I am concerned that this will break all the existing implementations, not all clients are able to move as quick.  I think we need a migration path on this. Perhaps we can leave the changes as a deprecated field and use something like edits for the TextDocumentEdit.
I think we should consider https://github.com/Microsoft/language-server-protocol/issues/41 before making changes to WorkspaceEditon the protocol.
The chaps on LSP4J @svenefftinge or @akosyakov can tell how quickly they can respond to such changes. It is pretty quick for jdt.ls once LSP4J has a build with adopting changes

I updated the documentation / spec of the protocol.

The old clients is a fair argument. Addressing this should be done like all the new features in 3.0.x. We should have a client capability property specifying which type of work space edit the client expects together. If the new format is not supported by the client then we should return the old structure. I missed this for this change but did it for all new features for 3.0.x. Don't know why I forgot it here. Will look into this this week.

What I will do is the following. I will declare WorkspaceEdit as follows:
/**
 * A workspace edit represents changes to many resources managed
 * in the workspace. The edit should either provide `changes` or
 * `documentChanges`. If documentChanges are present they are preferred
 * over `changes`.
 */
export interface WorkspaceEdit {
	/**
	 * Holds changes to existing resources.
	 */
	changes?: { [uri: string]: TextEdit[]; };

	/**
	 * An array of `TextDocumentEdit`s to express changes
	 * to specific a specific version of a text document.
	 */
	documentChanges?: TextDocumentEdit[];
}```

and add a ClientCapability:

```ts
	versionedWorkspaceEdit?: boolean;

If set the by the client the server is allowed to send TextDocumentEdit arrays in the property documentChanges.

The correct client capability will look like:
export interface WorkspaceClientCapabilites {
        ...
	/**
	 * Capabilities specific to `WorkspaceEdit`s
	 */
	workspaceEdit?: {
		/**
		 * The client supports versioned document changes in `WorkspaceEdit`s
		 */
		documentChanges?: boolean;
	};
        ...
}

A fix is available on release/3.2.0-alpha.1. Need to review tomorrow and then deliver a next release.

@gorkem lsp4j is updated according to change in the protocol: https://github.com/eclipse/lsp4j/commit/46b8d7a3e57bd70a3edc33e7483da1b8e5112e43

I pushed a 3.2.0-alpha.x version to npm under the next tag in case you want to give it a try.


Use content_id inside OverlayService.find_nodes_close_to_content()

If I'm not misunderstanding things, we should be using content_id instead of content_key to calculate distances in https://github.com/ethereum/trin/blob/d5413c58ec55216f266dd68db0d528bb76eb5e39/trin-core/src/portalnet/overlay_service.rs#L882. Right now this throws an error since we cannot xor two vectors of different lengths (node_id and content_key)
I played around with a couple solutions, but didn't find anything suitably simple. If anybody has some ideas, lmk or feel free to take this on. Otherwise I'll pick this back up asap

It looks like you are right, and that we should be using content_id here. Those naming semantics are kind of confusing. I can take a look.

Also, if I remember correctly, we are operating under the assumption that each overlay network could use a unique distance function. In the same method, it looks like we're enforcing xor for each lookup, but it seems like this is incorrect? (Although functional for the history network which is our primary target. But it seems to me like this should be fixed now rather than later)
https://github.com/ethereum/trin/blob/d5413c58ec55216f266dd68db0d528bb76eb5e39/trin-core/src/portalnet/overlay_service.rs#L887

I agree that we should fix the distance metric now, but I think we can create a separate issue for it, so I created #218.


Traefik is stuck in restarting loop.

I wanted to add an entrypoint, layer7 route, and layer4 route, but traefik would not start up - it was constantly restarting with this repeating in the logs:
Waiting for config to be created ...
Found config: /data/config/traefik.yml
{"level":"error","error":"command traefik error: no configuration found in file: /data/config/traefik.yml","time":"2024-11-04T20:57:14Z","message":"Command error"}

I deleted the entrypoint, layer7 route, and layer4 route and reinstalled, but with the same result.
git bisect told me b3e1bb9495303a7f734e3718bd588751029f9121 is the first bad commit.
It seems likely that you've been getting traefik to work since then, so perhaps some new code doesn't work with my specific configuration. E.g., I noticed that for the new entrypoint, layer7 route, and layer4 route that I created, there is a new "use_https" value, but all my existing entrypoints, layer7 routes, and layer4 routes don't have that value - perhaps a difference in tuples is causing the problem?

We need to see what the traefik config container log says. The template is failing to render, and so I rigged Traefik to abort if it doesn't get a valid config rendered.

Good bisecting skills, told me exactly the problem.


While testing Login feature, pop-up on safari with -> save passwords, Not now

What is your Scenario?
I am using TestCafe for testing simple login feature. While testing on safari every time I enter valid email and password a pop-up open up and the whole test just freeze. The next page doesn't load. I tried seeing any workaround to ignore the pop-up but can't find. Can anyone please help ?
What is the Current behavior?
There are no options to ignore browser pop-ups.
What is the Expected behavior?
If you could please add any options for ignoring browser pop-ups.
What is your public website URL? (or attach your complete example)
N/A
What is your TestCafe test code?
test("verify successful login", async (t) => {
await login.login(${user.base.username}, ${user.base.password});
await t.expect(login.headerUser.innerText).eql(user.base.firstName);

});
Your complete configuration file
No response
Your complete test report
No response
Screenshots

Steps to Reproduce

Use Safari
Any simple login authentication app
Try above code

TestCafe version
1.19.0
Node.js version
16.5.1
Command-line arguments
testcafe safari tests/login.tests.js --reporter html:reports/report.html --speed 0.5 -e
Browser name(s) and version(s)
Version 15.3
Platform(s) and version(s)
No response
Other
No response

Hi @beastjk07,
It looks like there is no command-line Safari option to disable 'Save password' dialog. Try turning off this form using 'Safari Preferences' dialog as described in this StackExchange thread.


Please pay respect to the foreigners who watch the project (check stargazers list, for instance). They feel the same disappointment as if you find some useful code database with comments in Chinese or Korean.


RuntimeError: Invalid device string: 'cuda:0,1'

when I run example MEMLT_llama.ipynb
llama-7b.yaml as follow:
device: 0,1
bug
RuntimeError: Invalid device string: 'cuda:0,1'
Do EasyEdit support multi GPU for training?
I only have 3090 24G,I am very looking forward this support.
thank you

Thank you for your attention. EasyEdit does not currently support multi-GPU editing.

My suggestion is that you can use device_map='auto', using the native model parallel of huggingface. You can refer here(https://huggingface.co/docs/accelerate/usage_guides/big_modeling) for learning device_map.

For example, to edit the llama, you should modify the code here. https://github.com/zjunlp/EasyEdit/blob/main/easyeditor/editors/editor.py#L73

would you give some instructions,this is maybe not a simple coding work.
thank you again!

You should not set it to device: 0,1,2.
When you use device_map, accelerator will automatically assign devices to the model, you need to make sure that the input is on cuda:0. And the variables in the editing process are device consistent.

This is not a small coding process 😊

thank you

If your problem has been resolved, please help close this issue.😊


fix: prevent wrapping mid-statement when generating mock functions

Fixes:

#88

Not sure how to test it, as I believe there aren't tests for the code-generation part itself, just for the whole integrated project in the shared module.
As per KotlinPoet's documentation, it will try to wrap lines at 100 chars. When generating mock functions for interfaces that have a 27-char long name, like NotificationTokenRepository, it will wrap the line after stubUnitsByDefault and bring the equals sign to the line below it.
Using · instead of space will tell KotlinPoet to not wrap that space.
I tested locally by doing this:
class WrappingCodeGenerationTests {

    /**
     * Interfaces with a 27-long character can cause unintentional wrapping when generating code
     */
    @Mock
    val aMock = configure(mock(classOf<InterfaceWithANameThatWraps>())) {
        stubsUnitByDefault = true
    }

    @Test
    fun wrappingCodeGenerationTest() {
        aMock.hello()
    }
}

I see this was now implemented in:

https://github.com/mockative/mockative/pull/94

So, I'm closing the PR


move ember-data to devDeps bc it forces latest on app

This was breaking web-directory when we pick up the latest versions (^3.2.1).  When you put a package in "dependencies" it pushes the provided version onto consuming apps.  In the case of web-directory, we want it to be ~2.14, but since this dependency is ^2.12, it was causing web directory to pick up version 2.15 (latest), causing a breaking change in the app. If you move to devDependencies it lets the consuming app to control the version.

@toddjordan can you do a minor version bump and then I'll merge?


Create twitter listener to forward tweets to other networks

I want to create a listener module/core_module/integration (whichever will be the best solution) to be always listening for tweets from specific people or tags and forward them to a specific facebook group chat or all group chats
Any pointers? Ideas?

Curently that isnt very easy to do given how disconnected a module and an integration are. The simplest solution to the problem (until someone works out how to make it easier without rewriting a bunch of things) is to have a module which accepts some kind of register command.
When the register command is received it saves a handle to the api and thread objects, allowing you to forward as you desire.

Is it possible to instruct the module to forward the thread data to the desired integration without manually prompting it through that integration?
Alternatively, running two bots at once using a shared storage could solve the issue.

Currently no. Which is the reason for suggesting a registration like command above.
I want to deal with this problem cause it is useful functionality and is one of the reasons we don't currently have a way to loopback. Part of the problem is that it would require modification of each existing integration to fix (which already needs to be done for other reasons such as getUsers) which is time consuming.

I see then it'd be faster to just open twitter than manually prompting the bot for it.
Does this functionality goes in 4.0 milestone or do we have different plans for that?

4.0 would be a conservative estimate.

Technically resolved by the unstable APIs api.sendMessageToMultiple and exports.platform.getApis() from https://github.com/concierge/Kassy/commit/573909343333724779a08d9b2b687411d45f03fb

Awesome thanks!


Dropdown does not disappear if used with modal window

I have simple dropdown that opens modal window if menu link is clicked. All works fine except dropdown context menu does not disappear after item is clicked, only when you click on modal window context menu would disappear.
here is example code:

    Action

 Edit

Here how does it look:

I meet the same problem and can't find a way to let the dropdown menu items disappear automaticly, any update for this?

Clearly, if there's been no activity in this 3 year old closed issue, and no changes to the contrary in our documentation...the advice remains the same: once you do custom things like this, you'll need to add your own specific handling code yourself.


Visual Improvement: Blast and coin collect effects added to the game.

Blast and coin collect effects created using animating effects package.

Merging this PR to accommodate significant changes, expecting required changes in future PRs.

Can't replicate the highscore score, will need more info on that
1v1:
split screen is difficult to implement.
if they overlap at the point where coin collides, player 1 will get the coin
we can add some collision system later
when player 1 dies, it will show player 2 won. winner's points is the highscore
Infinite:
score at end = score+time survived
Hardcore:
score = time * some factor
AI is done
Heist:
you loose if you miss X coins continuously. I'm still testing what should be X.
Collision from sides is a bit complex, add that as an issue, i can do that later.


Option usage triggers error "This is an usual custom case for dynamic nodes. We don't know how to handle it yet."

Problem
I'm displaying a dynamic Option in rsx covered by a use_state bool. When the state changes, it triggers a todo! block and panics with error "This is an usual custom case for dynamic nodes. We don't know how to handle it yet."
https://github.com/DioxusLabs/dioxus/blob/970c43702ecd6dbcb8ee858472afd17898b8724f/packages/core/src/diff.rs#L172C18-L172C111
Steps To Reproduce
Running the following with dioxus serve and press the "toggle me" checkbox to trigger a crash:
use dioxus::prelude::*;

fn under_test(cx: Scope) -> Element {
    let toggle = use_state(cx, || false);
    let val = if *toggle.get() {
        Some("Hello world")
    } else {
        None
    };
    cx.render(rsx! {
        label {
            input {
                r#type: "checkbox",
                checked: *toggle.get(),
                oninput: move |evt| toggle.set(evt.value != "false")
            }
            "Toggle me"
        }
        p { val }
    })
}

fn main() {
    wasm_logger::init(wasm_logger::Config::new(log::Level::Info));
    dioxus_web::launch(under_test);
}

Expected behavior
Checkbox should be toggled and "Hello world" displayed below it.
Environment:

Dioxus version: 0.3.2 and master
Rust version: rustc 1.70.0 (90c541806 2023-05-31)
OS info: Linux / NixOS
App platform: web

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

Similar repros here, one of them doesn't involve (an explicit) Option: https://github.com/valyagolev/dioxus-bug/blob/master/src/app.rs

Unterminated if statements will automatically get turned into an option:
if *m.get() {
    " why"
}

Turns into:
if *m.get() {
    Some(" why")
}
else {
    None
}

Updated reproduction for the main branch of dioxus:
use dioxus::prelude::*;

fn main() {
    launch(app);
}

fn app() -> Element {
    let mut toggle = use_signal(|| false);
    let val = if toggle() { Some("Hello world") } else { None };
    rsx! {
        label {
            input {
                r#type: "checkbox",
                checked: toggle(),
                oninput: move |evt| toggle.set(evt.value() != "false")
            }
            "Toggle me"
        }
        p { {val} }
    }
}

https://github.com/DioxusLabs/dioxus/pull/2799 handles the general case of this and we now fuzz swapping out dynamic nodes


Prototype potential fixes for known issues with conditional reveals

What
Prototype the following potential fixes:

Give radios / checkboxes that reveal content additional affordances (e.g. suffixing the label with '…')
Move conditionally revealed content after fieldset…?
Add 'Selecting an option reveals additional questions' to hint
What if we used a button and aria-pressed instead?
What if we used... fake radios and checkboxes?

And any other ideas we come up with.
Why
To understand if they improve accessibility.
Who needs to know about this
Designer, Developer, Content Designer, however anyone can get involved if they have ideas.
Further detail
Helps resolve the following issues:
#979
#1972
#1988
#1989
Done when

[x] Prototype hint text with 'Selecting an option reveals additional questions'
[x] Prototype hidden text to explain that something will expand
[x] Prototype the revealed content outside of the fieldset
[ ] Explore guard question pattern
[ ] Book in a time for show & tell to playback findings

Going to find a time to play this back as it's been a little tight to do it for today's show and tell (27 April 2021)

Note to prototype hidden text in radio and checbox labels.


swiper and fancybox3 - bug with slidesPerView="auto" - lost navigation buttons

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Swiper Version: 4.5.0 (and previous versions), Fancybox 3.5.6

Tested in Win Chrome, Win Firefox

https://jsfiddle.net/volly_imnetz/4aj51ehf/14/

What you did
I added linked images to the swiper slider. On click the images will be open in an fancybox-lightbox-group. When i move through the fancybox group some items (4-5 items) and then close the lightbox, the swiper navigation buttons disapear.
Expected Behavior
The swiper navigation buttons are still visible after the fancybox close. The swiper do not need to update its position. The swiper should be fully functional.
Actual Behavior
The swiper updates the slide-position. After that the .swiper-wraper seems to not work correctly (no visible hight-width when inspected in chrome dev). The navigation buttons are not visible. The slider do not work as intended (touch wont work correct).

Hi,
fancybox places focus back on corresponding trigger element after closing the instance (for accessibility) by default, but that can cause problems with sliders like swiper. So, try disabling that feature like this:
$('[data-fancybox="group1"]').fancybox({
   backFocus : false
});

@fancyapps thank you very much for the support. Worked perfect.


add extra box description flow chart

Hey Pat
As requested the change that you wanted.  I'm not sure why the image is a little smaller.  The quality should still be there though.
Let me know if this is good enough or if you need another change.

thanks


Build fail as consequence of updating rust skia [Windows]

This is still speculative. The Windows build workflow is running into this error after upgrading my dependencies in this branch https://github.com/j4qfrost/neovide/commit/55a98495f6db2d801b8bc3e49cec2de1e8e904a3
Caused by:
  failed to stat 'C:/Users/runneradmin/.cargo/git/checkouts/rust-skia-35c6c5f9d522ea9f/133682d/skia-bindings/skia/infra/bots/recipe_modules/flavor/examples/full.expected/Test-Ubuntu18-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41.json': The filename or extension is too long.

Yeah thats not good... This should probably be raised upstream. Windows path limits are a thing that cross platform libraries need to pay attention to

Solved, https://github.com/Kethku/neovide/pull/265


[Feature] Allow search Simple Icons on Profiles

Is there an existing issue for this feature?

[X] Yes, I have searched the existing issues and it doesn't exist.

Feature Description
Currently, the Simple Icons input will send a request to cdn.simpleicons.org every time press the key. It's not a good practice sending too many 404 requests.
It would be good to create a searchable dropdown for showing all icons. Here is a similar thing: https://litomore.github.io/simple-icons-figma/. And it's source code is at https://github.com/LitoMore/simple-icons-figma
We could update the UI to use a Popover on the icon and remove the input field.

@AmruthPillai .. will it be fine .. if i implement debouncing for this issue ?? if yes then please assign this issue to me

Honestly, for the sake of quicker reactivity, it's fine to hit a few 404s before reaching the correct URL. There's no harm in this.

There are bunch of requests on this UI. And it's consuming the Vercel resource of https://github.com/LitoMore/simple-icon-cdn rapidly. You may reach the rate limit in a short time.
Better to use a debounce for web requests to keep your stability.

@LitoMore Ah, I'm sorry. I had no idea that you were one of the maintainers of Simple Icons. Has this app caused so much of a hassle for you guys at Simple Icons? Just surprised by the reach is all. So sorry about that. Thank you so much for all your work with maintaining the icon library. Hope it's not been too much trouble.
If it's okay to share, I'd be curious to know how much of the traffic on Vercel for the CDN was from rxresu.me?
@Rash-Hit Feel free to come up with a solution for debouncing the requests made to the Simple Icons CDN. (300-400 ms should do, I think). Will assign the ticket to you :)

If it's okay to share, I'd be curious to know how much of the traffic on Vercel for the CDN was from rxresu.me?

I can't see this due to we're using Vercel's free plan.
BTW, I can help to create a dropdown for your when I have time. So that users can preview icons in a list.

@AmruthPillai migrations command not working , can you please help ??

@Rash-Hit Please check if your step 4 is correct.
See https://github.com/AmruthPillai/Reactive-Resume/blob/main/CONTRIBUTING.md#4-fire-up-all-the-required-services-through-docker-compose

@LitoMore , yes containers are up and running

@Rash-Hit Alright. Then we may need @AmruthPillai to help out.

@Rash-Hit It looks like your Postgres is not reachable from the server. Do you have the same env variables set up on the compose file and the .env file?

@AmruthPillai sir i have changed the postgres url . migrations are working .. but now facing some issues regarding proxies ..

@AmruthPillai @LitoMore
i think there is some issue with my machine , i've tried with codespaces and its working fine


Copy button without frame

This is less of an issue and more of a query.
Is it possible to have the copy button but disable frames? When I disable frames the copy button no longer appears ..
Thanks

Hello @geerew and welcome!
By default, frames are only displayed either when the code block has a title (= leads to a code editor frame being displayed), or when it uses a terminal language (= leads to a terminal window frame being displayed). I assume in your case that you're using a terminal language and don't want the terminal window style to appear?
If so, you can add the attribute frame="none" to the end of the opening code fence line like this:
```bash frame="none"
echo "This is not rendered as a terminal despite using the bash language"
```

This will get displayed like this, with a working copy button:

Does this solve your issue?

This is a perfect solution. Thank you


Cellular modem API development

Introduction
We need a device driver API to configure and control cellular modems. This RFC will list every individual feature the API should cover, documenting the requirements and rationale behind every individual feature. This RFC will then be used to track the development of each individual features development, which should be in large part developed in parallel driven by a variation of developers.
Cellular modem API progress overview
The following tasks indicate whether a feature has been successfully implemented or not.

[ ] Setting network credentials (PIN, PUK, APN, ...)
[ ] Getting network signal quality
[ ] Getting network status (searching, registered, roaming)
[ ] Setting radio access technologies (LTE, NB-IOT, used bands, ...)
[ ] Getting supported radio access technologies and bands
[ ] Getting modem properties (IMEI, IMSI)
[ ] Configuring power saving
[ ] Asynchronous Event Callbacks

Cellular modem API documentation
Each individual feature is described in detail here
Setting network credentials
Assignee: Unassigned
PR: None
Getting network signal quality
Assignee: Unassigned
PR: None
Getting network status
Assignee: Unassigned
PR: None
Setting radio access technologies
Assignee: Unassigned
PR: None
Getting supported radio access technologies and bands
Assignee: Unassigned
PR: None
Getting modem properties
Assignee: Unassigned
PR: None
Status summary
The RFC is at this point only an initial proposal to which features we should implement, and what they should cover. Everything is open to change, and no actual work has begun.
The first step will be to discuss which features we should to cover to which degree :)

Looking forward to these improvements! :)
I'm interested in switching firmwares using the AT#FWSWITCH command for use with eSIM. In the USA there's often multiple carrier firmwares in a modem for different provider requirements: (AT&T/Verizon/Global)
Maybe this would be part of Setting Radio Access Technologies, or maybe a new category is more appropriate.
Probably could find some time to work on it once something is defined, or with some guidance.
Also maybe a category for HW Settings such as Flow Control, Baud, etc.

Very much looking forward to that and willing to help.
Small input from my side, in the "Getting modem properties" part, I think these should be included:

Modem IMEI (AT+CGSN)
Modem ID (AT+CGMM)
Modem manufacturer (AT+CGMI)
Modem FW version (AT+CGMR)
SIM card IMSI (AT+CIMI)
SIM card ICCID (AT+QCCID)

Personally I think adopting something like this functionality for Wi-Fi would be a nice benefit. There's different protocols (ex. custom AT cmds), interfaces (SPI/UART/SDIO/USB), features (ex. co-existence) that may be similar across wi-fi vendors but are subtly different.


Product, item and batch naming

ProductObject should be renamed Item
...

Check synonyms in comments and labels.

double check when looking at ISO standards


ensureConcluded fails when channel has been progressed to final

Location: backend/eth/conclude, contracts/Adjudicator.sol
Problem: When a channel has been force-update on-chain into a final state, the participants will not have fully signed states. Now, when calling ensureConcluded, it will call concludeFinal, which expects a fully-signed state and thus fails.
Idea: If a channel has been force-updated into final, the client should call conclude instead of concludeFinal, because conclude does not require signatures. The client must be able to detect whether a channel is in a final state on-chain. Usually, we indicate that by setting phase = CONCLUDED. Hence, I suggest that we change the contract such that if a state is force-updated to final, we automatically set phase = CONCLUDED.
Update: We can also apply a quick fix that doesn't require a change in the contracts. We can check whether the current on-chain phase is FORCE_EXECUTION. If this is the case, we know that the state resulted from force execution, which means we do not have the all signatures and need to call conclude instead of concludeFinal.

How did you detect this? Do you plan on adding a test for this case?
@matthiasgeihs

While working on the app-channel example.
It would probably make sense to add a test case, yes.

@matthiasgeihs On a related note, did you try concluding an app channel which

is not finalized.
has no on-chain progressions.

From my understanding, this would always fail. Because, timeout will be reset in line 402 of Adjudicator.sol, condition in line 405 will not be met, causing the call to fail.


[AST] ast_wrapper should be removed from design

@tjaychen
Since ast is comportable, the ast_wrapper can be removed.
ast_wrapper_pkg content should be placed elsewhere

this is done.


LEGO® Ninjago™: Shadow of Ronin [PCSE00534]

App summary

App name: LEGO® Ninjago™: Shadow of Ronin
App serial: PCSE00534
App version: 1.00

Vita3K summary

Version: v7
Build number: ?
Commit hash: https://github.com/vita3k/vita3k/commit/[commit]
CPU backend: Dynarmic
GPU backend:  Vulkan

Test environment summary

Tested by: TheSonicFan8764☆
OS: Windows 10
CPU: AMD Ryzen 5
GPU: Nvida 3060
RAM: 8Go

Issues

-Music problem :
[The Music gives off a sound that hurts the ears ]
-Cinematics problem :
[ the Cinematics is not displayed  *except at certain times, but the voices and the subtitle are also displayed ]
-The Ninjago map does not appear correctly :
[ The map is not complete there are a lot missing part
such as Buildings and the addition of some lag while navigating in the map ]
Screenshots

Log
Recommended labels
https://github.com/Vita3K/compatibility/labels/graphics bug
https://github.com/Vita3K/compatibility/labels/audio bug
https://github.com/Vita3K/compatibility/labels/Playable

ur issue is duplicate, see https://github.com/Vita3K/compatibility/issues/753

ur issue is duplicate, see https://github.com/Vita3K/compatibility/issues/753

Hello !
yes i know there is already an issue for this game .
but I only do the test for the new version of Vita3k to see the progress .


Releasedocs 1.9.x

There's a bunch of stuff here, but the key element is the new "whatsnew/1.9.rst".
I added a bunch of extra whatsnew entries, which I thought was easier handled if I created extra individual contributions files (whatsnew/contributions_1.9/*.txt).  So you can scan those below.
However, those are now superceded by the edited "1.9.rst" - manual changes seen in https://github.com/SciTools/iris/commit/836f588e94bcdac1543c3b76ff659ae9607d8b3a
I also modded a couple of  __all__ properties to make additional routines visible.

I confirmed the fileformats ones with the originator (see https://github.com/SciTools/iris/pull/1659)
iris.analysis.WPERCENTILE I assumed was just an obvious omission.

@marqh any interest here ?

ll the contents look fine to me
my only question is whether we should remove 1.9 contributions and its contents, now that it has been aggregated into the what's new, ready for publishing.
I'm tempted to say we should, then it's clear that there is a single source.
I'm content for this to be a separate PR, if that's more useful

whether we should remove 1.9 contributions and its contents

I've struggled with that, too.
On the one hand, the implementation of whatsnew/aggregate_directory.py implies that this was not originally intended, as it specifically allows to operate on specific versions which may stand side-by-side.
On the other hand, the info is subsumed in the new whatsnew section, and is now effectively obsolete, so what is the point of keeping it?
I am leaning towards clearing it out  now...
Unless anyone else want to make a case for keeping it ? (@mo-g ?)
If we do decide to do this, I'd rather make it a separate PR I think.

If we do decide to do this, I'd rather make it a separate PR I think.

ok by me


No Auth Provider found for name "oidc"

I use the IBM Kubernetes Service public cloud.
I invoked istio-vet like this:
docker run --rm -v ~/.bluemix/plugins/container-service/clusters/istio-test-paid3/kube-config-dal13-istio-test-paid3.yml:/root/.kube/config -v ~/.bluemix/plugins/container-service/clusters/istio-test-paid3/ca-dal13-istio-test-paid3.pem:/root/.kube/ca-dal13-istio-test-paid3.pem quay.io/aspenmesh/istio-vet:master

This failed with the message No Auth Provider found for name "oidc".  The reason is that my configuration uses
users:
- name<EMAIL_ADDRESS>  user:
    auth-provider:
      name: oidc
      config:
        client-id: kube
        client-secret: kube
        id-token: <10 lines of token code>

I was curious to see if I could build istio-vet locally to get around this problem.  Unfortunately go get didn't succeed so I was unable to try.
go get
# github.com/aspenmesh/istio-vet/pkg/meshclient
../../pkg/meshclient/client.go:61:30: cannot use flags (type *"github.com/spf13/pflag".FlagSet) as type *"k8s.io/client-go/vendor/github.com/spf13/pflag".FlagSet in argument to clientcmd.BindOverrideFlags

Thanks @esnible for filing this issue.
I will take a look as to why local builds are broken and will fix it. We haven't tested the image with a kubeconfig with an oidc provider, we might need to update our kube config resolver logic to address it.

Figured out the issue with local builds, we use dep for dependency management and don't check-in the vendor directory, so you cannot use go get. Here are the steps to build istio-vet locally:
  dep ensure --vendor-only
  make

For running locally:
   KUBECONFIG=<> $GOPATH/bin/vet

I was able to get this working.
First I added _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" to the imports in pkg/vet/cmd/vet.go. (As suggested by https://github.com/kubernetes/client-go/issues/345 )
I re-ran the dep ensure.  I repeated make and vet worked.

This is great, feel free to submit a PR. If you're busy I can do it as you have already provided the code changes needed.


Shortcut Key

Hello. How Can I add a shortcut key
for example
ctrl+ alt + shift + H = Hello This is a shortcut key example

I guess currently we don't support customizing shortcut key. I was writing an extension on this. I will update once I publish that.

@navch Thanks


Gatsby build  ERROR #98123  WEBPACK Generating JavaScript bundles failed

Hi Folks!
gatsby newb here ^^
i am currently working on a gatsby site... in development everything works fine but when i try to build it's throwing this error and i can't even figure out where it could be coming from :(
`
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
styles.4fb9bf79ef56fd3e22c1.css from Css Minimizer
/Users/philos/Documents/_PROJECTS/APPs/projectFolder/styles.4fb9bf79ef56fd3e22c1.css:139:5: Unknown word [styles.4fb9bf79ef56fd3e22c1.css:139,5]
at Input.error (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/input.js:128:16)
at Parser.unknownWord (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/parser.js:561:22)
at Parser.other (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/parser.js:166:12)
at Parser.parse (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/parser.js:75:16)
at parse (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/parse.js:17:12)
at new LazyResult (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/lazy-result.js:64:16)
at Processor. (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/processor.js:142:12)
at Processor.process (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/processor.js:121:23)
at Function.creator.process (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/cssnano/node_modules/postcss/lib/postcss.js:148:43)
at minify (/Users/philos/Documents/_PROJECTS/APPs/projectFolder/node_modules/css-minimizer-webpack-plugin/dist/minify.js:102:32)`
its building when i comment out the react-slick css files...
import "slick-carousel/slick/slick.css" import "slick-carousel/slick/slick-theme.css"
hope somebody can help!
thanks in advance and have a great day!

Do you have "slick-carousel"  in dependencies list of package.json?

@akiran yes i have  "slick-carousel": "^1.8.1"

i commented out all imports in the specific components and added the css like this.. in the index.js .. working for now!
but i don't know if this should be the way to go..
  <Helmet>         <link           rel="stylesheet"           type="text/css"           charset="UTF-8"           href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"         />         <link           rel="stylesheet"           type="text/css"           href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"         />       </Helmet>


Update run.py

Hey this is a new PR

Qovery can create a Preview Environment for this PR.
To trigger its creation, please post a comment with one of the following command.

Command
Blueprint environment

/qovery  preview c500db60-9626-4178-ac55-3e7ef66fb3f1
david-env--2

/qovery  preview d9b7b17e-2b12-4f2e-aa62-4645c4e74c4f
blueprint-x

/qovery  preview 94922854-5b01-4e2e-af72-6db4bfc1e6fc
test-3

/qovery  preview 6ec46edb-7f37-4146-b00c-f59c3f21d1cc
niall-env

/qovery  preview 5981bcb2-b865-4fee-be8c-e3241c8e26b5
blueprint-x-clone

/qovery  preview f3832ecb-d861-4d90-a969-2896a0030123
pascal-env

/qovery  preview {all|UUID1,UUID2,...}
To preview multiple environments

This comment has been generated from Qovery AI :robot:.
Below, a word from its wisdom :

Don’t Sacrifice Readability, you are going to debug it in 6 months

/qovery preview d9b7b17e-2b12-4f2e-aa62-4645c4e74c4f

A preview environment was automatically created via Qovery.
Click on the link below to follow its deployment and use it.
:point_right: [PR] blueprint-x - Update run.py - 2024-01-19T16:03:02Z
Another comment will be posted when deployments are terminated

Your preview environment failed to be deployed !
Click on the link below to check the deployment logs.
:point_right: [PR] blueprint-x - Update run.py - 2024-01-19T16:03:02Z


Jupyter output for RichHandler/Logging formatted strangely

Thank you for building this great package. I'm trying to see if we can use the RichHandler as our logging handler. A lot of our users use jupyter notebooks to run code.
I noticed that the formatting has a lot of spacing peculiarities in jupyter (e.g., text looks big and vertical spacing between lines is large)
I also tried setting my own Console with force_terminal=True and found that these lines are the likely culprit for the strange formatting
https://github.com/willmcgugan/rich/blob/a47bf8b66eebc65dc115400e018678f61f30266c/rich/console.py#L336-L339
as force_terminal=True has no impact here.
Another caveat is that the formatting had no color in Google Colab unless I set force_terminal=True. Colab has a custom config of jupyter notebooks and perhaps has a stdout console?
For reference, this is what I had to do to get the spacing to look good in a local jupyter notebook. The result of this is good spacing, but weird colors.
Below is the default before my changes:

and after changes:

Can you post a screenshot of the output?

Just edited with a screenshot!

What happens if you widen your browser?

Nothing, I have a really wide display. Also, the Colab issue is slightly orthogonal to this one, and perhaps requires a different check

There are two things going on there.
Jupyter is capable of converting ansi color codes in to HTML, but Rich opts to use its own HTML export because it can prevent the output from wrapping. If you have something like a table, where the formatting must be on a grid, you don't want the browser word wrapping and breaking output. This explains the difference in colors / font size, as Rich choses different defaults.
When writing HTML in this way, Jupyter adds a padding around the output, which explains the spacing between the lines.
You may be able to reduce the spacing between the lines by using a shared Console instance as a context manager, which ensures the output is written in once chunk. Something like this:
from rich import get_console()
with get_console():
    log.info("working")
    do_work()
    log.info("done")

I can't speak for Google colab, I've never used it. But it does suggest that the api is not quite the same as Jupyter and its not using Rich's Jupyter support. You might want to try using force_jupyter=True.
By not using Jupyter support, colab will be converting the ansi color codes itself. It might look ok, but may break formatting in some cases. Especially if you resize the browser window to be a bit smaller.


Error when running 2 models of different languages (en, es) in same web server

Rasa NLU version (e.g. 0.7.3): 0.11.2
Used backend / pipeline (mitie, spacy_sklearn, ...): ["nlp_spacy", "tokenizer_spacy", "intent_entity_featurizer_regex", "intent_featurizer_spacy", "ner_crf", "ner_synonyms", "ner_duckling", "ner_spacy", "intent_classifier_sklearn"]
Operating system (windows, osx, ...): osx
Issue:
I've been using Rasa in a production app for about a year now. Excellent project. I've recently attempted to add support for a Spanish-language model, and am running into an issue. I have trained two separate models and am hosting them in the same web server via python -m rasa_nlu.server -c /app/config.json.
When I query the /parse endpoint for the Spanish language model (http://localhost:5000/parse?project=amber-es&q=Encuentra%20un%20proveedor%20de%20PCP%20llamado%20Doctor%20Jones%20cerca%20de%20Spokane,%20WA) it works fine and I get the expected result ( a well-formed intent). If I then query the English-language model (http://localhost:5000/parse?project=amber&q=Find%20a%20pcp%20named%20jones%20in%20clayton,%20mo), this also works fine (after a delay while it loads up the components).
If I then return to the same Spanish-language model (same query as above) I receive the following error in the browser:
{
  error: "shapes (13,300) and (50,128) not aligned: 300 (dim 1) != 50 (dim 0)"
}

and stacktrace:
rasa_1                                 | ERROR:__main__:shapes (13,300) and (50,128) not aligned: 300 (dim 1) != 50 (dim 0)
rasa_1                                 | Traceback (most recent call last):
rasa_1                                 |   File "/app/rasa_nlu/server.py", line 157, in parse_get
rasa_1                                 |     else threads.deferToThread(self.data_router.parse, data))
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext
rasa_1                                 |     result = inContext.theWork()
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
rasa_1                                 |     inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
rasa_1                                 |     return self.currentContext().callWithContext(ctx, func, *args, **kw)
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
rasa_1                                 |     return func(*args,**kw)
rasa_1                                 |   File "rasa_nlu/data_router.py", line 164, in parse
rasa_1                                 |     response, used_model = self.project_store[project].parse(data['text'], data.get('time', None), model)
rasa_1                                 |   File "rasa_nlu/project.py", line 77, in parse
rasa_1                                 |     response = self._models[model_name].parse(text, time)
rasa_1                                 |   File "rasa_nlu/model.py", line 295, in parse
rasa_1                                 |     component.process(message, **self.context)
rasa_1                                 |   File "rasa_nlu/utils/spacy_utils.py", line 82, in process
rasa_1                                 |     message.set("spacy_doc", self.nlp(message.text.lower()))
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/spacy/language.py", line 333, in __call__
rasa_1                                 |     doc = proc(doc)
rasa_1                                 |   File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
rasa_1                                 |   File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/thinc/neural/_classes/model.py", line 161, in __call__
rasa_1                                 |     return self.predict(x)
rasa_1                                 |   File "/usr/local/lib/python2.7/site-packages/thinc/api.py", line 55, in predict
...

It's as if loading the English-language model is overwriting a shared Spacy component which is then being used for the Spanish model as well.
This seems like it should be a supported use case (according to the docs), and I can confirm this works in 0.10.6.
Content of configuration file (if used & relevant):
config.en.json
{
  "project": "amber",
  "spacy_model_name": "en",
  "fixed_model_name": "en",
  "pipeline": ["nlp_spacy", "tokenizer_spacy", "intent_entity_featurizer_regex", "intent_featurizer_spacy", "ner_crf", "ner_synonyms", "ner_duckling", "ner_spacy", "intent_classifier_sklearn"],
  "path" : "./models",
  "language": "en",
  "data" : "./data/amber/training_data.json"
}

config.es.json
{
  "project": "amber",
  "spacy_model_name": "es",
  "fixed_model_name": "es",
  "pipeline": ["nlp_spacy", "tokenizer_spacy", "intent_entity_featurizer_regex", "intent_featurizer_spacy", "ner_crf", "ner_synonyms", "ner_duckling", "ner_spacy", "intent_classifier_sklearn"],
  "path" : "./models",
  "language": "es",
  "data" : "./data/amber/training_data_es.json"
}

Thanks a lot, let me try to reproduce this locally. Which models did you use, the default models for en and es?

Can you post the output for both, python -m spacy info es and python -m spacy info en

I used the default en model.  For es I used python -m spacy download es_core_news_md && python -m spacy link es_core_news_md es.
Results of spacy info below:
/app # python -m spacy info en

    Info about model en

    lang               en
    pipeline           [u'tagger', u'parser', u'ner']
    name               core_web_md
    license            CC BY-SA 3.0
    author             Explosion AI
    url                https://explosion.ai
    description        English multi-task CNN trained on OntoNotes, with GloVe vectors trained on Common Crawl. Assigns word vectors, context-specific token vectors, POS tags, dependency parse and named entities.
    vectors            {u'keys': 684830, u'width': 300, u'vectors': 20000}
    sources            [u'OntoNotes 5', u'Common Crawl']
    version            2.0.0
    link               /usr/local/lib/python2.7/site-packages/spacy/data/en
    source             /usr/local/lib/python2.7/site-packages/en_core_web_md
    spacy_version      >=2.0.0
    parent_package     spacy
    speed              {u'gpu': None, u'nwords': 291344, u'cpu': 4532.930431222}
    email<EMAIL_ADDRESS>    accuracy           {u'token_acc': 99.8609203297, u'ents_p': 85.6222222222, u'ents_r': 86.1342424412, u'uas': 91.7226238412, u'tags_acc': 97.1103903351, u'ents_f': 85.8774691444, u'las': 89.838878402}

/app # python -m spacy info es

    Info about model es

    lang               es
    pipeline           [u'tagger', u'parser', u'ner']
    accuracy           {u'token_acc': 100.0, u'ents_p': 89.2946381027, u'ents_r': 88.7348882647, u'uas': 90.2078828119, u'tags_acc': 97.0814925316, u'ents_f': 89.0138832176, u'las': 87.2390598003}
    name               core_news_md
    license            GPL
    author             Explosion AI
    url                https://explosion.ai
    notes              Because the model is trained on Wikipedia, it may perform inconsistently on many genres, such as social media text. The NER accuracy refers to the "silver standard" annotations in the WikiNER corpus. Accuracy on these annotations tends to be higher than correct human annotations.
    vectors            {u'keys': 533736, u'width': 50, u'vectors': 20000}
    sources            [u'AnCora', u'Wikipedia']
    version            2.0.0
    link               /usr/local/lib/python2.7/site-packages/spacy/data/es
    source             /usr/local/lib/python2.7/site-packages/es_core_news_md
    spacy_version      >=2.0.0a18
    parent_package     spacy
    email<EMAIL_ADDRESS>    description        Spanish multi-task CNN trained on the AnCora and WikiNER corpus. Assigns context-specific token vectors, POS tags, dependency parse and named entities. Supports identification of PER, LOC, ORG and MISC entities.

This is a known bug in spacy 2.0 - they are on it fixing it. https://github.com/explosion/spaCy/issues/1660

There is nothing to do here but to wait for the above mentioned issue on the spacy project to be fixed.

@tmbo - there has been little movement on the the spaCy ticket that's the underlying cause of this issue.  Do you know if spaCy 2.0 a hard requirement for Rasa NLU > 0.11, or is there an opportunity to continue to use spaCy 1.8?

@gregfitz23 I think you should be fine using an older spacy version

Thanks @tmbo, I'll try it out.


a2dp_sink not working when set to DAC (IDFGH-3117)

Environment

Development Kit: ESP32-Wrover-Kit
Kit version: not sure where to get this
Module or chip used:  ESP32-WROOM-32
IDF version: v4.2-dev-1126-gd85d3d969
Build System:   idf.py
Compiler version: (crosstool-NG esp-2020r1) 8.2.0
Operating System: Windows
(Windows only) environment type: MSYS2 mingw32
Using an IDE?: No
Power Supply: USB

Problem Description
I can't get the a2dp_sink to work in DAC mode. As soon as you try so play sound, it crashes. I also tried V3.3.2, but it doesn't include volume control which would be ideal.
Expected Behavior
It should play something through my amplifier circuit
Actual Behavior
Device crashes
Steps to reproduce
I followed the steps contained in the README, and set it to DAC mode, but as soon as you want to play sound it crashes
Code to reproduce this issue
Using standard example
Debug Logs
W (21191) BT_APPL: new conn_srvc id:19, app_id:1
I (21201) BT_AV: A2DP audio state: Started
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4012283e  PS      : 0x00060530  A0      : 0x800d510c  A1      : 0x3ffd26c0
0x4012283e: i2s_write at C:/Users/Rudi/Documents/Github/esp-idf/components/driver/i2s.c:1023 (discriminator 2)

A2      : 0x00000000  A3      : 0x3ffd570c  A4      : 0x00000a00  A5      : 0x3ffd26f4
A6      : 0xffffffff  A7      : 0x00000000  A8      : 0x3ffcc098  A9      : 0x3ffd2670
A10     : 0x00000001  A11     : 0x00000000  A12     : 0x00000001  A13     : 0x00000002
A14     : 0xffffffff  A15     : 0x000006fe  SAR     : 0x00000000  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000018  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000

Backtrace:0x4012283b:0x3ffd26c0 0x400d5109:0x3ffd26f0 0x40091725:0x3ffd2720
0x4012283b: i2s_write at C:/Users/Rudi/Documents/Github/esp-idf/components/driver/i2s.c:1023 (discriminator 2)

0x400d5109: bt_i2s_task_handler at c:\users\rudi\documents\github\esp-idf\examples\bluetooth\bluedroid\classic_bt\a2dp_sink\build/../m

ain/bt_app_core.c:128

0x40091725: vPortTaskWrapper at C:/Users/Rudi/Documents/Github/esp-idf/components/freertos/xtensa/port.c:143

ELF file SHA256: fc39360f66176ae6

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7188
load:0x40078000,len:13696
load:0x40080400,len:4000
0x40080400: _init at ??:?

@blueMoodBHD Any chance you can have a look as the last to work on this section?

Hi,
Can you check the reuturn value of i2s_driver_install  ( https://github.com/espressif/esp-idf/blob/7d0f1536e468736766b0977f2902e1321426a1ed/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c#L72)?

@koobest My windows setup stopped working, so I can't get you that info. As a side note I was able to get this to work as expected using the Linux (Docker) setup. Which doesn't make sense to me. It should have both been off release4.0
Not sure where to go from here. Since it's working through the docker setup

Hi, I am having exactly the same problem. Can I ask to reopen this issue?

Development Kit: Wemos LOLIN32
Kit version: v1.0.0
Module or chip used: ESP32-WROOM-32
IDF version: v4.3 current master (synced today)
Build System: idf.py
Compiler version: don't know
Operating System: Kubuntu 20.04
Using an IDE?: Yes, VSCode with Espressif IDF v0.2.1
Power Supply: USB

Log during boot shows this error:
E (609) I2S: /home/zeffire/esp-idf/components/driver/i2s.c:838 (i2s_param_config):I2S communication format invalid.
E (609) I2S: I2S param configure error

After connecting to an android another error comes up:
I (1329) BT_AV: event: 10
E (510199) BT_APPL: bta_av_rc_create ACP handle exist for shdl:0
I (510199) BT_AV: A2DP connection state: Connecting, [18:01:f1:4d:6f:63]
I (510229) BT_AV: A2DP audio stream configuration, codec type 0
E (510229) I2S: Not initialized yet
I (510229) BT_AV: Configure audio player 11-15-2-35
I (510229) BT_AV: Audio player configured, sample rate=48000
W (510259) BT_APPL: new conn_srvc id:19, app_id:0
I (510259) BT_AV: A2DP connection state: Connected, [18:01:f1:4d:6f:63]

Finally, when I try to play any audio i get exactly the same error as @drpain in Debug Logs.
@koobest i2s_driver_install(0, &i2s_config, 0, NULL); returns code 258 (0x102)

hi, @linuxhuskarl
You can set the communication_format  to  I2S_COMM_FORMAT_PCM
We have a MR to fix this issue, will be merged soon.

Hi, @koobest
Would you please add the link or make a patch for @drpain  and @linuxhuskarl to test first?
Thanks
Weitianhua

@koobest I can confirm that this solution worked - no errors whatsoever. Thanks!


⚠ Jenkins Plugins Artifactory has degraded performance

In e948eb7, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1264 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 0707bc3 after 1 hour, 52 minutes.


Merge 1.2 into master

Coverage remained the same at 97.705% when pulling bcde7898b8d069ee3ddeaf13b338eb22fcb97642 on 1.2.0 into 24b57ea7af7e5f111438744ec25ced31f79a2772 on master.


SAKIII-3821 removed unused config properties

https://jira.sakaiproject.org/browse/SAKIII-3821

Squashed and merged