admin page pre-populate "Custom short URL" field?

YOURLS version: 1.7.1

Is there a way to have the "Custom short URL" field pre-populated when the admin page loads? I don't see any hooks/filters for this in the documentation.
I see in includes/functions-html.php that the yourls_html_addnew() function accepts two parameters:
function yourls_html_addnew( $url = '', $keyword = '' ) {
however, admin/index.php calls it without any arguments "yourls_html_addnew();" and that appears to be the only place in core where this function is called.  Per the instructions, I don't want to hack core ;)
Reason behind this request..... If a user is logged into the admin page, and later they enter a short URL that isn't in the database, to have it pre-populate that value into the "Custom short URL" field as a convenience so they can create a new entry.
Thanks!

If a user is logged into the admin page, and later they enter a short URL that isn't in the database, to have it pre-populate that value into the "Custom short URL" field

What value? I'm not sure I understand where the pre-populated value would come from.

The way I would do it currently would be to hook into html_head or something like this and inject Javascript that would change the default value

@dgw I'm referring to $keyword.  In the function there is code that allows you to set the value:
:<input type="text" id="add-keyword" name="keyword" value="
However, nothing in core ever actually calls yourls_html_addnew() with any parameters.
@ozh thank you, I'll play around with this!  I was just thinking the loader_failed hook might also be helpful here...

I think I'm 99% there...it's working with the exception of one small thing - the value is populated, but after a split second, the text field is emptied.  Any thoughts as to why this is happening would be appreciated!

User goes to myurl.com/does_not_exist , which triggers the redirect_keyword_not_found action
User is redirected to myurl.com/admin/?keyword=does_not_exist
Per @ozh suggestion, I use javascript to take value of keyword and insert into the add-keyword text field (i.e. "Custom short URL" field)
With javascript debugger turned on, I can see the text box does successfully get populated with "does_not_exist", however, later it is getting cleared out.  It appears this is happening in jquery-1.9.1.min.js .....I have no idea why......

My Code:
yourls_add_action( 'redirect_keyword_not_found' , 'atomarch_test' );
function atomarch_test($request) {
yourls_redirect( yourls_admin_url() . "?keyword=" . $request[0] );
}
yourls_add_action( 'html_addnew' , 'atomarch_fill_keyword' );
function atomarch_fill_keyword() {
if( isset($_GET['keyword']) && $_GET['keyword']) {
// with javascript debug enabled
echo "" ;
}
}

Got it working.  Had to use jQuery to set the value and not document.getElementById.value:
yourls_add_action( 'redirect_keyword_not_found' , 'atomarch_test' );
function atomarch_test($request) {
yourls_redirect( yourls_admin_url() . "?keyword=" . $request[0] );
}
yourls_add_action( 'html_addnew' , 'atomarch_fill_keyword' );
function atomarch_fill_keyword() {
if( isset($_GET['keyword']) && $_GET['keyword']) {
echo "";
}
}
Thank you for the guidance!

Neat. I'm sure if you'd make a little public plugin on a github repo, people with similar needs would benefit from it :)

@ozh , I did :) Here is the link:
https://github.com/8thwall/keyword-not-found-set-field-yourls
Thanks!

@atomarch added to the plugin list, thanks!


move php-parser to dev deps

Ref https://github.com/symplify/phpstan-rules/pull/110

This change was reverted by next commit:
https://github.com/symplify/phpstan-rules/commit/393656aaf9fd09d9dc40d658c57ef222dd1f082d


WAV importer doesn't support Loop Modes

Godot version:
3.2.1.stable.official
Checked 3.2 and master, both contain the issue.
OS/device including version:
Not OS specific.
Issue description:
I was kinda hoping that audio would have the possibility to play in reverse. However there's no exposed GDScript way to achieve that. So as a workaround I attempted to move the playhead around beyond the loop marker and set the AudioStreamSample Loop Mode to "Ping-Pong" to hopefully achieve the same effect. I found that didn't work, I then realized that looping in an exported game will only loop forwards but in the editor it loops in the way I select.
This lead me to the import properties of the WAV file in question and found there's no supporting "Loop Mode" option in the import dialog to support the AudioStreamSample resource mapping. Naturally this results in the developer being artificially limited to Disabled and Forward loop modes.

Steps to reproduce:

Import a WAV file with loop on.
Put loop mode in resulting AudioStreamSample to "Ping-Pong".
Re-select the AudioStreamSample. Watch "Loop Mode" get reset to "Forward".

Code area
https://github.com/godotengine/godot/blob/3.2/editor/import/resource_importer_wav.cpp#L88. Either the loop property needs to be changed to loop_mode with the appropriate enum, or a loop_mode property should be added.

Loop mode is a property of WAV files and is thudnhardcoded in the file.
If you want to override it, edit the WAV file's metadata, or save the imported version as a .tres file and edit properties.

@akien-mga Why is there a loop import property then?

It should be clear that you should be modding the WAV metadata or converting through importing as a .tres file imho. Perhaps that's the work that needs to be done?
Personally it would be really great if the general agreement was to just add the ability to modify the loop_mode upon import. It works fine in the editor, don't see why it wouldn't work fine in an export.

Seems implemented in 3.5


Seems not works properly

I'm using it in my md-content module and seems its not worked properly. It's just setted up classes but don't add highlight.js and styles to the page, so code between these tags is not highlighted.

Indeed, you have to provide the styles yourself, by loading one of the CSS themes. Loading highlight.js isn't necessary. :smile:

Awesome! :) Thank you


0.9.12 prerelease2

Supersedes #1524

Codecov Report

Merging #1525 (d30778f) into main (a334a53) will not change coverage.
The diff coverage is n/a.

: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
@@           Coverage Diff           @@
##             main    #1525   +/-   ##
=======================================
  Coverage   11.11%   11.11%
=======================================
  Files          31       31
  Lines        9839     9839
=======================================
  Hits         1094     1094
  Misses       8687     8687
  Partials       58       58

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

we need to add backwards compatibility for redis

Please also look at the automated tests, which are failing atm


[Event Request] Table 5767 "Warehouse Activity Line" - OnBeforeTestFieldWhseShptLineBinCode

We are migrating our code from NAV 2018 to BC16.4. In the Table 5767 "Warehouse Activity Line", in the procedure CheckWhseDocLine, we would like to add a condition to the call of "TestField("Bin Code", WhseShptLine."Bin Code")". To do so, we need a IsHandled flag and an event publisher, like this :

With this integration event :

Do you think it could be possible ?
Thank you for your work.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Update cats-effect, cats-effect-laws, ... to 3.3.9

Updates

org.typelevel:cats-effect
org.typelevel:cats-effect-laws
org.typelevel:cats-effect-testkit

from 3.3.1 to 3.3.9.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #141.


Because app depends on fluttertoast ^2.1.0 which doesn't match any versions

Because app depends on fluttertoast ^2.1.0 which doesn't match any versions，
Please Release version 2.0.1

please check it now there is a an error in the Readme.md
now i have updated plugin version to 2.0.4
 fluttertoast: ^2.0.4

@PonnamKarthik Thanks


Generate separate cloud-config.yaml for when not using cidata.iso

Description
When looking at alternative implementations, such as Raspberry Pi or cloud instances, it could be useful to look at the generated basic cloud-init / cloud-config information. Without having it embedded as user-data, in the cidata.iso
Maybe we could also just create a stand-alone yaml file, like was done for the ignition yaml file. It doesn't include the boot scripts or the lima-guestagent/nerdctl-full, but does include basic stuff like the user and keys and so on (same args).
template: pkg/cidata/cidata.TEMPLATE.d/user-data
example (outdated) background reasoning https://blog.hypriot.com/post/cloud-init-cloud-on-hypriot-x64/

Something like
#cloud-config
# vim:syntax=yaml

growpart:
  mode: auto
  devices: ['/']

{{- if .UpgradePackages }}
package_update: true
package_upgrade: true
package_reboot_if_required: true
{{- end }}

{{- if .TimeZone }}
timezone: {{.TimeZone}}
{{- end }}

users:
  - name: "{{.User}}"
    uid: "{{.UID}}"
    homedir: "{{.Home}}"
    shell: /bin/bash
    sudo: ALL=(ALL) NOPASSWD:ALL
    lock_passwd: true
    ssh-authorized-keys:
    {{- range $val := .SSHPubKeys }}
      - {{ printf "%q" $val }}
    {{- end }}

Why not just include user-data under a different name then? You can just ignore the data you don't need.

Why not just include user-data under a different name then?

I think that is what I was trying to say 😀 Or it could be user-data

i.e. talking about the file name in the lima instance directory here

Oh, I missed that this would be on the host and not inside the VM. In that case we do need to worry about including keys, or make sure we use 600 permissions for the file.

In that case we do need to worry about including keys, or make sure we use 600 permissions for the file.

