All jobs hang on waiting status while submit multiple jobs over few seconds

Hi,
After I submitted multiple jobs(almost 10) over a few seconds, I found that all jobs kept waiting status for more than 1 hour.
Then I stop all jobs except one waiting job and it turns to be Running status a few minutes later.
How could I fix that? How could I submit multiple jobs in a very short time and wait for it finishes one by one?
OpenPAI Environment:

OpenPAI version: 0.14.0

Can you provide more info? Such as Launcher Service log, AM log, RM log, etc.

close as no response.


Statistics / visualization TODOs

Raw stats data:

[x] #57
[x] #90
[ ] #75
[ ] #70
[x] #71
[x] #91
[ ] #92
[ ] #93
[ ] SkipReason/SpecialCases distro

Graphs:

[ ] AS #neighbors vs #good pairs
[ ] AS %good pairs vs #RPSL rules
[ ] %RPSL rules used (validity TBD)

CDF of routes vs % of good/meh/skip/bad AS-pairs: Discuss whether routes have mostly good pairs, or mostly similar pairs, or a mix of pair types.

route
n_good_pair
n_skip_pair
n_meh_pair
n_bad_pair

$\sim 10^8$ words.
Or, with independent variable "% exchanged routes for each AS pair:"

as_pair
n_good_route
n_skip_route
n_meh_route
n_bad_route

route
%meh_case_as1
%meh_case_as2

Or, with independent variable "% routes for each AS:"

aut_num
n_good_route
n_skip_route
n_meh_route
n_bad_route

Blocking on #65.

From #90 and #88 we see that the portion of skips is tiny and the portion of unrecorded is large, therefore I propose that we plot distribution of different unrec instead of skip.

+1
On Fri, Nov 10, 2023, 00:25 Steven Hé (Sīchàng) @.***>
wrote:

From #90
https://github.com/SichangHe/internet_route_verification/issues/90 and
#88 https://github.com/SichangHe/internet_route_verification/issues/88
we see that the portion of skips is tiny and the portion of unrecorded is
large, therefore I propose that we plot distribution of different unrec
instead of skip.
—
Reply to this email directly, view it on GitHub
https://github.com/SichangHe/internet_route_verification/issues/38#issuecomment-1805016398,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACPO52MWWVMNS5BG2XMCITYDWNBBAVCNFSM6AAAAAA3INWOCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGAYTMMZZHA
.
You are receiving this because you commented.Message ID:
@.***>


Boot2Docker not starting up

After having installed correctly boot2docker and ran some examples, I removed manually boot2docker-vm from my VirtualBox and now, I can't start it up anymore....
I also realised that I don't haven any 'docker' related environment variable set anymore, as I used to have. I tried so many times stop->delete->up, but without any success. I even followed this instruction to delete boot2docker and all related files: http://therealmarv.com/blog/how-to-fully-uninstall-the-offical-docker-os-x-installation/
No success!!! :(
Everytime, I'm starting boot2docker, I'm getting this message:
boot2docker up
Waiting for VM and Docker daemon to start...
..........................................................................oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
  Trying to get Docker socket one more time
Error requesting socket: exit status 255
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose.

If I start boot2docker with this: boot2docker -v up, then I'm getting this messages:
boot2docker -v up
Boot2Docker-cli version: v1.3.1
Git commit: 57ccdb8
2014/11/12 14:25:04 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2014/11/12 14:25:04 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
2014/11/12 14:25:04 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2014/11/12 14:25:04 executing: VBoxManage sharedfolder add boot2docker-vm --name Users --hostpath /Users --automount
VBoxManage: error: The machine 'boot2docker-vm' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1002 of file VBoxManageMisc.cpp
error in run: Failed to start machine "boot2docker-vm": exit status 1

And this is my output, I'm getting while starting boot2docker by clicking the app icon:
unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
mkdir -p ~/.boot2docker
if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
/usr/local/bin/boot2docker init
/usr/local/bin/boot2docker up
$(/usr/local/bin/boot2docker shellinit)
docker version
Last login: Wed Nov 12 14:17:49 on ttys005
dariusz@Dariusz-5:~$ bash
bash-3.2$ unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
bash-3.2$ mkdir -p ~/.boot2docker
bash-3.2$ if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/
boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
bash-3.2$ /usr/local/bin/boot2docker init
Virtual machine boot2docker-vm already exists
bash-3.2$ /usr/local/bin/boot2docker up
Waiting for VM and Docker daemon to start...
..........................................................................oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
  Trying to get Docker socket one more time
Error requesting socket: exit status 255
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose.

bash-3.2$ $(/usr/local/bin/boot2docker shellinit)
error in run: Error requesting socket: exit status 255

bash-3.2$ docker version
Client version: 1.3.1
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 4e9bbfa
OS/Arch (client): darwin/amd64
2014/11/12 14:35:32 Get http:///var/run/docker.sock/v1.15/version: dial unix /var/run/docker.sock: no such file or directory
bash-3.2$

I would highly appreciate any help!!

It sounds like you might have a stray boot2docker-vm set up in VirtualBox -- it's probably worth trying to open the VirtualBox GUI to delete that and try boot2docker -v init and then boot2docker -v up again.

It did the trick for me.

Just out of interest do you have port forwarding setup on VirtualBox for the boot2docker image from host: 2022 to guest: 22
You can check this in VirtualBox via right clicking the image  and selecting settings > network > advanced > port forwarding
Doing this is not normally part of the set up, but of course sometimes things can go wrong

Exact same probleme here..

+1 exact same crash for me.  The new Boot2Docker "app" / shellscript is broken on fresh install.
OSX 10.9.4, fresh download of docker 1.4.1, Boot2Docker-cli version: v1.4.1 Git commit: 43241cb .  VirtualBox shows that the 2022->22 port forwarding is set up properly and that the machine image is running.  OSX firewall is off.
I've tried deleting and re-creating the vm several times and doesn't work.

Do you mean the OSX /etc/hosts? I have that entry and boot2docker still doesn't up the VM as expected.

FWIW I installed version 1.3.2 (from the github releases) and docker hello-world now works.  Not sure why 1.4.1 is broken in OSX 10.9.4; perhaps it's something in the VirtualBox distro:
https://github.com/boot2docker/osx-installer/compare/v1.3.2...master

FWIW I just upgraded from v1.3.2 to the freshly released boot2docker v1.5.0 and 1.5 appears to work in OSX 10.9.4 <3 <3 <3

After giving up and now reading all your comments, I thought, I'm gonna give it another shot and voila... It's working. ;)
First of all, thanks to "darrengruber", who pointed it out to check in my hosts for entry:
<IP_ADDRESS>    localhost

Indeed, this entry was commented out. I put it back and did the update to version 1.5.0 and removed the entry from the VirtualBox Manager.
Started boot2docker by doing:
$ boot2docker -v init
$ boot2docker -v up

After the first 'up' it asked me to set some environment path
To connect the Docker client to the Docker daemon, please set:
    export DOCKER_HOST=tcp://<IP_ADDRESS>:2376
    export DOCKER_CERT_PATH=/Users/DarusLT/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

After this, I was able to use it as from the beginning. I'm not sure what was the cause, but I would say both. The commented out host and the update.
I hope it helps.

After upgrading to v.1.50, problem has been resolved, ending with same output that Darius

one thing that i think everybody missed is that one has to comment out the three export lines for it to be reinstalled. I try and retry and nothing, until i commented out those lines on my shell and then retry what @DariusLT said. All works again!

I have exactly the same problem on mac os x yosemite.
Waiting for VM and Docker daemon to start...
..........................................................................oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
  Trying to get Docker socket one more time
Error requesting socket: exit status 255
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose.

with verbose i am blocked on Connecting to tcp://localhost:2022
Boot2Docker-cli version: v1.5.0
Git commit: ccd9032
2015/03/08 20:11:27 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2015/03/08 20:11:27 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2015/03/08 20:11:27 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
Waiting for VM and Docker daemon to start...
.Connecting to tcp://localhost:2022 (attempt #0)2015/03/08 20:11:27 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/jamal/.ssh/id_boot2docker docker@localhost ip addr show dev eth1

Have anyone found a solution ?

Try:
boot2docker delete
boot2docker download
boot2docker init
boot2docker up

You might have an old boot2docker image. Worked for me anyway.

Already tried and have also made a full reinstallation but doesn't work.

you have to be systematic, i bet in one of the steps you are just redoing it wrongly. It is tricky though!

I just upgraded to 10.10.2, installed the most recent version of docker, and got similar problems which lead me here.
I opened the virtualbox manager, which said my VBox was out of date.
I checked the config in the port settings and the /etc/hosts file, so I thought it might be an older version of VirtualBox causing the problem...
I upgraded VirtualBox to 4.3.24 r98716
I ran Docker by starting it from the VirtualBox manager, watched everything load, then went back to following the start guide on https://docs.docker.com/installation/mac/
I was able to follow along and the "hello world" worked.

@darrengruber thanks! it work for me

For me the problem was this line
fe80::1%lo0     localhost

One I commented it from my hosts file, it worked.

did you try the following?
boot2docker init
vboxmanage modifyvm boot2docker-vm --natpf1 "http,tcp,<IP_ADDRESS>,8200,,8200"
boot2docker up
export DOCKER_HOST=tcp://localhost:4243

It works !
The problem was my SSH Config. When it try to connect to boot2docker vm, it use my github private key and not the boot2docker private key.
I fixed it by adding:
Host boot2docker:
    HostName: localhost
    IdentityFile ~/.ssh/id_boot2docker

didnt you export DOCKER_CERT_PATH to the right path?

Thank you @razmo! I confirm it works perfectly. Just changing ~/.ssh/config
I added:
Host boot2docker
  Hostname localhost
  IdentityFile ~/.ssh/id_boot2docker

Also this solves the issue #803

