Roll Plugins from c5c8cda753c2 to f7138f722285 (10 revisions)

https://github.com/flutter/plugins/compare/c5c8cda753c2...f7138f722285
2022-02-05<EMAIL_ADDRESS>Roll Flutter from ce5fdff8b03a to db816591b007 (2 revisions) (flutter/plugins#4745)
2022-02-05<EMAIL_ADDRESS>Roll Flutter from 3b848ee12d47 to ce5fdff8b03a (3 revisions) (flutter/plugins#4744)
2022-02-05<EMAIL_ADDRESS>[url_launcher_web] Update min Flutter version (flutter/plugins#4735)
2022-02-05<EMAIL_ADDRESS>Roll Flutter from 7868284a7342 to 3b848ee12d47 (2 revisions) (flutter/plugins#4741)
2022-02-04<EMAIL_ADDRESS>Roll Flutter from b662d32a358e to 7868284a7342 (10 revisions) (flutter/plugins#4740)
2022-02-04<EMAIL_ADDRESS>Remove most CODEOWNERS (flutter/plugins#4669)
2022-02-04<EMAIL_ADDRESS>Roll Flutter from 6d96e66d0f70 to b662d32a358e (2 revisions) (flutter/plugins#4737)
2022-02-04<EMAIL_ADDRESS>create scorecards-analysis.yml (flutter/plugins#4734)
2022-02-04<EMAIL_ADDRESS>[shared_preferences] Documentation update for Readme.md (flutter/plugins#4684)
2022-02-04<EMAIL_ADDRESS>[ci] Manually roll to latest Flutter (flutter/plugins#4736)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Eigen/Ceres CMake bug causes build error on Zesty

Hi, I have stumbled into a CMake bug on Zesty when building cartographer_ros. I believe that the bug is in Ceres's FindEigen.cmake module. The root of the problem is that finding Eigen, called while finding Ceres, overwrites PACKAGE_PREFIX_DIR. To reproduce, execute this script on a fresh Zesty installation (or livecd):
ROS_DISTRO=lunar
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo add-apt-repository universe
sudo apt update
sudo apt install git ros-$ROS_DISTRO-ros-base ninja-build -y
mkdir -p catkin_ws/src && cd catkin_ws/src
source /opt/ros/$ROS_DISTRO/setup.bash
git clone https://github.com/googlecartographer/cartographer.git
git clone https://ceres-solver.googlesource.com/ceres-solver
git clone https://github.com/googlecartographer/cartographer_ros.git
cd ..
./src/cartographer/scripts/install_debs.sh
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
catkin_make_isolated --use-ninja

This fails with:
Errors     << cartographer_ros:cmake /home/ubuntu/catkin_ws/logs/cartographer_ros/build.cmake.000.log
CMake Error at /usr/lib/cmake/eigen3/Eigen3Config.cmake:24 (message):
  File or directory /usr/share/cartographer/cmake referenced by variable
  CARTOGRAPHER_CMAKE_DIR does not exist !
Call Stack (most recent call first):
  /home/ubuntu/catkin_ws/devel/share/cartographer/cartographer-config.cmake:57 (set_and_check)
CMakeLists.txt:38 (find_package)

Notice the nonsense about this being an error in Eigen3Config. This is because CMake definitions from that file polluted libcartographer's CMake config, as I will show below.
Here's a CMake "backtrace":

cartographer_ros' CMakeLists.txt calls find_package(cartographer REQUIRED).

In cartographer-config.cmake, the command
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)

correctly sets PACKAGE_PREFIX_DIR to e.g. /home/ubuntu/catkin_ws/devel_isolated/cartographer.

In the same file, find_package(Ceres ...) is called. Somewhere in the middle of CeresConfig.cmake, find_package(Eigen ...) is called.

Ceres has its own FindEigen.cmake module. On Zesty, the following line is reached:
find_package(Eigen3 QUIET
                      NO_MODULE
                      NO_CMAKE_PACKAGE_REGISTRY
                      NO_CMAKE_BUILDS_PATH)

This in turn calls /usr/lib/cmake/eigen3/Eigen3Config.cmake. On Xenial, this file does almost nothing, but on Zesty, it has some more stuff in it, among it, the following line: set(PACKAGE_PREFIX_DIR "/usr")
This overwrites the above variable with an incorrect value which will break building cartographer_ros as described in the next step.

Back to  cartographer-config.cmake. Finding Ceres is finished, and the following line is executed:
set_and_check(CARTOGRAPHER_CMAKE_DIR "${PACKAGE_PREFIX_DIR}/share/cartographer/cmake")

This fails, as explained above, because PACKAGE_PREFIX_DIR is now wrong.

A quick and dirty mitigation would be to move set_and_check(CARTOGRAPHER_CMAKE_DIR ...) before finding Ceres in cartographer-config.cmake.in in libcartographer. Pinging @damonkohler, I believe that you're the build system master. :)

@sandwichmaker Sameer, are you aware of this problem?

@alexmac is the man to look at this.
also even though the summary indicates that this is a problem with ceres, doesn't step 5 indicate that the problem is with Eigen3Config.cmake?

@alexsmac is out biking for the next few weeks though.

Yes, maybe I was too quick to assign blame, I should have pointed out that I am not sure at all whose fault this exactly is. Could be Eigen's, could be Ceres's, could be libcartographer's. I am not familiar enough with usage patterns in CMake in order to make a conclusion.  The best I can is make a pull request in the libcartographer repo with the mitigation I suggested, moving set_and_check before finding Ceres.


how to use Apollo with my own simulation software

System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04): Linux Ubuntu 14.04
Apollo installed from (source or binary): source
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0): 3.0

Steps to reproduce the issue:

using my own simulation software publish the followed topics to Apollo：/apollo/localization/pose, /apollo/canbus/chassis
my simulation software subscribe the followed topic from Apollo: /apollo/control
open dreamview, select Routing, Planning and Control module, make a routing in the RouteEditing panel and sent it
but the topic /apollo/control sent noting and the car stops.  And I can not chose the StartAuto botton. Why? How can I fix it？
I noticed in the Module Delay panel the delay time of PerceptionObstacle and Prediction are red while the delay time of TrafficLight is white. What does the difference mean?

Thank you very much.

From the screenshot, it seems like the planning module is not ready. Please check planning log under /apollo/data/log to see if there's any warning or error messages.
the StartAuto button is enabled when the planning module sends EngageAdvice as READY_TO_ENGAGE .
On Module Delay panel, a module's delay time will be highlight to red to capture user's attention if the module (except traffic light) has not been updated for 2 seconds.

Hope the information is enough for you to continue on using Apollo with your simulation software.


File locking strategy

Currently, read and write operations in FileStorage class are thread-safe.  Before accessing the read or write methods, the thread acquires an intrinsic lock and releases the lock when the method returns. So, two threads cannot perfom a read or a write operation in parallel even if it is a different file.
To improve it, one possible solution is to implement a shared Lock using ReadWriteLock The read-lock prevents the acquisition of a write lock by another thread. More than one thread can read (and hold a read-lock simultaneously) at the same time. By contrast, a write lock prohibits all other operations while a write operation.
What do you think about it ?

I think you totally right. ShieldDB will be better if we use a ReadWriteLock instead of the simple but dummy synchronized keyword I used. You can change it and submit a PR if you want :slightly_smiling_face:


Please consider fixing issues detected by repository checker

Notification from ioBroker Check and Service Bot
Dear adapter developer,
I'm the ioBroker Check and Service Bot. I'm an automated tool processing routine tasks for the ioBroker infrastructure. I have recently checked the repository for your adapter cec2 for common errors and appropiate suggestions to keep this adapter up to date.
Please see the result of the check below.
ioBroker.cec2
   -

ERRORS:

[ ] :heavy_exclamation_mark: [E162] js-controller 3.3.22 listed as dependency but 4.0.24 is required as minimum, 5.0.19 is recommended. Please update dependency at io-package.json.

WARNINGS:

[ ] :eyes: [W522] Please consider migrating to admin 5 UI (jsonConfig).

Please review issues reported and consider fixing them as soon as appropiate.
Errors reported by repository checker should be fixed as soon as possible. Some of them require a new release to be considered as fixed. Please note that errors reported by checker might be considered as blocking point for future updates at stable repository.
Warnings reported by repository checker should be reviewed. While some warnings can be considered as a suggestion and be ignored due to good reasons or a dedicated decision of the developer, most warnings should be fixed as soon as appropiate.
Feel free to contact me (@iobroker-bot) if you have any questions or feel that an issue is incorrectly flagged.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence

This issue has been replaced by new isse #187
This issue can be closed.
your
ioBroker Check and Service Bot


一个电信宽带的奇怪现象

Before firing issue, make sure you figured out the following common questions.
PLEASE DO SEARCH FIRST.

Check your -key xxx for at least 3 times, MAKE SURE both sides share the same secret.
-nocomp, -datashard, -parityshard,  -key, -crypt must be the same on both side.
Did you correctly set the -target on the server side?
MAKE SURE telnet target port on your server successful(don't ask me why couldn't).
Does your firewall allows UDP communications? (including your ISP Cable-Modem)
Are you using the same version for both client & server
Are you using the latest release?
Which OS do you use?
Which end for this issue related to, client or server?

我观察发现，TCP在电信网络里是被封锁的。于是，我用 kcptun 连接 办公室和家里（服务器用softether架在公司），速度超级快，爽快了几天，现在无法连接了。但是用 kcptun连国外VPS是没问题的。难道电信把国内国外的UDP分开管制了？

原因查明，不是电信宽带的问题，犯了一个低级错误，更新程序后，没有重配防火墙。


Try to fix flaky TestTcpMetric test on newer k8s

Try to fix flaky TestTcpMetric test on newer k8s
Ref: https://github.com/istio/istio/issues/18105

@gargnupur: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

unit-tests_istio
0f6250d26fc40b64312b548106c45b78fdd3e2f1
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@gargnupur: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

unit-tests_istio
0f6250d26fc40b64312b548106c45b78fdd3e2f1
link
/test unit-tests_istio

integ-istioio-k8s-tests_istio
0f6250d26fc40b64312b548106c45b78fdd3e2f1
link
/test integ-istioio-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Is this just covering up a real bug? Should these values be filled in and not "unknown"?

@howardjohn : yes looks like it is, I am just trying to see if this really fixes the issue...

@gargnupur: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-istioio-k8s-tests_istio
0f6250d26fc40b64312b548106c45b78fdd3e2f1
link
/test integ-istioio-k8s-tests_istio

pilot-e2e-envoyv2-v1alpha3_istio
414b06a37801ebddbab6b978989c87ca5a4a19ff
link
/test pilot-e2e-envoyv2-v1alpha3_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Were you able to discovery why we aren't seeing this labels for TCP traffic?  I think @mandarjog reported this in a separate issue too.

what is the status here?


Add reassuring info message when running in baseline mode

...in the middle of migrating a load of databases from Roundhouse to grate, I figured something like this would be slightly more reassuring than manually checking every time in multiple environments etc 😄

We do all love software that gives us reassuring messages, don't we? 😄
Thanks a lot! This is a good idea, especially when running a large codebase that hasn't been run with grate before, to make people absolutely chill and calm, that we won't touch any actual code/tables!


Add Unichar function

Adds Unichar funcion to Power Fx.
Examples
>> Unichar(Hex2Dec("1F600"))
"😀"

>> Unichar(119137)
"𝅘𝅥𝅯"

User scenarios

Text based custom icons within the app.
Display multilingual texts.

References
UNICHAR function - Microsoft Support
Char.ConvertFromUtf32(Int32) Method (System) | Microsoft Learn
Unicode - Surrogate pair (UTF-16) (datacadamia.com)

#SETUP: ConsistentOneColumnTableResult

Can be removed (see comment on Unichar.cs about result column name)

Refers to: src/tests/Microsoft.PowerFx.Core.Tests/ExpressionTestCases/UnicharT.txt:1 in 75605b0. [](commit_id = 75605b0e381fc4ce57cb3fbd98dc71a8934bf10e, deletion_comment = False)


VNA Initial Service Changes

What does this Pull Request accomplish?
Adding files for VNA Initial Service
Why should this Pull Request be merged?
What testing has been done?
TODO: Detail what testing has been done to ensure this submission meets requirements.

I am facing issues while running the newly added VNA Test cases. I have followed the #481 PR to add the files. Am I doing anything wrong? Please help me debug this issue.
@maxxboehme @reckenro @astarche

I am facing issues while running the newly added VNA Test cases. I have followed the #481 PR to add the files. Am I doing anything wrong? Please help me debug this issue.
@maxxboehme @reckenro @astarche

Does this require a new product to be installed? If so need to update the products to install to grpcbot (The system that runs the system tests)

Does this require a new product to be installed? If so need to update the products to install to grpcbot (The system that runs the system tests)

I have added the installers for VNA through this PR: link
Yet I am facing a new issue while triggering the gtests in windows environment. Here is the error message:

@RahulBenaka I kicked off a pipeline run that should rebuild the image used for running the tests. The error you are getting is because the artifacts are deleted after a few days so you will need to rerun all the steps to recreate the artifacts.

@RahulBenaka I kicked off a pipeline run that should rebuild the image used for running the tests. It needs to be rebuilt to include your changes. The error you are getting currently is because the artifacts are deleted after a few days so you will need to rerun all the steps to recreate the artifacts.

Pipeline just finished. I will kick off another run for windows. Ubuntu is currently in a bad state that I am looking into so can be ignored for now.

Update the TODO in the "What testing has been done?" section

I have updated the description section @maxxboehme


FillObjectBMI example does not show correct results

When running the FillObjectBMI example, the results page does not show the correct results. It looks like the fields are not being received by UserModel.

Hello my friend.
How are you?
We made a small correction in the CWF where the parameters were decoded by default, see if that solves your problem, if it does not solve, please open another issue. Please test the new version.
Note: Thank you very much for your comments.
Best regards.
Herik Lima

Thanks very much for the quick fix, that's it working now!


Error 403 forbidden

Hey,
first of all thanks for the nice tool! I've been using it for some months now. Unfortunately, since yesterday(?) I get the following error regardless of the parameters I use. The password and username are correct. I verified it via Garmin Connect web interface:
Welcome to Garmin Connect Exporter!
Warning: Output directory already exists. Will skip already-downloaded files and append to the CSV file.
Traceback (most recent call last):
File "gcexport.py", line 155, in
result = http_req(url_gc_search + urlencode(search_params))
File "gcexport.py", line 70, in http_req
response = opener.open(request, data=post)  # This line may throw a urllib2.HTTPError.
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
Any changes on Garmin side? Can you reproduce the problem or do I have canged something here that I am not aware of atm?

@TobiasGirschick follow the comments thread on this issue for the fix - https://github.com/kjkjava/garmin-connect-export/issues/18#issuecomment-243811213. My fork which has the necessary GET calls and works is linked to from the comments.

thx. Worked out of the box!

Thanks @moderation for implementing the solution. I created a pull request containing the authentication and activity download fixes (no refactoring) to see if this could be merged into @kjkjava upstream repo.
Meanwhile you can use clone my fork https://github.com/fjgal/garmin-connect-export


[Bug]: [New headless] can't retrieve HTTPResponse from HTTP 401 pages

Bug expectation
In old headless mode, page.goto retrieves HTTPResponse object from 401 pages. We were able to handle 401 pages just like 404 pages.
In new headless mode, page.goto throws Error: net::ERR_INVALID_AUTH_CREDENTIALS for 401 pages.  We aren't able to handle 401 pages just like 404 pages.
I'd expect that  page.goto retrieves HTTPResponse object from 401 pages in new headless.
If this is correct behaviour, please update https://pptr.dev/api/puppeteer.page.goto/.

page.goto will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling response.status().

Bug behavior

[ ] Flaky
[ ] PDF

Minimal, reproducible example
import {launch} from 'puppeteer';

(async () => {
    const url = 'https://httpstat.us/401';
    {
        console.log('Old headless');

        const browser = await launch({
            headless: true,
        });
        const page = await browser.newPage();
        const response = await page.goto(url);

        console.log('response:', response);
        console.log('status:', response.status());
    }

    console.log();

    {
        console.log('New headless');

        const browser = await launch({
            headless: 'new',
        });
        const page = await browser.newPage();
        const response = await page.goto(url);

        console.log('response:', response);
        console.log('status:', response.status());
    }
})();

Error string
net::ERR_INVALID_AUTH_CREDENTIALS
Puppeteer configuration
No response
Puppeteer version
19.7.5
Node version
18.15.0
Package manager
npm
Package manager version
9.5.0
Operating system
Windows

This is the behaviour of the headful mode and the new headless matches that behaviour. The old headless had a different behaviour here that does not match the actual Chrome's behaviour. We will need to either update Puppeteer to hide this difference or update the documentation.

Looks like https://httpstat.us/401 is not available and I am not able to reproduce with the test server. Do you own the site? I wonder if other response parameters determine how Chrome reports the error.

Thank you for triaging.

Looks like https://httpstat.us/401 is not available and I am not able to reproduce with the test server. Do you own the site?

Unfortunately https://httpstat.us/ is not owned by me.
The server I was using when I first noticed the issue is an internal one that cannot be made public. However, the same situation can be reproduced with the following command:
npx http-server -p 8080 --username user --password pass

then running following javascript:
import {launch} from 'puppeteer';

(async () => {
    const url = 'http://localhost:8080/'; // changed
    {
        console.log('Old headless');

        const browser = await launch({
            headless: true,
        });
        const page = await browser.newPage();
        const response = await page.goto(url);

        console.log('response:', response);
        console.log('status:', response.status());
    }

    console.log();

    {
        console.log('New headless');

        const browser = await launch({
            headless: 'new',
        });
        const page = await browser.newPage();
        const response = await page.goto(url);

        console.log('response:', response);
        console.log('status:', response.status());
    }
})();

I hope this information will be helpful to you though English isn’t my first language so please excuse any mistakes.

Thanks for the repro. I am able to reproduce with http-server. I believe that some other headers and not only the 401 status code might be causing the issue.

Any update on this issue?

any update on this issue?

I have found a work around by providing an empty object to authenticate this will "dismiss" the authentication, and you can get to the error page.
page.authenticate({});


libgpg-error-config error during build()

Describe the bug
on arch, cannot build the git version, libgpg-error-config error during build()
Screenshots/Logs
   Compiling nom v7.1.1
   Compiling num-traits v0.2.15
   Compiling wayland-client v0.29.4
   Compiling wayland-protocols v0.29.4
error: failed to run custom build command for `libgpg-error-sys v0.5.2`

Caused by:
  process didn't exit successfully: `/home/pbo/.cache/yay/gpg-tui-git/src/gpg-tui/target/release/build/libgpg-error-sys-1a341c50b8a6f2da/build-script-build` (exit status: 1)
  --- stdout
  scanning file: /home/pbo/.cargo/registry/src/github.com-1ecc6299db9ec823/libgpg-error-sys-0.5.2/err-sources.h.in
  scanning file: /home/pbo/.cargo/registry/src/github.com-1ecc6299db9ec823/libgpg-error-sys-0.5.2/err-codes.h.in
  scanning file: /home/pbo/.cargo/registry/src/github.com-1ecc6299db9ec823/libgpg-error-sys-0.5.2/errnos.in
  cargo:generated=/home/pbo/.cache/yay/gpg-tui-git/src/gpg-tui/target/release/build/libgpg-error-sys-5be8d7e504f3697f/out
  cargo:rerun-if-env-changed=LIBGPG_ERROR_PREFIX
  cargo:rerun-if-env-changed=LIBGPG_ERROR_INCLUDE
  cargo:rerun-if-env-changed=LIBGPG_ERROR_LIB_DIR
  cargo:rerun-if-env-changed=LIBGPG_ERROR_LIBS
  cargo:rerun-if-env-changed=LIBGPG_ERROR_CONFIG

  --- stderr
  running: "sh" "-c" "gpg-error-config --version"
  sh: line 1: gpg-error-config: command not found
  command did not execute successfully, got: exit status: 127
  Error: ()
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gpg-tui-git

System Information

OS: [e.g. Arch Linux x86_64 5.12.1-arch1-1]
arch x86_64 6.0.10-zen2-1-zen
Rust Version: [e.g. 1.54.0-nightly]
rustc 1.65.0 (Arch Linux rust 1:1.65.0-1)
GPGME version: [e.g 1.15.1]
1.18.0
GPGME engine version: [e.g. 2.2.27]
gpg (GnuPG) 2.2.40
libgcrypt 1.10.1-unknown
Project Version: [e.g. 0.1.0]
git

It should be fixed with the new release of gpgme-rs. (c8a099341f85640b5c2a3558307418de0c93a5ab)


Resolved: GO Portal is back up in 9e22837.


Rules Engine view has XML parsing error for incomplete client objects

Using incomplete client data generated by the Export tab, the Rules Engine tab will print an error message to the browser's debug console about an XML parsing error, as follows:
XML Parsing Error: no root element found Location: http://localhost:4000/rule-engine/api/v1/rule?_=1532041812230 Line Number 1, Column 1:

@brandonforster can you have more specific ? or how cat i reproduce it ? or you can pull the new code , i didn't encounter this scene


[BUG] inherited from USWDS: Google Chrome and MS Edge crash when VoiceOver interacts w/process list counter

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior

Given a session where I am using Google Chrome or Microsoft Edge, and have the MacOS VoiceOver screenreader active
When I traverse a web page using VoiceOver's keyboard navigation and encounter a Process List counter component
Then the browser crashes with "Error Code 11"
Does not occur on Firefox 118.0.2 (64-bit) or Safari 17.0 (186<IP_ADDRESS>.22, 18616)

Steps To Reproduce

Use a MacOS device
In Chrome or Edge, go to https://designsystem.digital.gov/components/process-list/
On the MacOS device, activate VoiceOver
Using VoiceOver's navigation keys, traverse the page until you reach the "Component Preview" section
Continue into this section until the screenreader focuses on and announces the 3-item list (e.g., the first Process List example on the page)
Navigate with VoiceOver past the list element to the first item in the Process List
Browser crashes

For SimpleReport, this bug is present on the Upload spreadsheet page
Expected Behavior
VoiceOver would announce the name, role, and other relevant properties of the first Process List item, and the browser would not crash
Additional context
Depends on USWDS #5562
In the attached screen capture, I am using Google Chrome. The focus is on the Component Preview element. I move the focus forward with tab, then back with shift-tab, then navigate into the Process List itself using VoiceOver navigation.
https://github.com/uswds/uswds/assets/6709726/457b8b3e-b9b7-4c06-9fd1-74fd6cf51cb3
Does this issue have a priority label?

[X] I have added a priority label

Has issue been assigned to a team?

[X] I have added a team label

all right to leave this in the backlog for now, I'll check the ticket I filed at the USWDS repo occasionally.

this turned out to be a Chrome bug, inherited by Edge. Both browsers have included fixes in recent releases. Closing as resolved.


manual Validation vs custom Validation

Hi All, Could someone please explain to me the difference between MV in AutoForm and CV in SimpleSchema and the if possible the use case(s) for each. Cheers

A custom validation function is in your schema and must pass like all other types of validation every time you validate against that schema.
Manual validation refers to manually adding a validation error to the list of errors for a validation context, which could be any arbitrary error and can be done at any time. This is done primarily to make that error display on the screen along with other errors. It isn't necessarily fully secure because the actual validation process does not know about it.

@aldeed Thxs for your explanation.


Update docs and tests for null CSV support

This fixes #127
Actually cudf fixed it and this just updates the tests and docs, but it lets github close the issue.

build


adding back missing memorials

some memorials were missing from map because of a spelling mistake

Will merge this in but there appears to be at least one record missing. The site for Castle Hill isn't showing. It doesn't seem to be in Wikidata any more. I'll raise this with Ewan and raise an issue for this


S.E.C update, or making security less tyrannical

About the PR
Updates the security department with more RP-heavy features and general quality of life.

Adds stopwatches which allow you to keep track of time, with the ability to pause/start/reset them. Most useful for tallying time served by wrongdoers
Adds S.E.C code, which is a simplified version of the space law, being a simple-to-follow guide to conducing justice for newbie security

Map changes:

Warden's locker remapped to spawn in armory
Drozdovs are remapped to spawn with rubber bullets, with additional lethals besides them in armory
Added 4th security locker in the place of the old one
S.E.C code spawns on the table in security, in the Warden's locker and in the HoS'es locker
Warden spawns with a stopwatch, additional space-flavored one has a 25% chance to spawn in his locker

Screenshots

Changelog

:cl: CrudeWax

add: Nanotrasen is horrified with the security abuse across the sector, and hereby issues a MUST-READ S.E.C code, containing regulations for the security personnel!
add: All wardens are now issued a stopwatch to keep track of time served in cells by aspiring outlaws. Right-click to start, pause or reset the watch.
tweak: Drozdovs now spawn loaded with rubber bullets. Lethal bullets are in the armory.
tweak: Warden's locker now spawns in the armory

Video showcasing the PR:
https://youtu.be/m_iYqLOTjjA

Warden's locker being in the armory is weird. Armory is for guns, wardens locker is mostly clothes. IMO it should stay in the sec office area.

It was a bit confusing around other lockers, plus the warden spawns in armory so it allows him to get his stuff in relative peace

The Warden doesn't spawn in the armory, and the warden's locker in packedstation is in a different room to the sec lockers.

Reverted the mapping changes on account of conflicts and consistency.

Can you make the S.E.C. book spawn as part of the security loadout?

You mean on their person instead of in the locker?

Is it possible to shove it in their pocket as their starting gear?

Yes, should I do it?

A lot of changes require additional policy discussion or help code-wise so I can't really commit much substantially until the resolution


Four Peer PBFT Network Not Storing Blockchain Data

Description:
When running a four peer network using pbft consensus inside one Vagrant instance, the /var/hyperledger/production/db file is not being created or updated. When one peer using noops is run, the file is created after running 'make peer.'
My blockchain data is stored in RAM, and is not moved to a permanent storage location. So that when the peers are turned off, the data is lost.
I have not run this with each peer on its own computer.
To recreate:
In fabric/peer/core.yaml
-privacy: false
-security: false
-peer.id: vp0, vp1, vp2, vp3
-peer.consensus.plugin: pbft
In fabric/consensus/obcpbft/config.yaml
-general.mode: batch
-general."N": 4
-general.f: 1
follow instruction from DevNet-Setup
See if  /var/hyperledger/production/db exists.

 I can't seem to reproduce it:
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ sudo rm -rf  /var/hyperledger/production/db/
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ grep privacy peer/core.yaml
    # To enable privacy of transactions (requires security to be enabled). This
    privacy: false
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ head -400 peer/core.yaml  | tail -20

        # configurations for 'trie'
        # 'tire' has no additional configurations exposed as yet

###############################################################################
#
#    Security section - Applied to all entities (client, NVP, VP)
#
###############################################################################
security:
    # Enable security will force every entity on the network to enroll with obc-ca
    # and maintain a valid set of certificates in order to communicate with
    # other peers
    enabled: false
    # To enroll NVP or VP with membersrvc. These parameters are for 1 time use.
    # They will not be valid on subsequent times without un-enroll first.
    # The values come from off-line registration with obc-ca. For testing, make
    # sure the values are in membersrvc/membersrvc.yaml file eca.users
    enrollID: vp
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ grep plugin peer/core.yaml
    # it is enabled, what consensus plugin to load
            # Consensus plugin to use. The value is the name of the plugin, e.g. pbft, noops ( this value is case-insensitive)
            plugin: pbft
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ egrep "mode|N" consensus/obcpbft/config.yaml
#   - Nest keys where appropriate, and sort alphabetically for easier parsing.
    # Operational mode: batch, classic, or sieve ( this value is case-insensitive)
    mode: batch
    # Keep the "N" in quotes, or it will be interpreted as "false".
    "N": 4
    # Number of byzantine nodes we will tolerate
    # How many requests should the primary send per pre-prepare when in "batch" mode
#   SECTION: EXECUTOR
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ egrep "f:" consensus/obcpbft/config.yaml
    f: 1
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ ll /var/hyperledger/production/db
ls: cannot access /var/hyperledger/production/db: No such file or directory
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ CORE_VM_ENDPOINT=http://<IP_ADDRESS>:2375  CORE_PEER_ID=vp0  CORE_PEER_ADDRESSAUTODETECT=true peer/peer node start &> /dev/null &
[1] 6589
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$
username@host:~/OBC/shared/gopath/src/github.com/hyperledger/fabric$ ll /var/hyperledger/production/db
total 8876
drwxr-xr-x 2 username username  4096 יונ 13 11:30 ./
drwxr-xr-x 3 username username  4096 יונ 13 11:30 ../
-rw-r--r-- 1 username username   152 יונ 13 11:30 000006.log
-rw-r--r-- 1 username username    16 יונ 13 11:30 CURRENT
-rw-r--r-- 1 username username    37 יונ 13 11:30 IDENTITY
-rw-r--r-- 1 username username     0 יונ 13 11:30 LOCK
-rw-r--r-- 1 username username 44225 יונ 13 11:30 LOG
-rw-r--r-- 1 username username 11806 יונ 13 11:30 LOG.old.1465806600436468
-rw-r--r-- 1 username username   343 יונ 13 11:30 MANIFEST-000005

I was using commit 64037b9 previously.
I'm rebuilding now using commit 5b6e766 now. Once my rebuild is complete, I'll change my config files, and report back with screen shots if there is still an issue.

Are you developing outside of Vagrant? I see that your lines start with hostname@host instead of vagrant@hyyperledger. Could that potentially cause my problem?

Yeah, outside.
It's really weird the DB isn't being created. What is the filesystemPath config set to?
According to:
https://github.com/hyperledger/fabric/blob/5f39a0566e9f7bbf7e31ffcd898716edf4c4330e/core/db/db.go#L101
You should notice that the db folder isn't created

I've done vagrant destroy -> vagrant up -> vagrant ssh
Following your example:
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ sudo rm -rf /var/hyperledger/production/db
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ egrep "fileSystemPath" peer/core.yaml
fileSystemPath: /var/hyperledger/production
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ grep privacy peer/core.yaml
privacy: false
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ head -400 peer/core.yaml | tail -20
security:
# Enable security will force every entity on the network to enroll with obc-ca
# and maintain a valid set of certificates in order to communicate with
# other peers
enabled: false
# To enroll NVP or VP with membersrvc. These parameters are for 1 time use.
# They will not be valid on subsequent times without un-enroll first.
# The values come from off-line registration with obc-ca. For testing, make
# sure the values are in membersrvc/membersrvc.yaml file eca.users
enrollID: vp
enrollSecret: f3489fy98ghf
# To enable privacy of transactions (requires security to be enabled). This
# encrypts the transaction content during transit and at rest. The state
# data is also encrypted
privacy: false
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ grep plugin peer/core.yaml
plugin: pbft
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ egrep "mode|N" consensus/obcpbft/config.yaml
# Operational mode: batch, classic, or sieve ( this value is case-insensitive)
mode: batch
# Keep the "N" in quotes, or it will be interpreted as "false".
"N": 4
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ egrep "f:" consensus/obcpbft/config.yaml
f: 1
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ ll /var/hyperledger/production/db
ls: cannot access /var/hyperledger/production/db: No such file or directory
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ make peer-image
Building build/docker/bin/peer
Building docker peer-image
cp build/docker/bin/peer build/image/peer/bin
docker build -t hyperledger/fabric-peer:latest build/image/peer
Sending build context to Docker daemon 26.88 MB
Step 1 : FROM hyperledger/fabric-src:latest
---> 9ad8b6a8b8da
Step 2 : RUN mkdir -p /var/hyperledger/db
---> Running in 010aa6086ba1
---> 9a6683282fc5
Removing intermediate container 010aa6086ba1
Step 3 : COPY bin/* $GOPATH/bin/
---> ebb1728e5e3c
Removing intermediate container ef0bfaf5afb9
Step 4 : WORKDIR $GOPATH/src/github.com/hyperledger/fabric
---> Running in f0fabd45af16
---> 9ffc04deed6a
Removing intermediate container f0fabd45af16
Successfully built 9ffc04deed6a
rm build/docker/bin/peer
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ ll /var/hyperledger/db
ls: cannot access /var/hyperledger/db: No such file or directory
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ ll /var/hyperledger/production/db
ls: cannot access /var/hyperledger/production/db: No such file or directory
vagrant@hyperledger-devenv:v0.0.10-5b6e766:/opt/gopath/src/github.com/hyperledger/fabric$ ll /var/hyperledger/db
ls: cannot access /var/hyperledger/db: No such file or directory
I can see where it's things that it is creating a folder in the /var/hyperledger/db location, but there is no folder there. There is a mismatch in the file system path and what make peer-image tries to create, but these configurations come straight from commit 5b6e766.

@jusrah can you please try to reproduce with https://github.com/hyperledger/fabric/tree/v0.5-developer-preview?


KryptonContextMenu click event ?

Can anyone explain how to add a click event to an item, the documentation is literally lacking EVERYTHING.

I encounter the same problem with you.....

Or the modern TFM version:


"This app isn't verified" warning from google oauth

When I sign in with token='browser', google shows me this

I can eventually make it in, but it isn't very confidence-inspiring. I can't figure out how to verify my app. Should be using a different API key maybe?

Interesting... This hasn't been reported for gcsfs, which has the same mechanism available, but I don't think it gets used that much. I suppose the link would tell us how to get the app verified, but there may bee a good chance that we don't actually meet google's guidelines...

Would you be interested in following the link to verify this package as an app?

I couldn't figure out how to do it.
Also, today we got this same message with gcsfs proper.

Tried starting the process for gcsfs (which is more important). Will repeat or dual-purpose that client if successful.

@rabernat, see this comment, seems like there is a way to get credentials objects now, pandas/pydata blessed.

https://pandas-gbq.readthedocs.io/en/latest/howto/authentication.html#authenticating-with-a-user-account

I am thinking, than gdrive might not be great for throughput, but it's be a great way to share intake catalogues


Global produces/consumes data unavailable

Describe the issue
For types that aren't referenced as parameters/return values:
OperationResult
There is no protocol information applied, so we don't know what kind of serialization mechanism to use (e.g. JSON/XML).
We should either apply the global produces/consumes to such model types, or expose this information in the code model so generators can apply it.
https://github.com/Azure/autorest.testserver/blob/master/swagger/lro.json#L12
** REQUIRED **
ModelerFour version: 4.13.351
AutoRest-core version: 3.0.6282
CommandLine :
OpenAPI/Swagger file:
https://github.com/Azure/autorest.testserver/blob/master/swagger/lro.json#L12
For a real example see
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json#L10

Thanks!  Moving this to Azure/perks since this will have to be fixed in @azure-tools/oai2-to-oai3.


Flagged notes showing up in liked tab in profile

Flagged notes showing up own in likes tab in profile
To reproduce:

Flag a note as offensive
Go to your own profile
switch to the "likes" tab
See flagged note with the "You have flagged this content as offensive." Although you can see the original comment initially.

That's a pretty annoying bug, isn't it? Fixed in 0570ad60ad68a10ca4706fc23af6e680823af50d


chore(modules) add ngModule

Just a heads up: previous versions of ngrx/store didn't have a dependency on Angular 2, after the NgModule upgrade it will. This will be a breaking change and Angular 2 needs to be re-added to peerDependencies

I've tagged it as 2.1.1 Not much I can do about the ng2 dependency, I'm afraid.


fix: ios race conditions

https://github.com/hyochan/react-native-audio-recorder-player/pull/608

Closes #608


docs: search shows way too much in snippets

Is there an existing issue for this?

[X] I have searched the existing issues

Run a Diagnostic and Paste Link Here
The new docs has search that is not useful, has to be fixed. Go to https://ddev.readthedocs.io/en/latest/ and search and you get a wall of text like this:

Current Behavior
Wall of text
Expected Behavior
Useful results
Steps To Reproduce
No response
Anything else?
No response

Chased this in https://github.com/readthedocs/readthedocs.org/issues/9419 but it definitely doesn't appear to be readthedocs.

Confirmed. Encounted this this morning when I search for "addon".

The bottom-line problem here is that I had started to use features from mkdocs-material-insiders because it seemed like a good idea. But then I realized it wasn't a good idea, because it messes up our entire open-source workflow.
#3980 restores search functionality, but does it by adding mkdocs-material-insiders back in as a stop-gap. Next stop here will be to figure out how to completely back out mkdocs-material-insiders.


Reproducing results on CityScapes

Hello, thank you for the interesting work!
I have an issue when reproducing results on CityScapes with released checkpoints, metrics are worse than in paper.

Can you provide infromation how to achieve results given in paper? I noticed some incosistency between CityScapes checkpoints names regarding count of training epochs specified in paper, maybe this is the issue and you can provide another checkpoints.
Thank you!

Hi, thanks for your interest in our work! Please check this training docs. We present some different choices when we reproduced the experiments and we also recommand people to report these numbers in follow-up works.


[BUG] Fix CSV roundtrip for decimals (actually an f64->decimal casting bug)

I'm going to go ahead with the merge, was unable to ascertain why the logical->physical cast is necessary.


The training process was inexplicably terminated

Hi , Thanks your quickly reply yesterday.  But I missed a problem again today.  The training process was inexplicably terminated

My Platform environment is ：

pytorch:1.2.0
python:3.7.3
cuda: 9.2

Hi,
Can you check the number of epochs ? Do you train to scratch or do you preload a trained model ?


Add Contact Point to POI

that could be the SOS post telephone number, couldn't be?
now landing ...


respring logo freeze

when we install new tweak and then we restart our respring board it crases and freezes. And black screen appear. afte a while it turns back to the device
ios version: 11.3.1
uncover version: 3.1.0
ios device: iphone 6s
Place an "x" between the brackets if true:

[ ] this is a bug others will be able to reproduce
[ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[ ] this issue is present after a rootfs restore
[x ] this issue is present on the latest version of unc0ver

I also have this issue when rsd is toggled on. Stuck in respring loop until I reboot.
When it's toggled off, it properly jailbreaks.
ios version: 11.3.1
uncover version: 3.1.2
ios device: iphone 7+

Does it kick you out of the jailbreak entirely after attempting to respring?

No, I have to reboot to get out of the loop.
Sent from my iPhone

On Jun 2, 2019, at 8:58 PM, 9matson<EMAIL_ADDRESS>wrote:
Does it kick you out of the jailbreak entirely after attempting to respring?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Please consider adding native support for ES modules

Do you want to request a feature or report a bug?
I want to request a feature.
What is the current behavior?
Right now Jest does not support test suites with import statement. They result in the following error:
SyntaxError: Unexpected token import

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)
          at Generator.next (<anonymous>)
          at new Promise (<anonymous>)

What is the expected behavior?
Would be great if Jest supported ES modules natively.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest: 21.2.1
node: 8.9.0
npm: 5.5.1
Before, native support of ES modules was not possible since node.js did not support them. Starting from a few versions ago, node.js added support of ES modules with a flag (https://nodejs.org/api/esm.html). It would be absolutely great if Jest would match this with adding support of ES modules too, probably with a flag or even without it.
Node.js requires ES modules to have an .mjs extension. In order to support ES modules Jest needs to add a recognition of those extensions. Jest will also need to pass an --experimental-modules flag to node.js until node will implement support of modules without a flag. I'm not sure if any other required changes would be needed within Jest in order to support this. I can only hope it will not be terribly hard.
Ideally, it would be cool if Jest would recognize modules even in files without .mjs extensions since code that targets browsers do not use them, but I don't know if it is ever possible. Node.js provides loader hooks for that (https://nodejs.org/api/esm.html) but this still doesn't solve the issue with a reliable determination of what type of module the file is.
I believe ES modules are a great feature vastly superior to all existing JS module solutions. Having it implemented in node.js opens a door for Jest to have it too. This would allow developers stick to using the first truly standardized JS module format not only throughout development, but trough testing as well.

Jest has its own require implementation (https://github.com/facebook/jest/blob/master/packages/jest-runtime/src/index.js), so it would be way more involved than just supporting the syntax and default to looking at .mjs. I'm also against activating experimental flags.
It might be possible to automatically transpile import/export, but implementing the semantics is a huge undertaking, and probably blocked for a year because of support for node 6.

I agree with SimenB. We need a number of hooks from the node team to be able to make this work together with the vm module. However, I think we should support this in the meantime, but not by mirroring the full native implementation but rather by using babel and compiling it to require inside of babel-jest. I think for testing purposes this will work fine and we do not have to provide the same guarantees the node runtime needs to provide anyway.

So just adding babel-plugin-transform-es2015-modules-commonjs to babel-jest?

Yeah, that's what I was thinking.

Guys, what about integrating https://github.com/standard-things/esm ? It's fast and maintain a lot of edge cases.

@TrySound what would that look like concretely? Can you make a prototype?

We still have our own require-implementation (needed for mocks), so I don't think that'd help much.
And we need to work both with Node's rules and the browser's rules

@std/esm apparently should just work with jest: https://twitter.com/jdalton/status/930257653292400640
Could anyone give it a whirl and come back with a PR for the docs? 🙂

I guess users would like to have support everywhere, but I found it works only for dependencies of test files.
// test.js
require = require('@std/esm')(module);
const utils = require('./utils');

// utils.js
export { default as update } from './update';

https://github.com/tarunlalwani/jest-overriding-require-function-stackoverflow

So just adding babel-plugin-transform-es2015-modules-commonjs & babel-plugin-dynamic-import-node to babel-jest?

I don't think this is a great solution, as it doesn't perform any "missing export" checks that are so valuable with ES modules. For example, in React repo I started running build more often just because Rollup finds these mistakes but Jest with es2015-modules-commonjs does not.

@std/esm apparently should just work with jest

It would be pretty great to invest some time into their interop. Pretty sure this hacky solution will break eventually: https://stackoverflow.com/questions/46433678/specify-code-to-run-before-any-jest-setup-happens. But if it's just a matter of exposing something on Jest side, would be cool to see it supported.

@SimenB, in my mind the immediate step would not be too complex. What is urgent is to allow people to work with .mjs module, even if babel is helping behind the test scene. Otherwise people might have to find different testing solution if they want to use .mjs.

Fix the testMatch property to allow .mjs file to be found
(currently it doesn't work even the regex seems correct already, maybe there's a hard code somewhere rejecting .mjs extension)
Pass --experimental-modules flag when running node.js so that it will run natively
Jest should treat .mjs the exact same way as .js today (e.g. in jest require) -- the import statements are already allowed inside .js today, so only need to allow .mjs extension.

The final solution might be complex and takes time, but it is inevitable isn't it?

Hello, has someone been able to fix this error?

We are using .mjs with "node --experimental-modules" option. Any workaround?

We are using .mjs with "node --experimental-modules" option. Any workaround?

That's experimental and not fully fleshed out. There is lots of churn still with basic things, like how to import a builtin module, still up in the air.  Projects like AVA have started allowing the use of @std/esm as their loader pipeline if used (bypassing Babel). Maybe jest could take a similar approach.

Supporting @std/esm is something we want to do, help to implement it is more than welcome!

@SimenB Can you chat sometime on hangouts?

Hi @SimenB 👋
An esm user has contributed a workaround for ESM support in Jest and I figured it might be a good starting point for creating a more official cow path.

Update:*
The esm + Jest demo has been updated with module name mapping support.

That's pretty cool! Thanks for sharing.
We'll have to figure out where we want the integration to be. How would it handle CSS (or other non-js assets) files? Should it just be a transform? What about the built-in babel transform? How should Jest behave when it comes to the incoming loaders, if it does affect anything?

It seems like there may be a benefit for a community contrib esm-enabled alternate jest runner (or an unofficial / experimental flag) so we can make progress on something like that. Would there be interest in that from jest team?

require is not implemented in a runner, it's in the runtime itself. Any contributions towards making it pluggable is very much welcome (ref #848).
I'm sure if you can get the example code @jdalton linked to to work without issues (or close to it), it should be simple enough to load in the esm loader behind a flag in jest itself. One thing I see as an issue is that it wants the real module global, not the fake one we create. Not sure if it means modules can leak between tests? I don't know what esm does with it under the hood. It also doesn't handle mocks, so mocks with import would still break

May just need some tweaking of how Jest taps into CJS.
To mock the module object instead of using a plain object it could use require("module") and then
wrap/overwrite module.require to intercept requests and juggle as needed.

Update:
I'm now working on enabling Jest out of the box (with hopefully nothing Jest has to do differently).
I'll continue to experiment over the weekend but early signs look good.

@jdalton Any update with the esm compatibility?

Hi @JasonCust, wow my comment has gotten some attention. I have made progress in identifying the work needed to enable Jest support in esm. On my experiments I got it loading and evaluating tests written in ESM. The work required on the esm loader side is to make the way we handle vm.Script use more generic. At the moment we hook into that primarily for REPL use which assumes a single module. We have to make that a bit more generic for Jest support to shake out. It doesn't look like Jest will have to change anything. The refactor of our vm.Script support is still on my todo and will still be tackled before I release things like experimental WASM support. At the moment I've been squashing bugs that have popped up around improved APM and mocking support.

Thanks for the update @jdalton as I am excited to be able to use esm with Jest. So as to not bother you while you are working on those things, is there a task for esm that we can follow along with the progress?

You can keep subscribed to this thread of follow the repo. Jest support will be in the the v3.1.0 release so you could keep a look out for that version.

@jdalton Any news about supporting Jest in esm?

Hi @deepj!
It's still on my list and the items I can tackle before getting this done are shrinking. I've been improving supplemental Jest support of testing esm modules within Jest (though CJS within Jest tests). There's still nothing critically blocking implementation on Jest's side (so no work for them to do). Microsoft, my employer, is a heavy Jest user too so it's one of my day-job goals to improve this as well. I'm hoping to tackle it in July (June went by super fast).

@jdalton Good to know. And thanks for your work. I appreciate it!

Really looking forward to this feature :speak_no_evil:

Been trying to make this feature work for the past two hours. There are so many partial solutions, half-documented answers, all different from each other... It uses to be easy to test node.js packages.

So just adding babel-plugin-transform-es2015-modules-commonjs & babel-plugin-dynamic-import-node to babel-jest?

What happened to that idea? Any issue in implementing it?

Hi @SurenAt93!
Thank you for your patience. I'm hoping to have a release out by the end of the month with Jest support. With that you'll specify esm as a Jest transform.

Cool. How is that transform different than Babel?

@kenotron
Using Jest's transform option is a way for me to side-load the esm loader. So while it is technically transforming source too, it's also wiring up the esm loader.
If the question is more what's the difference between Babel and esm. Babel is a collection of packages that transforms source, one of the targets could be ESM syntax. The esm loader is a zero dependency loader that simulates the runtime environment. So esm supports things like dynamic import(), passes relevant test262 specs (temporal dead zones, live bindings,  upfront-errors, etc.), and supports loading a mix of CJS/ESM/WASM to taste by configuration.

@jdalton Thank you for you work and support!

@tomheller ;)

Been trying to make this feature work for the past two hours. There are so many partial solutions, half-documented answers, all different from each other... It used to be easy to test node.js packages.

I agree.
I created a simple Vue project, which also manifests the problem.
https://github.com/igasparetto/vue-jest-test
I wasn't able to get it to work.
I followed the instructions from the following pages:

https://vuejs.org/v2/guide/unit-testing.html
https://medium.com/@kevin_peters/unit-testing-vue-js-components-with-jest-86e14ef499da
Please see this thread: https://github.com/vuejs/vue-cli/issues/1584

My machine (not sure it should matter):

Windows 10 Pro 64-bit
Node v8.9.4
Vue: 3.2.3

I'm leaving a small "data point" here to help you in your planning. I realize you are all donating your time and skills to address this issue. As a dev myself, I appreciate your contribution.
I just spent most of yesterday, a Saturday no less, to come up to speed on javascript modules on both the client and server side. ESM, CommonJS, AMD, what a confusing mess. I was never able to get a jest test to work with ESM loading a (node) module using a .mjs extension. I could load the same module successfully client side. I could create a node "client" that used the module with an import statement. I couldn't configure jest correctly to consume the same import statement, with or without babel, with or without esm. I eventually switched to ava, and just got it to work following a recipe on their website. Yes, I followed a recipe, I don't fully understand the machinery that made all the parts work. But at least I can now write ESM loading javascript modules and associated unit tests. I think. I'm extrapolating on the basis on one single success. They also have a recipe to connect ava to webstorm. But at least they are presenting recipes to mere mortals like me.
I also realize this message will read like I'm whining (which in part I am). I see all the work that's gone into jest. But this ESM support thing is a killer and a deal breaker for me. Thought you'd appreciate some feedback, but if not, ignore this or ask me to delete it and I will.

Any news in the light of the new modules support in the v12 release?

@dandv I've been doing some investigation into if Jest can support native ES modules in node 12. It will involve Jest using the vm.SourceTextModule API, which requires a few CLI flags to be passed to node:
--experimental-modules --es-module-specifier-resolution=node --experimental-vm-modules

The API is super low-level too.
TBD.

Update: been told to wait until the design of Node's module loader is locked down. In the mean time, standard-things/esm#706 might be the best bet.

jest is a very nice testing library. support for esm really all it needs to be complete!

Update: been told to wait until the design of Node's module loader is locked down. In the mean time, standard-things/esm#706 might be the best bet.

this does not work with jest, sadly.

@jdalton We are using lodash-es, which is the ES Module Exports build of lodash. Our project is an Angular v7 project, which uses Webpack v4 under the hood as its bundler.  For those that don't know, lodash-es is tree shakeable with Webpack v4! ( ◔ ౪◔)⊃━☆ﾟ.*・.
Unfortunately this is causing us problems given that Jest has no ES Module support yet.  We are hoping this feature will be part of Jest soon.  Would anyone happen to know how to get lodash-es working with Jest?
Jest fails with the error message:
node_modules\lodash-es\lodash.js:10
    export { default as add } from './add.js';
    ^^^^^^

    SyntaxError: Unexpected token export

Our jest.config.js
We are also using jest-preset-angular npm package.
module.exports = {
  testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
  transform: {
    '^.+\\.(ts|js|html)$': 'ts-jest'
  },
  resolver: '@nrwl/builders/plugins/jest/resolver',
  moduleFileExtensions: ['ts', 'js', 'html'],
  collectCoverage: true,
  coverageReporters: ['html']
};

Unfortunately this is causing us problems given that Jest has no ES Module support yet. We are hoping this feature will be part of Jest soon. Would anyone happen to know how to get lodash-es  working with Jest?

Tell Jest not to ignore lodash-es when transforming:
  "transformIgnorePatterns": [
    "[/\\\\]node_modules[/\\\\](?!lodash-es/).+\\.js$"
  ],

@azz do you have any idea when the design of Node's module loader will be locked down?
Because:
npx -n '--experimental-modules' jest func.spec.js

would be so darn cool and easy-life.

Since Node.js v12.0.0 was launched on 2019-04-23 everything changed again
I wrote the npm package jest-esnext back when things were broken with babel
It seems to work for Node.js 12+ unchanged, ie. "type: module" in package.json and extension .js
The strategy in jest-esnext is to do all transpiling in a dependency so that a stable babel environment is achieved. The consuming project does not need babel
https://www.npmjs.com/package/jest-esnext
https://github.com/haraldrudell/ECMAScript2049/tree/master/packages/jest-esnext

@haraldrudell per the instruction it is not clear how to use the package, it says: create file next to package.json named jest.config.js content module.exports = require('jest-esnext'), but what if I already have a config? How to integrate?

this is the file used
https://github.com/haraldrudell/ECMAScript2049/blob/master/packages/jest-esnext/config/jest.config.js
you might be able to replace the contents of _default with the one from your jest.config.js

Hi guys,
node 12.13.0 LTS's finally released... any news about that matter?

@mtsmachado8  I'm afraid some time is still needed by v8 team on the matter because I see ESM modules still being flagged as experimental... they failed on the roadmap for it maybe.
https://nodejs.org/api/esm.html

For unflagged ESM this PR is in place
https://github.com/nodejs/node/pull/29866

@azder so basically in your solution you do Babel transformation for all JS files including ones in node_modules?

Node now has module support toggled by default
https://github.com/nodejs/node/pull/29866

ECMAScript Modules default support landed in 13.2.0
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V13.md#13.2.0

We won't be working on this until the loaders are available. Without them, Node doesn't have the hooks Jest need to provide proper support. See https://medium.com/@nodejs/announcing-core-node-js-support-for-ecmascript-modules-c5d6dc29b663 (I'm unable to link directly to the section, but it's the "Work in Progress" one at the bottom)

For those who use native modules and want use jest.
While you working on this i suggest a quick fix for node v. 13.2.0:
babel-plugin-transform-default-import
Usage (in package.json):
{
  "babel": {
    "presets": [
      [
        "@babel/preset-env",
        {
          "targets": {
            "node": "current"
          }
        }
      ]
    ],
    "plugins": ["transform-default-import"]
  },
}

@infodusha Awesome :) . Thanks you for this.

In my project works without the plugins:
npm i --save-dev @babel/preset-env
babel.config.js:
module.exports = {
    presets: [
        [
            '@babel/preset-env',
            {
                targets: {
                    node: '13.2',
                },
                modules: 'commonjs',
            },
        ],
    ],

    plugins: [],
};

the trick is to separate files into directories and use appropriate package.json in them:
in test dir, I used
{
  "type": "commonjs"
}

while in src dir:
{
  "type": "module"
}

@azder But if you import package that provides commonjs named import in native modules you need to import it with default import and in babel you need to use named import. Likely, you have no packages like that, or packages that provide es6 export, but not all packages are ready to do it tomorrow

You'll need to transpile import/export until support lands, both user and library code

Any rough timetable on this?
from node 14 release:

It is our belief that the current implementation offers a future proof model to authoring ESM modules that paves the path to Universal JavaScript. Please read more in our documentation.
The ESM implementation in Node.js is still experimental but we do believe that we are getting very close to being able to call ESM in Node.js “stable”. Removing the warning is a huge step in that direction.

We're shipping an experimental version from Jest 25.4. Quite a few bug fixes in 25.5, but it's still not where it should be. You can follow the progress in #9430

wow, 1 year later after the last comment and still not working on "jest": "^26.6.3",

The discussion has been moved to https://github.com/facebook/jest/issues/9430.
ESM support is being introduced in Jest 27, so even if today was "10 years later" it would still not be working on "jest": "^26.6.3".

Got this issue with react-icons, my project use electron-forge webpack typescript template, well... I did not manage to make something work. The best work-around I found was... mocking the whole module : jest.mock('react-icons/all', () => 'sdf'). Not so great.

I think this could be close now, right @SimenB?

Yeah, we can probably do that. Support is mostly done on our side, documented at https://jestjs.io/docs/ecmascript-modules. Further work has been blocked for about 15 months in node itself: https://github.com/nodejs/node/issues/37648

i m hanging here for the answer


lxc cluster remove fails with EOF

Required information

Distribution: Ubuntu
Distribution version: 20.04
The output of "lxc info" or if that fails:

Kernel version: 5.4
LXC version: 4.0.11
LXD version: 4.0.8
Storage backend in use: zfs

Issue description
In a cluster of 8 nodes removing one of the nodes when running lxc cluster remove <name> on the node to be removed causes the following error: Error: Delete "http://unix.socket/1.0/cluster/members/lxd6": EOF
The node is afterwards correctly removed from the cluster.
Attempting to stop the LXD daemon afterwards (in our case via snap disable lxd) causes the command to hang. The lxd.log shows
t=2021-11-02T19:49:26+0000 lvl=info msg="Disabling clustering" serverName=
t=2021-11-02T19:49:26+0000 lvl=info msg="Stop database gateway"
t=2021-11-02T19:49:26+0000 lvl=info msg="Dqlite proxy stopped" local=<IP_ADDRESS>:8443 name=runDqliteProxy remote=<IP_ADDRESS>:55418
t=2021-11-02T19:49:26+0000 lvl=info msg="Dqlite proxy stopped" local=<IP_ADDRESS>:42074 name=raftDial remote=<IP_ADDRESS>:8443
t=2021-11-02T19:49:26+0000 lvl=info msg="Starting database node" address=1 id=1 role=voter
t=2021-11-02T19:49:26+0000 lvl=info msg="Restarting LXD daemon following removal from cluster"

Process list has
root           1  0.0  0.0<PHONE_NUMBER>8 ?        Ss   16:13   0:11 /sbin/init
root         212  0.0  0.0  53132 14176 ?        S<s  16:13   0:00 /lib/systemd/systemd-journald
root         245  0.0  0.0  21200  5112 ?        Ss   16:13   0:00 /lib/systemd/systemd-udevd
root         376  0.0  0.1<PHONE_NUMBER>8 ?        SLsl 16:13   0:00 /sbin/multipathd -d -s
systemd+     417  0.0  0.0  89564  6004 ?        Ssl  16:13   0:00 /lib/systemd/systemd-timesyncd
systemd+     496  0.0  0.0  26284  6652 ?        Ss   16:13   0:00 /lib/systemd/systemd-networkd
systemd+     499  0.0  0.0  23884 10744 ?        Ss   16:13   0:00 /lib/systemd/systemd-resolved
root         592  0.0  0.0 240716  8160 ?        Ssl  16:13   0:00 /usr/lib/accountsservice/accounts-daemon
root         595  0.0  0.0   8328  2580 ?        Ss   16:13   0:00 /usr/sbin/cron -f
message+     596  0.0  0.0   8488  4392 ?        Ss   16:13   0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root         603  0.0  0.0  80924  2948 ?        Ssl  16:13   0:00 /usr/sbin/irqbalance --foreground
root         605  0.0  0.1  29064 16852 ?        Ss   16:13   0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
syslog       609  0.0  0.0 221176  3932 ?        Ssl  16:13   0:00 /usr/sbin/rsyslogd -n -iNONE
root         610  0.0  0.2 1301648 36680 ?       Ssl  16:13   0:11 /usr/lib/snapd/snapd
root       61280  0.0  0.0  10448  1384 ?        S    19:49   0:00  \_ systemctl stop snap.lxd.daemon.service
root         612  0.0  0.0  16260  6716 ?        Ss   16:13   0:00 /lib/systemd/systemd-logind
root         615  0.0  0.0<PHONE_NUMBER>6 ?        Ssl  16:13   0:00 /usr/lib/udisks2/udisksd
daemon       616  0.0  0.0   3584  1760 ?        Ss   16:13   0:00 /usr/sbin/atd -f
root         632  0.0  0.0   6832  1864 ttyS0    Ss+  16:13   0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS0 vt220
root         650  0.0  0.0   5308  1456 tty1     Ss+  16:13   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root         673  0.0  0.1<PHONE_NUMBER>0 ?        Ssl  16:13   0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root         689  0.0  0.0 236132  8072 ?        Ssl  16:13   0:00 /usr/lib/policykit-1/polkitd --no-debug
root         801  0.0  0.0  12200  6472 ?        Ss   16:13   0:00 sshd: /usr/sbin/sshd -D -o AuthorizedKeysCommand /usr/share/ec2-instance-connect/eic_run_authorized_keys %u %f -o AuthorizedKeysCommandUser ec2-instance-connect [listener] 0 of 10-100 startups
root       61502  0.0  0.0  15456  7716 ?        Ss   19:51   0:00  \_ sshd: ubuntu [priv]
ubuntu     61609  0.0  0.0  15592  4384 ?        S    19:51   0:00      \_ sshd: ubuntu@pts/0
ubuntu     61611  0.0  0.0   9768  4732 pts/0    Ss   19:51   0:00          \_ -bash
ubuntu     61890  0.0  0.0  10524  3120 pts/0    R+   19:54   0:00              \_ ps fauxww
root        1289  0.0  0.1 1455540 17572 ?       Ssl  16:13   0:00 /snap/amazon-ssm-agent/4047/amazon-ssm-agent
root        1332  0.0  0.1 1466904 29248 ?       Sl   16:13   0:00  \_ /snap/amazon-ssm-agent/4047/ssm-agent-worker
root        2882  0.0  0.0   8324  2988 ?        Ss   16:13   0:00 bash /etc/systemd/system/jujud-machine-8-exec-start.sh
root        2887  0.0  0.6<PHONE_NUMBER>0 ?        Sl   16:13   0:12  \_ /var/lib/juju/tools/machine-8/jujud machine --data-dir /var/lib/juju --machine-id 8 --debug
root       60853  0.2  0.2  46664 38244 ?        S    19:49   0:00      \_ /var/lib/juju/agents/unit-lxd-7/.venv/bin/python /var/lib/juju/agents/unit-lxd-7/charm/hooks/pool-storage-detaching
root       61263  0.3  0.1<PHONE_NUMBER>8 ?        Sl   19:49   0:01          \_ snap disable lxd
dnsmasq     3368  0.0  0.0  11720   340 ?        S    16:13   0:00 dnsmasq -u dnsmasq --strict-order --bind-interfaces --pid-file=/run/ubuntu-fan/dnsmasq-fan-252.pid --conf-file= --listen-address <IP_ADDRESS> --dhcp-range <IP_ADDRESS>,<IP_ADDRESS> --dhcp-no-override --except-interface=lo --interface=fan-252 --dhcp-leasefile=/var/lib/misc/dnsmasq.fan-252.leases --dhcp-authoritative
root       18210  0.0  0.0 163232  4092 ?        Ssl  16:14   0:00 /usr/sbin/zed -F
root       23428  0.0  0.0   2060  1368 ?        Ss   16:15   0:00 /bin/sh /snap/lxd/21804/commands/daemon.start
root       23611  0.5  0.1 1266832 29312 ?       Sl   16:15   1:13  \_ lxd --logfile /var/snap/lxd/common/lxd/logs/lxd.log --group lxd
root       23600  0.0  0.0  85308  1500 ?        Sl   16:15   0:00 lxcfs /var/snap/lxd/common/var/lib/lxcfs -p /var/snap/lxd/common/lxcfs.pid
root       61281  0.0  0.0   2060  1340 ?        Ss   19:49   0:00 /bin/sh /snap/lxd/21804/commands/daemon.stop
root       61889  0.0  0.0   3700   448 ?        S    19:54   0:00  \_ sleep 1
ubuntu     61505  0.0  0.0  17952  8500 ?        Ss   19:51   0:00 /lib/systemd/systemd --user
ubuntu     61506  0.0  0.0 170236  3752 ?        S    19:51   0:00  \_ (sd-pam)

Systemd will timeout the stop command after a while and take the daemon down
Steps to reproduce

Create a cluster with 8 nodes
On a non-database node run lxc cluster remove <name of the node>

Information to attach

[ ] Any relevant kernel output (dmesg)
[ ] Container log (lxc info NAME --show-log)
[ ] Container configuration (lxc config show NAME --expanded)
[ ] Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
[ ] Output of the client with --debug
[ ] Output of the daemon with --debug (alternatively output of lxc monitor while reproducing the issue)

Based on previous chats, it looks like two behavior may occur in this scenario:

Cluster member is successfully removed but EOF is returned as LXD is restarted prior to the request completing
Cluster member removal straight up fails with Error: Unable to inspect leader: No such object

We should add a test to cover this particular scenario as part of one of the existing clustering testsuites and then sort out whatever is causing this issue.

We can probably use the ManualResponse type to send the response before restarting
https://github.com/lxc/lxd/blob/3ff91aa566d32f84b463d1aa9dfd23281bb5fc04/lxd/api_cluster.go#L760

As I was scaling the cluster node by node further down I now ran into
unit-lxd-1: 21:25:14 INFO unit.lxd/1.juju-log Error executing `/snap/bin/lxc cluster remove lxd1`: 1 - Error: failed to begin transaction: failed to create dqlite connection: no available dqlite leader server found

Look at the cluster (from the same node the remove command was execute on by the charm):
ubuntu@ip-172-31-31-238:~$ sudo lxd cluster list-database
+--------------------+
|      ADDRESS       |
+--------------------+
| <IP_ADDRESS>:8443 |
+--------------------+
| <IP_ADDRESS>:8443 |
+--------------------+
| <IP_ADDRESS>:8443 |
+--------------------+
ubuntu@ip-172-31-31-238:~$ lxc cluster ls
+------+----------------------------+----------+--------+-------------------+--------------+
| NAME |            URL             | DATABASE | STATE  |      MESSAGE      | ARCHITECTURE |
+------+----------------------------+----------+--------+-------------------+--------------+
| lxd1 | https://<IP_ADDRESS>:8443 | YES      | ONLINE | Fully operational | aarch64      |
+------+----------------------------+----------+--------+-------------------+--------------+
| lxd2 | https://<IP_ADDRESS>:8443 | YES      | ONLINE | Fully operational | aarch64      |
+------+----------------------------+----------+--------+-------------------+--------------+
| lxd3 | https://<IP_ADDRESS>:8443 | YES      | ONLINE | Fully operational | aarch64      |
+------+----------------------------+----------+--------+-------------------+--------------+
| lxd4 | https://<IP_ADDRESS>:8443 | YES      | ONLINE | Fully operational | aarch64      |
+------+----------------------------+----------+--------+-------------------+--------------+

After a few more retries of the failed Juju hook the lxc cluster remove command finally went through and the node was dropped from the cluster. Running lxc cluster ls from the remaining nodes shows a healthy cluster.

Based on previous chats, it looks like two behavior may occur in this scenario:
* Cluster member is successfully removed but EOF is returned as LXD is restarted prior to the request completing

This seems to be because using http.Flusher.Flush() to get a response before restarting takes a tad too long. Trying to figure out why it's slow, but just adding as much as a 100ms sleep seems to fix this as a bandaid.

* Cluster member removal straight up fails with `Error: Unable to inspect leader: No such object`

This one's really weird. The only way this can happen is if for some reason the leader address we get from the gateway is not actually in the nodes database. As yet I haven't been able to reproduce this one.

I wonder if waiting until r.Context() is done before restarting would be a better way of ensuring the client has got the response before restarting.

I got the Error: Unable to inspect leader: No such object error reproduced. Basically adding and removing nodes over and over again and at some point the problem shows up.
https://private-fileshare.canonical.com/~morphis/lxc-unable-to-inspect-leader.log has the log of the lxd node which our charm tries to remove with executing lxc cluster remove <name> from the node itself.
The juju log shows that the Error: Unable to inspect leader: No such object error is just a symptom of another thing going wrong. The very first time lxc cluster remove is executed the error is Error: failed to begin transaction: failed to create dqlite connection: no available dqlite leader and any subsequent calls get  Error: Unable to inspect leader: No such object

@morphis when you get one of the weird ones (so not the EOF), can you check if LXD crashed/restarted on any of the servers?

@stgraber No, haven't seen any crash on the other nodes. Uploaded their logs at https://private-fileshare.canonical.com/~morphis/node-logs/


linux-54 lost external connection from phone device.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
linux-54 lost external connection from phone device.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Rebooting phone device to restore connection.


List correction

Two procedures should be children of previous statement.

@tuyen-at-work : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Flutter should get AutoTransition, where two Widgets can lerp between each other

Lets say I have Widget A, which contains some widgets, and then I have Widget B, which contains some more widgets. Each side will have keys that match a source widget to a target widget. AutoTransition will match these up and animate them from their positions in Widget A to their positions in Widget B.
Android implements a feature similar to this with the Transition framework. I actually use this feature in an Android app of mine to expand and contract a music control overlay... Doing this manually in Flutter would not be fun.
I'm guessing (since I haven't touched Flutter internals much) that something like this would animate on the RenderObject layer.

We've been kicking around some ideas in the area using the name "layout transition".  Add that to this bug so we can find it later with that search.

A couple of ideas:

how hard would be to abstract the current Hero logic in a way that it could work not only for route transitions but also for any other kind of widget transitions?
Create a Widget that you can use to wrap any other widget and just animates the size/position changes any time there is a change of them, possibly placing them in a temp overlay during animations, so they don't need to follow the constraints of the start/end layouts but they can follow their own curves and timings?

@Hixie what is the recommended way to "dry run" a widget render and get the layout data (sizes and offsets)? I would like to start playing a bit with some of these concepts and a few hints would be really appreciated!

Did this ever go anywhere?

On year later, any update? I'm very struggling to do widget layout transitions from A, to B.
This transition I can not do in flutter. If I want to use AnimatedPosition the parent should be Stack but as you I cannot layout this UI with Stack.
Can you give me help how to achieve it?


bitcore Bootstrap

the bootstrap zip is not in the new Version. Can you change this ?

added the bootstrap.zip file from Version <IP_ADDRESS> ... the Version of <IP_ADDRESS> has no bootstrap.zip file ...

added the bootstrap.zip file from Version <IP_ADDRESS> ... the Version of <IP_ADDRESS> has no bootstrap.zip file ...


read.maf  subsetMaf  funcntion  bug   Aborted (core dumped)   R and Rstudio-server crash

Describe the issue
A clear and concise description of what the issue is.
read.maf  subsetmaf  funcntion  bug   core dump   R and Rstudio-server crash
Command
Please post your commands and the output (errors or any unexpected output)
 maf1<-read.maf('/home/data/project/MAF/mc3.v0.2.8.PUBLIC.maf.gz')
-Reading
|--------------------------------------------------|
|==================================================|
-Validating
--Removed 149782 duplicated variants
-Silent variants: 1288245
-Summarizing
mremap_chunk(): invalid pointer
Aborted (core dumped)

 trace(m4a<-subsetMaf(laml1,tsb = m4$Tumor_Sample_Barcode))
--Mutiple centers found
WUGSC;BCM;BCM;WUGSC
 *** caught segfault ***
address 0x3346e026a, cause 'memory not mapped'
realloc(): invalid pointer
realloc(): invalid old size
realloc(): invalid pointer

Traceback:
 1: forderv(byval, sort = keyby, retGrp = TRUE)
 2: `[.data.table`(maf, , .N, .(Tumor_Sample_Barcode, Variant_Classification))
 3: maf[, .N, .(Tumor_Sample_Barcode, Variant_Classification)]
 4: summarizeMaf(maf = nonSyn, anno = clinicalData, chatty = verbose)
 5: MAF(nonSyn = maf.dat, syn = maf.silent, clinicalData = maf.anno)
 6: subsetMaf(laml1, tsb = m4$Tumor_Sample_Barcode)
 7: trace(m4a <- subsetMaf(laml1, tsb = m4$Tumor_Sample_Barcode))

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Aborted (core dumped)

Session info
Run sessionInfo() and post the output below
R version 4.1.3 (2022-03-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

Matrix products: default
BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=zh_CN.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=zh_CN.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] maftools_2.11.25  forcats_0.5.1     stringr_1.4.0     dplyr_1.0.9
 [5] purrr_0.3.4       readr_2.1.2       tidyr_1.2.0       tibble_3.1.6
 [9] ggplot2_3.3.5     tidyverse_1.3.1   data.table_1.14.2

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.2   DNAcopy_1.68.0     lattice_0.20-45    splines_4.1.3
 [5] haven_2.5.0        colorspace_2.0-3   vctrs_0.4.1        generics_0.1.2
 [9] survival_3.3-1     utf8_1.2.2         rlang_1.0.2        pkgbuild_1.3.1
[13] pillar_1.7.0       glue_1.6.2         withr_2.5.0        DBI_1.1.2
[17] RColorBrewer_1.1-3 dbplyr_2.1.1       modelr_0.1.8       readxl_1.4.0
[21] lifecycle_1.0.1    munsell_0.5.0      gtable_0.3.0       cellranger_1.1.0
[25] rvest_1.0.2        callr_3.7.0        tzdb_0.3.0         ps_1.7.0
[29] fansi_1.0.3        broom_0.8.0        backports_1.4.1    scales_1.2.0
[33] jsonlite_1.8.0     fs_1.5.2           hms_1.1.1          stringi_1.7.6
[37] processx_3.5.3     grid_4.1.3         rprojroot_2.0.3    cli_3.3.0
[41] tools_4.1.3        yulab.utils_0.0.4  magrittr_2.0.3     crayon_1.5.1
[45] pkgconfig_2.0.3    Matrix_1.4-1       ellipsis_0.3.2     xml2_1.3.3
[49] prettyunits_1.1.1  reprex_2.0.1       lubridate_1.8.0    assertthat_0.2.1
[53] httr_1.4.2         rstudioapi_0.13    R6_2.5.1           compiler_4.1.3

Hi,
I dont think this is a maftools specific issue, I think you have run out of memory.

Hi,
I dont think this is a maftools specific issue, I think you have run out of memory.
My HPC has  512Gb memory。memory is sufficient。I recompiled and installed the devlopment version of the data.table package(1.14.3)。Then the bug never appeared again。

R version 4.1.3 (2022-03-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

Matrix products: default
BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] maftools_2.11.25  forcats_0.5.1     stringr_1.4.0     dplyr_1.0.9       purrr_0.3.4       readr_2.1.2
 [7] tidyr_1.2.0       tibble_3.1.7      ggplot2_3.3.6     tidyverse_1.3.1   data.table_1.14.3

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.2   DNAcopy_1.68.0     splines_4.1.3      haven_2.5.0        lattice_0.20-45    colorspace_2.0-3
 [7] vctrs_0.4.1        generics_0.1.2     utf8_1.2.2         survival_3.3-1     rlang_1.0.2        R.oo_1.24.0
[13] pillar_1.7.0       glue_1.6.2         withr_2.5.0        DBI_1.1.2          R.utils_2.11.0     dbplyr_2.1.1
[19] RColorBrewer_1.1-3 modelr_0.1.8       readxl_1.4.0       lifecycle_1.0.1    munsell_0.5.0      gtable_0.3.0
[25] cellranger_1.1.0   rvest_1.0.2        R.methodsS3_1.8.1  tzdb_0.3.0         fansi_1.0.3        broom_0.8.0
[31] scales_1.2.0       backports_1.4.1    jsonlite_1.8.0     fs_1.5.2           hms_1.1.1          stringi_1.7.6
[37] grid_4.1.3         cli_3.3.0          tools_4.1.3        magrittr_2.0.3     crayon_1.5.1       pkgconfig_2.0.3
[43] ellipsis_0.3.2     Matrix_1.4-1       xml2_1.3.3         reprex_2.0.1       lubridate_1.8.0    assertthat_0.2.1
[49] httr_1.4.2         rstudioapi_0.13    R6_2.5.1           compiler_4.1.3

Super!
Thanks for clarifying.


[BUG] Don't download by site hitomi.la

Good morning, first of all I would like to congratulate you because this program is very useful. Now I'm trying to use it to download some manga in Italian, but I'm having difficulty with the following codes 'go run https://hitomi.la/reader/2464336.html#1-'. I think what I've written is correct, maybe the website has been updated and the software hasn't?
terminal
go run https://hitomi.la/reader/2464336.html#1-

error
2023/02/15 17:06:51 URL parse failed
exit status 1

I hope I was clear
Good day

Hi, thanks for reporting your issue. Please try it again with the URL of the gallery which in your example would be:
https://hitomi.la/manga/puppet-club-%7C-club-di-yoga-italiano-2464336.html#1
To download a specific page you can check out the parameter -p.

Good morning,
thanks for the availability but I still have problems. First of all when you have to use get-sauce.exe you mean that you have to save the file located at the site https://github.com/gan-of-culture/get-sauce/releases and in my case I have windows and the file inside I put it in the get-sauce-master folder together with the other files? Or do you have to run the file? This last action apparently does not leave me. Meanwhile I tried with all 3 files get-sauce.exe one at a time and together with the other files and I ran from terminal
get-sauce.exe "https://hitomi.la/manga/puppet-club-%7C-italian-yoga-club-2464336.html#1"
but i got as error
no limit values found at: https://ltn.hitomi.la/gg.js .
I hope I was clear, I await a kind reply

Hi, there are two ways to run get-sauce:

Using the executable for your OS which can be downloaded from the "releases" page of this repo
Using the source code and executing it using Golang go run main.go ...

Please refer to the Readme.md file for further instructions.
Using the newest version I was able to download https://hitomi.la/manga/puppet-club-%7C-italian-yoga-club-2464336.html#1 with no problem.

Hello @gan-of-culture please add my hentai website to the list Watch Hentai
We average 50k daily users and this tool can help them.

Hello, still not going, I attach 2 screenshots to show that with the same code on https://hitomi.la/manga/inmushi-no-ikenie-italiano-1059339.html#1 it doesn't work for me while on https:/ /orzqwq.com/manga/q-hatsu-date-wa-lingerie-shop-shop-lingerie-otokonoko-wa-itsudemo-moteki-2-english/ Download me, later try on another computer, I'm sure I have downloaded both go and FFmpeg otherwise it wouldn't download anything, then I also managed to get get-sauce.exe to work.
hitomi.la
Not download

[orzqwq](https://orzqwq.com/
Download

Request
could it be an ip problem? or something like that? Because I tried with the Windscribe vpn and it works but it doesn't work without it, are there other solutions? I could use the tor network I was able to get it working.

Since the problem is perhaps a block or something like that because in 2 other sites (at least) the hentai manga are downloaded while on hitomi.la I didn't think of adding the header, do you have any advice? I put the user-agent, for cookies what could I put? I would like to make a few attempts so maybe if it resolves it maybe it could be useful in the future
Good day

get-sauce should use the default proxy that is configured in the windows settings, but there is no TOR support. Can you save the output of https://ltn.hitomi.la/gg.js as a file and attach it?

gg.zip
Hello, I attach the js file and then I tried with another computer and it gives me the same error so it's probably a network problem or I don't know, I hope the js file is zipped (you couldn't update with js on the comment) you can understand something more, good day

hmmm that's weird. The gg.js file looks good to me. Sorry I can't help you then since I can't reproduce the error :(

I understand, patience at most I will use a vpn for a month, however there are other sites where I have to download. Thanks for your time and have a good day

Good news , i tried with my mobile hospot with pc and it works !!! With home wifi it doesn't work and I don't know why. Mystery. Thanks for everything


System.FormatException when parsing DateTime on some Systems

On some systems a crash occurs when parsing the DateTime-String saved in the database. StoreDateTimeAsTicks is set to false.
System.FormatException: String was not recognized as a valid DateTime.
   at System.DateTime.Parse(String s)
   at SQLite.Net.SQLiteCommand.ReadCol(IDbStatement stmt, Int32 index, ColType type, Type clrType)
   at SQLite.Net.SQLiteCommand.<ExecuteDeferredQuery>d__2`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at SQLite.Net.SQLiteCommand.ExecuteQuery[T]()
   at SQLite.Net.SQLiteConnection.Find[T](Object pk)
   at SQLiteNetExtensions.Extensions.ReadOperations.FindWithChildren[T](SQLiteConnection conn, Object pk, Boolean recursive)
   at SQLiteNetExtensionsAsync.Extensions.ReadOperations.<FindWithChildrenAsync>c__async2`1.<FindWithChildrenAsync>c__AnonStorey9.<>m__0()

I believe this bug is related to the following inconsistency: When saving the DateTime as string, the format (yyyy-MM-dd HH:mm:ss) gets specified, but not when parsing. Under certain conditions, parsing could fail due to localization issues.
Maybe it would be better to use
return DateTime.ParseExact(text, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);

instead of
return DateTime.Parse (text);

in SQLite.Net.SQLiteCommand.ReadCol(IDbStatement stmt, Int32 index, ColType type, Type clrType). I believe that this change would prevent dependencies on localization settings and also improve the performance when parsing the string.

Don't mean to troll, but the best thing to do is to convert all the string based DateTime fields to the ticks... This is universal (within .NET, but could be adapted for other platforms) and the value is fully preserved. In general, when you save the DateTime field on one machine and read it on another, the regional settings make a huge difference and they determine how the date/time fields are saved/read.
I believe, SQLite saves the DateTime as a string in a very specific format (you've got it in your question), but whether Windows expects the DateTime in that exact format is a big question. I would expect sqlite-net to take care of it, but you may have to browse through the parser and see for yourself.
So to answer your original question, DateTime.ParseExact(...) may be your next best option.

This has been fixed, but yes please switch to Ticks in the future. Thanks!


Change from using pod status  to mainly just task-result

Currently, we use a mixture of pod status and task-result to determine the outcome of a workflow step. Pods can be deleted as soon as they complete and so it is possible for the pod status to be lost before the controller can update the node status. This happens a lot during node drain, resulting in "pod deleted" workflows.
Instead:

The wait container could populate the task-result with phase and message.
Task-result should be owned by workflow, not pod.

Combined, this means that the outcome of the step will linger until the controller  can capture it.

Hi, @alexec I have a step where 200 pods come up and download about 20GB's of data each.
A majority of the pods return a success. When I look at the logs, I can tell that the jobs are complete.
Upon completion, the 20GB's is uploaded from each of the 200 pods to S3 (using argos s3 upload)
And then all of a sudden , over 70 pods randomly fail and all that I get back is "pod deleted".
Is this a similar issue? Are there any workarounds?
Thanks!


CASSANDRA-16262: Intoduce Harry to the tree

Made a first quick scan to catalog typos, unused things, etc.
Will make another once the tests are running properly...

This isn't binding, but there's a general question here around how much JavaDoc we want to have at the class level for some of what's been added here. It's still going to evolve, though, and I'm not sure which things are going to be stable enough to describe now without regrets :)

Final note...how difficult would it be to publish source for harry-core? (It would be helpful when future Harry users feel the need to dive in a bit to get understanding on bits of the framework.)


Can you make your library citable?

I am writing a scientific paper where I'd like to cite your code. Could you please generate a doi code that I could reference by following the instructions in this link?
https://guides.github.com/activities/citable-code/
Thanks!
G

Thanks for the suggestion! I tried the linked process, but it failed on the "authorize" step with the message

You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.

I'm happy with a footnote identifying the tool as https://github.com/spyysalo/nxml2txt (with a date if you want to identify a version); if you prefer a reference, please use the paper where the tool was introduced:
@InProceedings{stenetorp2011bionlp,
  author    = {Stenetorp, Pontus and Topi\'{c}, Goran and Pyysalo, Sampo
      and Ohta, Tomoko and Kim, Jin-Dong and Tsujii, Jun'ichi},
  title     = {BioNLP Shared Task 2011: Supporting Resources},
  booktitle = {Proceedings of BioNLP Shared Task 2011 Workshop},
  month     = {June},
  year      = {2011},
  address   = {Portland, Oregon, USA},
  publisher = {Association for Computational Linguistics},
  pages     = {112--120},
  url       = {http://www.aclweb.org/anthology/W11-1816}
}


FF12Penelo < I'm tougher than I look OMGScoots (RNG Helper instances persists in Task Manager)

What I basically did:

Open OBS Studio and RNG Helper
Add RNG Helper from Window Source
Change Helper to Steal/Rare
Close RNG Helper
You get one Penelo for one set of this procedure

Repro Steps:

Open RNG Helper
Change Helper to Steal/Rare
Close RNG Helper

Expected: Process should exit.
Actual: Zombie process persists.

Root Cause:
Only the Main Form aka, The first form launched by the Application automatically closes the program when it is closed. Other forms do not do this automatically.
Solution:
Add EventHandler for Form.OnClosed to exit the application.
Fix is in CR.


Draggable

I was looking at the jQuery plugin, and it had draggable feature.
Was that made possible through jQueryUi? And is it possible to port over that functionality without (preferably) jQueryUi?  If that is not possible, then perhaps jQueryUi dependency could be optional. So if jQueryUi is not included, then draggable feature will not work.

Hello @ChaudhryAtif
The draggable feature is done without jqueryUI.
this feature will be added to angular-confirm soon, after the jquery dependency is removed.

Sounds good. Looking forward to it!