Something that would probably also apply to the cidata.iso file in that case, and could be done already now?
But since it is only the public keys, I don't think that is necessary... The password (from blog above) is outdated*
The original images (on https://blog.hypriot.com/) had:
users:
  - name: pirate
    gecos: "Hypriot Pirate"
    sudo: ALL=(ALL) NOPASSWD:ALL
    shell: /bin/bash
    groups: users,docker,video
    plain_text_passwd: hypriot
    lock_passwd: false
    ssh_pwauth: true
    chpasswd: { expire: false }

* the Raspberry Pi OS images no longer ship with a default user, but add one during first boot instead

https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/

https://www.digitalocean.com/community/tutorials/how-to-use-cloud-config-for-your-initial-server-setup

But since it is only the public keys, I don't think that is necessary...

Yes, you are right; I was confused.

Note: the new file is generated when the instance is created, since it is needed before it can be started

I added code to the hostagent, to (re)create the cloud-config.yaml file at the same time as the cidata.iso

Note that as a side-effect, this will also generate the private/public ssh key in $LIMA_HOME/_config/user


Add Wise 's Software Engineer Intern job listing

This issue was created automatically by PowerAutomate
Company:
Wise
Logo:
https://d21buns5ku92am.cloudfront.net/69645/images/470455-Frame 39263-cdfad6-original-1677657684.png
Title:
Software Engineer Intern
Application Link/Email:
https://grnh.se/37de85341us - this is a referral link
Application Deadline:
2023-12-31
Employment Type:
Internship (e.g. over summer)
Salary:
£36000
Location:
London, Hybrid (UK)
Industry:
Software Engineering
Company Overview:
Whether you’re sending money to another country, spending money abroad, or making and receiving international business payments, Wise is on a mission to make your life easier and save you money.
Since it was founded in 2010, 5,000+ people work at Wise, from 125 nationalities, in 17 global locations. You’ll be part of Wise’s global mission to build an open, fair, and human financial system – to make money without borders the new norm. Because people without borders need money without borders.
Requirements:
Must haves:

You are graduating in 2025 from a Bachelors or Masters degree. This might be in Computer Science, or any other STEM subject
Able to start a 10 week internship from the 24th of June 2024 until the 30th of August 2024
You are available to start a full time graduate role in September 2025
Knowledge of computer science fundamentals including data structures, algorithms and software design
Familiarity of data models with SQL
Knowledge of working with RESTful Web Services
A basic knowledge in modern web technologies and a strong interest in web development
A self-started side project(s) that you are proud to talk about
Great communication skills and the ability to articulate complex, technical concepts to a non-technical audience
Curious, keen to learn and proactive by nature
You believe in and follow best coding practices and code reviews
You are open to and value feedback in order to improve
Eligible to work in London

Nice to haves:

Experience in web or microservice development, from a previous internship or project
Familiarity with any major programming languages like Java/JavaScript/Python/Kotlin/Swift (we are more focused on your willingness to learn new technologies)
A strong product mindset and passion for user experience. You prioritise work with customers in mind, and make data-driven decisions to fix customer pain-points

Responsibilities:

Work cross-functionally in squads who are vital to driving the mission of our business forward
Create clear and helpful interfaces, whilst maintaining consistency, maintainability and performance
Understand the challenges our customers face and set out to solve them

Here’s one of the former interns to tell you more about what all that means! https://www.wise.jobs/2021/09/24/wise-interns-a-conversation-with-jasleen-matharu/
Other information:
You can check out more about us, the interview process and how we work and why we do what we do at https://wise.jobs - feel free to reach out to me<EMAIL_ADDRESS>or https://mitchlui.dev/linkedin) if you have any questions!
Full form submission details (including contact details). NB: This is not accessible by everyone.
If you have questions about this listing, view the link above to see who to contact about this.

Listed


Typo error in output file

Overview
Output of dive chain icon command is grammatically incorrect
Steps to Reproduce
Steps to reproduce the behavior:

Run dive chain icon -d command
Observe the output

Expected Behavior
Valid output message
Additional Context
Output is  : "Icon Node Started. Please find service details in current working directory(services.json) in current working directory"

This issue is fixed in the latest release


Class equipment groups broken on initial creation

In GitLab by @Asacolips on Dec 19, 2020, 18:04
When creating a new Class item, the equipment group field is initialized as an empty array rather than an empty object. As a result of this, the first time that an equipment group is added to the class, it will create two empty groups that can't actually have any items added to them. Deleting those two groups will then change the data to an empty object, allowing it to work.
Acceptance Criteria

[ ] Change the default value of the equipment field on new classes to an empty object.

In GitLab by @Asacolips on Dec 21, 2020, 15:02
mentioned in commit c12327dd257f353e3e6b32b70d6f5710d0584b00


Console window missing

Godot version
4.0.alpha_2
System information
Windows 10, AMD Ryzen 2700x, 1070ti
Issue description
The console window is gone! Toggling the Editor setting "Hide Console Window" does nothing either. I've tested restarting the editor a couple of times without any result. Not sure if this was the case from the get go, or whether godot has has switched some internal setting to never show the console... IDK
Steps to reproduce

Open Godot editor
Try locating the console window
Fail(hopefully)

Minimal reproduction project
N/A

Have you tried running the console on cmd? Now by default godot does not show the console on the standard executable.

This is intended behavior as @JoanPotatoes2021 said, and was required to play well with Windows Terminal (which is the default on Windows 11).

Thx, just me being silly ;)


Start with dask-expr doc build

[ ] Closes #xxxx
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

This isn't ready to be merged, there are a couple of weird failures in the accessor docs

I've had to define a few accessors explicitly, since sphinx confused the DataFrame classes from Dask-expr and dask/dask without them. This is a known issue see https://github.com/sphinx-doc/sphinx/issues/4961


Anvil on a Stick Durability/Damaging

Does the anvil on the stick deteriorate like the normal anvil? If not I think it definitely should for balance sake!

This is an interesting idea, that wouldn't be too hard actually-
I'll keep it in mind :)

An easy way to do this would just give it durability, changing sprites to look more deteriorated based on the durability!

I also want to give you another issue on balance! See #3

An easy way to do this would just give it durability, changing sprites to look more deteriorated based on the durability!

I think the anvil can be used about 25 times according to the wiki!


Example : firebase database

Excellent and strong project
I have a problem building a database of categories and products
Please give me an outlet or tips if possible

Firebase Installation

Create Firebase project.
Go to Project settings > General > Your apps, then click Add app.
Register the web app and install Firebase SDK:

npm install firebase

Create .env.local file and add these env vars:

REACT_APP_APIKEY= '...'
REACT_APP_AUTHDOMAIN= '...'
REACT_APP_DATABASEURL= '...'
REACT_APP_PROJECTID= '...'
REACT_APP_STORAGEBUCKET= '...'
REACT_APP_MESSAGINGSENDERID= '...'
REACT_APP_APPID= '...'
REACT_APP_MESUREMENTID= '...'

If you don't know where to find the values you can go to Project settings > General > Your apps.

Authentication

Go to Authentication > _ Sign-in method_ > Sign-in providers, then add and enable these providers:

Email/Password
Google
Facebook
GitHub

Got to Authorized domains then add localhost and all the other domains.

Cloud Firestore

Go to Rules and add these:

// Allow read/write access on all documents to any user signed in to the application
service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{userId}{
    	allow get, create, update: if request.auth != null && request.auth.uid == userId;
    }
    match /Collections/{collection}{
    	allow read;
    }  }
}

Create two Collection:

users
Create a new collection with the id users.
Collections
Create a new collection with the id Collections, every collection has two fields:

title: string;
items: {
id: number;
name: string;
description: string;
firstImageUrl: string;
secondImageUrl :string;
thirdImageUrl: string
fourthImageUrl: string;
colors: string[];
size: number[];
newPrice: number;
oldPrice: number;
orders: number;
rate: number;
}[];

🖤🤝


DO NOT UNHOLD! Bumped production RELEASE for 1.23-4

Bumped production RELEASE for 1.23-4
DO NOT UNHOLD
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/unhold
/approve


QUESTION: Usage in multi-auth application

Question
Answer

Issue or Enhancement
Question

Laravel Version
6.18.43

Project Version
3.5.0

I am creating a multi-auth application that uses different guards for different type of users. Eg. Admin User has admin guard, Partner users have partner, Customers have the default web guard.
Current Behavior
I have tried using Laravel's Gate (can-xxxx attributes) to show different menu items to different type of users, which while not being elegant, works correctly. However, changing other options like urls (profile, dashboard, logout) , logos, or layout depending on the user guard doesn't seem to be possible.
Possible Solutions
The solution in my mind is to load different adminlte config files depending on some parameter like the auth guard of the logged in user. The guard is set when the Controller is created using auth middleware.
What would be the right way to do this?

I believe you need to generate the menu dynamically at run time. Please, take a look to section Menu Configuration At Runtime. Also, search on the closed issues, I'm sure there are multiple discussions about this with some ideas that can help you.

@lacodimizer Consider closing this, there is no feedback after long time.


S.M.A.PowerShell.HadErrors and $? return false positives when errors are suppressed

Created from discussion started on #3768.
Description
If you invoke PowerShell using the System.Management.Automation.PowerShell class, and if you handle the errors in the command you invoke by indicating that they should be ignored, S.M.A.PowerShell will still set HadErrors to true. Below are some code samples illustrating the problem.
Sample 1: C#/.NET invocation of PowerShell commands/scripts
$ps = [PowerShell]::Create()
$ps.AddCommand('Get-Service').AddParameter('Name','Invalid').AddParameter('ErrorAction',[System.Management.Automation.ActionPreference]::Ignore) > $null
$ps.Invoke()
$ps.HadErrors # returns $true; expectation is that this would return false since the command was configured to ignore errors