I had the same problem described here, but none of the above worked
It was solved via a
docker cask remove virtualbox
docker cask install virtualbox
boot2docker delete
boot2docker init
boot2docker up
in practice, a complete reinstall :(
fortunately I had nothing NOT in the hub

For me, the whole delete, download, init,up thing suggested by @psynaptic was the only thing that worked. Thanks!

boot2docker issue fix after OS X upgrade
After OS X 10.10.4 upgrade if your boot2docker fails in startup then do a disk verification (using OS X Disk Utility) for file permissions.. You will definitely find issues with ownerships and once the verifications are done.. click the repair option.. This will fix the docker issues

I seem to run into this situation when on a corporate LAN hmm.

I am on Windows 7 x64.
Port tcp://localhost:2022 is listening
Whatever I try (reinstalling, downloading new image, setting default ssh), I always get this at the end.

Started.
Trying to get Docker socket one more time
2015/07/08 17:17:04 executing: C:\Program Files (x86)\Git\bin\ssh.exe ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i C:\Users\r892107.ssh\id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline FATAL: Unable to connect to relay host, errno=10060 Error requesting socket: exit status 255
2015/07/08 17:17:25 executing: C:\Program Files (x86)\Git\bin\ssh.exe ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i C:\Users\r892107.ssh\id_boot2docker docker@localhost tar c /home/docker/.docker/*.pem
FATAL: Unable to connect to relay host, errno=10060
Auto detection of the VM's Docker socket failed.
Please run boot2docker -v up to diagnose.

In my case, ProxyCommand in ~/.ssh/config bited me.
I've added following section to my ssh config:
Host localhost
    Hostname <IP_ADDRESS>
    ProxyCommand none

The Open Text Socks Client was getting in the way of Docker accessing port 2022 on my laptop...  so... uninstalled Boot2Docker, VirtualBox, Git & the Open Text Socks Client, then... reinstalled Boot2Docker, VirtualBox & Git and... successfully ran docker hello-world...  then reinstalled the open text socks client...

Same Issue
.Connecting to tcp://localhost:2022 (attempt #0)2015/07/21 13:43:53 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/pwalton/.ssh/id_boot2docker docker@localhost ip addr show dev eth
I've check the .ssh, /etc/hosts/, deleted and re-installed.
This is a new installation of Yosemite, new boot2docker, and checked all ports, nothing else pointed to 2022.
Any other suggestions?

I've just bumped into this issue, starting boot2docker -v up spits out a lot of:
o2015/12/16 13:04:30 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/rjeczalik/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255
o2015/12/16 13:04:31 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/rjeczalik/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255
o2015/12/16 13:04:31 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/rjeczalik/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255

In my case the problem was a syntax error in my ~/.ssh/config file - after fixing it everything went smooth. Posting in case it saves someone some debugging.

Your fix worked @DariusLT! Thanks!


Home page button

Thanks , Jem for pointing this out. I think it'd be great if we added a full navbar

Describe the bug
It can be difficult to navigate from one page to another if you don't know what address to type.
To Reproduce
Go to the "groups" tab and choose a group; there is no convenient way to go back to the home page.
Expected behavior
Add a navigation bar or dropdown to the top of every page. Primarily it needs a "Home" button. The "Logout" button would be better there than in the footer.


Support CIP-119

CIP-119 defined the structure of offchain gov metadata for drep registrations

Done by https://github.com/IntersectMBO/cardano-db-sync/pull/1718


Still renders in source mode

Describe the bug
Rendering should be reserved for Live Preview and Reader View only, but blocks with custom classes are still rendered in Source view.
Expected behavior
Should be able to (in Source view) see and edit each inline code block as if it were a plain-text editor like notepad.

@ggstrader Are you using the latest version of the plugin (2.6.1) ? I'll investigate this later in the day

Re @ggstrader.
I've not been able to reproduce this bug. Very old version of the plugin may cause that, please ensure you're using the latest one.
If you already are, please provide me with your Obsidian app's version and a note content with which you are observing this bug.

I'm using 2.6.1 and Obsidian 1.1.15, Windows 10.
I just assumed based on the element view that the plugin wasn't respecting source mode.
But, now I've "figured it out." Except I have absolutely no idea what's going on.
I couldn't reproduce it in Sandbox. So I copied the entire vault to another directory, and still had the issue. Turned off all the plugins, still had the issue. Removed all other plugins and snippets. Still had the issue. By process of elimination, found that removing one file - /software/obsidian/plugins/Plugin Notes.md - made the problem go away??? However, re-copying the vault and removing only that file doesn't fix the problem. Re-copying and removing everything except that file doesn't fix the problem. Only if I delete 90% of my vault (including that file), and undo that delete, does the problem go away. I.e. if absolutely nothing changes (except maybe file metadata) for most of my files including that strange problem file, somehow it's fixed. This is bonkers.
Anyways, it appears(?) to have nothing to do with the plugin? Somehow it's OS related? I'm genuinely confused.

Figured it out! The issue resurfaced and I 'bout died.
It had nothing to do with any of that.
It looks like the "first" pane dictates what mode other panes are in. This is reproducible in the Sandbox.

Open a note with a custom class in source mode
Open another note in a separate pane
Observe that toggling between Live/Source mode has no effect
Switch the first pane to Live
Observe when clicking in the second pane that it switches modes
Toggling the mode in the second pane again has no effect

@ggstrader Thanks for this investigation ! I'll try to fix that later in the day :)

I had the same issue as ggstrader also another issue that might be caused by this.
I can't paste from clipboard if the item has backtics as the first line, disabling the plugin fixes it.
`class:meta`
- creation:: 2023-01-21T18:55:12
- author:: [[John Doe]]
- parents:: [[Note]], [[Another note]]
- status:: #MayBePartial

Also, in source view it renders as if I'm in live preview and hides "class:meta" but shows if I click inside the fields.
Outside that I'm having no issues, I love your plugin and so happy I have a way to link my notes in fields, thank you!

@ggstrader @AzulaBeKinky I hadn't added this to my tasks list and had totally forgotten to investigate this issue 🤭
I'll let you know when I'll have more infos or when it's fixed.
Happy to read that this plugin is useful to you @
@AzulaBeKinky 😊

I had the same issue! On Win10

I'm not sure if this is related but, aside from having the same problem as above with rendering even in source mode, the class doesn't seem to be applied at all and instead I get a code block.
I have the Copy Document As HTML plugin and when I copy the HTML, the apparent output is like this:

<h2 data-heading="`class:meta`">class:meta

List 2

List 3

As you can see, the backticks are causing it to be wrapped in a code block and not get rendered at all. For some reason the first list item is also getting cut off (there actually was a "List 1" item)
I've tried disabling all plugins and any relevant settings I can think of. It may be I'm doing something wrong since I'm new to Obsidian.

@ThornedRose Are you using it for the Lila's frontmatter ?
I'll soon release a new version of this one on the Obsidian forum that doesn't rely on this plugin to work.
I'm actually not using this plugin myself anymore, I don't plan to continue maintaining it in the future, but would be happy to accept any PR.

@ThornedRose Are you using it for the Lila's frontmatter ? I'll soon release a new version of this one on the Obsidian forum that doesn't rely on this plugin to work.
I'm actually not using this plugin myself anymore, I don't plan to continue maintaining it in the future, but would be happy to accept any PR.

I do not use it for front matter. Just for trying to style individual elements. A problem I've been beating my head against with immense frustration for two solid days :(
My use case is that I have a heap of books, each one as a note. At the top of each book, I have a table containing a summary of the characters in the book, the period in which it takes place, organisations and places of significance, etc. It looks similar to the metadata of the book but is just more flexible. I wanted to be able to style it differently from other tables so it stands out more. My work around so far has been to put it in a callout. But that also has it's own limitations since I now can't put any other tables in callouts otherwise they'll get styled the same.
It would be wonderful if Obsidian either added a unique identifier to each element by default or at least had some way of optionally adding identifiers and classes.
Unfortunately my forte lies solely in HTML and CSS and I have Cognitive Impairment so as much as I would love to be able to contribute to this wonderful plugin, I don't have the knowledge or ability. :(

@ThornedRose Oh I see ! Thanks for those details :)
If I understood your problem correctly, I think callout could indeed be the solution.
Do you know that you can style callouts from their identifiers ?
I've myself replaced the usage of this plugin for my frontmatter with a callout. Here is a minimal example that might inspire you.
Here is the callout in my note :
>[!meta]-
> type:: XP
> creation:: 2023-03-31T23:44
> archived:: false

And now the callout is accessible using the [data-callout="meta"] CSS selector, so I can change its background like this :
[data-callout="meta"] {
    background: red;
}

And now the callout is accessible using the [data-callout="meta"]

OMG, game changer!!! Somehow I missed that. Probably not surprising after staring at html for days on end. 😅
Coupled with the Metatable plugin, I now how wonderful control over custom meta content. Thanks so much!!

@ThornedRose Glad it helped ! :blush:


Add a Gitter chat badge to README.rst

IntelPNI/brainiak now has a Chat Room on Gitter
@mihaic has just created a chat room. You can visit it here: https://gitter.im/IntelPNI/brainiak.
This pull-request adds this badge to your README.rst:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

OK to test.


Update UG

In this commit, the following was done:

Update Ui image in QuickStart
Update linked release repository
Update command summary to reflect all the available commands
Add images for selected features
Add tips for selected features

The following changes are good, especially the adding of pictures and the tips for selected features! LGTM.


Update to v.0.5.0

[0.5.0] - 2021-11-12
Added

Add preprocess_batch method to Lifecycle.
Add option for string type in utils.name.
Add Metric Selector.

Fixed

Weight freezing during model loading.
Fix discriminative_lr param selection for NoneType parameters.
Fix wandb project naming during hparamsearch.
Optimizer Schedulers take accumulate_grad_batches into account.

Changed

Key debug statements while loading models to include both missing and unexpected keys.
Bumped PL to version 1.4. Holding back on 1.5 due to Tune integration issues.
Bumped Tune to version 1.8.

Codecov Report

Merging #11 (8a71361) into main (98a7ec8) will decrease coverage by 0.20%.
The diff coverage is 79.53%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   90.34%   90.14%   -0.21%
==========================================
  Files          40       40
  Lines        2777     2891     +114
==========================================
+ Hits         2509     2606      +97
- Misses        268      285      +17

Flag
Coverage Δ

unittests
90.14% <79.53%> (-0.21%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

examples/mnist_dataset.py
57.69% <0.00%> (-12.31%)
:arrow_down:

ride/__init__.py
100.00% <ø> (ø)

ride/main.py
98.43% <0.00%> (ø)

setup.py
0.00% <ø> (ø)

ride/logging.py
74.10% <28.57%> (+1.20%)
:arrow_up:

ride/utils/utils.py
90.29% <70.00%> (+7.46%)
:arrow_up:

ride/metrics.py
88.64% <74.54%> (+2.44%)
:arrow_up:

ride/profile.py
94.87% <75.00%> (-2.32%)
:arrow_down:

ride/finetune.py
94.68% <80.00%> (+0.99%)
:arrow_up:

ride/unfreeze.py
87.32% <88.23%> (-5.54%)
:arrow_down:

... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98a7ec8...8a71361. Read the comment docs.


Set Custom colors via flag

Currently, the colors used for each language are hard coded in a vector:
Language::Clojure => vec![Color::BrightBlue, Color::BrightGreen]
We would like to give the user the possibility to set his own colors by passing a flag:
onefetch --ascii_colors 1 2 3 4 5 6
Inspired from a neofetch's feature , it would be helpful to add a visual marker at the bottom right to tell the user the color order (1: red, 2: green...) as such :

This feature is for the brave only :1st_place_medal:

Sounds fun! Can I try this one?


How does bfc assign quality scores?

After error correction, I noticed that some quality scores are strange:
?????????????????????????????????????????????????????????????????????????????????????????????+????????+???????????+?????????????

Phred+33 (Sanger/Illumina) regular quality values, ?=30, +=10. Looks not that strange IMHO.

I checked the quality scores of 1 read before and after error correction.
Before:
33AAA/FBCEGGGEFGGGGGGGGFFGF:FFFFGG>FGGGGED@1FG1=<>C/EECGGGCEGECF:FGGC@FFBFF@C<F</<0CEGFB@CG08@FGGGGGGG@GE;<F=FCG0..8@/DGG
After: the header is  ec:Z:0_0:2_0_1:1_0
++???+?????????????????????????????????????+??+????+??????????????????????????????+?+??????????+?????????????"??????+++??+???
So according to the header, only 1 error was corrected in this read, but the quality scores of most bases have been changed.

It seems that the quality scores of most bases were lower after error correction.


feat(supernova): enable editing name, if user is anonymous

Summary
For all silence forms its now enabled to edit the username if a user is anonymous.
Related Issues
closes https://github.com/cloudoperators/juno/issues/335
Checklist

[x] I have performed a self-review of my code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] New and existing unit tests pass locally with my changes.
[ ] I have made corresponding changes to the documentation (if applicable).
[x] My changes generate no new warnings or errors.

Improvement proposal:

When saving the Auth object just extract the relevant attributes like fullname and support_group and just save them in the Store. So you would save to check in different places fullname || "" when you initialize the fullname already with "" in the store.


WaveOut.PlaybackState is not changing, DirectSoundOut.PlaybackState is not playing

Hello
WaveOut.PlaybackState is not changed upon playing wave file by chunks. i need to perform changing speed of an mp3 thats why i'm reading wav by chunks.
Sample code:
using System.Threading;
using System.Windows;
using NAudio.Wave;

namespace Mp3SlowDowner
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            const string mp3File = @"G:\Музыка\Epic 1.mp3.mp3";
            const string outputFile = @"G:\Музыка\Epic 1 wava.wav";

            ConvertMp3ToWav(mp3File, outputFile);

            PlayByChunks(outputFile);
        }

        private static void PlayByChunks(string outputFile)
        {
            var waveOut = new WaveOut();
            var waveFileReader = new WaveFileReader(outputFile);
            var bufferedWaveProvider = new BufferedWaveProvider(waveFileReader.WaveFormat);

            waveOut.Init(bufferedWaveProvider);

            waveOut.Play();

            byte[] buffer = new byte[1024 * 256];

            while (true)
            {
                int read = waveFileReader.Read(buffer, 0, buffer.Length);
                if (read == 0)
                    break;

                bufferedWaveProvider.AddSamples(buffer, 0, read);

                do
                {
                    Thread.Sleep(1000);
                } while (waveOut.PlaybackState == PlaybackState.Playing);
            }
        }

        private static void ConvertMp3ToWav(string mp3File, string outputWavFile)
        {
            using (Mp3FileReader reader = new Mp3FileReader(mp3File))
            {
                WaveFileWriter.CreateWaveFile(outputWavFile, reader);
            }
        }
    }
}

Also state seems doesn't work in DirectSoundOut either (its state is not Playing and buffer gets overflowed)
using System.Threading;
using System.Windows;
using NAudio.Wave;

namespace Mp3SlowDowner
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            const string mp3File = @"G:\Музыка\Epic 1.mp3.mp3";
            const string outputFile = @"G:\Музыка\Epic 1 wava.wav";

            ConvertMp3ToWav(mp3File, outputFile);

            PlayByChunks(outputFile);
        }

        private static void PlayByChunks(string outputFile)
        {
            var waveOut = new DirectSoundOut();
            var waveFileReader = new WaveFileReader(outputFile);
            var bufferedWaveProvider = new BufferedWaveProvider(waveFileReader.WaveFormat);

            waveOut.Init(bufferedWaveProvider);

            waveOut.Play();

            byte[] buffer = new byte[1024 * 256];

            while (true)
            {
                int read = waveFileReader.Read(buffer, 0, buffer.Length);
                if (read == 0)
                    break;

                bufferedWaveProvider.AddSamples(buffer, 0, read);

                do
                {
                    Thread.Sleep(1000);
                } while (waveOut.PlaybackState == PlaybackState.Playing);
            }
        }

        private static void ConvertMp3ToWav(string mp3File, string outputWavFile)
        {
            using (Mp3FileReader reader = new Mp3FileReader(mp3File))
            {
                WaveFileWriter.CreateWaveFile(outputWavFile, reader);
            }
        }
    }
}

BufferedWaveprovider is an infinite stream (unless you set ReadFully = false). It always returns the number of bytes asked for in the Read method. So it will never stop playing. Instead, they way I tend to work is check how many bytes are buffered, and add more if needed.
But I'm not clear why you need BufferedWaveProvider at all in this instance? Just play the files with WaveFileReader or Mp3FileReader

Hi actually i ended with array of WaveFileReader for each sound sample. I just starting them at certain points of time.


Using meson/build

Do you have any insights on how to package a custom library that uses meson/build instead of make?

hi @bluewavenet. Sorry, but I have no idea.

I'll let you know if I figure it out ;-)

and then you can document it :)


[tool_crash] ProcessException: Failed to find "C:\src\flutter\flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe" in the search path. Command: C:\src\flutter\flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe, OS error code: 0

Command
flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --dart-define=flutter.inspector.structuredErrors=true lib\main.dart

Steps to Reproduce

...
...
...

Logs
ProcessException: Failed to find "C:\src\flutter\flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe" in the search path. Command: C:\src\flutter\flutter\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe, OS error code: 0
#0      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:56:7)
#1      ErrorHandlingProcessManager.start.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:686:24)
#2      _run (package:flutter_tools/src/base/error_handling_io.dart:556:20)
#3      ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:685:12)
#4      DefaultResidentCompiler._compile (package:flutter_tools/src/compile.dart:874:37)
#5      DefaultResidentCompiler._recompile (package:flutter_tools/src/compile.dart:734:14)
#6      _RecompileRequest._run (package:flutter_tools/src/compile.dart:420:16)
#7      _CompilationRequest.run (package:flutter_tools/src/compile.dart:394:30)
#8      DefaultResidentCompiler._handleCompilationRequest (package:flutter_tools/src/compile.dart:780:23)
#9      _rootRunUnary (dart:async/zone.dart:1407:47)
#10     _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#11     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#12     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#13     _DelayedData.perform (dart:async/stream_impl.dart:515:14)
#14     _PendingEvents.handleNext (dart:async/stream_impl.dart:620:11)
#15     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:591:7)
#16     _rootRun (dart:async/zone.dart:1391:47)
#17     _CustomZone.run (dart:async/zone.dart:1301:19)
#18     _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249:23)
#20     _rootRun (dart:async/zone.dart:1399:13)
#21     _CustomZone.run (dart:async/zone.dart:1301:19)
#22     _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#23     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249:23)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)

[✓] Flutter (Channel master, 3.20.0-2.0.pre.6, on Microsoft Windows [Version 10.0.22631.3296], locale en-US)
    • Flutter version 3.20.0-2.0.pre.6 on channel master at C:\src\flutter\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f8a77225f3 (8 weeks ago), 2024-02-04 14:28:18 +0000
    • Engine revision f34c658b96
    • Dart version 3.4.0 (build 3.4.0-99.0.dev)
    • DevTools version 2.31.0

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\Ahmed\AppData\Local\Android\Sdk
    • Platform android-34, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio4\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34009.444
    • Windows 10 SDK version 10.0.19041.0
    ✗ The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[✓] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio4
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[✓] VS Code (version 1.87.0)
    • VS Code at C:\Users\Ahmed\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.82.0

[✓] Connected device (4 available)
    • SM G970N (mobile) • emulator-5554 • android-x64    • Android 9 (API 28)
    • Windows (desktop) • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.3296]
    • Chrome (web)      • chrome        • web-javascript • Google Chrome 123.0.6312.86
    • Edge (web)        • edge          • web-javascript • Microsoft Edge 122.0.2365.92

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
Plugins
file_selector_linux-0.9.2+1
file_selector_macos-0.9.3+3
file_selector_windows-0.9.3+1
flutter_plugin_android_lifecycle-2.0.17
image_picker-1.0.7
image_picker_android-0.8.9+3
image_picker_for_web-3.0.2
image_picker_ios-0.8.9+1
image_picker_linux-0.2.1+1
image_picker_macos-0.2.1+1
image_picker_windows-0.2.1+1

Closing this as a duplicate of https://github.com/flutter/flutter/issues/143391


streamline bug submission from UI

We often ask a user to capture the JSON report for their current view.
Similar to, or perhaps using the new 'bug' button, this could be automated for the user and submitted either to a private hosted service (to protect potentially sensitive details) or encrypted and appended to an auto generated bug report as an attachment.

[x] Download report as doc / zipped JSON
[ ] Optionally auto-submit to a Weave service

Currently taking a screenshot and submitting may result in different data in the report, as it may have changed while user gone a fetched the report after taking a screenshot.

Looks like we should be able to use anonymous gists (subject to size limits), if gitreports.com cannot do it.

There's a button in the UI now for downloading the JSON report.
So I think this issue should be about streamlining the bug submission process, e.g. automatically attach json and screenshot.

dup of #992.


Move watch and watchEffect API to @vue/reactivity

What problem does this feature solve?
Listeners (that is, watch and watchEffect functions) are an important part of the Vue.js responsive system. Since Vue.js 3, most of the reactive functions (such as reactive, ref, effect, etc.) have been extracted into the brand new @vue/reactivity package, but they are in @vue/runtime-core package. The watch and watchEffect functions are also part of the reactive system, and they should be located in the @vue/reactivity package. For ordinary users, there will not be any functional changes. But for library authors, if they need them, they must be re-implemented (because it is impossible to import the @vue/runtime-core package). On the contrary, if they are in the @vue/reactivity package, things will be much simpler.
Implementation
We can extract these two functions into @vue/reactivity, remove the Vue.js specific code, and re-add these codes in packages/runtime-core/src/apiWatch.ts, we can to add them around the function (such as the flush option), it is not difficult.
Notes
#858 also proposed this, but it was closed.
We can use (@vue-reactivity/watch)[https://github.com/vue-reactivity/watch], but it is too old, please see (Watch with @vue/reactivity)[https://antfu.me/posts/watch-with-reactivity].
What does the proposed API look like?
It should look like this:
import { ref, watch, watchEffect } from '@vue/reactivity'
let count = ref(0)
watch(count, (count, prevCount) => console.log('old:', prevCount, 'new:', count))

count.value = 1 // old: 0 new: 1

let msg = ref('hello')
watchEffect(() => console.log('msg:', msg.value)) // msg: hello
msg.value = 'world' // msg: world

Its usage is the same as before, but the flush option will not be available.

I think exposing two functions with the same name in two different packages is prone to errors, especially for IDEs as they can import the wrong version and this is problematic because their behavior is the same.
As you pointed out at https://antfu.me/posts/watch-with-reactivity, you can implement this yourself or directly use effect()

I am also interested in this issue.
I know there were two computed in vue. One is inside @vue/reactivity and another one is inside @vue/runtime-core.
With the help of EffectScope, there is only on computed inside @vue/reactivity now.
So I am curious if there is a way to move watch to @vue/reactivity just like computed.
Then we can write code like this outside vue.
// effect, computed, watch, watchEffect created inside the scope will be collected

const scope = effectScope()

scope.run(() => {
  const doubled = computed(() => counter.value * 2)

  watch(doubled, () => console.log(doubled.value))

  watchEffect(() => console.log('Count: ', doubled.value))
})

// to dispose all effects in the scope
scope.stop()


Fix docker scan vulnerabilities

Checking the Dockerfile seems that base image openjdk:11.0.7-jre-slim-buster is bringing some vulnerabilities flagged by some image scanning tools like snyk or harbor.
To get list of vulnerabilities you can run following command:
 docker scan -f docker/openjdk-11/Dockerfile hyperledger/besu:develop-openjdk-11 --severity high

Producing following output:
Tested 91 dependencies for known issues, found 21 issues.

Base Image                      Vulnerabilities  Severity
openjdk:11.0.7-jre-slim-buster  77               21 high, 13 medium, 43 low

In addition some alternative base images are recommended:
Recommendations for base image upgrade:

Alternative image types
Base Image                         Vulnerabilities  Severity
openjdk:16-ea-29-jdk-oraclelinux8  0                0 high, 0 medium, 0 low
openjdk:17-ea-6-jdk                0                0 high, 0 medium, 0 low
openjdk:16-ea-oracle               0                0 high, 0 medium, 0 low
openjdk:16-ea-15-jdk-oraclelinux8  0                0 high, 0 medium, 0 low

It is not critical but some private docker registry won't allow to pull such images with high severity vulnerabilities.

Closed by #2452


Katib v1alpha2 documentation update

Fixes #865
Was: https://github.com/kubeflow/website/pull/892

This change is

/test all

/assign @sarahmaddox Can you approve this? @thedriftofwords approved on the other PR but she didn't have approver permissions in this repo.
I don't know why the presubmit is broken - for this repo it is just an empty workflow.

On a closer look, the presubmit passed - it is the postsubmit that failed (but shouldn't have been triggered in the first place).

/assign @sarahmaddox
/assign @thedriftofwords

/assign @thedriftofwords

/assign @thedriftofwords

@thedriftofwords Can you lgtm instead of approve? You were added as a reviewer but not approver.

/lgtm

/approve

/close


The V1 API Docs link in Edit profile > API access tab was broken.

Updated URL in config.x.application.api_documentation_urls property in config/initializers/_dmproadmap.rb.

BTW the link property  is also used in the app/mailers/user_mailer.rb.
https://github.com/DMPRoadmap/roadmap/blob/fc047ac0ae1b10f9fd451909e11a2d31e50b3ada/app/mailers/user_mailer.rb#L210


Execution failed for task ':admob_flutter:verifyReleaseResources'.

When I am trying to build apk it give error
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':admob_flutter:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output:  /Users/kapil/Desktop/FlutterProjects/DemoApps/ImageView/eq_educationquiz/build/admob_flutter/intermediates/res/merged/release/values/values.xml:200: error: resource android:attr/fontVariationSettings not found.
/Users/kapil/Desktop/FlutterProjects/DemoApps/ImageView/eq_educationquiz/build/admob_flutter/intermediates/res/merged/release/values/values.xml:201: error: resource android:attr/ttcIndex not found.
error: failed linking references.

 Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org
Kapils-MacBook-Air:eq_educationquiz kapil$ flutter build apk
Initializing gradle...                                              2.0s
Resolving dependencies...                                           2.9s

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':admob_flutter:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output:  /Users/kapil/Desktop/FlutterProjects/DemoApps/ImageView/eq_educationquiz/build/admob_flutter/intermediates/res/merged/release/values/values.xml:200: error: resource android:attr/fontVariationSettings not found.
/Users/kapil/Desktop/FlutterProjects/DemoApps/ImageView/eq_educationquiz/build/admob_flutter/intermediates/res/merged/release/values/values.xml:201: error: resource android:attr/ttcIndex not found.
error: failed linking references.

 Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 5s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                       6.1s

The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.

Gradle task assembleRelease failed with exit code 1

I am also getting that same error when I attempt to build apk.

This could be related to AndroidX. This package is yet to be migrated to AndroidX.

Please update to the new version 0.2.0

@kapil708 Has this issue still continued on the latest version for you?


Added zh localization

Translation based on Apple devices, don't use #21, thanks

Thanks a lot for the contribution! Will be deployed in the next release


Run Ruff (fix CI)

Summary of changes
Included in #4604, but here's a tiny PR to run autofixes on the last skeleton merge.
Pull Request Checklist

[ ] Changes have tests
[ ] News fragment added in newsfragments/.
(See documentation for details)

Thank you very much.


Roles over RCON, clear join message, quickbar fix

Allow roles to be set over RCON
Since a lot of stuff is already done with RCON, why not allow roles to be set this way too, using /assign and /unassign?
Changes the player name to be either the player's name or <server>, as that is the only valid option for what could happen.
Command to clear join message
New command to clear your join message.
Save-quickbar bugfix
The quickbar sync had an issue where items with unique IDs would be just replaced by general items, i.e. a deconstruction planner with a specific filter would be replaced by a generic deconstruction planner. This has been fixed by checking if an item is a list of set items, which include:

Spidertron remotes (unique ID to spidertron, changes every time spidertron dies, etc)
Deconstruction planner
Upgrade planner
Blueprint book
Blueprint
If the item is in this list, it is ignored and not pushed to the user's settings of quickbar syncing.

Whoops, merging into master. Not what I want


Add basthon launch button

This PR adds a launch button for Basthon.
Basthon is a nice project to execute a notebook client-side (inside the browser), using Pyodide. Similar to Jupyterlite, but I found it more stable for now and usable with several languages (SQL, OCaml...).

Closed for #595


Remove all subscribers when doing rmpsp

When remove a psp(rmpsp), should it also remove all the subscribers belongs to this psp?
In my uniqush push server, when I remove a psp, all the subscribers are remained.

It's currently not designed to remove all of the subscribers belonging to the psp. This feature would be nice to have (e.g. add ?purgesubscribers=1)

Making it opt-in would make sense, to avoid accidentally deleting subscribers when a user is trying to change an existing PSP.
Currently, uniqush-push does not require SCAN or KEYS for core functionality (except for listing all subscribers with wildcard operators). Some uniqush-push installations may use a proxy that forwards commands to multiple different redis instances, and SCAN/KEYS wouldn't be available for those proxies.
This will have common functionality with https://github.com/uniqush/uniqush-push/issues/191 - both require iterating over delivery points and associating them with subscriptions
The rate of deletion should be throttled to avoid impacting regular push notifications and other applications using the same redis instance. There should be a way to view progress and to cancel an in-progress task to remove all subscribers.

Cool!
BTW, I notice the api document is not up to date on http://uniqush.org/documentation/usage.html
new features are buried in github release notes. this could lose track. and difficult for new user like me.

BTW, I notice the api document is not up to date on http://uniqush.org/documentation/usage.html
new features are buried in github release notes. this could lose track. and difficult for new user like me.

Just discovered NEWS.md in the repo. all the changes are listed there.


Add client/src/utils/store.js

`// for ref: week 22-State 28-Stu_Mini-Project
// Creates a Redux store that holds the state of the app. Only one store should exist.
import { createStore } from 'redux';
// Importing the reducer file that is mostly unchanged
import reducers from './reducers';
export default createStore(reducers);`


Doc/Ref: Invalid CUE expression in the Expressions section of doc/ref/spec.md

In the "Primary expressions" of the  spec  the line a: (1|2, 1) does not seem to be a valid CUE expression:
What version of CUE ?
https://tip.cuelang.org/play/?id=IfXze6I0s0D#cue@export@cue

Wow. nice catch. You found a very old piece of spec that has relevance to the current CUE whatsoever. :)

This issue has been migrated to https://github.com/cue-lang/cue/issues/939.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


gdb: damang and oracle may don't supprot batch data update

Go version
1.20
GoFrame version
2.7.4
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
Save method does not support batch update. Only the first data is inserted and updated
What did you see happen?
Save method does not support batch update. Only the first data is inserted and updated
What did you expect to see?
Save method does not support batch update. Only the first data is inserted and updated

Can you provide the unit test?

@helloteemo I can't provide the unit test. But you can find similar it in mysql_unit_test


Add Valibot to benchmarks

🔗 Linked issue

❓ Type of change

[X] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[X] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
I added Valibot to the benchmarks and at the same time fixed the yup import.
===============================
Benchmarking with flat object
===============================
Vine x 13,868,974 ops/sec ±0.74% (83 runs sampled)
Zod x 1,253,634 ops/sec ±1.14% (85 runs sampled)
Yup x 529,423 ops/sec ±0.39% (90 runs sampled)
Valibot x 5,900,226 ops/sec ±0.18% (92 runs sampled)
Fastest is Vine
=================================
Benchmarking with nested object
=================================
Vine x 11,853,163 ops/sec ±0.37% (89 runs sampled)
Zod x 595,314 ops/sec ±0.39% (91 runs sampled)
Yup x 232,332 ops/sec ±0.53% (90 runs sampled)
Valibot x 3,380,880 ops/sec ±3.33% (84 runs sampled)
Fastest is Vine
======================
Benchmarking arrays
======================
Vine x 8,653,099 ops/sec ±0.99% (85 runs sampled)
Zod x 391,763 ops/sec ±2.16% (84 runs sampled)
Yup x 129,500 ops/sec ±0.80% (86 runs sampled)
Valibot x 2,698,201 ops/sec ±2.67% (78 runs sampled)
Fastest is Vine
=======================
Benchmarking unions
=======================
Vine x 10,739,323 ops/sec ±0.67% (85 runs sampled)
Zod x 187,938 ops/sec ±0.85% (88 runs sampled)
Valibot x 2,530,935 ops/sec ±0.16% (91 runs sampled)
Fastest is Vine

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Thanks!


Nest and Egg to_dict method missing informations

Any reason why Nest type and Egg doesn't return all the object when using to_dict?
See Nest.to_dict and Egg.to_dict.

Those methods return the object form that is acceptable for the API, meaning that you could pass an Egg instance directly to an API request (for example). There's not actual reason to do this though, and this is only really used internally.


Allowing unstable features by default is a time bomb that will break crates

https://github.com/SergioBenitez/version_check/blob/d77ef9f27cc336719b2d839d09ee6635dd22f758/src/lib.rs#L349-L351
By default Cargo does not pass any rustflags. These env vars are for users' extra flags, and don't include the usual flags used when compiling, so de-facto there's no filtering, and version_check naively allows any feature flag on any Rust version.
Rust renames, removes, or stabilizes nightly flags without warning. Crates checking for flags using version_check will sooner or later end up breaking the build by using flags that may no longer exist.
This check needs to be more robust. At least try compiling a file with #![feature(…)] in it to check if it still exists.

You issue misrepresents what version_check does. The comment in the snippet, "assume compiler allows all features," doesn't exist in a vacuum. It's preceded by other checks which, if they fail, cause the function to return early, meaning we never reach the comment. Namely:
https://github.com/SergioBenitez/version_check/blob/d77ef9f27cc336719b2d839d09ee6635dd22f758/src/lib.rs#L325-L329
So saying that version_check "naively allows any feature flag on any Rust version" is wrong.

These env vars are for users' extra flags, and don't include the usual flags used when compiling, so de-facto there's no filtering [..]

Perhaps you've misunderstood what this function is doing with respect to these environment variables. The point is that you can disable features via these flags, and here we're checking if they've done so. Given that these flags enable a blacklist, then yes, by default there's no filtering, but that's exactly how the compiler works: if it's a nightly or dev compiler, it allows every feature by default. We're encoding that behavior.

[..] on any Rust version [..]

Given all of the caveats above, this statement now becomes true. version_check doesn't tell you whether your compiler supports the feature you've asked for, it tells you whether your compiler can support the feature. This is a useful distinction to make, and I believe we should change the documentation accordingly.
Similarly, even if your specific version supports the specific feature, it may not implement the feature in the way you think (or previously observed) it implements the feature. This is also a useful distinction to make as well.
I don't believe there are any good general solutions to these problems available to us without support from rustc itself. See my comment at https://github.com/tkaitchuck/aHash/pull/239#issuecomment-2294516075 for more.

It answers true exactly when the release channel is known to be nightly or dev and the feature has not been disabled via RUSTFLAGS or CARGO_ENCODED_RUSTFLAGS.

Regarding this part, it's worth being aware that Cargo passes different flags to rustc than what it reveals to build scripts in CARGO_ENCODED_RUSTFLAGS. This means that even considering only compiler flags (i.e. disregarding the fact that a given feature name might mean a different thing to rustc from compiler to compiler), implementing reliable behavior for supports_feature("...") will require some fixes in Cargo. This is a longstanding Cargo bug but so far I'm not aware of a reason it couldn't be fixed, so I am hopeful that someone will eventually pick it up.
As an example of the consequence, a crate with [dependencies] ahash = "0.8" in Cargo.toml will fail to build in a project which has [unstable] allow-features = [] in .cargo/config.toml, since that is not included by Cargo in CARGO_ENCODED_RUSTFLAGS. Similarly, [profile.dev] rustflags = ["-Zallow-features="] in .cargo/config.toml would also not be included in CARGO_ENCODED_RUSTFLAGS and would fail to build.

Let me correct that I mean on any nightly Rust version.
The is_feature_flaggable check does not check for specific individual nightly feature flags, only generally whether unstable features are allowed.
The issue is that Rust 1.50.0-nightly supports different unstable features than Rust 1.66.0-nightly. Features that exist on 1.80.1-nightly may cease to exist on 1.95.0-nightly.
It's not sufficient to check whether the compiler allows feature flags, it's necessary to check whether it allows the specific feature flag.
The assumption that all flags work unless explicitly disallowed in rustflags is unreliable.
Specifically, this weak check breaks ahash 0.7 that checks for stdsimd feature flag that no longer exists in nightly Rust version, but version_check says it's okay to use it.
This will break ahash again when Rust changes specialization feature flags.

proc-macro2 used to have the same check of allow-features with fail-open fallback, and this has caused breakage too. Since then proc-macro2 has upgraded the check to a compile check, and I recommend copying that approach:
https://github.com/dtolnay/proc-macro2/blob/aa9476b27932ae1b1b50bbfe0530b3b261fc1b72/build.rs#L135C11-L192

@kornelski I have my own reasons for wanting to disable autodetection of nightly sometimes, so I wrote a small utility to override version-based detection. Let me know if it is useful for you.


feat: new module intellij-groovy-support

Codecov Report

Merging #178 (4c5579a) into master (f1fa66d) will decrease coverage by 0.150%.
The diff coverage is 0.000%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files

@@               Coverage Diff               @@
##              master      #178       +/-   ##
===============================================
- Coverage     39.260%   39.110%   -0.150%
  Complexity      1097      1097
===============================================
  Files            216       219        +3
  Lines          10703     10739       +36
  Branches        2636      2641        +5
===============================================
- Hits            4202      4200        -2
- Misses          5659      5697       +38
  Partials         842       842

Flag
Coverage Δ

unittests
39.110% <0.000%> (-0.150%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../com/itangcent/intellij/jvm/groovy/GrAutoInject.kt
0.000% <0.000%> (ø)

...ent/intellij/jvm/groovy/GrPsiExpressionResolver.kt
0.000% <0.000%> (ø)

...in/com/itangcent/intellij/jvm/groovy/GrPsiUtils.kt
0.000% <0.000%> (ø)

...llij/jvm/standard/StandardPsiExpressionResolver.kt
4.323% <0.000%> (-0.012%)
:arrow_down:

...itangcent/intellij/context/ActionContextMonitor.kt
74.286% <0.000%> (-8.571%)
:arrow_down:

...in/kotlin/com/itangcent/common/utils/ReflectKit.kt
46.250% <0.000%> (+0.625%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1fa66d...4c5579a. Read the comment docs.


chore: change build path

#86bx306x8

Task linked: CU-86bx306x8 Story #4.1 - Users want to build / (build:watch) their code - 3pts


🐛 Crashlytics Build fails with uploadCrashlyticsMappingFileRelease problem

Bug report
Describe the bug
When I try to bundle my application for production on android, I get the following error message:
flutter build appbundle

💪 Building with sound null safety 💪

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').
  - Type 'com.google.firebase.crashlytics.buildtools.gradle.tasks.UploadMappingFileTask' property 'googleServicesFile' specifies file '/home/Flutters/demoapp/build/app/generated/res/google-services/release/values/values.xml' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

    Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

This is my app/bundle.gradle file:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
    compileSdkVersion 30

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.demo.my"
        minSdkVersion 19
        targetSdkVersion 30
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
    }

    signingConfigs {
       release {
           keyAlias keystoreProperties['keyAlias']
           keyPassword keystoreProperties['keyPassword']
           storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
           storePassword keystoreProperties['storePassword']
       }
    }
    buildTypes {
       release {
           signingConfig signingConfigs.release
       }
    }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:multidex:1.0.3'
}

Expected behavior
It is expected to create that file and upload it correctly, thereby finishing the bundle build.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.4.0-5.0.pre.87, on Fedora 34 (Workstation Edition)
    5.12.15-300.fc34.x86_64, locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.58.2)
[✓] Connected device (3 available)

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
flutter pub deps -- --style=compact
Dart SDK 2.14.0-321.0.dev
Flutter SDK 2.4.0-5.0.pre.87
mydemo 1.0.1+10

dependencies:
- app_code 0.0.1 [flutter intl marqably_firebase]
- app_layout 0.0.1 [flutter flutter_svg app_code toolkit marqably_content_fragments gemplus_townwatch flutter_html ionicons flutter_hooks custom_navigation_bar table_calendar get_it package_info_plus url_launcher]
- built_value 8.0.6 [built_collection collection fixnum]
- cupertino_icons 1.0.3
- custom_navigation_bar 0.8.2 [flutter]
- ferry 0.10.3 [gql rxdart gql_link gql_exec meta collection hive built_value ferry_exec normalize ferry_cache]
- ferry_flutter 0.5.3 [ferry gql_exec ferry_exec flutter flutter_test]
- ferry_graphql_lighthouse 0.0.1 [built_value flutter intl]
- ferry_hive_store 0.4.3 [hive ferry_store rxdart collection]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_form_builder 6.0.1 [flutter flutter_localizations intl collection]
- flutter_hooks 0.18.0 [flutter]
- flutter_html 2.1.0 [html csslib flutter_layout_grid video_player chewie webview_flutter chewie_audio flutter_svg flutter_math_fork collection numerus flutter]
- flutter_mobx 2.0.0 [flutter mobx]
- flutter_svg 0.22.0 [flutter meta path_drawing vector_math xml]
- gemplus_about 0.0.1 [flutter i18n_extension flutter_html flutter_hooks share ionicons app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse marqably_content_fragments toolkit marqably_firebase url_launcher flutter_pdfview path_provider maps_launcher]
- gemplus_clubs 0.0.1 [flutter i18n_extension flutter_html flutter_hooks share ionicons app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit url_launcher]
- gemplus_garbagecalendar 0.0.1 [flutter i18n_extension flutter_html flutter_hooks share ionicons app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit marqably_local_notifications url_launcher hive hive_flutter get_it flutter_form_builder hooks_riverpod mobx flutter_mobx mobx_codegen]
- gemplus_townwatch 0.0.1 [flutter i18n_extension flutter_hooks app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse marqably_classified toolkit flutter_form_builder form_builder_image_picker]
- get_it 7.2.0 [async collection]
- gql_http_link 0.4.0 [meta gql gql_exec gql_link http http_parser]
- gql_link 0.4.0 [meta gql gql_exec]
- hive 2.0.4 [meta crypto]
- hive_flutter 1.1.0 [flutter hive path_provider path]
- hooks_riverpod 1.0.0-dev.5 [collection flutter flutter_hooks flutter_riverpod riverpod state_notifier]
- i18n_extension 4.1.0 [sprintf args analyzer gettext_parser equatable flutter]
- ionicons 0.1.2 [flutter]
- maps_launcher 2.0.0 [flutter flutter_web_plugins url_launcher]
- marqably_blog 0.0.1 [flutter i18n_extension flutter_html flutter_hooks share ionicons app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit]
- marqably_classified 0.0.1 [flutter i18n_extension flutter_html flutter_hooks share ionicons app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit url_launcher flutter_form_builder form_builder_image_picker]
- marqably_content_fragments 0.0.1 [flutter i18n_extension flutter_hooks app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit]
- marqably_events 0.0.1 [flutter i18n_extension flutter_html flutter_hooks share ionicons app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit flutter_calendar_carousel badges add_2_calendar]
- marqably_firebase 0.0.1 [flutter i18n_extension flutter_hooks firebase_messaging firebase_core firebase_analytics firebase_crashlytics firebase_performance firebase_remote_config firebase_dynamic_links get_it toolkit]
- marqably_local_notifications 0.0.1 [flutter flutter_hooks flutter_local_notifications toolkit app_layout get_it]
- marqably_weather 0.0.1 [flutter i18n_extension flutter_hooks app_layout app_code ferry_graphql_hooks ferry_graphql_lighthouse toolkit weather_icons]
- mobx 2.0.1 [meta]
- mobx_codegen 2.0.1+3 [analyzer build build_resolvers meta mobx path source_gen]
- pedantic 1.11.0
- share 2.0.4 [meta mime flutter]
- toolkit 0.0.1 [flutter app_code marqably_firebase ionicons flutter_form_builder share]

dev dependencies:
- build_runner 1.12.2 [args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style glob graphs http_multi_server io js logging meta mime path pedantic pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- ferry_generator 0.4.0-nullsafety.1 [gql gql_build gql_code_builder built_collection code_builder build path ferry_exec]
- flutter_lints 1.0.3 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
- gql_build 0.2.0-nullsafety.0 [analyzer build built_collection built_value built_value_generator code_builder dart_style glob gql gql_code_builder path yaml]
- gql_code_builder 0.2.0-nullsafety.0 [analyzer built_collection built_value code_builder collection gql gql_exec path recase]

transitive dependencies:
- _fe_analyzer_shared 22.0.0 [meta]
- add_2_calendar 2.1.0 [flutter]
- analyzer 1.7.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml pedantic]
- args 2.1.1
- async 2.7.0 [collection meta]
- badges 2.0.1 [flutter]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.0.2 [analyzer async convert crypto glob logging meta path]
- build_config 0.4.7 [checked_yaml json_annotation meta path pubspec_parse yaml]
- build_daemon 2.1.10 [built_collection built_value http_multi_server logging pedantic path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.0.3 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 6.1.12 [async build build_config build_resolvers collection convert crypto glob graphs logging meta path package_config pedantic pool timing watcher yaml]
- built_collection 5.1.0
- built_value_generator 8.0.6 [analyzer build build_config built_collection built_value source_gen quiver]
- characters 1.1.0
- charcode 1.3.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- chewie 1.2.2 [cupertino_icons flutter provider video_player wakelock]
- chewie_audio 1.2.0 [cupertino_icons flutter video_player]
- cli_util 0.3.0 [meta path]
- clock 1.1.0
- code_builder 3.7.0 [built_collection built_value collection matcher meta]
- collection 1.15.0
- convert 3.0.0 [typed_data]
- crypto 3.0.1 [collection typed_data]
- csslib 0.17.0 [source_span]
- dart_style 2.0.1 [analyzer args path pub_semver source_span]
- equatable 2.0.3 [collection meta]
- fake_async 1.2.0 [clock collection]
- ferry_cache 0.5.4 [ferry_exec meta rxdart normalize ferry_store collection]
- ferry_exec 0.1.3 [gql gql_exec gql_link meta async collection]
- ferry_graphql_hooks 0.0.1 [flutter ferry flutter_hooks get_it ferry_exec gql_exec]
- ferry_store 0.4.3 [rxdart collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase 9.0.1 [http http_parser js]
- firebase_analytics 8.1.2 [firebase_analytics_platform_interface firebase_analytics_web firebase_core flutter meta]
- firebase_analytics_platform_interface 2.0.1 [flutter meta]
- firebase_analytics_web 0.3.0+1 [firebase firebase_analytics_platform_interface flutter flutter_web_plugins meta]
- firebase_core 1.4.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_platform_interface 4.0.1 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.1.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics 2.0.7 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_crashlytics_platform_interface 3.0.6 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_dynamic_links 2.0.7 [firebase_core flutter]
- firebase_messaging 10.0.3 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_messaging_platform_interface 3.0.2 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 2.0.2 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_performance 0.7.0+6 [firebase_core flutter]
- firebase_remote_config 0.10.0+3 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface flutter]
- firebase_remote_config_platform_interface 0.3.0+3 [firebase_core flutter meta plugin_platform_interface]
- fixnum 1.0.0
- flutter_calendar_carousel 2.0.1 [intl flutter]
- flutter_layout_grid 1.0.1 [flutter collection meta quiver]
- flutter_local_notifications 6.0.0 [flutter flutter_local_notifications_platform_interface platform timezone]
- flutter_local_notifications_platform_interface 4.0.0 [flutter plugin_platform_interface]
- flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math]
- flutter_math_fork 0.3.3 [flutter flutter_svg provider meta collection tuple]
- flutter_pdfview 1.1.0 [flutter]
- flutter_plugin_android_lifecycle 2.0.2 [flutter]
- flutter_riverpod 1.0.0-dev.5 [collection flutter meta riverpod state_notifier]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- form_builder_image_picker 1.0.0-nullsafety.0 [flutter flutter_form_builder image_picker image_picker_for_web http]
- freezed_annotation 0.14.2 [collection json_annotation meta]
- gettext_parser 0.2.0
- glob 2.0.1 [async collection file path pedantic string_scanner]
- gql 0.13.0 [collection meta source_span]
- gql_exec 0.3.0 [collection meta gql]
- graphs 1.0.0
- html 0.15.0 [csslib source_span]
- http 0.13.3 [async http_parser meta path pedantic]
- http_multi_server 3.0.1 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image_picker 0.7.5+4 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface image_picker_for_web]
- image_picker_for_web 2.0.0 [image_picker_platform_interface meta flutter flutter_web_plugins]
- image_picker_platform_interface 2.1.0 [flutter meta http plugin_platform_interface]
- intl 0.17.0 [clock path]
- io 1.0.0 [meta path string_scanner]
- js 0.6.3
- json_annotation 4.0.1
- lints 1.0.1
- logging 1.0.1
- matcher 0.12.10 [stack_trace]
- meta 1.7.0
- mime 1.0.0
- nested 1.0.0 [flutter]
- normalize 0.5.4 [gql collection]
- numerus 1.1.1
- package_config 2.0.0 [path]
- package_info_plus 1.0.3 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- package_info_plus_linux 1.0.2 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.1.1 [flutter]
- package_info_plus_platform_interface 1.0.1 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.2 [http package_info_plus_platform_interface flutter flutter_web_plugins meta]
- package_info_plus_windows 1.0.2 [package_info_plus_platform_interface ffi flutter win32]
- path 1.8.0
- path_drawing 0.5.1 [vector_math meta path_parsing flutter]
- path_parsing 0.2.1 [vector_math meta]
- path_provider 2.0.2 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- path_provider_linux 2.0.0 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 2.0.0 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.1 [path_provider_platform_interface meta path flutter ffi win32]
- petitparser 4.2.0 [meta]
- platform 3.0.0
- plugin_platform_interface 2.0.0 [meta]
- pool 1.5.0 [async stack_trace]
- process 4.2.1 [file path platform]
- provider 5.0.0 [collection flutter nested]
- pub_semver 2.0.0 [collection]
- pubspec_parse 1.0.0 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.0.1 [matcher]
- recase 4.0.0
- riverpod 1.0.0-dev.5 [collection freezed_annotation meta state_notifier]
- rxdart 0.27.1
- shelf 1.1.4 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- simple_gesture_detector 0.2.0 [flutter]
- sky_engine 0.0.99
- source_gen 1.0.2 [analyzer async build dart_style glob meta path pedantic source_span yaml]
- source_span 1.8.1 [collection path term_glyph]
- sprintf 6.0.0
- stack_trace 1.10.0 [path]
- state_notifier 0.7.0 [meta]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- table_calendar 3.0.1 [flutter intl simple_gesture_detector]
- term_glyph 1.2.0
- test_api 0.4.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.7.0 [path]
- timing 1.0.0 [json_annotation]
- tuple 2.0.0 [quiver]
- typed_data 1.3.0 [collection]
- url_launcher 6.0.9 [flutter meta url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- url_launcher_linux 2.0.0 [flutter]
- url_launcher_macos 2.0.0 [flutter]
- url_launcher_platform_interface 2.0.3 [flutter plugin_platform_interface]
- url_launcher_web 2.0.1 [flutter flutter_web_plugins meta url_launcher_platform_interface]
- url_launcher_windows 2.0.0 [flutter]
- vector_math 2.1.0
- video_player 2.1.6 [flutter flutter_test meta video_player_platform_interface video_player_web]
- video_player_platform_interface 4.1.0 [flutter meta flutter_test]
- video_player_web 2.0.1 [flutter flutter_web_plugins meta video_player_platform_interface]
- wakelock 0.5.2 [flutter meta wakelock_macos wakelock_platform_interface wakelock_web wakelock_windows]
- wakelock_macos 0.1.0+1 [flutter flutter_web_plugins wakelock_platform_interface]
- wakelock_platform_interface 0.2.1+1 [flutter meta]
- wakelock_web 0.2.0+1 [flutter flutter_web_plugins js wakelock_platform_interface]
- wakelock_windows 0.1.0 [flutter wakelock_platform_interface win32]
- watcher 1.0.0 [async path pedantic]
- weather_icons 3.0.0-nullsafety.0 [flutter]
- web_socket_channel 2.1.0 [async crypto stream_channel]
- webview_flutter 2.0.8 [flutter]
- win32 2.1.5 [ffi]
- xdg_directories 0.2.0 [meta path process]
- xml 5.1.2 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]

Hi @SimonErich
Does this issue not occur when you run a debug build? Have you completed all of the setup steps?
https://firebase.flutter.dev/docs/installation/android
https://firebase.flutter.dev/docs/crashlytics/overview#3-platform-integration
Thank you

@markusaksli-nc thanks for getting back to me.
No it does not happen on debug and I followed everything, apart from the simulator setup.
The google-services.json is in android/app/ folder.

Have you tried moving
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

to the bottom of your build.gradle?
It seems like this can be caused in some order of operations issue in gradle.

I have tried that already. Doesn't work either.
Same result.

I can't really read from the error what exactly is going wrong here so labeling this for further investigation.

Had the exact same issue. Fixed by moving the two plugin directives for Google services and Crashlytics to the end of the file, as @markusaksli-nc suggested. However, it could also be that I had a flaky internet connection when I was receiving these build errors, so that may have been the cause of the issue.
Anyway, here is my build.gradle:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
    compileSdkVersion 30

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        applicationId "com.whidev.m"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 45
        versionName "3.3.0"
        multiDexEnabled true
    }

    signingConfigs {
       release {
           keyAlias keystoreProperties['keyAlias']
           keyPassword keystoreProperties['keyPassword']
           storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
           storePassword keystoreProperties['storePassword']
       }
   }
   buildTypes {
       release {
           signingConfig signingConfigs.release
       }
   }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:multidex:1.0.3'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

I think I have found the problem.
I was using an old version of crashlytics form the docs.
I have changed my project build.gradle to use:
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'

instead of:
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.1'

and now it works.


☂ Migrate first-party packages to NNBD

The packages at flutter/packages need to be migrated to null safety.
I'll update this issue with a list once I've done an audit to see which ones actually make sense to migrate at this point (not all are used as traditional packages), but for anyone interested in contributing before I've done that, multicast_dns and palette_generator are almost certainly on that list.

I would like to migrate palette_generator and pointer_interceptor packages to null safety. Let me know if they are available so I can raise PRs

I'm not aware of anyone having started either migration.

@stuartmorgan, I'd like to work on multicast_dns, looks like there is no WIP on that one.


cupyx.scipy.sparse.linalg.lsmr does not work with complex arguments

Description
According to the documentation, cupyx.scipy.sparse.linalg.lsmr should work with complex matrices (and thus, necessarily, complex vectors).
However, it fails with the following traceback:
  File "[...]/python3.10/site-packages/cupyx/scipy/sparse/linalg/_solve.py", line 296, in lsmr
    hbar += h
  File "cupy/_core/core.pyx", line 1385, in cupy._core.core._ndarray_base.__iadd__
  File "cupy/_core/_kernel.pyx", line 1285, in cupy._core._kernel.ufunc.__call__
  File "cupy/_core/_kernel.pyx", line 656, in cupy._core._kernel._get_out_args_from_optionals
TypeError: output (typecode 'D') could not be coerced to provided output parameter (typecode 'd') according to the casting rule "same_kind"

To Reproduce
import cupy
import cupyx.scipy.sparse.linalg
# Create an arbitrary complex example matrix and vector:
M = cupy.sparse.eye(100,100, dtype=complex) + cupy.sparse.eye(100,100,1, dtype=complex)
b = cupy.arange(100, dtype=complex)
cupyx.scipy.sparse.linalg.lsmr(M, a) # This leads to the error given above

Installation
Source (pip install cupy)
Environment
OS                           : Linux-5.4.0-152-generic-x86_64-with-glibc2.31
Python Version               : 3.10.8
CuPy Version                 : 11.2.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.24.1
SciPy Version                : 1.10.0
Cython Build Version         : 0.29.32
Cython Runtime Version       : None
CUDA Root                    : /software/spack/opt/spack/linux-ubuntu20.04-zen2/gcc-9.4.0/cuda-11.8.0-qlzov62pz4crys6jca6e3wmvddlrrfps
nvcc PATH                    : /software/spack/opt/spack/linux-ubuntu20.04-zen2/gcc-9.4.0/cuda-11.8.0-qlzov62pz4crys6jca6e3wmvddlrrfps/bin/nvcc
CUDA Build Version           : 11080
CUDA Driver Version          : 11040
CUDA Runtime Version         : 11080
cuBLAS Version               : (available)
cuFFT Version                : 10900
cuRAND Version               : 10300
cuSOLVER Version             : (11, 4, 1)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 8)
Thrust Version               : 101501
CUB Build Version            : 101501
Jitify Build Version         : <unknown>
cuDNN Build Version          : 8400
cuDNN Version                : 8400
NCCL Build Version           : 21403
NCCL Runtime Version         : 21403
cuTENSOR Version             : 10500
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA A100-SXM4-80GB MIG 1g.10gb
Device 0 Compute Capability  : 80
Device 0 PCI Bus ID          : 0000:07:00.0

Additional Information
If I had to guess, then the problem might be that hbar in https://github.com/cupy/cupy/blob/9ce8a9e0ab450e89764b034ce785082748480c3e/cupyx/scipy/sparse/linalg/_solve.py#L212 should be copying the dtype from the input matrix. Right now, it's just creating zeros with the default dtype (double).

I monkey-patched the line in question to
hbar = cupy.zeros(n, dtype=A.dtype)
and that seems to have solved the problem for me. I'm a bit strapped for time right now but feel free to create a PR based on that (if it's a sufficient solution)—although it seems that this method could also use at least another unit test for complex test cases?


Generic Protocol for transformed function

With ParamSpec we can completely annotate jit signature.
Thus type checking can be performed with transformed function. (and lower)
T = TypeVar("T")
P = ParamSpec("P")
def jit(fun: Callable[P, T], ...) -> stages.Wrapped[P, T]:
  ...

# stages.py
T_co = TypeVar("T_co", covariant=True)
P_contra = ParamSpec("P_contra", contravariant=True)
class Wrapped(Protocol[P_contra, T_co]):
  def __call__(self, *args: P_contra.args, **kwargs: P_contra.kwargs) -> T_co:
    ...

  def lower(self, *args: P_contra.args, **kwargs: P_contra.kwargs) -> Lowered:
    ...

Just like #9999 , and it works almost perfectly with Visual Studio Code + pylance, signature(including parameters name) of function is fully preserved.
However, mypy currently doesn't handle partial + function-transform correctly. https://github.com/python/mypy/issues/12593
We can wait mypy fix this bug, or make some workaround.
Some workaround option:
make jit a polymorphism decorator + decorator factory.
toy example
from typing import TypeVar, Callable, overload
from typing_extensions import ParamSpec, Protocol, Literal

T_co = TypeVar('T_co', covariant=True)
T = TypeVar('T')
P = ParamSpec('P')

class Wrapped(Protocol[P, T_co]):
  def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T_co:
    pass

@overload
def jit(f: Callable[P, T], *, a: bool) -> Wrapped[P, T]:
    ...

@overload
def jit(f: Literal[None] = None, *, a: bool) -> Callable[[Callable[P, T]], Wrapped[P, T]]:
    ...

def jit(f=None, *, a):
    if f is None:
        return lambda f: jit(f, a=a)
    # original code here
    return f

@jit(a=True)
def f(x: int, y: int):
    return x + y

f(0, 1) #mypy ok
f(0, 'a') # mypy error  Argument 2 to "__call__" of "Wrapped" has incompatible type "str"; expected "int"

This break "Our general philosophy is to make the JAX core API as simple and explicit as possible"  @mattjj  https://github.com/google/jax/issues/184#issuecomment-582029342
I personally like this option, but it breaks the philosophy of JAX.
add a dedicated decorator factory function and use it internally
toy example
from typing import TypeVar, Callable
from typing_extensions import ParamSpec, Protocol

T_co = TypeVar('T_co', covariant=True)
T = TypeVar('T')
P = ParamSpec('P')

class Wrapped(Protocol[P, T_co]):
  def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T_co:
    pass

def jit(f: Callable[P, T], *, a: bool) -> Wrapped[P, T]:
    # original code here
    return f

def _make_jit(*, a: bool) -> Callable[[Callable[P, T]], Wrapped[P, T]]:
    return lambda f: jit(f, a=a) # type: ignore # a mypy bug fixed in mypy-0.950

@_make_jit(a=True)
def f(x: int, y: int):
    return x + y

f(0, 0) # mypy ok
f(0, 'a') # mypy error  Argument 2 to "__call__" of "Wrapped" has incompatible type "str"; expected "int"

I think this option is satisfactory for everyone. (also can be a public API)
In addtion, we can write a function that can create decorator factory function without losing type information, but current(even the next release) mypy has bug in this case as well. https://github.com/python/mypy/issues/12595
from typing import TypeVar, Callable
from typing_extensions import Concatenate, ParamSpec, Protocol

T_co = TypeVar('T_co', covariant=True)
T = TypeVar('T')
P = ParamSpec('P')

class Wrapped(Protocol[P, T_co]):
  def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T_co:
    pass

def jit(f: Callable[P, T], *, a: bool) -> Wrapped[P, T]:
    # original code here
    return f

_T = TypeVar('_T')
_P = ParamSpec('_P')

def _make_factory(
    transform: Callable[Concatenate[Callable[P, T], _P], _T] # type: ignore
    # mypy can't recognize Concatenate, mypy-0.950 has fixed it
) -> Callable[_P, Callable[[Callable[P, T]], _T]]:
    return lambda *args, **kwargs: lambda f: transform(f, *args, **kwargs)

_make_jit: Callable[..., Callable[[Callable[P, T]], Wrapped[P, T]]] = _make_factory(jit)
# mypy need a type annotation, but this annotation will erase signature of jit -> bad for vscode
# mypy-0.950 has not fixed it

@_make_jit(a=True)
def f(x: int, y: int):
    return x + y

f(0, 0) # mypy ok
f(0, 'a') # mypy error Argument 2 to "__call__" of "Wrapped" has incompatible type "str"; expected "int"

@jakevdp @mattjj @froystig
Could you please give some advice?

I commented in #10321 about option 2 ("dedicated factory function"), but it possibly applies to option 1 ("polymorphic jit") as well. I think we have a rather strict constraint to maintain: keep jit as it is (no double meanings based on how it is called), and allow for partial(jit, ...). We have many downstream dependencies on jit at this point (many of which take partial), and possibly many more to come, so we want to keep this as simple and explicit as possible.
These are both clever approaches and I'm learning simply by reading them. Thanks for thinking about this. Are there any other approaches you can think of? Following your comment here, does the issue with mypy+partial seem temporary? If so, can we make this work for jit without partial for now, without trying to work around mypy's partial bug, and anticipate a future fix?

Yes, I think the mypy issue is temporary.
Do you have any idea about "make this work fof jit without partial"? Can we make the jit with partial be specially typed?

My suggestion is that we pretend the mypy issue is already fixed, so we do not try to work around it (for now). In that case, what would be the best approach to annotation?

There is something surprising: as the last case of https://github.com/python/mypy/issues/12593 ,mypy can't handle partial + jit with typevar annotated fun correctly. But IIRC, we use this annotation a few month ago.

In that case, maybe we can annotate jit return-type as Union[Wrapped[P, T], Wrapped], and annotated _make_jit return-type as Wrapped[P, T].
As a result, any downstream codebase won't be broken, and we can do type-checking for jitted JAX functions with _make_jit instead of partial.

When the mypy bug is fixed, would we be able to remove _make_jit and only annotate jit's return type as Wrapped[P, T]?

Yes. But I think it is not bad to have _make_jit
mypy won't report an error if partial pass wrong argument.
def f(x: int, y: int):
  return x + y
g = partial(f, z=0)
h = partial(f, 'a')
# no error with mypy

Ah, I find that mypy support for partial is too weak...
def jit(
    fun: Callable[P, T],
    *,
    static_argnums: Union[int, Iterable[int], None] = None,
    static_argnames: Union[str, Iterable[str], None] = None,
    device: Optional[xc.Device] = None,
    backend: Optional[str] = None,
    donate_argnums: Union[int, Iterable[int]] = (),
    inline: bool = False,
    abstracted_axes: Optional[Any] = None,
  ) -> Union[stages.GenericWrapped[P, T], stages.Wrapped]:

class GenericWrapped(Protocol[P, T_co]):
  @overload
  def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T_co:
    """Executes the wrapped function, lowering and compiling as needed."""
  @overload
  def __call__(self, *args: Any, **kwargs: Any) -> T_co: ... # without this mypy will expect P.args

  @overload
  def lower(self, *args: P.args, **kwargs: P.kwargs) -> Lowered:
    """Lower this function for the given arguments.

    A lowered function is staged out of Python and translated to a
    compiler's input language, possibly in a backend-dependent
    manner. It is ready for compilation but not yet compiled.

    Returns:
      A ``Lowered`` instance representing the lowering.
    """
  @overload
  def lower(self, *args: Any, **kwargs: Any) -> Lowered: ...

class Wrapped(Protocol):
  def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
  def lower(self, *args: Any, **kwargs: Any) -> Lowered: ...

And
from jax import jit
from functools import partial

@partial(jit)
def f(x: float, y: float):
    return x + y

x: float = f(0.0, 0.0)

error: Incompatible types in assignment (expression has type "Union[T, Any]", variable has type "float")  [assignment]

😭

I think we can only leave a non-generic jit here, while using _make_jit internally. Or we can expose _make_jit as a public API.


Capitalize instances of 'Python' in user-facing text

Closes #316
Whenever there are user facing references like in settings, commands or descriptions, we should capitalize "Python".

Thank you for contributing!🎉


TypeError: swc.vite is not a function

error when starting dev server:
TypeError: swc.vite is not a function
at file:///Users/shenhaoliang/Desktop/jgy/workbench/vite.config.ts.js?t=1649945077486:62:9
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at async loadConfigFromFile (/Users/shenhaoliang/Desktop/jgy/workbench/node_modules/vite/dist/node/chunks/dep-611778e0.js:61416:31)
at async resolveConfig (/Users/shenhaoliang/Desktop/jgy/workbench/node_modules/vite/dist/node/chunks/dep-611778e0.js:60962:28)
at async createServer (/Users/shenhaoliang/Desktop/jgy/workbench/node_modules/vite/dist/node/chunks/dep-611778e0.js:58813:20)
at async CAC. (/Users/shenhaoliang/Desktop/jgy/workbench/node_modules/vite/dist/node/cli.js:688:24)
version: unplugin-swc 1.3.0

please provide a repro

That's because I set "type": "module" in package.json, so this plugin doesn;t support native esm?

@shlroland, did the update in 1.3.2 work for you in an ESM package? While I can now import the function, I'm getting an error about dynamic use of require. See here: Error: Dynamic require of "path" is not supported


fix(nats): set tcp read timeouts

chore(nats): use the nats with a stuck tcp stream fix
The tcp stream to the nats-server can get stuck if the server is not
shutdown gracefully. Even the connection lost callback does not get
triggered because the stream is somehow stuck.

fix(nats): set tcp read timeouts
The tcp stream to the nats-server can get stuck if the server is not
shutdown gracefully. As such Even the connection lost callback does not get
triggered because the stream is somehow stuck.
Adding the timeout if we do not receive a message with a timeout helps
address the issue: when the timeout expires the client now sends a ping
to the server and expects to receive a pong within the same timeout.
If a pong does not arrive in time then the connection is deemed lost.
As a side effect this may cause additional strain on the nats server when
too many clients are idle as the timeouts will be fired.
Don't cache connect_url's returned by the NATS INFO message as they may
get outdated and point to bogus IP addresses.
Also add connection handlers to highlight whenever the services connection
to the NATS server changes.
Resolves CAS-1192

bors merge