Sample 1: Expected behavior
$ps.HadErrors should return $false
Sample 1: Actual behavior
$ps.HadErrors returns $true, even when $ps.Streams.Error does not contain any errors (because there were no errors!)
Sample 2: Direct command invocation in PowerShell
Get-Service -Name Invalid -ErrorAction Ignore
$? # returns $false; shouldn't this return $true?

Sample 2: Expected behavior
$? should return $true
Sample 2: Actual behavior
$? returns $false, even though there were no errors because the invoker of the command instructed PowerShell to ignore the error that would otherwise have been raised because it is a benign error for them (and therefore, not an error)
Additional Details
In both of these cases, -ErrorAction Ignore is being used to tell PowerShell that the error is actually not an error as far as this invocation is concerned, and therefore it can be completely ignored. Why then, do both $? and $ps.HadErrors indicate there was still error? Technically there was an error, by definition of the command being invoked, but it is being handled/treated like it is not an error in the command from which the command producing the error was invoked. In both of these cases $? and $ps.HadErrors should have values indicating that there wasn't an error. If you do not trust the command you are invoking to ignore benign errors and only notify you about errors that you actually need to care about then you should not be invoking that command.
Environment data
PS C:\> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
GitCommitId                    v6.0.0-beta.5
OS                             Microsoft Windows 10.0.16251
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

The whole terminating vs non-terminating errors consistently is misunderstood.  Even in some of our product code I see these mistakes and I make them myself.  Perhaps an option here is to add HadTerminatingErrors, while HadErrors continues to capture Terminating/Nonterminating (even if handled/suppressed)?

I agree discussion is required because error handling in PowerShell is a point of confusion. This particular issue has nothing to do with terminating vs non-terminating though. This has to do with handled vs non-handled, which is a completely different thing.
If I invoke a .NET method that internally receives some exception but handles that exception gracefully and then eventually returns back to me without error, should $? return $true or $false? The answer in that case is quite clear: it should return $true because there was no error as far as I, the method invoker, am concerned.
I believe PowerShell command invocations should behave no differently. In both examples I shared above, I am instructing PowerShell to suppress the error if one occurs. In other words, the error is handled in my command. Yet S.M.A.PowerShell.HadErrors returns $true and $? returns $false.
Aside -- This related behaviour also surprises me. Try executing these commands one at a time.
Get-Service -Name Invalid
$? # returns $false
Get-Service -Name Invalid -ErrorAction Stop
$? # returns $false
try {Get-Service -Name Invalid -ErrorAction Stop} catch {<# Ignore the error, it's benign #>}
$? # returns $false -- shouldn't this return $true?
& {try {Get-Service -Name Invalid -ErrorAction Stop} catch {<# Ignore the error, it's benign #>}}
$? # returns $true

I see.  I think that HadErrors and $? should be consistent in that they are only true if there are unhandled errors, but will defer to @PowerShell/powershell-committee to understand the history and original intent.

@PowerShell/powershell-committee reviewed this
(get-service -name invalid); $?
True
get-service -name invalid; $?
False

the two above statements should be equivalent, however, it's not.  The bug seems to be that in @KirkMunro 's samples above, #3 should return $true and the two equivalent statements here should both return $false.

@SteveL-MSFT:
The reason that (get-service -name invalid); $? returns true is the previously discussed issue that (...) turns a command into an expression and it is then (unexpectedly) the expression's success that determines the value of $?, and the mere act of enclosing a command in (...) is a "successful" expression - see Automatic $? variable is reset to $True when a command is enclosed in parentheses - make $? only reflect command status, not expression status

@KirkMunro:
Re try {Get-Service -Name Invalid -ErrorAction Stop} catch {<# Ignore the error, it's benign #>} returning $False:
To recap from https://github.com/PowerShell/PowerShell/issues/3768#issuecomment-323405734:

checking $? after try / catch is virtually pointless, because what $? is set to depends on whether the catch block happens to be empty ($False) or not (whatever statement happens to execute last in the catch block determines the value of $?).

Similarly (unexpectedly), anything that you invoke via & { ... } - i.e., & with a script block - currently makes $? indicate $True; try & { nosuchcommand }; $? and & { 1 / 0 }; $?

Re-reviewing issues @PowerShell/powershell-committee had reviewed prior to GA to see if the decision would still stand post GA.
For this issue, based on @mklement0's explanation, it seems this is working as designed and I think just needs to be documented appropriately.

@SteveL-MSFT I strongly disagree. Suggesting sample 1 from the original post is by design is wrong. You tell PowerShell to outright ignore errors in an invocation you make from C#, and then PowerShell says oh, hey, there were errors, so you check, but there weren't any. This completely breaks any trust that a developer can have in HadErrors, and forces wrap the invocation of PowerShell and build their own HadErrors because HadErrors is broken.

@KirkMunro sorry, I focused only on the last few replies.  Looking at your original sample, I would tend to agree that if you handle the error (or suppress it by choice), .HadErrors shouldn't indicate an error occurred.  Remarked for @PowerShell/powershell-committee review to understand the history/intent.

@PowerShell/powershell-committee reviewed this:

.HadErrors was originally designed for use with PSWorkflow.  Recommendation is to remove this property or at least mark as deprecated, because PSWorkflow is not in PSCore6.   If there is a need for .HadErrors equivalent, recommendation is to have a proposal for a new property to fill this need.
Regarding $?, the intent should be that if there are not any errors written to $error, then $? is $true, else it's $false.
These changes should be posted as an RFC.

Regarding $?, the intent should be that if there are not any errors written to $error, then $? is $true, else it's $false.

@SteveL-MSFT This statement is not quite right. I think you meant "written to the error stream" not "written to $error". That said, the following code
get-item nosuchitem 2> $null ; $?

MUST return false. The $? variable is the only way for a script to determine that a command failed and take action (without adding the complexity of exceptions). For example:
$content = get-content foo.txt 2> $null
if ($?)
{
    "Do stuff with content"
}
else {
    "Handle error"
}

Like any shell, the value of $? is only valid right after the command or expression you are interested in has executed.  If you are executing the command in another scope, don't expect that $? in your scope will be affected.
One important thing that is missing is a way for functions and scriptblocks to indicate to the caller that they failed. (Scripts can do it by calling exit 1).

A few tangents:

I think you meant "written to the error stream" not "written to $error".

True, but as an aside: 2> $null still causes errors to be logged in $Error, perhaps surprisingly (as such it is the equivalent of -ErrorAction SilentlyContinue); only -ErrorAction Ignore prevents that.

The $? variable is the only way for a script to determine that a command failed and take action (without adding the complexity of exceptions).

That makes sense, but given how easy it is to wipe out the last command's $? status (e.g., (get-content nosuchfile) -match 'hi', @(get-content nosuchfile), ... making $? return $True), $? is currently of limited value - see https://github.com/PowerShell/PowerShell/issues/3359#issuecomment-287842045

One important thing that is missing is a way for functions and scriptblocks to indicate to the caller that they failed. (Scripts can do it by calling exit 1).

While an explicit way to do that would definitely be nice, making Write-Error calls set $? in the caller's scope would go a long way - see #3629

Someone just hit the $?-is-still-$false-with--ErrorAction Ignore issue indirectly on Stack Overflow, in the context of a Makefile:
A recipe such as powershell -c " Remove-Item -ErrorAction Ignore file.txt" unexpectedly fails if an error was ignored, because $? is mapped onto exit codes 0 and 1.

I think perhaps this might be resolved by splitting the functionality expected from $?
Currently it reports a mixed status, depending on the last executed command OR expression. And, as far as I can think this morning, the only way an expression would fail is if it's pretty much nonsensical and is either a parse or something like a math error, using operators in a context they don't allow, e.g., "hello" % 2
What if we split this in two, so that we have a variable like $LastCmdletFailed and a $LastExpressionFailed ?

Agreed that $? shouldn't report virtually-always-successful expression status, @vexx32, and this has come up before in #3359, which asks that $?:

only ever reflect the last command's status
including whether the previous statement was aborted due to a statement-terminating error - which is what "hello" % 2 triggers (more simply 1 / 0).

In other words: if an expression (or command) was aborted due to a statement-terminating error, $? is sensibly $false, but it never makes sense for a "successful" (i.e., non-aborted) expression to set $? to $true, as is currently the case.
With that, I'd say there's no need for a separate $LastExpressionFailed.

That certainly seems to be pretty sensible to me. I can't really think of a case that doesn't effectively cover. 😄

I'd amend the statement below, as follows: "only ever reflect the status of the last command that was executed in the current scope". I've never, ever wanted it to work differently, and could care less about the status of the last command that was invoked any number of levels deep inside of something I invoked.

only ever reflect the last command's status

Definitely agreed on that. If my function handles an error state but doesn't itself emit an error, that error should not magically show up in $error or $?.

Agreed.

Fortunately, at least in PowerShell code it already seems to work that way:

 & { gci /nosuch }; $?  # $True - fortunately, the gci status did NOT leak

Unfortunately, you can't set the $? status for your caller from PowerShell code - see #3629

 & { Write-Error 'oh no' }; $?  # !! $True - despite the use of Write-Error

The workaround is to use $PSCmdlet.WriteError(), but that's (a) cumbersome and (b) only available in advanced function/scripts.


Mention the inability to access partitioned devs

Addresses issue https://github.com/NetApp/netappdvp/issues/97.
Maintainers, feel free to edit this commit as necessary

Merged as e93515d


#1 standardize infura endpoint

Pull request for the topic https://github.com/slingr-stack/infura-endpoint/issues/1 created by @agreggio-slingr
What does it do?
This ticket implements the use of slingr-helpgen, whereby it modifies existing functions, adds basic functions and step flows.
How to test it?
Make calls from the platform for example using the console using the information provided in the documentation.
Implementation notes
Create new version of the endpoint, it is not compatible with previous versions.
Implementation notes
Create a new tags changing the major version and deploy to the platform.

#approve

#approved


GitHub Actions: Run tests on recent Elixir and OTP versions

@benwilson512 Any changes to get this merged?


Custom noteskin support

Option in settings to change noteskins.
Added another default skin, circles by Foxeru (fox# 0669) (Unfinished, missing hit glow).
Updated every noteskin system to use the currently selected noteskin.

Going to add a few new default skins with Foxeur later on, and a feature to override skins set by chart (currently never overrides).

pixel circle notes sir where are they

pixel circle notes sir where are they

they don't exist, got nobody who can make them. that's why atm its not overriding pixel skins.

This exists https://gamebanana.com/mods/30861

we made our own asets. we're not taking others assets unless they contribute themselves or we get their permission.


move definitions and rename some types

(I'm leaving this as a draft PR because I'm not sure this should be merged, just trying out some ideas)
Main changes

CompressionFormat and CompressionLevel lost the Compression part, and moved into src/compression.rs. Main consequence on the public API is that you can useuse niffler::compression;
niffler::get_writer(..., compression::Format:Gzip, compression::Level::Nine);

oruse niffler::compression::{Format, Level};
niffler::get_writer(..., Format:Gzip, Level::Nine);

Renamed NifflerError to Error, this way we can douse niffler::Error;
fn get_writer(...) -> Result<..., Error> {}

instead of having to write NifflerError. And crates using niffler can do niffler::Error instead of niffler::NiflerError.
Moved read_compression, new_lzma_{encoder,decoder} and new_bz2_{encoder,decoder} to src/compression.rs, and made them pub(crate)(so we can call them insrc/lib.rs`).

Thanks @luizirber I think all this change was good we can probably merge it !


Fix nullables

Description
A lot of nullable warnings in several modules
Steps to Reproduce
cd src/libp2p && dotnet build
Expected behavior
Nullable variables are checked for nulls properly

HI @flcl42 , if this issue is still open, can I give it a shot? lmk.


More customizable code email sent

Preflight Checklist

[X] I could not find a solution in the existing issues, docs, nor discussions
[X] I have joined the ZITADEL chat

Describe your problem
In my company we want to make more beauty welcome message with the link to change user password
Describe your ideal solution
Nowadays there's one way to customize texts sent by initialization, email verify and etc.
I wanna that it's more customizable, like put HTML code inside this.
Version
No response
Environment
ZITADEL Cloud
Additional Context
No response

Hei @pedrobruneli
Thanks for your request.
We do have an message template that we store, but at the moment it is not editable, and is only created on the creation of a new instance.
I will put the issue to the product backlog for now to collect feedback, if thats something needed by more customers and community.
You could also achieve this, by using our new user and sessopm apis to build your own login, you can then tell the request to return the code, so you can send a fully customzied email by yourself.
If you need the feature faster we are also happy to accept contributions.

Perfect! That's better for me! Thank you @hifabienne

Hello @hifabienne! Can you please tell me if there are any updates on this?

Hello @hifabienne! Can you please tell me if there are any updates on this?

Currently there are no updates on this issue.
A workaround for if you are self hosting ZITADEL is, you can edit the email template that is created on the first setup of ZITADEL. you can find this in the default.yaml

Thank you for the answer @hifabienne! One more question, please. Is it possible to use different templates for different organizations? And are there any plans to implement this, if it is not possible currently?

Thank you for the answer @hifabienne! One more question, please. Is it possible to use different templates for different organizations? And are there any plans to implement this, if it is not possible currently?

At the moment this is not possible. At the moment we do not yet have a plan when and how we will implement the possibility to manage email templates. We collect the feedback on the issues and see if it get a lot of reactions. If there are lots of reactions we consider the implementation and will also have a look what is needed

Thank you!

Can we implement sending emails as a webhook optionally?
I'm happy to run a MJML > AWS SES microservice as long as I can be sent an event object with the variables to inject into a template.
Takes the burden off the core product as an optional way to extend the functionality.

Can we implement sending emails as a webhook optionally?
I'm happy to run a MJML > AWS SES microservice as long as I can be sent an event object with the variables to inject into a template.
Takes the burden off the core product as an optional way to extend the functionality.

With our new users API, you canlet ZITADEL know that you want to get the code in the response, in that case ZITADEL does not send the email. and you can send it yourself. https://zitadel.com/docs/category/apis/resources/user_service/user-service


Do we have to set sequenceNumbers?

Short question about sequenceNumbers. Is it ok to swap out the json file with a totally fresh one from scratch with sequenceNumbers=0? Or is it required to increment the sequenceNumbers at all costs to update an entry?
I updated my SPO scripts to increment the sequenceNumber in the draft json before the signing, that should be ok right?
Originally posted by @gitmachtl in https://github.com/input-output-hk/offchain-metadata-tools/issues/8#issuecomment-819321857

Great question, I've had to go check myself.
In the current state, a property that was present before, and is present after, must have an incremented sequence number if it was changed - even if it's a completely different value.
To address the other part of your original question: yeah, the token-metadata-creator currently provides no way to increment sequence numbers. You have to make your changes, increment the sequence numbers manually, then re-attest the changes using the token-metadata-creator -a flag or similar, in that order, because the attestation attests to the sequence number as well as the value.

Please let me know if I haven't answered your question properly. I'm not sure I completely understood.

Thx. I think i am good. I track the sequenceNumber in my scripts and everytime someone generates a new .json for the registry it autoincrements the sequenceNumber before the signing. So, i think there should be an "How to update" section in the README to point this out that every changed/updated parameter in a later version must have a higher sequenceNumber.
But, do we really need that sequenceNumber at all? Isn't the token-registry-server just making a 1:1 copy of the Github entries? No matter what you update in them? Will the token-registry-server clear out the metadata if you delete the submitted JSON file?

But, do we really need that sequenceNumber at all?

Sequence numbers are better explained in the draft CIP, but to sum it up:
Sequence numbers are required to prevent an attacker from finding a previous entry of yours, and overwriting your existing entry with an old entry.

Isn't the token-registry-server just making a 1:1 copy of the Github entries?

Yes, the token-registry-server doesn't care about the sequence number, only the pull request validation step cares about the sequence number.

Will the token-registry-server clear out the metadata if you delete the submitted JSON file?

It doesn't :( It's a flaw in the current design, only additions to the GitHub repo are are reflected in the backend. Removals from the GitHub repo are not reflected in the backend. You've got to remove them from the backend database manually atm.

Thx


[BUG] Could not solve the captcha!

[DeathByCaptcha] Balance: $10
Could not solve the captcha! Exception of type 'CaptchaSharp.Exceptions.TaskSolutionException' was thrown.

This is not an OB issue it's an issue with DBC, can you try using another service? Which kind of captcha are you trying to solve?

funcaptcha
On Wed, 20 May 2020 at 17:34, openbullet<EMAIL_ADDRESS>wrote:

This is not an OB issue it's an issue with DBC, can you try using another
service? Which kind of captcha are you trying to solve?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/openbullet/openbullet/issues/679#issuecomment-631431315,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGJQVPKNSBFX5AS5FZMI7YDRSPBL7ANCNFSM4NFS6PHA
.

It was working when we tested it, could you kindly write me on the forum https://forum.openbullet.dev and provide me the website so I can see if we get the same error?


fix EPP of sending a value to oneself

This is a pretty tiny fix; as currently written Endpoint Projection of an (A, x) ~> A operation will cause A to "own" (and subsequently unwrap) an Empty.
Instead of this fix, one might consider forbidding self-sends altogether, but there's no particular reason why they should be illegal. One might also consider handling them specially as no-ops, but we can imagine cases where the network send and recv get assigned specialized side-effects that shouldn't be skipped.
The repo doesn't have any unit tests. I've done the bare minimum of running one of the example programs to make sure I didn't break anything. If there's any book-keeping that should accompany a patch like this; I haven't done it.

Thanks! I changed the behavior of sending a value to oneself to return the value immediately and tweaked the style a bit.


Theme Upload locales error

Hi There,
I am getting the following error when using Theme Upload.
Asset Perform Update to locales/zh_CN.json at host staging-ca-sengled-com.myshopify.com
Status: 422 Unprocessable Entity
Errors: Invalid locale name
Key "Commands:" contains invalid characters
Key "Options:" contains invalid characters
Key "Examples:" contains invalid characters
Key "default:" contains invalid characters
Key "choices:" contains invalid characters
Key "Not enough non-option arguments: got %s, need at least %s" contains invalid characters
Key "Too many non-option arguments: got %s, maximum of %s" contains invalid characters
Key "Missing argument value: %s" contains invalid characters
Key "Missing required argument: %s" contains invalid characters
Key "Unknown argument: %s" contains invalid characters
Key "Invalid values:" contains invalid characters
Key "Argument: %s, Given: %s, Choices: %s" contains invalid characters
Key "Argument check failed: %s" contains invalid characters
Key "Implications failed:" contains invalid characters
Key "Not enough arguments following: %s" contains invalid characters
Key "Invalid JSON config file: %s" contains invalid characters
Key "Path to JSON config file" contains invalid characters
Key "Show help" contains invalid characters
I don't even have zn_CN.json in theme's locales folder. Same error is also given for bunch of other locales files such as locales/be.json, locales/zh.json, locales/tr.json etc.

Hey @overturex I have a few questions to figure this out. Does locales/zh_CN.json exist on your remote theme (the online editor)? Do any of those labels seem familiar? Does everything else success when uploading?
Can you also please email me at<EMAIL_ADDRESS>your store domain and which theme you are developing with so I can test this out?

Hey @overturex I contacted support to find your shop. I was unable to reproduce this bug. Are you sure that those file do not exist in your local development files. There seems to be no other reason why you would get this error. Theme kit recursively searches your files for items to upload.  If you can, please get in touch with me so I can resolve this issue.

Hi @tanema. Nothing worked. The theme is in a git repo. I don't see any of those locale files in neither in my local nor it git. So, I decided to clone to repo to a new folder to test it and didn't get error this time. I still don't know what the problem was but it is working with the new clone now.

Did you clone the first one from a repo or did you use theme download to get the code the first time.

Cloned from a repo and was working fine before in terms of using themekit

I am going close this since I cannot reproduce it and you can no longer reproduce it. There isn't really a possible way for random files to be uploaded so I am going to put this up to accidental bad setup or corrupted data from download. If this happens again and you can help me reproduce it please reopen.

I also have this issue. It's not urgent since the rest of my theme is uploaded correctly. Just inconvenient to see a mess of errors.
From one local repo, across 4 themes on 2 different stores. (We test our theme in a few places with $ theme replace --env=whatever before deploying to production.)
Many 422 errors are returned during a replace. Mostly relating to locale files that are not in our local files or in any of the remote themes. There are also a few odd .tmpl files mentioned in the logs as well... weird.
It's been a year since we started the git repo, but I went back to the first commit and these files didn't exist then either.
We didn't use theme download to fetch the initial version. I believe we initially used the "Download theme file" option in the ourstore.myshopify/admin/themes to grab a theme we bought.
Not sure if it's relevant but we had been using the theme Ruby gem previously to themekit's release, but I know a developer or 2 that have started fresh on a new machine without the gem and cloned a fresh copy of the repo.
I have not personally tried what the OP did and clone the repo into a new directory.
Any other info I can provide?
Thanks!

ping @tanema in case you don't get notifications on closed issues 🙊

Hey @tbeseda thanks for pinging me. This is happening in multiple projects for you? Does it only happen with replace and not upload? These files do not exist on your remote theme?

It happens in one project, but that same project goes to 2 themes in a "development" shop and 2 themes in a "production" shop. All produce the same 422 errors.
I just tried theme upload and got the same result as theme replace.
Correct, these files do not exist in the remote theme. Here's a mostly empty locales directory in the admin:

In addition to the locale errors mentioned earlier, I get some similar to:
[development]Asset Perform Update to templates/directives/bs-switch.html at host <our-dev-shop>.myshopify.com
        Status: 422 Unprocessable Entity
        Errors: Theme files may not be stored in subfolders

We've never placed a sub directory in templates (though, that would be cool 😎). And we've never used a file named bs-switch.html. Maybe an old theme we had installed did?
Oh, also, I am using Windows 10, in case that is relevant.

That is really confusing upload just looks for files from the filesystem, there is no cache to it. What themekit version are you on?

----------------------------------------------------------------
        ThemeKit - Shopify Theme Utilities 0.6.12
----------------------------------------------------------------

Also, I looked for hidden files on my machine; no luck. Same as what I see in my editor, in Shopify admin, and in File Explorer.
I asked another theme dev who works on the same project, and she sees the same problem on her Mac.

I re-cloned our repo and ran theme replace -- it worked! no errors!
But I noticed the file count was different.
I realized the only different between the 2 folders was that I hadn't run npm install on the new location. So there was no node_modules folder yet.
I deleted the modules folder from my original project and ran theme replace again. No errors.
I reinstalled the node modules and added an ignore to my config.yml
ignore_files:
- /node_modules/

That did the trick.
I found a directory called locales with a bunch of .json files in one of the node_mdules sub directories. Must have matched a pattern in themekit.
I should have thought of that first. Thanks for the patience here.
Maybe there should be some default ignores? I'd imagine ./.git/ is ignored already.

oh! Good find! Right now default ignores are
\.git
\.hg
\.bzr
\.svn
_darcs
CVS
\.sublime-(project|workspace)
\.DS_Store
\.sass-cache
Thumbs\.db
desktop\.ini
config.yml

So I can add node_modules to this list as well. However I think that this has exposed that the path matching to make sure a file is in a correct project directory is not properly matching as well. I will have to look into that.

pinging @overturex for update on this issue.

Good find @tbeseda. Probably one of the npm modules I was testing created the issue for my project.
Only if there was a way to pull directly from a git repo. I find that uploading directly from a local machine may cause issues like this. You might as well add npm-debug.log and .idea to default ignores.
I also really don't like the fact that theme update uploads all the files from my local to Shopify servers instead of getting the difference. Is there a better way?

@overturex please follow along with this issue https://github.com/Shopify/themekit/issues/330 for making sure only the difference is changed.


Create dataset science_magazing_aaas_academic_journal_

uid: science_magazing_aaas_academic_journal_
type: primary
description:

name: Science magazing AAAS academic journal.
description:
homepage:
validated: True

languages:

language_names:

English

language_comments:
language_locations:

World-Wide
United States of America

validated: False

custodian:

name: Science/AAAS
in_catalogue:
type: A library, museum, or archival institute
location: United States of America
contact_name: Science/AAAS
contact_email<EMAIL_ADDRESS>contact_submitter: False
additional: https://www.science.org/content/page/contact-us
validated: False

availability:

procurement:

for_download: No - but the current owners/custodians have contact information for data queries
download_url:
download_email<EMAIL_ADDRESS>

licensing:

has_licenses: Yes
license_text: https://www.science.org/content/page/terms-service
license_properties:

copyright - all rights reserved

license_list:

other: Other license

pii:

has_pii: Yes
generic_pii_likely: very likely
generic_pii_list:

names
email addresses
full-face photographs and comparable images
URLs

numeric_pii_likely: very likely
numeric_pii_list:

telephone numbers
certificate/license numbers

sensitive_pii_likely: unlikely
sensitive_pii_list:

health-related data

no_pii_justification_class:
no_pii_justification_text:

validated: False

source_category:

category_type: website
category_web: official website
category_media:
validated: False

media:

category:

text
image
audiovisual

text_format:

.PDF

audiovisual_format:

.MP3

image_format:

.JPEG

database_format:
text_is_transcribed: No
instance_type: article
instance_count: 100K<n<1M
instance_size: 100<n<10,000
validated: False

fname: science_magazing_aaas_academic_journal_.json

Duplicated entry in the Catalogue of:

#335


Dependency on cookie 0.6.0 fails npm audit

GitHub Advisory Database says cookie 0.6.0 has issues, resulting in npm audit failure
https://github.com/advisories/GHSA-pxg6-pf52-xh8x
npm ls cookie
─┬<EMAIL_ADDRESS> └──<EMAIL_ADDRESS>
Remedy: Upgrade to cookie 0.7.0

Both Snyk and npm audit report this.
When can we expect fixes to be released, and hopefully later backported to previous major version series as well?

same issue

Release proposals:

#6031
#6032

I will keep this issue open until the releases are published.

express 4.21.1 and 5.0.1 are available in npm with the patch :partying_face:


icc package name change for beta10

Robert,
Thanks for the pull request. I was wondering why the icc compiler was not getting updated properly with beta10 and was still showing up as beta08. I'll test this and merge the changes in. There are several other places where I install the icc package that I'll correct as well.


[PowerToys Run] Pass command line argument to launched application

I recently switched over to PowerToys Run from "Launchy". A feature I am dearly missing in PT Run, is the option to pass a command line argument to the application I am going to run.
This could e.g. be used in the following way:

Launch up PowerToys Run
Type "Edge" so PT Run shows the "Microsoft Edge" application
Hit a button to add a command line argument (in Launchy, this is done via the "Tab" key)
Type "-inPrivate" as argument to pass
By hitting the "Enter" key, Launch Edge with the "-inPrivate" command line argument, i.e. launching a private window

This is indefinitely flexible, because users could have (shortcuts to) self written scripts indexed in PT Run and could then work with the command line arguments passed form PT Run inside their script.
Like this it would e.g. be possible re-create the functionality of the "Weby" Plugin form Launchy, which can be used to call a URL but with one part of the URL being replaced by the argument (e.g. to translate via https://translate.google.com/#de/en/%1, where %1 is the passed argument).

If you'd like to see this feature implemented, add a 👍 reaction to this post.

You can type edge -- wwe.google.de or edge -<parameter>.

That is awesome and should definitely be documented!
However, does this only work for Applications? I cannot seem to be able to pass an argument like this to a .cmd that shows up in PT Run as a "Search" result (via the indexer).

Already tracked by #3405

That is awesome and should definitely be documented!
However, does this only work for Applications? I cannot seem to be able to pass an argument like this to a .cmd that shows up in PT Run as a "Search" result (via the indexer).

@YZN3RF
I think cmd /k ... should work.

That is awesome and should definitely be documented!
However, does this only work for Applications? I cannot seem to be able to pass an argument like this to a .cmd that shows up in PT Run as a "Search" result (via the indexer).

@YZN3RF
I think cmd /k ... should work.

I think I do not fully understand...this is the situation, where I would like to add command line arguments:

That is awesome and should definitely be documented!
However, does this only work for Applications? I cannot seem to be able to pass an argument like this to a .cmd that shows up in PT Run as a "Search" result (via the indexer).

@YZN3RF
I think cmd /k ... should work.

I think I do not fully understand...this is the situation, where I would like to add command line arguments:

This is a different case as described above. You start a cmd file and not the application cmd.
So you want to pass args to a script file (e.g. Powershell script, CMD script, ...).
Do I understand this correct?

This is a different case as described above. You start a cmd file and not the application cmd.
So you want to pass args to a script file (e.g. Powershell script, CMD script, ...).
Do I understand this correct?

Yes, exactly. I would like to pass args to s script file.

Would it make sense for me to create a new ticket for the use case "Pass arguments to an indexed file" ?

Would it make sense for me to create a new ticket for the use case "Pass arguments to an indexed file" ?

Sure. Feel free. Please link to this issue and explain the usecase of powershell scripts, cmd scripts, ...

can we pass parameters to python script through powertoys run ?

can we pass parameters to python script through powertoys run ?

Can you please describe your use case a bit more. In a scripted plugin or when starting the python scipt from the Run box?


Can not load  assets(AssetManifest.json) use FlutterEngineGroup

Steps to Reproduce
1.create android project and add flutter support
2.show different fragment use FlutterEngineGroup and FlutterFragment.withCachedEngine
3.load image in different fragment,  get error.
simple demo to Get this error
Log

error logs
======== Exception caught by image resource service =======================
The following assertion was thrown while resolving an image:
Unable to load asset: AssetManifest.json

When the exception was thrown, this was the stack:
#0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:227:7)
<asynchronous suspension>
#1      AssetBundle.loadString (package:flutter/src/services/asset_bundle.dart:68:27)
<asynchronous suspension>
Image provider: ScrollAwareImageProvider<Object>()
Image configuration: ImageConfiguration(bundle: PlatformAssetBundle#4fa3e(), devicePixelRatio: 3.0, locale: en_US, textDirection: TextDirection.ltr, size: Size(329.0, 64.0), platform: android)
==================================================================

Flutter doctor

Flutter doctor
  [✓] Flutter (Channel stable, 2.0.5, on macOS 11.2.1 20D74 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.0.5 at /Applications/flutter
    • Framework revision adc687823a (3 months ago), 2021-04-16 09:40:20 -0700
    • Engine revision b09f014e96
    • Dart version 2.12.3
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/walter/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/walter/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio
    • Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
    • 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 1.8.0_152-release-915-b01)

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.50.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • ELE AL00 (mobile) • Q5S0219412002409 • android-arm64  • Android 10 (API 29)
    • D2s (mobile)      • TC05209K40371    • android-arm    • Android 7.1.2 (API 25)
    • macOS (desktop)   • macos            • darwin-x64     • macOS 11.2.1 20D74 darwin-x64
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 92.0.4515.107

Hi @walterFeng
Just ran the code sample on stable, no Unable to load asset: AssetManifest.json in the logs

logs
[  +49 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more
information see #56466.
[   +3 ms] Syncing files to device IN2011...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:client_register/main.dart 7d6534c6-fc7f-445c-b47e-a363ed2a2c08
[        ] <- 7d6534c6-fc7f-445c-b47e-a363ed2a2c08
[  +66 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device IN2011... (completed in 72ms)
[   +1 ms] Synced 0.0MB.
[   +1 ms] <- accept
[  +19 ms] Connected to _flutterView/0x6e18bb2e00.
[   +3 ms] Flutter run key commands.
[   +2 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[        ] An Observatory debugger and profiler on IN2011 is available at: http://<IP_ADDRESS>:60436/rnQWSYiOplA=/
[ +533 ms] The Flutter DevTools debugger and profiler on IN2011 is available at:
                    http://<IP_ADDRESS>:9100?uri=http%3A%2F%2F<IP_ADDRESS>%3A60436%2FrnQWSYiOplA%3D%2F
[+1019 ms] I/309     (17553): package:cc.yourdream.register took:2247 calssname:android.app.ActivityThread$H
callback:null what:159
[   +4 ms] I/Choreographer(17553): Skipped 250 frames!  The application may be doing too much work on its main thread.
[ +587 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2296} parent width 1080 parent height 2296 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2296} viewRate 0 width 1080 height 2296
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2296} parent width 1080 parent height 2296 mRatio 1.2
[   +3 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2296} viewRate 0 width 1080 height 2296
[   +2 ms] I/OpenGLRenderer(17553): Davey! duration=3377ms; Flags=1, IntendedVsync=724136513475115,
Vsync=724139291252865, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=724139297395270,
AnimationStart=724139297441885, PerformTraversalsStart=724139300079801, DrawStart=724139886003603,
SyncQueued=724139887835374, SyncStart=724139888580947, IssueDrawCommandsStart=724139888731832,
SwapBuffers=724139890586989, FrameCompleted=724139891444280, DequeueBufferDuration=595833, QueueBufferDuration=334323,
GpuCompleted=4037269259134,
[  +14 ms] I/Choreographer(17553): Skipped 53 frames!  The application may be doing too much work on its main thread.
[+360064 ms] W/DisplayEventDispatcher(17553): dispatcher 0x6d48bbf230 ~ ignoring unknown event type 0x6d746f6e
[        ] W/DisplayEventDispatcher(17553): dispatcher 0x6d98beb1d0 ~ ignoring unknown event type 0x6d746f6e
[  +35 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ......ID 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ......ID 0,0-1080,2251} viewRate 0 width 1080 height 2251
[        ] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[        ] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2251} viewRate 0 width 1080 height 2251
[  +45 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[  +11 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2251} viewRate 0 width 1080 height 2251
[   +1 ms] D/DecorView(17553): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@aa373b5[MainActivity]
[        ] D/ViewRootImpl[MainActivity](17553): windowFocusChanged hasFocus=true inTouchMode=true
[+1030 ms] D/ViewRootImpl[MainActivity](17553): windowFocusChanged hasFocus=false inTouchMode=true
[+7409 ms] D/DecorView(17553): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@aa373b5[MainActivity]
[   +3 ms] D/ViewRootImpl[MainActivity](17553): windowFocusChanged hasFocus=true inTouchMode=true
[   +7 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[   +3 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2251} viewRate 0 width 1080 height 2251
[ +603 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{1dbb567
VFED..... ......I. 0,0-0,0} parent width 0 parent height 0 mRatio 1.2
[   +6 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{11ac526
V.E...... ......I. 0,0-0,0} viewRate 0 width 0 height 0
[ +114 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{1dbb567
VFED..... ......ID 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +3 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{11ac526
V.E...... ......ID 0,0-493,500} viewRate 0 width 493 height 500
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{1dbb567
VFED..... ........ 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{11ac526
V.E...... ........ 0,0-493,500} viewRate 0 width 493 height 500
[ +609 ms] I/flutter (17553): walter:329.0,925.3125,0.0
[   +3 ms] I/flutter (17553): walter: FrameCallback:0
[+1480 ms] I/flutter (17553): walter:329.0,925.3125,5512.5
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[   +2 ms] I/flutter (17553): walter:printReceipt
[   +2 ms] E/addDartWidget(17553): layout2131034203
[   +3 ms] I/flutter (17553): result:true
[  +79 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{1dbb567
VFED..... ......ID 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{11ac526
V.E...... ......ID 0,0-926,5513} viewRate 0 width 926 height 5513
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{1dbb567
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{11ac526
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+1517 ms] D/OverScroller(17553): setting mVelocityAccuCount to: 1
[+3322 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{1dbb567
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +3 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{11ac526
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+1356 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{cb1bc72
VFED..... ......I. 0,0-0,0} parent width 0 parent height 0 mRatio 1.2
[   +3 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f5a57d
V.E...... ......I. 0,0-0,0} viewRate 0 width 0 height 0
[ +119 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{cb1bc72
VFED..... ......ID 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f5a57d
V.E...... ......ID 0,0-493,500} viewRate 0 width 493 height 500
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{cb1bc72
VFED..... ........ 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[        ] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f5a57d
V.E...... ........ 0,0-493,500} viewRate 0 width 493 height 500
[ +586 ms] I/flutter (17553): walter:329.0,925.3125,0.0
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[+1513 ms] I/flutter (17553): walter:329.0,925.3125,5512.5
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[   +2 ms] I/flutter (17553): walter:printReceipt
[   +2 ms] E/addDartWidget(17553): layout2131034203
[   +2 ms] I/flutter (17553): result:true
[   +3 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{cb1bc72
VFED..... ......ID 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f5a57d
V.E...... ......ID 0,0-926,5513} viewRate 0 width 926 height 5513
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{cb1bc72
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f5a57d
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+4942 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{cb1bc72
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f5a57d
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+22837 ms] W/DisplayEventDispatcher(17553): dispatcher 0x6d98beb1d0 ~ ignoring unknown event type 0x6d746f6e
[   +1 ms] W/DisplayEventDispatcher(17553): dispatcher 0x6d48bbf230 ~ ignoring unknown event type 0x6d746f6e
[ +390 ms] D/ViewRootImpl[MainActivity](17553): windowFocusChanged hasFocus=false inTouchMode=true
[+24189 ms] W/DisplayEventDispatcher(17553): dispatcher 0x6d98beb1d0 ~ ignoring unknown event type 0x6d746f6e
[  +53 ms] W/DisplayEventDispatcher(17553): dispatcher 0x6d48bbf230 ~ ignoring unknown event type 0x6d746f6e
[   +5 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ......I. 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ......I. 0,0-1080,2251} viewRate 0 width 1080 height 2251
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2251} viewRate 0 width 1080 height 2251
[   +2 ms] D/DecorView(17553): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@aa373b5[MainActivity]
[        ] D/ViewRootImpl[MainActivity](17553): windowFocusChanged hasFocus=true inTouchMode=true
[        ] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{70b6dbb
VFED..... ........ 0,0-1080,2251} parent width 1080 parent height 2251 mRatio 1.2
[        ] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{f73069f
V.E...... ........ 0,0-1080,2251} viewRate 0 width 1080 height 2251
[   +3 ms] D/ActivityThread(17553): pid:17553 tid:17553 doframe Callback
[+21462 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{3d2cbbf
VFED..... ......I. 0,0-0,0} parent width 0 parent height 0 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{eb15dde
V.E...... ......I. 0,0-0,0} viewRate 0 width 0 height 0
[ +120 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{3d2cbbf
VFED..... ......ID 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{eb15dde
V.E...... ......ID 0,0-493,500} viewRate 0 width 493 height 500
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{3d2cbbf
VFED..... ........ 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{eb15dde
V.E...... ........ 0,0-493,500} viewRate 0 width 493 height 500
[ +572 ms] I/flutter (17553): walter:329.0,925.3125,0.0
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[+1504 ms] I/flutter (17553): walter:329.0,925.3125,5512.5
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[   +2 ms] I/flutter (17553): walter:printReceipt
[   +2 ms] E/addDartWidget(17553): layout2131034203
[   +4 ms] I/flutter (17553): result:true
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{3d2cbbf
VFED..... ......ID 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{eb15dde
V.E...... ......ID 0,0-926,5513} viewRate 0 width 926 height 5513
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{3d2cbbf
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{eb15dde
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+4919 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{3d2cbbf
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{eb15dde
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+11760 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{5f03b4c
VFED..... ......I. 0,0-0,0} parent width 0 parent height 0 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{c99cf7f
V.E...... ......I. 0,0-0,0} viewRate 0 width 0 height 0
[ +117 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{5f03b4c
VFED..... ......ID 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{c99cf7f
V.E...... ......ID 0,0-493,500} viewRate 0 width 493 height 500
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{5f03b4c
VFED..... ........ 0,0-493,500} parent width 493 parent height 500 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{c99cf7f
V.E...... ........ 0,0-493,500} viewRate 0 width 493 height 500
[ +589 ms] I/flutter (17553): walter:329.0,925.3125,0.0
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[+1505 ms] I/flutter (17553): walter:329.0,925.3125,5512.5
[   +2 ms] I/flutter (17553): walter: FrameCallback:0
[   +1 ms] I/flutter (17553): walter:printReceipt
[   +2 ms] E/addDartWidget(17553): layout2131034203
[   +2 ms] I/flutter (17553): result:true
[   +7 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{5f03b4c
VFED..... ......ID 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{c99cf7f
V.E...... ......ID 0,0-926,5513} viewRate 0 width 926 height 5513
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{5f03b4c
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +2 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{c99cf7f
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513
[+4912 ms] D/OpScreenModeManager(17553): setRefreshRate parent io.flutter.embedding.android.FlutterView{5f03b4c
VFED..... ........ 0,0-926,5513} parent width 926 parent height 5513 mRatio 1.2
[   +1 ms] D/OpScreenModeManager(17553): setRefreshRate view io.flutter.embedding.android.FlutterSurfaceView{c99cf7f
V.E...... ........ 0,0-926,5513} viewRate 0 width 926 height 5513

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1110], locale en-US)
    • Flutter version 2.2.3 at C:\Users\Taha\Code\flutter_stable
    • Framework revision f4abaa0735 (4 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\android-sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\Taha\Code\android-sdk
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java.exe
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

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

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.10.31515.178
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.58.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[✓] Connected device (4 available)
    • IN2011 (mobile)   • c9d8ee0c • android-arm64  • Android 11 (API 30)
    • Windows (desktop) • windows  • windows-x64    • Microsoft Windows [Version 10.0.19043.1110]
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 92.0.4515.107
    • Edge (web)        • edge     • web-javascript • Microsoft Edge 91.0.864.71

! Doctor found issues in 1 category.

I see you're using an older stable channel
Can you please upgrade to the latest  stable and try again
Execute the following commands to upgrade
flutter channel stable
flutter upgrade --force
flutter doctor -v

Hi @walterFeng
Just ran the code sample on stable, no Unable to load asset: AssetManifest.json in the logs
logs
flutter doctor -v
I see you're using an older stable channel
Can you please upgrade to the latest stable and try again
Execute the following commands to upgrade
flutter channel stable
flutter upgrade --force
flutter doctor -v

Load assets does not work only when in debug mode and connected to the androidStudio debugger.

Hi @walterFeng
Can you please try a different device or emulator?
Also please provide complete logs with the issue from `flutter run -v' similar to https://github.com/flutter/flutter/issues/87173#issuecomment-888358400

Hi @walterFeng
Can you please try a different device or emulator?
Also please provide complete logs with the issue from `flutter run -v' similar to #87173 (comment)

Doesn't work on all my devices:
• ELE AL00 (mobile) • Q5S0219412002409 • android-arm64  • Android 10 (API 29)
• D2s (mobile)      • TC05209K40371    • android-arm    • Android 7.1.2 (API 25)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 7.1.1 (API 25) (emulator)

Hi @walterFeng

Run the code sample on stable，then click the second button. The image will not be seen and the error log will appear.

Thanks, I can reproduce the issue on the stable

However, it seems to work on the latest beta

flutter doctor -v
[✓] Flutter (Channel beta, 2.4.0-4.2.pre, on Microsoft Windows [Version 10.0.19043.1110], locale en-US)
    • Flutter version 2.4.0-4.2.pre at C:\Users\Taha\Code\flutter_beta
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f18b9281c2 (8 days ago), 2021-07-22 14:08:30 -0700
    • Engine revision 844c29f42a
    • Dart version 2.14.0 (build 2.14.0-301.2.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\android-sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\Taha\Code\android-sdk
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

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

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.0 Preview 2.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Preview
    • Visual Studio Community 2022 version 17.0.31521.260
    • The current Visual Studio installation is a pre-release version. It may not be supported by Flutter yet.
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.2.0)
    • Android Studio at C:\Users\Taha\Code\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.10+0-b96-7249189)

[✓] VS Code (version 1.58.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[✓] Connected device (4 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 7.1.1 (API 25) (emulator)
    • Windows (desktop)                  • windows       • windows-x64    • Microsoft Windows [Version 10.0.19043.1110]
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 92.0.4515.107
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 92.0.902.55

• No issues found!

Can you please upgrade to the latest  beta and try again
Execute the following commands to upgrade
flutter channel beta
flutter upgrade --force
flutter doctor -v
Thank you

Hi @walterFeng

Run the code sample on stable，then click the second button. The image will not be seen and the error log will appear.

Thanks, I can reproduce the issue on the stable

However, it seems to work on the latest beta

flutter doctor -v
Can you please upgrade to the latest beta and try again
Execute the following commands to upgrade
flutter channel beta
flutter upgrade --force
flutter doctor -v
Thank you

Hi, @TahaTesser
You are right, it is work on the latest beta

Hi @walterFeng
Thanks for the confirmation, closing as fixed


Some code tidy-ups

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.90%. Comparing base (c650445) to head (73881bd).
Report is 41 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   82.62%   82.90%   +0.27%
==========================================
  Files          71       72       +1
  Lines        2671     2696      +25
==========================================
+ Hits         2207     2235      +28
+ Misses        464      461       -3

Flag
Coverage Δ

unittests
82.90% <100.00%> (+0.27%)
:arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Release: hcaptcha, balance fetching bug fixes

Bug Fixes:
Hcapthcha Retry is not working after i failed hcpatcha first time #290
Unexpected JS Error: updateBalance() Error fetching balance Pangea:#1271
While click on Assets page fetching data slowly in  Pangea Testnet mobile app. #291
Hcaptcha stuck on black screen when turn off internet in verify hcaptcha screen #1178

:tada: This PR is included in version 0.141.0-development.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 0.141.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Response without variable?

Hello.
Is possible to make respond without any value/OID? E.g. when error is used.
That's what happen to me on one device in real use and I would like to reproduce it.
Thank you

I found one thing, which I don't know if it's correct or not.
When I simulate error on one OID, the rest of values in respons is NULL even that they are in the .snmprec.
Is that correct? I though that the rest values will be OK.

I think this is how it should be with SNMP. Errors in error-status are "hard errors", they lead to failing the entire operation.
Does it undermine the way how you need to simulate a broken agent?

probably only thing which I found at least saying something more about response is this from RFC 1905.
A GetRequest-PDU is generated and transmitted at the request of a
  SNMPv2 application.

  Upon receipt of a GetRequest-PDU, the receiving SNMPv2 entity
  processes each variable binding in the variable-binding list to
  produce a Response-PDU.  All fields of the Response-PDU have the same
  values as the corresponding fields of the received request except as
  indicated below.  Each variable binding is processed as follows:

(1)  If the variable binding's name exactly matches the name of a
    variable accessible by this request, then the variable binding's
    value field is set to the value of the named variable.

(2)  Otherwise, if the variable binding's name does not have an OBJECT
    IDENTIFIER prefix which exactly matches the OBJECT IDENTIFIER
    prefix of any (potential) variable accessible by this request, then
    its value field is set to `noSuchObject'.

(3)  Otherwise, the variable binding's value field is set to
    `noSuchInstance'.

  If the processing of any variable binding fails for a reason other
  than listed above, then the Response-PDU is re-formatted with the
  same values in its request-id and variable-bindings fields as the
  received GetRequest-PDU, with the value of its error-status field set
  to `genErr', and the value of its error-index field is set to the
  index of the failed variable binding.

  Otherwise, the value of the Response-PDU's error-status field is set
  to `noError', and the value of its error-index field is zero.

  The generated Response-PDU is then encapsulated into a message.  If
  the size of the resultant message is less than or equal to both a
  local constraint and the maximum message size of the originator, it
  is transmitted to the originator of the GetRequest-PDU.

There is that Each variable binding is processed as follows: so in theory variables are processed in loop until error, which set the error status and index. But there is nothing more if the first OK values should be transmitted, if it should stop on the error (so the rest will be NULL) or if it continue ( but then the error-index could be rewritten by another error)...
So it looks like this behaviour is not precisely described by RFC and can be implemented in more way...
But it's true that then there is:
4.2.4.  The Response-PDU

   The Response-PDU is generated by a SNMPv2 entity only upon receipt of
   a GetRequest-PDU, GetNextRequest-PDU, GetBulkRequest-PDU,
   SetRequest-PDU, or InformRequest-PDU, as described elsewhere in this
   document.

   If the error-status field of the Response-PDU is non-zero, the value
   fields of the variable bindings in the variable binding list are
   ignored.

Which says that manager should ignore data in response if error status is non zero. So it doesn't care if there are valid or not values :)

Thanks for digging into the RFC!

But there is nothing more if the first OK values should be transmitted, if it should stop on the error (so the rest will be NULL) or if it continue ( but then the error-index could be rewritten by another error)...

Well, yes. But trouble is that RFC-suggested way how SNMP agent should process request var-bindings is that even reads are done in phases (first test all var-bindings, the get all var-bindings). That implies that get phase might never be reached should test phase fails...

BTW there is also that with error "TooBig" the variable list is really empty:

Indeed... Let me see if I could fix that.

BTW there is also that with error "TooBig" the variable list is really empty:

So #59 and unreleased pysnmp should have the rest of PDU errors implemented and var-bindings reset to empty on tooBig error.

JFYI: just released both pysnmp and snmpsim.

Great! I will test it on Monday ;)

I don't know if I made something wrong, but I got an error.
I installed it this way (on ubuntu minimal):
1.) sudo pip uninstall snmpsim and sudo pip uninstall pysnmp (to uninstall the old version)
2.)git clone snmpsim and pysnmp
3.)sudo python setup.py install for pysnmp
4.)sudo python setup.py install for snmpsim
When I try to run snmpsimd I got:

You've pulled pysnmp 5 from master. Either just pip install pysnmp or pull it from the release-4.4.9 branch.

I got it :)
And I successfully tested the toobig error!
It really returned error 1 and empty var-binds filed :)

I think that we can close this as solved :)


A703924873043653 procedure creation with documents

Pull Request Test Coverage Report for Build 63

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 78.824%

Totals

Change from base Build 62:
0.1%

Covered Lines:
536

Relevant Lines:
680

💛  - Coveralls


URI Header too long

Hey, I am able to successfully upload the code on the local server but when I am pressing the flash button the web page breaks and I see this error (I (1540683) FILE_SERVER_HTTP: Found file : I2C_RTC.bin (11668 bytes)
I (1540693) FILE_SERVER_HTTP: Found file : UartTest.bin (8220 bytes)
I (1540703) FILE_SERVER_HTTP: Found file : blink.bin (4552 bytes)
I (1542803) FILE_SERVER_HTTP: Sending file : /blink.bin (4552 bytes)...
I (1542813) FILE_SERVER_HTTP: File sending complete
W (1548003) httpd_parse: parse_block: request URI/header too long
) when I monitor the COM port  . I just built and flashed the file_serving_stm folder and flashed it, is it correct?

Solved this issue, changed the max header size to 2048 in sconfig file

Solved this issue, changed the max header size to 2048 in sconfig file


Add venv as an environment manager option

It's the default python virtual environment library now and ships with python 3.

Good call.
various tools auto-discover “venv” and “.venv” - including IDEs like PyCharm and the (wonderful) package manager, Poetry

We don't use venv in our projects could one of you (@hangtwenty @nickcorona) point towards a resource with the basics so that it can be implemented with #162?

Hah I was misunderstanding this thread. I thought it was talking about which directory name to use for a virtualenv if created within project. But I think OP was talking about venv vs virtualenv libraries in stdlib

From: Peter Bull<EMAIL_ADDRESS>Sent: Monday, April 22, 2019 11:26 AM
To: drivendata/cookiecutter-data-science
Cc: Michael Floering; Mention
Subject: Re: [drivendata/cookiecutter-data-science] Use venv instead of virtualenv (#164)
We don't use venv in our projects could one of you (@hangtwentyhttps://github.com/hangtwenty @nickcoronahttps://github.com/nickcorona) point towards a resource with the basics so that it can be implemented with #162https://github.com/drivendata/cookiecutter-data-science/pull/162?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/drivendata/cookiecutter-data-science/issues/164#issuecomment-485503581, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AASO7UHKBMSAT4DHFMARPI3PRX7MNANCNFSM4HHKWR4A.

Hah I was misunderstanding this thread. I thought it was talking about which directory name to use for a virtualenv if created within project. But I think OP was talking about venv vs virtualenv libraries in stdlib
…
________________________________ From: Peter Bull<EMAIL_ADDRESS>Sent: Monday, April 22, 2019 11:26 AM To: drivendata/cookiecutter-data-science Cc: Michael Floering; Mention Subject: Re: [drivendata/cookiecutter-data-science] Use venv instead of virtualenv (#164) We don't use venv in our projects could one of you (@hangtwentyhttps://github.com/hangtwenty @nickcoronahttps://github.com/nickcorona) point towards a resource with the basics so that it can be implemented with #162<#162>? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#164 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AASO7UHKBMSAT4DHFMARPI3PRX7MNANCNFSM4HHKWR4A.

Yeah, that is what I mean.

The general advice is to still prefer virtualenv since it's faster, has more features and can be upgraded via pip.

Changing this issue to consider venv in addition_to and not instead of virtualenv. virtualenv is still popularly used and provides a superset of the functionality of venv. However, it may make sense to include venv as an option since it is part of the Python standard library.


Introduce label for "Don't use extra leading zeros"

This rule is such a subjective stylistic issue, I'm incredibly surprised there's no option to turn it off.
For example, when I'm describing a set of co-ordinates, I like to be able to make use of spaces to allow quick recognition of pairs, and use zeros to make alignment within numbers. Example:
var shape1 = [79,85, 62,88, 48,95, 35,88, 18,85, 07,77, 02,65, 02,58, 09,38, 02,23];
var shape2 = [23,02, 35,07, 48,02, 60,07, 73,02, 96,23, 88,38, 95,58, 96,65, 90,77];

I'm almost reticent of posting an example because I can't find any documentation of reasons against leading zeros… But there's a pro, and I don't see any cons.

@lepture want fix this code style, then saw your comment

@popomore haha


Run one-off script through same babel environment as runtime

Type of issue
Feature request

Description

I am trying to run a one-off script - in this case, a graphql schema generator.  My script loads the schema and prints out the .json and .graphql files.  The schema is also loaded by fusion at runtime.
Current behavior

Because I don't have a babel config (fusion handles this), my script can't run, and can't require anything that is written thinking it will be transpiled.
Expected behavior
I could create my own .babelrc like normal, install babel-cli, etc., but I was hoping for consistency to be able to run it through the exact same config fusion uses to build.

Steps to reproduce

create a file, src/one-off-script.js
add something that needs to be transpiled in the file, like import ...
run script, node src/one-off-script.js

Your environment

fusion-cli version: 1.8.4

Node.js version (node --version): 8.11.3

npm version (npm --version): yarn 1.9.2

Operating System: a mess - WSL/ubuntu at work (lol)

I think this brings up a use case we might want to add support for. While a custom babel config is an okay workaround, we should probably think about exposing some form of API to make this possible, especially as we start introducing more virtual modules such as createUniversalSymbol which we talked about today (cc @rtsao).

@joenoon You might be interested in https://github.com/fusionjs/rfcs/pull/7. Also would you mind expanding on how the code generation stuff works? Are you using a specific babel plugin?

I think the point is if you want to have a script that uses any of your application code, you probably want to build it the same way. Especially if it have references to NODE, DEV, etc.