Unable to simultaneously satisfy constraints when debuggin on iPhone

Why this happen ?
Here is Flutter version:
Flutter 2.6.0-12.0.pre.701 • channel master • https://mirrors.tuna.tsinghua.edu.cn/git/flutter-sdk.git
Framework • revision 24b9346c9b (9 hours ago) • 2021-11-11 16:45:40 -0800
Engine • revision aaacb670af
Tools • Dart 2.15.0 (build 2.15.0-285.0.dev) • DevTools 2.8.0

Error result is as follows:
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x281d502d0 h=--& v=--& _UIToolbarContentView:0x126c66750.width == 0   (active)>",
    "<NSLayoutConstraint:0x281d1a530 H:|-(0)-[_UIButtonBarStackView:0x126c9a620]   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d1bc50 H:[_UIButtonBarStackView:0x126c9a620]-(0)-|   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d56350 'IB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x122f249a0]   (active, names: '|':_UIButtonBarButton:0x122f24080 )>",
    "<NSLayoutConstraint:0x281d48140 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x126c89b80]   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>",
    "<NSLayoutConstraint:0x281d563a0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x122f249a0]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x122f24080 )>",
    "<NSLayoutConstraint:0x281d569e0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x126c89b80]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>",
    "<NSLayoutConstraint:0x281d573e0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d57340 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']-(0)-|   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d577a0 'UISV-canvas-connection' UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x122f24080.leading   (active)>",
    "<NSLayoutConstraint:0x281d57a70 'UISV-canvas-connection' UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x122f1e520.trailing   (active)>",
    "<NSLayoutConstraint:0x281d57ac0 'UISV-spacing' H:[_UIButtonBarButton:0x122f24080]-(0)-[UIView:0x122f1dba0]   (active)>",
    "<NSLayoutConstraint:0x281d57b10 'UISV-spacing' H:[UIView:0x122f1dba0]-(0)-[_UIButtonBarButton:0x122f1dd10]   (active)>",
    "<NSLayoutConstraint:0x281d57b60 'UISV-spacing' H:[_UIButtonBarButton:0x122f1dd10]-(0)-[UIView:0x122f1e3b0]   (active)>",
    "<NSLayoutConstraint:0x281d57bb0 'UISV-spacing' H:[UIView:0x122f1e3b0]-(0)-[_UIButtonBarButton:0x122f1e520]   (active)>",
    "<NSLayoutConstraint:0x281d27c50 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>",
    "<NSLayoutConstraint:0x281d24b90 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x281d563a0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x122f249a0]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x122f24080 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x281d502d0 h=--& v=--& _UIToolbarContentView:0x126c66750.width == 0   (active)>",
    "<NSLayoutConstraint:0x281d1a530 H:|-(0)-[_UIButtonBarStackView:0x126c9a620]   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d1bc50 H:[_UIButtonBarStackView:0x126c9a620]-(0)-|   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d48140 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x126c89b80]   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>",
    "<NSLayoutConstraint:0x281d569e0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x126c89b80]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>",
    "<NSLayoutConstraint:0x281d573e0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d57340 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']-(0)-|   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d577a0 'UISV-canvas-connection' UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x122f24080.leading   (active)>",
    "<NSLayoutConstraint:0x281d57a70 'UISV-canvas-connection' UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x122f1e520.trailing   (active)>",
    "<NSLayoutConstraint:0x281d57ac0 'UISV-spacing' H:[_UIButtonBarButton:0x122f24080]-(0)-[UIView:0x122f1dba0]   (active)>",
    "<NSLayoutConstraint:0x281d57b10 'UISV-spacing' H:[UIView:0x122f1dba0]-(0)-[_UIButtonBarButton:0x122f1dd10]   (active)>",
    "<NSLayoutConstraint:0x281d57b60 'UISV-spacing' H:[_UIButtonBarButton:0x122f1dd10]-(0)-[UIView:0x122f1e3b0]   (active)>",
    "<NSLayoutConstraint:0x281d57bb0 'UISV-spacing' H:[UIView:0x122f1e3b0]-(0)-[_UIButtonBarButton:0x122f1e520]   (active)>",
    "<NSLayoutConstraint:0x281d27c50 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>",
    "<NSLayoutConstraint:0x281d24b90 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x281d569e0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x126c89b80]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x281d502d0 h=--& v=--& _UIToolbarContentView:0x126c66750.width == 0   (active)>",
    "<NSLayoutConstraint:0x281d1a530 H:|-(0)-[_UIButtonBarStackView:0x126c9a620]   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d1bc50 H:[_UIButtonBarStackView:0x126c9a620]-(0)-|   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d573e0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d57340 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']-(0)-|   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d577a0 'UISV-canvas-connection' UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x122f24080.leading   (active)>",
    "<NSLayoutConstraint:0x281d57a70 'UISV-canvas-connection' UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x122f1e520.trailing   (active)>",
    "<NSLayoutConstraint:0x281d57ac0 'UISV-spacing' H:[_UIButtonBarButton:0x122f24080]-(0)-[UIView:0x122f1dba0]   (active)>",
    "<NSLayoutConstraint:0x281d57b10 'UISV-spacing' H:[UIView:0x122f1dba0]-(0)-[_UIButtonBarButton:0x122f1dd10]   (active)>",
    "<NSLayoutConstraint:0x281d57b60 'UISV-spacing' H:[_UIButtonBarButton:0x122f1dd10]-(0)-[UIView:0x122f1e3b0]   (active)>",
    "<NSLayoutConstraint:0x281d57bb0 'UISV-spacing' H:[UIView:0x122f1e3b0]-(0)-[_UIButtonBarButton:0x122f1e520]   (active)>",
    "<NSLayoutConstraint:0x281d27c50 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>",
    "<NSLayoutConstraint:0x281d24b90 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x281d57340 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x122f043c0'完成']-(0)-|   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x281d50370 h=--& v=--& _UIToolbarContentView:0x126c66750.height == 0   (active)>",
    "<NSLayoutConstraint:0x281d0bd40 V:|-(0)-[_UIButtonBarStackView:0x126c9a620]   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d0ad00 _UIButtonBarStackView:0x126c9a620.bottom == _UIToolbarContentView:0x126c66750.bottom   (active)>",
    "<NSLayoutConstraint:0x281d4b520 UIImageView:0x122f1d9d0.centerY == _UIModernBarButton:0x122f249a0.centerY   (active)>",
    "<NSLayoutConstraint:0x281d56620 'IB_Baseline_Baseline' _UIModernBarButton:0x122f249a0.lastBaseline == UILayoutGuide:0x28070bc60'UIViewLayoutMarginsGuide'.bottom   (active)>",
    "<NSLayoutConstraint:0x281d56670 'IB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x122f249a0]   (active, names: '|':_UIButtonBarButton:0x122f24080 )>",
    "<NSLayoutConstraint:0x281d568f0 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x122f24080.height == UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.height   (active)>",
    "<NSLayoutConstraint:0x281d27d40 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']-(0)-|   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>",
    "<NSLayoutConstraint:0x281d56580 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x28070bc60'UIViewLayoutMarginsGuide']-(11)-|   (active, names: '|':_UIButtonBarButton:0x122f24080 )>",
    "<NSLayoutConstraint:0x281d265d0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x281d4b520 UIImageView:0x122f1d9d0.centerY == _UIModernBarButton:0x122f249a0.centerY   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x281d50370 h=--& v=--& _UIToolbarContentView:0x126c66750.height == 0   (active)>",
    "<NSLayoutConstraint:0x281d0bd40 V:|-(0)-[_UIButtonBarStackView:0x126c9a620]   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d0ad00 _UIButtonBarStackView:0x126c9a620.bottom == _UIToolbarContentView:0x126c66750.bottom   (active)>",
    "<NSLayoutConstraint:0x281d4ba20 UIImageView:0x122f1e1e0.centerY == _UIModernBarButton:0x126c89b80.centerY   (active)>",
    "<NSLayoutConstraint:0x281d56c60 'IB_Baseline_Baseline' _UIModernBarButton:0x126c89b80.lastBaseline == UILayoutGuide:0x28070bf00'UIViewLayoutMarginsGuide'.bottom   (active)>",
    "<NSLayoutConstraint:0x281d56cb0 'IB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x126c89b80]   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>",
    "<NSLayoutConstraint:0x281d56f30 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x122f1dd10.height == UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.height   (active)>",

    "<NSLayoutConstraint:0x281d27d40 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']-(0)-|   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>",
    "<NSLayoutConstraint:0x281d56bc0 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x28070bf00'UIViewLayoutMarginsGuide']-(11)-|   (active, names: '|':_UIButtonBarButton:0x122f1dd10 )>",
    "<NSLayoutConstraint:0x281d265d0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x281d4ba20 UIImageView:0x122f1e1e0.centerY == _UIModernBarButton:0x126c89b80.centerY   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x281d50370 h=--& v=--& _UIToolbarContentView:0x126c66750.height == 0   (active)>",
    "<NSLayoutConstraint:0x281d0bd40 V:|-(0)-[_UIButtonBarStackView:0x126c9a620]   (active, names: '|':_UIToolbarContentView:0x126c66750 )>",
    "<NSLayoutConstraint:0x281d0ad00 _UIButtonBarStackView:0x126c9a620.bottom == _UIToolbarContentView:0x126c66750.bottom   (active)>",
    "<NSLayoutConstraint:0x281d521c0 UIButtonLabel:0x122f71550'\U5b8c\U6210'.centerY == _UIModernBarButton:0x122f043c0'\U5b8c\U6210'.centerY + 1.5   (active)>",
    "<NSLayoutConstraint:0x281d57570 'TB_Baseline_Baseline' _UIModernBarButton:0x122f043c0'\U5b8c\U6210'.lastBaseline == UILayoutGuide:0x280705a40'UIViewLayoutMarginsGuide'.bottom   (active)>",
    "<NSLayoutConstraint:0x281d575c0 'TB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x122f043c0'\U5b8c\U6210']   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d57700 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x122f1e520.height == UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide'.height   (active)>",
    "<NSLayoutConstraint:0x281d27d40 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']-(0)-|   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>",
    "<NSLayoutConstraint:0x281d574d0 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x280705a40'UIViewLayoutMarginsGuide']-(11)-|   (active, names: '|':_UIButtonBarButton:0x122f1e520 )>",
    "<NSLayoutConstraint:0x281d265d0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x28070d420'UIViewLayoutMarginsGuide']   (active, names: '|':_UIButtonBarStackView:0x126c9a620 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x281d521c0 UIButtonLabel:0x122f71550'完成'.centerY == _UIModernBarButton:0x122f043c0'完成'.centerY + 1.5   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
[Common] _BSMachError: port f703; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"

@jims57
There's not much details provided apart from flutter doctor and the error log, so we can't directly tell as why does this happen. When do you get this error ?
Can you provide pubspec.yaml and detailed steps to replicate ?


idea

Hey, i have a idea. Can you add a Description? the description is -

A line of description in crafting tables? Or do you mean a plugin description?

Addressed in https://github.com/Muqsit/PortableCrafting/commit/b48a51b627b40a695a80dfa014f61c6f41989622 (build #18 - PortableCrafting_dev-18.phar)

thanks


About OGB submission

Thank you for your leaderboard submission. Please provide the exact command to reproduce your leaderboard results.

Thank you for your leaderboard submission. Please provide the exact command to reproduce your leaderboard results.

Hi Weihua, thanks for organizing the amazing event! Here is the exact command which can reproduce our result:
https://github.com/microsoft/Graphormer/tree/ogb-lsc/OGB-LSC
Please kindly let us know if you have problem on reproduction.

I see. I actually meant the code for reproducing ogbg-molhiv and ogbg-molpcba.

I see. I actually meant the code for reproducing ogbg-molhiv and ogbg-molpcba. We can update the leaderboard once we confirm that you provide the sufficient instruction to reproduce your results.

Oh, sure. The final code will be released in about couple of weeks. Still need to do some paper works for the release process. Will let you know immediately.

Hi authors, thanks for sharing this. I'm also wondering when the code for OGB-LSC will be released.

I see. I actually meant the code for reproducing ogbg-molhiv and ogbg-molpcba (the original OGB, not OGB-LSC). We can update the leaderboard once we confirm that you provide the sufficient instruction to reproduce your results.

Hi Weihua, we just released the first version of our code, which provides full descriptions and scripts to reproduce all of our experiments.

Thank you! Updated the leaderboard!


PiVPN Profiles cannot receive data after Raspberry pi downtime.

In raising this issue, I confirm the following:
{please fill the checkboxes, e.g: [X]}

[X] I have read the documentation
[] Is it a feature request? please consider opening a [Discussion] (https://github.com/pivpn/pivpn/discussions/new)
[X] I have read and understood the contributors guide.
[X] The issue I am reporting can be replicated.
[] The issue I am reporting is directly related to the pivpn installer script.
[X] The issue I am reporting isn't a duplicate (see FAQs, closed issues, and open issues).

Has your install failed?
no

Describe the issue
Every time my Raspberry Pi restarts, I completely lose the ability to use my PiVPN profiles via Wireguard. The data received portion of the WireGuard tunnel just fails to appear (see attached photo). The only way I currently know how to fix this issue is to create a brand new PiVPN profile for each device and install them individually. It's growing quite annoying and I am wondering if there is a simpler way of restarting the PiVPN profiles.
Expected behavior
My PiVPN profiles would continue to work normally after a rebooted Pi server.
Screenshots
If applicable, add screenshots to help explain your problem.

Can you replicate the issue? Describe the steps below
Steps to reproduce the behavior:

Unplug Raspberry Pi 4
Restart the device
Turn on Wireguard protocol
PiVPN refuses to download any data

Have you searched for similar issues and solutions?
(yes/no / which issues?)

yes
Additional context
Add any other context about the problem here.
Have you taken any steps towards solving your issue?
I have had to manually reinstall each PiVPN profile on every device any time my Raspberry Pi experiences downtime. The only way I know to get it to work again is to completely install a new profile each time it happens.

Please provide your system information
What type of hardware are you running PiVPN at?

A standalone hardwired Raspberry Pi 4 with Pihole running.

Output of uname -a
Linux pi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux

Output of cat /etc/os-release
 PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

If install failed Please provide the console output of  curl -L https://install.pivpn.io | bash
N/A, Install was successful.

Console output of      curl -L install.pivpn.io | bash
N/A, Install was successful.

Console output of      pivpn add or pivpn add nopass
  N/A, Profile installation is successful.

Console output of      pivpn debug

  ::: Generating Debug Output
::::		PiVPN debug		 ::::
=============================================
::::		Latest commit		 ::::
Branch: master
Commit: f80b0a7962d91862132c0a4abd65c1e67bd37bd7
Author: 4s3ti
Date: Fri Dec 3 21:41:13 2021 +0100
Summary: Update Changelog
=============================================
::::	    Installation settings    	 ::::
PLAT=Raspbian
OSCN=bullseye
USING_UFW=0
IPv4dev=eth0
dhcpReserv=1
IPv4addr=<IP_ADDRESS>/25
IPv4gw=<IP_ADDRESS>
install_user=pi
install_home=/home/pi
VPN=wireguard
pivpnPORT=51820
pivpnDNS1=<IP_ADDRESS>
pivpnDNS2=
pivpnHOST=REDACTED
INPUT_CHAIN_EDITED=0
FORWARD_CHAIN_EDITED=0
pivpnPROTO=udp
pivpnMTU=1420
pivpnDEV=wg0
pivpnNET=<IP_ADDRESS>
subnetClass=24
ALLOWED_IPS="<IP_ADDRESS>/0, ::0/0"
UNATTUPG=1
INSTALLED_PACKAGES=(bsdmainutils iptables-persistent wireguard-tools qrencode)
=============================================
::::  Server configuration shown below   ::::
[Interface]
PrivateKey = server_priv
Address = <IP_ADDRESS>/24
MTU = 1420
ListenPort = 51820
### begin Michael_iPhone_1611 ###
[Peer]
PublicKey = Michael_iPhone_1611_pub
PresharedKey = Michael_iPhone_1611_psk
AllowedIPs = <IP_ADDRESS>/32
### end Michael_iPhone_1611 ###
### begin Michael_iMac_1611 ###
[Peer]
PublicKey = Michael_iMac_1611_pub
PresharedKey = Michael_iMac_1611_psk
AllowedIPs = <IP_ADDRESS>/32
### end Michael_iMac_1611 ###
### begin Michael_Macbook_1611 ###
[Peer]
PublicKey = Michael_Macbook_1611_pub
PresharedKey = Michael_Macbook_1611_psk
AllowedIPs = <IP_ADDRESS>/32
### end Michael_Macbook_1611 ###
### begin Katie_iPhone_1611 ###
[Peer]
PublicKey = Katie_iPhone_1611_pub
PresharedKey = Katie_iPhone_1611_psk
AllowedIPs = <IP_ADDRESS>/32
### end Katie_iPhone_1611 ###
### begin Katie_Macbook_1611 ###
[Peer]
PublicKey = Katie_Macbook_1611_pub
PresharedKey = Katie_Macbook_1611_psk
AllowedIPs = <IP_ADDRESS>/32
### end Katie_Macbook_1611 ###
### begin Michael_Desktop_1611 ###
[Peer]
PublicKey = Michael_Desktop_1611_pub
PresharedKey = Michael_Desktop_1611_psk
AllowedIPs = <IP_ADDRESS>/32
### end Michael_Desktop_1611 ###
=============================================
::::  Client configuration shown below   ::::
[Interface]
PrivateKey = Michael_iPhone_1611_priv
Address = <IP_ADDRESS>/24
DNS = <IP_ADDRESS>

[Peer]
PublicKey = server_pub
PresharedKey = Michael_iPhone_1611_psk
Endpoint = REDACTED:51820
AllowedIPs = <IP_ADDRESS>/0, ::0/0
=============================================
:::: 	Recursive list of files in	 ::::
::::	[4m/etc/wireguard shown below	 ::::
/etc/wireguard:
configs
keys
wg0.conf

/etc/wireguard/configs:
clients.txt
Katie_iPhone_1611.conf
Katie_Macbook_1611.conf
Michael_Desktop_1611.conf
Michael_iMac_1611.conf
Michael_iPhone_1611.conf
Michael_Macbook_1611.conf

/etc/wireguard/keys:
Katie_iPhone_1611_priv
Katie_iPhone_1611_psk
Katie_iPhone_1611_pub
Katie_Macbook_1611_priv
Katie_Macbook_1611_psk
Katie_Macbook_1611_pub
Michael_Desktop_1611_priv
Michael_Desktop_1611_psk
Michael_Desktop_1611_pub
Michael_iMac_1611_priv
Michael_iMac_1611_psk
Michael_iMac_1611_pub
Michael_iPhone_1611_priv
Michael_iPhone_1611_psk
Michael_iPhone_1611_pub
Michael_Macbook_1611_priv
Michael_Macbook_1611_psk
Michael_Macbook_1611_pub
server_priv
server_pub
=============================================
::::		Self check		 ::::
:: [OK] IP forwarding is enabled
:: [OK] Iptables MASQUERADE rule set
:: [OK] WireGuard is running
:: [OK] WireGuard is enabled (it will automatically start on reboot)
:: [OK] WireGuard is listening on port 51820/udp
=============================================
:::: Having trouble connecting? Take a look at the FAQ:
:::: https://docs.pivpn.io/faq
=============================================
:::: WARNING: This script should have automatically masked sensitive       ::::
:::: information, however, still make sure that PrivateKey, PublicKey      ::::
:::: and PresharedKey are masked before reporting an issue. An example key ::::
:::: that you should NOT see in this log looks like this:                  ::::
:::: YIAoJVsdIeyvXfGGDDadHh6AxsMRymZTnnzZoAb9cxRe                          ::::
=============================================
::::		Debug complete		 ::::
:::
::: Debug output completed above.
::: Copy saved to /tmp/debug.log
:::
``

Restart the Pi and post the output of sudo systemctl status wg-quick@wg0.

I thought that maybe the vpn didn’t start on boot but looks like it does. Are you using the same profile on multiple devices at the same time?

Each device using wireguard has a separate profile, you can see them broken down in the debug log.

Yes, I saw them but I could not exclude that case. Can you run tcpdump to see whether packets reach the VPN? Do you see all clients (10.6.0.X) in pivpn -c?

All of my clients are accounted for, although it appears that no packets are reaching the Pi with the VPN turned on.

The port in the tcpdump command is 51820, not 52290. Also avoid posting images of text.

My apologies, although I get the same result with the VPN client active.
pi@pi:~ $ sudo -s
root@pi:/home/pi# tcpdump -n -i eth0 udp port 51820
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes

My apologies, although I get the same result with the VPN client active.
pi@pi:~ $ sudo -s
root@pi:/home/pi# tcpdump -n -i eth0 udp port 51820
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes

Well if you don’t see any packets it means… that the client is not actually sending anything. What if you try to remove and add the same configuration on the client (let’s say on the macbook)? Don’t generate a new one with PiVPN.

I deleted and added the same configuration in the wireguard application on my mac, but can only see the same results. No data received and minimal sent data.

Connect the macbook to the same network as raspberry pi, then in the wireguard app, edit the endpoint for the configuration to <IP_ADDRESS> (the lan ip of the pi). What about now?

It works! Would you mind explaining to me how the endpoint might have been changed?

It works in the local network, to work over the internet, endpoint must be the public IP of your home connection.
During the installation you are asked whether you want to set the endpoint to an IP or a domain name. It is then saved as pivpnHOST in the file /etc/pivpn/wireguard/setupVars.conf, which is used as reference when creating clients.
You should verify that Endpoint matches the public IP, see the troubleshooting at my link above.

Thanks for your help, I'll check out the documentation you sent.


govet failure: printf: non-constant format string in call to github.com/ubuntu/decorate.OnError (govet)

With the latest golangci-lint (1.60.1) the following code:
func Generate(policies []Policy, release string, root, currentSessions string) (ep []common.ExpandedPolicy, err error) {
	defer decorate.OnError(&err, gotext.Get("can't generate dconf expanded policies"))

generates this vet error:
Code sanity: internal/ad/admxgen/dconf/dconf.go#L58
printf: non-constant format string in call to github.com/ubuntu/decorate.OnError (govet)

The signature of OnError is func OnError(err *error, format string, args ...interface{})
There are two issues:

The version of OnError that accepts a format string should be called OnErrorf
The signature of OnErrorshould be changed to remove the format string from the arguments and only accept a string.

another option is to handle the number of arguments and use a different printf call whether args is empty or not.

resolved in main


windows custom fact requiring win32ole fails on linux

I have a module containing a custom fact that requires win32ole. This fails on linux.
I can fix this if I add 'win32/resolv' and 'win32ole' to the list of ruby gems to fake out the requiring of in lib/rspec-puppet/monkey_patches.rb.
Is this the best way to fix this? I can submit a PR...

We also encountered this error, and wondered what is the best way to fix it.  Currently I just create an empty ./lib/win32ole.rb file in my pdk project and it allows me to handle the require 'win32ole' statement in the fact.  I am not sure if this is best practice or not, but considering we have to mock all of the method calls anyway,   I was not able to find a way to mock the require 'win32ole' statement in the fact to avoid having to have the empty file on disk


fix mistake when yielding valid triples

yield valid_triple in validation_data method
Signed-off-by: Zichao Huang<EMAIL_ADDRESS>

Looks good, thanks!

You're welcome. Love the ProjE paper and model by the way.


go-getable for private repository

I have private repository and I need to make it go-getable, all user has access to this repository (via their ssh keys) but the problem is the first request by go (with the ?go-get=1) failed.
output is :
Found.
gogs redirect this to login page, but I need this particular request to work. Is there anyway to handle this problem?

It would be quite a leak if you can see if someone has a private repository, so it does not sound like a good idea.
However, go has a functionality for this. If you add .git to the import path, it will not need to do a https request with that meta tag.
For example, I just made the private repository try.gogs.io/petersmit/mymodule and then I tried:
go get try.gogs.io/petersmit/mymodule.git

which works perfectly (with https). If you want to use git+ssh, you can set this in the git config: http://michaelheap.com/golang-how-to-go-get-private-repos/

go-getable is meant for public repositories, quite a leak, I would say too.

1- What if it is in setting dialog so the owner could decide what to do?
the meta just contain the path to clone the repo, and the repo itself is protected, It could be leak, but not quite a leak.
2- the .git is not good since it is inside import in some go file, mostly I do not get the repo directly.

You can do this also in import statements inside go! E.g. import "try.gogs.io/petersmit/mymodule.git" or import "try.gogs.io/petersmit/mymodule.git/submodule"

The solution I can think if is what I called partial public which allows Git works as if it is public but normal access would remain the repository as private. This way, go get would work(through HTTP/HTTPS).
How does this sound?

Won't be fixed...


Validate query params in BaseService [npm nodeping mozillaobservatory matrix gitlab f-droid endpoint dynamic bitbucket appveyor]

This is a mid-sized PR that adds query param validation to BaseService and updates most of the services which use query param validation to use it. There are a couple minor tweaks I made along the way.
Fix #2676

Warnings

:warning:
This PR modified service code for bitbucket but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for endpoint but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for f-droid but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for gitlab but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for dynamic but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for mozilla-observatory but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for nodeping but not its test code. That's okay so long as it's refactoring existing code.

:warning:

:books: Remember to ensure any changes to serverSecrets in services/bitbucket/bitbucket-pull-request.service.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/npm/npm-base.js are reflected in the server secrets documentation

:warning:

Found 'assert' statement added in core/base-service/base.js. Please ensure tests are written using Chai expect syntax

:warning:
This PR modified service code for matrix but not its test code. That's okay so long as it's refactoring existing code.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

  Generated by :no_entry_sign: dangerJS against c00434bc405d62c3ea41c1fba7431599c6529f0d


Make bot follow the limits

sendToActiveChats() can easily block your bot for few minutes if you go over the limit
https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this

Tanx...

What I'm thinking that we can create 'something' (maybe related to the task manager https://github.com/akalongman/php-telegram-bot/issues/156) that sends a little amount of messages every time an update is received.
Then with the command /sendtochats you can set a message to send and see the overall process 150/2500 user reached.
What do you think?

@jacklul @MBoretto not sure if limits  should be part of API wrapper. You need to leave it for custom logic.
Let's say my bot has billions of users in groups and privates. Than I need to give priority for group admins over plain visitors. And I need to think about action limitation for single user and even to have ability to ban/unban spam users.
On other hand I can prefer implement limits/task manager using memcache or rabbit, or by storing history in mysql and scheduling some cron job.

Currently testing: https://github.com/jacklul/php-telegram-bot/tree/limiter_test


testing: Add fakes for file promotion packages (via counterfeiter)

What type of PR is this?
/kind cleanup design
What this PR does / why we need it:

internal: Init deps for counterfeiter
testing: Add counterfeiter directives for file promotion packages
testing: Add update-mocks target and update boilerplate files
filepromoter: Make syncFileInfo public
...in support of adding fakes.
generated: Run make update-mocks
Makefile: Add verify-mocks target
Fixup boilerplate for non-compliant files

/assign @puerco @Verolop @justinsb @cpanato
cc: @kubernetes-sigs/release-engineering
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

Nice one,  thanks !
/lgtm


Update README.md, removing Community Discussions from Galaxy Brain Badge

Hi, Community Moderator on GitHub Discussions here!
We would really appreciate if you approved this PR as the Galaxy Brain Badge is no longer awarded in Community Discussions. However, users are still able to get the badge in other Discussions forums.
For any questions, please see more about this decision in our announcement post here Achievements will no longer be available in the Community.
Thank you!

So sad!


Template Slot

Can I use default vue-good-table slot for customization ?

I would like to hear about that too, I am trying to make an workround but it is not getting beautiful...


Onboarding

Can we add who onboards the new Clout member? Maybe an incentive?

Do you mean like clubhouse does by showing in a users profile who referred them to clubhouse ?

Please open a new discussion here: https://github.com/bitclout/cips/discussions/new


fully implement encapsulation of Sampler class

Because I'm still learning OOP principles, I've not fully embraced encapsulation.
I will need to do this and generally clean up the Sampler class in anticipation of implementing the STANSampler subclass. So Sampler will actually be an interface so that none of the other code has to change.

we now have a semi-working STAN sampler class. Further work on STAN models and get methods for the STAN sampler class are needed. But this exact issue is resolved.


Epic Script

Added Support for metadata handling.
Case 1: if file changes export all
Case 2: Filename same but lastwritetime changed write all
Case 3: Filename same and lastwrite time same, check continuation token, skip lines and then start to push

Can we update the other script itself ?

@vakataka , have updated the other script. Can you please review the changes again.

Can we update the other script itself ?


gcc-compatible no longer compiles for mips

i'm upgrading from a very old clone before ./configure existed and gcc-compatible was just portable C
at least it's unclear how to compile it now
./configure just fails with incorrect gcc params
cc1: error: unrecognized argument in option '-march=native'

and creating an empty config.h (since we don't have any of those x86 intrinstics on mips) fails to compile because there is no implementation of libintvector
3rdparty/hacl-star/dist/gcc-compatible/Hacl_Poly1305_256.h:44:9: error: unknown type name ‘Lib_IntVector_Intrinsics_vec256’

Here's a sample of a hand-written config.h:
https://github.com/project-everest/hacl-star/blob/master/dist/mozilla/config.h
I suggest you define all of these to 0 and see if it compiles that way, entirely bypassing the configure script?
In the meanwhile you are correct that the configure script ought to be fixed. Thanks for the report.

no, there's no portable implementation of intvector, so this won't work.
i've been informed off-list that this is a commercial feature anyway.
unfortunately in that case hacl has no benefit over other non-portable cryptolibs and we'll be migrating away.

The commercial or not-commercial features are unrelated to this project and repository.

there's some mixes messages here.
Either way if the technical decision is to require porting effort for each cpu, this is not the correct project for our use case.
We can leave this open if you want to of course, but i personally would not recommend even attempting "a mips port" Mips is actually at least 8 different cpu architectures with subtle bugs in subrevisions, most of which are dead.

@aep Let me clarify the confusion here... : ) the HACL project and this repository are not related to any commercial project.*
Everything in this project is open source and under very permissive licenses so that everyone can use it and contribute to this project.
If for example you have a feature request, it should be sent either to the maintainers mailing list or like you did through opening an issue. Now, if the authors don't have the ability or resources to add that feature, you might find a third party to develop that feature and contribute it back to this repository (under the condition of course that the core team is willing to accept it). We might advertise one of those third party in the future, but any third party could do this.
If you don't mind, I'd like to know which of the HACL* authors you reached out to and who actually answered you that adding supporting MIPS is a commercial feature, so that I can make sure this doesn't happen again... : )
Feel free to close this issue if you don't need this anymore.
Best,
Benjamin

It is no secret that Cryspen offers commercial support for HACL for anyone interested in long-term support of the project.
If a someone is using MIPS and wants to use HACL, they can rely on open source contributors to add support or they contract Cryspen to do so.

thanks @beurdouche .  this is perfectly reasonable and i don't feel like ratting them out, especially since they clearly did it in good faith.
It's just not viable for us. We might have chipped in for features, but the amount of work required to have a custom cpu port for each mips variant is unobtainable for our small shop.

It is no secret that Cryspen offers commercial support for HACL for anyone interested in long-term support of the project. If a someone is using MIPS and wants to use HACL, they can rely on open source contributors to add support or they contract Cryspen to do so.

Cryspen affairs must keep out of the this repository. Thank you!

I agree with Ben. I believe that HACL* should stay open-source.

@aep : Just to clarify your remark about "custom CPU ports". There is no need to write MIPS-specific code to make HACL* work on MIPS. Most of HACL* is portable C, except for the _128 and _256 files which rely on compiler intrinsics. The fact that HACL* does not currently compile on MIPS is purely a build system issue.
Here's the reason. Normally, the configure script takes care of disabling 128/256 files if it appears there is no support for 128/256 variants for your target architecture. Unfortunately, the configure script is broken in your scenario and cannot write a proper Makefile.config.
You could attempt to fix this easily by editing the configure script (it's hand-written bash) and removing the two instances of -march=native at lines 117 and 118. That may or may not be enough.
Writing custom MIPS-specific support for vectorized and/or optimized implementations is another matter.


WIP: try to fix r-sanitizers jobs

Trying to fix #6367

Noticed that the containers are exiting with exit code 137, which usually indicated it's trying to allocate more memory than the docker engine gave it.
Error: Process completed with exit code 137.

(example build link)
So I pushed commits that run docker info on the host, to check how much memory and CPU the docker process is being given. Thought that maybe the root cause here is that it's getting OOMKilled.
Here's what I see.
 CPUs: 4
 Total Memory: 15.61GiB

full 'docker info' (click me)
Client: Docker Engine - Community
 Version:    24.0.9
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.23.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 14
 Server Version: 24.0.9
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.5.0-[10](https://github.com/microsoft/LightGBM/actions/runs/8333955874/job/22806528005?pr=6374#step:2:11)16-azure
 Operating System: Ubuntu 22.04.4 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.61GiB
 Name: fv-az888-745
 ID: f03cfffb-b70a-4862-9b9a-a22ea22cd192
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: githubactions
 Experimental: false
 Insecure Registries:
  [12](https://github.com/microsoft/LightGBM/actions/runs/8333955874/job/22806528005?pr=6374#step:2:13)<IP_ADDRESS>/8
 Live Restore Enabled: false

That's twice as much CPU and memory as I'm giving the same image and process on my laptop. So it should be fine (unless other processes run by GitHub at taking up a significant amount of those resources at the same time).


AttributeError: module 'typing' has no attribute 'Unpack'

Feature

Missing Unpack in typing module. I encounter this when trying textual:
(venv) ryuta@orin:~/packages/rustpython$ rustpython -m textual
Traceback (most recent call last):
  File "/home/ryuta/packages/rustpython/rustpython/pylib/Lib/runpy.py", line 192, in _run_module_as_main
    sys.exit(msg)
  File "/home/ryuta/packages/rustpython/rustpython/pylib/Lib/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/home/ryuta/packages/rustpython/rustpython/pylib/Lib/runpy.py", line 151, in _get_module_details
    "be directly executed") %(e, mod_name))
  File "/home/ryuta/packages/rustpython/rustpython/pylib/Lib/runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/home/ryuta/packages/rustpython/rustpython/pylib/Lib/runpy.py", line 117, in _get_module_details
    raise
  File "/home/ryuta/packages/rustpython/rustpython/pylib/Lib/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "_frozen_importlib", line 1461, in __import__
  File "_frozen_importlib", line 1382, in _gcd_import
  File "_frozen_importlib", line 1352, in _find_and_load
  File "_frozen_importlib", line 1355, in _find_and_load
  File "_frozen_importlib", line 1329, in _find_and_load_unlocked
  File "_frozen_importlib", line 1326, in _find_and_load_unlocked
  File "_frozen_importlib", line 1326, in _find_and_load_unlocked
  File "_frozen_importlib", line 945, in _load_unlocked
  File "_frozen_importlib", line 943, in _load_unlocked
  File "_frozen_importlib", line 936, in _load_unlocked
  File "_frozen_importlib", line 930, in _load_unlocked
  File "_frozen_importlib_external", line 994, in exec_module
  File "_frozen_importlib", line 488, in _call_with_frames_removed
  File "/home/ryuta/packages/rustpython/venv/lib/rustpython3.12/site-packages/textual/__init__.py", line 9, in <module>
    from . import constants
  File "/home/ryuta/packages/rustpython/venv/lib/rustpython3.12/site-packages/textual/constants.py", line 10, in <module>
    from typing_extensions import Final, TypeGuard
  File "/home/ryuta/packages/rustpython/venv/lib/rustpython3.12/site-packages/typing_extensions.py", line 2235, in <module>
    Unpack = typing.Unpack
AttributeError: module 'typing' has no attribute 'Unpack'

Python Documentation or reference to CPython source code

https://docs.python.org/3/library/typing.html#typing.Unpack
https://github.com/python/cpython/blob/3.12/Lib/typing.py#L1603

Same issue here, and solved by using the old version of get-pip.py: https://bootstrap.pypa.io/pip/3.7/get-pip.py


Use ES6

The current javascript syntax is not completely ES6 compliant. I think it'll a good idea to include several ES6 features in it. Some of them include:

Replacing var with let
Using const for constants
Using template literals instead of regular concatenation.
etc.

Hey!
I am interested to work on this issue. Please assign it to me.

@anushkasinghal11 Assigned! :smile:


Add networking to the score

Adds a network identity to the score prefab and adds it to the registered prefabs on the network manager. Removes the score objects from the tables and spawns it alongside the ball spawner and paddles in Basic Menu (Still needs refactored into its own script like asset spawner). Also sets the paddle prefab to have local authority. Without local authority on paddles networking will not work. Stops the ball from respawning on the client instead updates when server respawns it.

This resolves #43


Added mortgage calculator tool

Added 4 files / 1 Folder
I have created a basic mortgage calculator tool. I plan to keep working on it to improve styling and functionality.
Let me know if any further changes need to be made!

Changes made. Please let me know if there is anything else!

@roycebradley  Good work 🎉. Currently i have marked your PR as hacktoberfest-accepted. It will be merged soon.


[Remote Store] Handle transient and permanent un-availability of the remote store

Describe the solution you'd like
When remote store is un-available, either we need to stop ingestion in order to keep the durability guarantees or ingestion continues and data is back-filled once remote store is available. There are various scenarios that need to be considered while handling these failures. This task describes all such scenarios and provide implementation.

we have implemented refresh retry and remote segments upload backpressure - #7363 and #6851.

@sachinpkale  closing this issue for now. Lets think if there are more things that we can add and reopen if needed.


Treat null as a valid Nullable dependency value

Fixes #521
Not sure if this is the best approach. Directions welcome.

@jonorossi Updated. There is one unresolved question above. I used git commit --fixup to make reviewing easier. Are you okay with me rebasing and force pushing to apply the fixups after approval and before merge?

I used git commit --fixup to make reviewing easier. Are you okay with me rebasing and force pushing to apply the fixups after approval and before merge?

Definitely, I love it when people rebase their commits in a pull request to present a clean history of their work to merge. Feel free to update the changelog too with this change.

@jonorossi Just checking that you're not waiting for me to be doing something.

@jnm2 apologies for not getting to this before now, everything looks good, merged.

No worries, thank you!


Add character:  to font:

Character :
Font :

@arshadakhtar25 you working on this?. If not please tell me, and I'll put this up for grabs.

closing ad inactive


AttributeError: 'list' object has no attribute 'lstrip'

It works for the standard cas server, But when I use this perfect library to integrate to my ids server, it shown the following error.
<IP_ADDRESS> - - [09/May/2018 10:26:27] "GET /login/?ticket=ST-43153-EpldxJPeJzBJQWqwx2ih1525832788741-9WDe-ids1 HTTP/1.1" 500 -
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask_cas\routing.py", line 45, in login
    if validate(flask.session[cas_token_session_key]):
  File "C:\ProgramData\Anaconda3\lib\site-packages\flask_cas\routing.py", line 128, in validate
    attributes["cas:memberOf"] = attributes["cas:memberOf"].lstrip('[').rstrip(']').split(',')
AttributeError: 'list' object has no attribute 'lstrip'

After going through the code, I find the error is this line attributes["cas:memberOf"] = attributes["cas:memberOf"].lstrip('[').rstrip(']').split(','). The attributes["cas:memberOf"] is already a list object, no need to convert str to list.
So I change these lines of code from
attributes["cas:memberOf"] = attributes["cas:memberOf"].lstrip('[').rstrip(']').split(',')
for group_number in range(0, len(attributes['cas:memberOf'])):
    attributes['cas:memberOf'][group_number] = attributes['cas:memberOf'][group_number].lstrip(' ').rstrip(' ')

to
if not isinstance(attributes["cas:memberOf"], list):
    attributes["cas:memberOf"] = attributes["cas:memberOf"].lstrip('[').rstrip(']').split(',')
    for group_number in range(0, len(attributes['cas:memberOf'])):
        attributes['cas:memberOf'][group_number] = attributes['cas:memberOf'][group_number].lstrip(' ').rstrip(' ')

Then it works.

see this pr https://github.com/cameronbwhite/Flask-CAS/pull/59

Is there any plan to merge this ?
I have the same problem and I have to work with my own fork of this repo, which is a shame just for one line.

@HadrienRenaud Hi, I updated the upstream code and make some changes better then the previous modifies. If you want to use this package immediately, add dependence in your requirements.txt as below.
git+https://github.com/liudonghua123/Flask-CAS.git@list_of_memberOf

updated pr https://github.com/cameronbwhite/Flask-CAS/pull/78

Thanks @liudonghua123
Actually in my case in don't need all the post-processing for the [ or ] or , (lines 138-141 of routing.py), but it still works fine, so i think i will use it!


JMC presentation for 2020

@aaronmberger-nwfsc  - It's looking good so far.

Should we possibly move the "Age-1 index: correlation with base recruitment estimates", and two TAC slides so that the phase plots for this year and last year are together? It could possibly be handy to switch between them.

Moving the legend in the risk plot for 2020 catch. I will try to move it down into the middle so we can see the top black line

Paul R. has asked to see the cohort table (Table 24) with 2016 and 2017 cohorts added. We added 2016 after submission so it's already in there but do you see any benefit to showing 2017? Currently the slide only has 1999, 2010, and 2014. We can split them up to make two slides so they all fit.

Sure, let's end the Model Estimates section with the current phase plot and then start the Past Management section with the previous phase plot. (good idea)
Sure, give the legend movement a try - I'm not overly worried about that - you can still clearly see and read everything...
Sure, let's leave the current one as is (includes 1999, 2010, and 2014) and then make another slide that follows showing 2016 and 2017 - just because it was asked for.  We will have to again reiterate the uncertainty, especially in 2017, but it okay to show in my mind given the survey has now seen both once and survey age comps match fishery age comps pretty well.  Are you going to add this stuff?
I also would like to add a few more bullets in terms of the summary slide - just highlighting why the stock is declining (i.e., 3-years of record high catches, no dominant recent year class, and recent decline in 'surviving biomass' (cohort tables) of large 2010 and 2014 year classes) - just to drive home that 'we' should be a bit more cautious this year then in past recent years, despite trending towards the 'target' we don't want to rapidly overshoot it!

I'll do all these additions, if you can track down Ian's code (it's somewhere in an issue on here) on the 'actual models used' squid plot and try to get it working. I also don't think it is necessarily that useful as the model structures are different - also I won't have the folder structure so I think in this case a one-off as a picture would be ok to add.

I had forgotten that Ian already created this plot???  You remember that he did?  If so, then I'll look it up and have a look and/or email Ian directly (he's good at organization and will likely have it if we can't find it herein).

I'll try and find it

Okay, how about you add these and then I can have a look and add that final summary bullet points, ok?

About the phase plots.. I am wondering if this is really true (third point):
When biomass goes below target, fishing intensity typically decreases

Yea, I thought the same thing when putting that together.  I think it does if you squint and look beyond 1-2 years post going below, but even then the answer is 'kinda'.  Let's remove that bullet as I don't think it is very useful.  We could instead add something about where we are now (2020) as the other two bullets are more general.  Maybe we add the joint probability calculation of both overfishing and overfished occurring just to show that it is small.

Could report current B2020/B0 number and the current rel fish intensity number and then the joint probability number.

That's a good idea. I will do that.


More Like This Query Conditionless behaviour

Relates: https://stackoverflow.com/questions/55750953/more-like-this-query-not-getting-serialized-nest
More Like This Query is determined to be conditionless when Fields is conditionless, which is incorrect. The query should be conditionless only when Fields is conditionless and Like is conditionless.

Closing this as #3697 has been merged and will be in the next release.


The plan of updating dependent crates

Description
Follow the latest version:

For security
It's harder to upgrade when we use too old version

Step:

cargo update
Change the toml to upgrade

done


Fat/Uber Jar gradle task

The commits are all duplicated here. Maybe squash them? If you need help, tell me :)

Set to draft until we solve the output path default problem

rebased onto main

rebased onto main

@fs3itz is the jar working for you?


Fix graceful shutdown

This fixes #86 with the hack to create a thread and join it again that
was mentioned in this issue.

Thanks!


How to autorun warpd in startup?

warpd require sudo to work. Because without sudo I got this error
Could not create virtual pointer (virtual pointer unsupported?)

on ubuntu, I just put the /usr/bin/warpd command here

I don't needed sudo permissions to run warpd


Allow to pass max_size attribute

Example:
foo.slim

= transloadit :bar, max_size: 10.megabytes

PS: https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/

After February 23 2014, we will only provide security fixes for 1.9.3 until February 23 2015, after which all support will end for 1.9.3.

+1

Thanks, looks good :)

PS: https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/
After February 23 2014, we will only provide security fixes for 1.9.3 until February 23 2015, after which all support will end for 1.9.3.

Yep, we know, but then again there's no need for us to push to 2.x or whatever, as long as we don't have any security issue from our side or have to jump hoops to maintain that compatibility, there's no reason to not test on 1.9.x as well and push newer version onto our users :)

1.2.0 has been pushed, thanks again!

1.2.0 has been pushed, thanks again!

Thanks!

Thank you @avokhmin !


[Mod]: Recolour Collection: Near Future Propulsion

Mod Name
Recolour Collection: Near Future Propulsion
Author(s)
ZZetho
License
CC BY-NC-SA 4.0
Homepage link
https://forum.kerbalspaceprogram.com/topic/225485-112x-recolour-collection
Download link
https://github.com/ZZetho/TU_NeafFuturePropulsion

Hey @zzetho, would you like us to add all of those recolor packs?  No need to create requests for each one if so.

Yes please

Hey @ZZetho, your repo's name is TU_NeafFuturePropulsion. Might want to fix that before we start adding external references to it.

Hey @ZZetho, your repo's name is TU_Nea_f_FuturePropulsion. Might want to fix that before we start adding external references to it.

Whoops, renamed.


Removing SCVMM Task .

Removing the SCVMM task . It will be developed with its own git hub repo

Looks fine.

What repo is this task moved to?

@ChristophLindemann  the repo is private. The task is available with extension - https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.scvmmapp

@chshrikh I was just wondering where I would go if I have some input or questions about the task.
As I felt like the User Review on https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.scvmmapp, might be the wrong place for such discussions.


remove use of BUILD_ISOLATION env var (no longer inspected in openshift/builder)

/assign @bparees
@nalind @jupierce

/lgtm

/lgtm

fyi i think I started this before build 206 actually merged so I'm anticipating needing a retest

fyi i think I started this before build 206 actually merged so I'm anticipating needing a retest

/test e2e-aws-builds

/test e2e-aws-builds


cargo watch in release mode?

cargo watch --why -x run

I've not had success running cargo watch in release mode, it only runs in debug for me.
cargo watch --why -x run --release
error: Found argument '--release' which wasn't expected, or isn't valid in this context

cargo watch --why -x run -x --release
error: Found argument '--release' which wasn't expected, or isn't valid in this context

watch --why -x run -- --release
[Running '--release']
'--release' is not recognized as an internal or external command,
operable program or batch file.

nothing in the help specifically about it.
cargo watch --why -x "run --release"
[Running 'cargo run --release']

The above works.  Closing complete.

This is the third example in the readme:

# Run run with arguments
$ cargo watch -x 'run -- --some-arg'

which is an example of passing arguments.  not release mode.  it may be clear to others.  all set here.


How to set address type RANDOM

Hi
I have a device I am trying to emulate and in Wireshark scan response and advertising response it shows as having TxAdd: RANDOM with address 0xdb, 0xab, 0x7f, 0xe0, 0x2f,  0x5c.
How can I change the settings on the ESP32 to achieve that? I don't need a random address, I just want it to show as RANDOM, not as PUBLIC.
I think it can only be done with esp calls, but the code below seems not to work - either the call to esp_ble_gap_set_rand_addr or esp_ble_gap_config_local_privacy
The esp_base_mac_addr_set doesn't fail, the other two do.
But in all cases it stops Lightblue from scanning the ESP32.
I'm not sure where in the code to put the esp calls, either.
BLEDevice::init("XXXXXXXX"); //
BLEDevice::setPower(ESP_PWR_LVL_P9); /** +9db */

esp_bd_addr_t addr = {0xdb, 0xab, 0x7f, 0xe0, 0x2f,  0x5c};

//    if (esp_ble_gap_set_rand_addr(addr) != ESP_OK) {  Heltec.display->clear(); Heltec.display->drawString(0, 30, "FAIL RAND"); Heltec.display->display();};
//    if (esp_ble_gap_config_local_privacy(true) != ESP_OK) {  Heltec.display->clear(); Heltec.display->drawString(0, 30, "FAIL PRIV"); Heltec.display->display();};
if (esp_base_mac_addr_set(addr) != ESP_OK) {  Heltec.display->clear(); Heltec.display->drawString(0, 30, "FAIL MAC"); Heltec.display->display();};
//    esp_ble_gap_clear_rand_addr();
pSCServer = BLEDevice::createServer();
pSCServer->setCallbacks(new SCServerCallbacks());

There is no API to do this but I believe if you modify the library slightly it may work.
change https://github.com/h2zero/NimBLE-Arduino/blob/8ff8f0fc35afed5db8276bd2f41afce22732e1f7/src/NimBLEDevice.cpp#L87
to BLE_OWN_ADDR_RANDOM

When I do that it doesn't show in LightBlue scan - just vanishes. Should I change the address as well to meet the 'random' spec?

What is really weird is if I make that change, load it, then undo the change, and re-load it - it works with the app that I needed it to work with, Without making the change it needs LightBlue (or other) to scan / connect first time then it is fine, with this change it doesn't need that. And it doesn't seem to be a ios caching thing because I just erased the iphone and it works fine.
So it seems to make a difference to the ESP to have, at some point, been run with the RANDOM setting.
Could that be true?

Just tried that again on an M5Stack and it doesn't happen on that - so perhaps just a fluke

Interesting, unfortunately the way the esp32 handles the address and address type makes it somewhat difficult due to needing host based privacy. In addition to that the functions needed in NimBLE to set this aren't available without some code hacks to the core files.
If you're adventurous you can walk through the code call stack of NimBLEDevice::setOwnAddrType to find the required calls to set the address and type there.

It looks like it works if you change the NimBLEDevice.cpp as you suggested, and also add the following, just before advertising:
    ble_addr_t blead;
    int rc;

    rc = ble_hs_id_gen_rnd(1, &blead);
    if (rc != 0) Serial.println("Rand failed");

    rc = ble_hs_id_set_rnd(blead.val);
    if (rc != 0) Serial.println("Addr failed");

    pAdvertising->setScanResponse(true);
    pAdvertising->start();

Ha, well done! I thought you were trying to set a specific address not just a random address of type random?
Awesome that this worked :smile:

I thought I needed to (or, at least, that that would be easier) but this worked fine.

On 22 May 2022, at 02:38, h2zero @.***> wrote:

Ha, well done! I thought you were trying to set a specific address not just a random address of type random?
Awesome that this worked 😄
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

This functionality has been added in the master branch.

Hi - can you tell me where it was added? I'd love to see what the new code is.

@paulhamsh, the function is here https://github.com/h2zero/NimBLE-Arduino/blob/b6a169f1f2e939ce0ca11d003cc38ef141698d6a/src/NimBLEDevice.cpp#L1106


feat(icon): convert icon components to ts

Icon ts conversion

Please upgrade the string to more specific types as indicated inline. Then, a few more things:
Still a chunk of js files that need converted:
❯ fd js src
src/react/__specs__/__snapshots__/storyshots.spec.js.snap
src/react/__specs__/index.spec.js
src/react/__specs__/storyshots.spec.js
src/react/__stories__/index.story.js

One failing test:
 FAIL   @pluralsight/ps-design-system-icon  src/react/__specs__/index.spec.js
  ● Test suite failed to run

    Cannot find module '../index.js' from 'AccountIcon.dist.js'

I would also suggest turning strict: true on in your tsconfig.json. We haven't been doing this, and I think we should on all conversions.
Let's chat about any of this as needed.

Those are ignored files you need toc clean up your directory though that does give me an idea of what the problem is.

Local build looks good. Cleaned and rebuilt and didn't have js files any more. Added one commit to get the proper enum typings on the sizes and colors.

This breaks both my local build and test, even after deleting branch and pulling it back down.


[ChatAI] Feature/jiyoung/chat ai config

Summary
This PR has been recreated after offline sync for the previous PR.

Package Additions and Upgrades

addded @ainize-team/ainize-sdk package.
upgraded jest package to version ^29.7.0.
upgraded ts-jest package to version ^29.0.0.

New Features

added new BaseAI and ChatAI classes.
added config() method to BaseAI class.

Testing

added test code for config() methods in the new BaseAI class.

Thank you for helpful reviews, and I reflected all reviews! PTAL~
cc: @platfowner @minsulee2

Thank you for detailed reviews! very helpful for me thanks 🙂
Now merging...


Introduce semantic versioning

This is a proposition to document what apparently already takes place. Also Hackney example version is adjusted to be consistent in both examples and Jason example version is tightened to not allow >= 2.0.

Rebased and merged as https://github.com/teamon/tesla/commit/13e58ac2ab743aa0de8e583d0bd36324af4beed4
Thanks!


fix: bind ctrl c listener so that it doesn't interfere on powershell

This should fix #514

I just tested this (thanks to the super-convenient pixi run install-as pixifixctrlc) and it fixes https://github.com/prefix-dev/pixi/issues/514 also on Command Prompt, thanks!

Wow thank you that is crazy simple!


Feature/linyan geometry

Add the feature to add target material name to the gdml file name

do we need to alert anyone using phase1c about the flipped z for SSD 2_2_0 and x for ssd 5_0_{0,1} ?

Jack informed me of the change. I guess Paul and Teresa should be notified. I can also make some slides documenting that and present at a software meeting.


[programmable transactions] Add command index to errors

Description

Added command to ExecutionError, unused for non programmable transactions

Test Plan
Updated tests

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[X] user-visible impact
[?] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[?] breaking change for validators or node operators (must upgrade binaries)
[?] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes
Added an index to ExecutionErrors to track which programmable transaction command produced the error (if applicable)

How breaking of a change is this?


Dark mode option added on home and contact us

Description
I've added a checkbox toggle-able button to activate dark mode on the home page and the contact us page. I was unable to change the background as I would've preferred on the contact us page as of now, please review and let me know what I can improve.
Fixes #266
Screenshots

Can you add some icon @kaashikaagrawal  ?

I have added the icons. How can I merge these changes?

i committed the changes pls check if it worked


How to use live data

Hi, I've built a FlexibleViewModel following your wiki page on live data but I can't find a way to connect it to the adapter. Can you give me some tips ?

Linked to #529: Be aware that how it is, it's not good enough, however you need to observe the LiveData produced by getLiveItems() and you trigger the loading with loadSource(identifier). The identifier can be your object as well as String/Long.

That's what I did, I was thinking LiveData support was more advanced i.e. you pass an lifecycle owner and some livedata and the adapter do the magic. Anyway that's working nice for basics cases.
I have one question thought, what would be the recommended strategy to handle infinite scroll with livedata. I would like to have a repository serving resources. One resource know how to fetch initial and then load more data and expose a livedata with actual data for adapter. My goal is to have this :
onCreate -> adapter(viewModel.getData (repository.getResource.data))
onInfiniteScroll -> viewModel.loadMore()

I think you should start to fill the adapter with the same function to load more items.
You start with adapter setup and trigger the first call with setLoadingMoreAtStartUp().
Your solution is also acceptable and will have the initial items already visible at startup, I think.


MPTweakValue() does not support NSInteger

Integration Method: CocoaPods
Xcode Version: Version 9.1 (9B55)
Library Version: 3.2
Platform: iOS
Language: Objective-C
Description:
The header file comment for MPTweakValue states support for NSInteger:

Supported types include: BOOL, NSInteger, NSUInteger, CGFloat, NSString *, char *.

The following code creates a compile time error:
NSInteger value = MPTweakValue(@"test", (NSInteger)0);

Incompatible pointer to integer conversion initializing 'NSInteger' (aka 'long') with an expression of type 'const char * _Nullable'

Expected Behavior:
NSInteger can be used as a tweak value or comment is updated with support of NSInteger removed

Ah. Taking a glance at this I think NSInteger might not actually be supported by the internal data store. It looks like it'll work if you cast outside MPTweakValue instead of casting the 0 inside, though at that point it might make sense to use int or long long instead. Does that work for you @jmartini?

Yup, I ended up just using int and that works fine but the produced errors were not obvious (this specified issue is a simplified version of my use case to show the underlying issue). Would be good to update the documentation to reduce confusion for the next person.

Got it. I updated those docs on master. Thanks @jmartini!


TextField's cursor with Japanese character

I think my textField's cursor behavior are strange and are not alignment
below is my flutter doctor
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.648], locale zh-CN)
• Flutter version 1.2.1 at F:\flutter\flutter
• Framework revision 8661d8aecd (5 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at D:\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = D:\sdk
• Java binary at: D:\as\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.3)
• Android Studio at D:\as
• Flutter plugin version 33.4.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[√] Connected device (1 available)
• SM G9350 • 58fee7c4 • android-arm64 • Android 8.0.0 (API 26)

I think @GaryQian has recently done some work on cursor height, though I don't believe it has landed in stable yet.

Gary has put in several fixes for caret height and position in the last year of this issue's life.  I'm going to close this as fixed, but if anyone still seems the problem, please comment with reproduction steps and I'll reopen.


Add option to add role icons in comfy mode

Hi there,
thanks for the great work so far. It's my every day theme for so long now.
Now I've realized that the role icons don't show up in comfy mode within the chat. Is there any way to enable them in the BetterDiscord theme?
Thanks!

Are you talking about these icons?

Hi :)
yes, these icons don't show up if you are using comfy mode/IRC mode. They do in the users list, but not in the actual chat.

They work perfectly fine for me in both Cozy and Compact mode.

I'm not talking about the "new users" icon, these are working fine. But the role icons which you can give to roles when your server is boosted to lvl 2 do not show up for some reason I couldn't figure yet. I can tell that it is working with your theme deactivated 😅


fix(hfbcat): Re-initialise class variables

Because it subclasses from FluxCatalog, HFBCatalog by default will inherit the class variables from FluxCatalog, but that's where FluxCatalog stores the catalogs it loads at import time.  (Which seems like a weird, and un-Pythonic, effect of importing a module.)
The side effect is that all the FluxCatalog catalogs end up in the HFBCatalog as well, which I suspect is not intended.  So here's a fix to re-initialise these class variables to nothing, so that the FluxCatalog catalogs don't pollute the HFBCatalog.
Now, only the catalogue(s) loaded explicitly into HFBCatalog will exist in it.

Yes, I've asked on #hyper_fine_beam_analysis for a review.


Transition away from separate lexing/parsing stages

Better for performance and memory usage, plus more concise.
Fix handling of comments in scalars

bors r+


readme example fails

Tried the code from the trpc example and it failed to greet from the client (404s). Only major difference from the example was adding cors (for local development/recreation)
Bun 1.0.2
server.ts
import { cors } from '@elysiajs/cors';
import { Elysia, t } from 'elysia';
import { trpc, compile as c } from '@elysiajs/trpc';
import { initTRPC } from '@trpc/server';

const r = initTRPC.create();

const router = r.router({
  greet: r.procedure.input(c(t.String())).query(({ input }) => input)
});

export type Router = typeof router

const app = new Elysia()
  .use(cors())
  .use(trpc(router))
  .listen(8080)

client.ts
import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';
import type { Router } from './server';

const trpc = createTRPCProxyClient<App>({
  links: [
    httpBatchLink({
      url: 'http://localhost:8080',
    }),
  ],
});

const result = await trpc.greet.query('Hello Elysia');
console.log(result);

Confirmed that the client wasn't the issue by using a barebones trpc server file
server.trpc.ts
import { initTRPC } from '@trpc/server';
import { createHTTPServer } from '@trpc/server/adapters/standalone';
import cors from 'cors';
import { z } from 'zod';

export const t = initTRPC.create();

const appRouter = t.router({
  greet: t.procedure
    .input(z.object({ message: z.string() }))
    .query(({ input }) => input)
});

export type Router = typeof appRouter;

const server = createHTTPServer({
  middleware: cors(),
  router: appRouter,
});

server.listen(8080);

Just ran into the same issue and found a solution.
By default, elysia-trpc uses /trpc endpoint; pointing your client to <your_url>/trpc sould resolve the issue, or you can pass a different configuration to the trpc() function.

Thanks @olgertse that worked for me. It'd be nice to have this documented


feature(service/admin): User manager

This commit adds a user manager for administrators, allowing them to
change email, passwords and admin state (as well as deleting) other
users. The interface is accessible on a previously placeholder page
inside admin panel. Additionally, login page can now be configured for
which authentication methods it provides, allowing fully disabling login
via password or github.

Demo:

@k0machi
is there some context to this one ? i.e. some asked for it, it was blocking something we couldn't do before, helping with work with staging ?

@k0machi
is there some context to this one ? i.e. some asked for it, it was blocking something we couldn't do before, helping with work with staging ?

This is something that's been needed for a while, to be able to change user passwords in case they want to use password login for some reason (e.g. staging) or fixing their email addresses or deleting old users.

Added configuration for the login form (and service functions) to disable password or github login:

# Which login methods to enable
LOGIN_METHODS:
  - password
  - gh

Generally, I'm not convinced to 'deleting' users - I'd rather to anonymize them instead to keep all the references valid. But this is only my opinion and I can still merge it and deploy. @roydahan @fruch WDYT?

In general, that's what Argus does already - the entity is deleted and every frontend component (backend logic as well), save for a few spots I've found while doing this PR already switches non-existent user to a placeholder 'Ghost' user, I should've included some screenshots with that. We could keep the entity and just 'anonymize' the fields but this presents a problem of getting multiple "Ghost" users, where each one adds an entry to the user table, in which case we would either have to filter those out or hide them in the queries and such. Keep in mind since Scylla doesn't enforce relations it's no big deal if there's a non-existent user on the backend. One problem I can see with this PR is deleting very prolific user - since currently every single entity created by them is preserved - job assignments, comments, user profile picture, and so on, so this could potentially bloat the database somewhat. For that case we can introduce cleanup for storage intensive entities (which we currently don't have so I don't think that's needed right now).

Generally, I'm not convinced to 'deleting' users - I'd rather to anonymize them instead to keep all the references valid.
But this is only my opinion and I can still merge it and deploy.
@roydahan @fruch  WDYT?

I don't see the value of keeping anonymous users,
We would have jobs assigned to anonymous ?
Comments from anonymous ?
where else do we have references ?
From an admin perspective I need a way to not to see this user anywhere that we need to select a user, and unassigne it from everything.
In comments I would rather still see the github handle if the user doesn't exist, so I can read old discussion without too much confusion, if we keep disabled users for that purpose only, that o.k., but I rather avoid that if possible.


Fix tree select

If an API method is an action, that stated action should consistently take place when called. However, for tree, this is not the case. selectItem both selects and deselects. This is not only confusing but potentially could cause errors and bugs in implementor's code, because they will need to check the item before calling select on it to make sure it is not selected in order to guarantee that their selection method doesn't undo the very thing they are trying to do. The method should take care of that for them.

calling .tree('selectItem' ought to ensure the item is selected, even if it was previously
calling .tree('deselectItem' ought to ensure the item is not selected, even if it previously wasn't
calling .tree('toggleSelect' ought to behave as selectItem currently behaves, in that it should merely toggle the selection state on the item passed in.

related to #1715

Correct. The same goes for click event. The click should always select the node even if it is selected before. I think no one clicks the node to deselect it! I also see this behavior in Repeater.

Year, that confuses me a lot. What a waste of time.


feat: Added a test sale program to demonstrate royalty distributions

This PR is about the following

A minimalistic sale program allowing listing/unlisting/fulfilling listing which allows the flow of royalty and WNS happen simultaneously
Some fixes in wen-royalty-distribution (which still need to be fixed right but a breaking change, hence that will be in another PR) that allows token-interface instead of static token program
Tests that reflect the flow of sale program
Formatting via cargo fmt for some of the WNS instructions.

Closes #67


fix(certs): remove footer and nav from certs

Should we delete this https://github.com/freeCodeCamp/freeCodeCamp/pull/35333/files#diff-60da01e813042964fd667cfe1c7ebc89L30?

Oh wait. That rendered weird on my viewport with it. If I have that top I get the cert squished on my viewport.
Looks like we need a much cleaner solution. Thanks for catching.

And of course looks like the night mode view needs to be removed.

I have gone ahead and rolled back the white-spacing changes. Lets just handle the whole CSS in a separate PR.

you could have a media query that adds   top: calc(100vh / 20); for screen larger than 1500px, because it looks strange on smaller screens.


stack debug: Fixed Stack debug SENTINEL in ARM Cortex-M issue #4503

Add initialization of the CONF_STACK_SENTINEL to the _interrupt stack
Fixed _stack_unused_space_get() to account for SENTINEL markers

Signed-off-by: David Leach<EMAIL_ADDRESS>

This only addresses the Cortex-M. I don't have any of the other architectures to test against.

Please remove change to reset.S and unconditionally increment stack pointer by 4 bytes in stack_unused_space_get() if CONFIG_STACK_SENTINEL is enabled, without inspecting the stack itself.

without the change to reset.S the rest of the changes become less useful. I get that there is no runtime checking of the interrupt stack sentinal but let me emphasize again that the generic routine that checks the stack usage (i.e. amount free) will fail to report the proper amount when you pass it the interrupt stack. So all the stacks need to have the sentinal if the system is configured to have the sentinal check.
And personally, I don't understand why you wouldn't just go ahead and check the contents of the sentinal in the stack_unused_space_get() because that is part of the stack space you are checking for. And it isn't runtime inefficient because this is debug code that just periodically gets called either via the shell or some debug logic on a timer.

Has it escaped your attention that your approach is going to break every other arch besides cortex-M0 since none of the other arches will have the useless sentinel in the interrupt stack that your patch requires??
You can keep arguing about this, but this patch is not going in with the design you have here!
The whole stack free space counting mechanism is a gross hack anyway that relies on 0xAAAAAAAA never being actual data, we really don't care if the IRQ stack measurement is off by 4 bytes for the irq stack if the sentinel is turned on. Just increment the stack pointer by 4 bytes in the check function and get rid of all the checking. Thanks.

My first comment above clearly indicated that I know my changes it only address the M0 architecture (with respect to the interrupt stack). My hope was that folks who had these other architectures would add the appropriate change to the interrupt stack to allow debug system to report correct stack usage information for all stacks.
Saying that this approach will break every other architecture is not exactly correct because as it is now, every architecture is broken when reporting stack space when sentinals are enabled. I've fixed that with the change to stack_unused_space_get() for all stacks to return a real value because the current implementation will return 0 for all stacks if you have the sentinal enabled.
The additional change to the interrupt stack ensures that the stack_unused_space_get() will return a proper value for the interrupt stack since this routine doesn't have a way to differentiate what stack is being

Also note, I don't view this PR as a critical item that needs to be merged. I view this as a useful enhancement to developer debug view of the system based on my own experience with trying to debug problems with the Zephyr system. Since I didn't add in the stack size counting stuff I can't comment on the appropriateness of the 0xAAAAAAAA as I was just highlighting a deficiency of the current debug output information that is available to developers. Since you are the owner of this area you can decide if this PR worthy of merging and whether it enhances the developers view of the state of the system when debugging things. I can always keep these changes private to enhance my own debug view of the system.


Transaction ID offline calculation

Hi!
I need transaction ID before pushing transaction to network. I found some Java implemetation of signing transactions offline, but as I can see, transaction ID is not equal signed hash. How I can calculate it? Which fields of transaction and in wich order I should pack before calculation?

transaction id is the hash of the transaction content itself, and it will not be affected by the signature. However, the signature will use the combined information from chain_id, transaction content and content free data as digest, then be signed by the private key. Therefore, transaction ID will never equal to signature. All of these can be found in transaction.cpp.

I understand that signature never equal transaction ID, I want completely understand how exactly transaction ID generated
For example, tx: https://tools.cryptokylin.io/#/tx/88aa28ba94c529aa075fa41f1ff7822703b7271b754be0f3c0253cfd973f4d48
Chain ID: 5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191
Transactiond content (aka packed_trx): f736bf5b7213e0d1fae1000000000100a6823403ea3055000000572d3ccdcd0190a7a608998c554e00000000a8ed32322590a7a608998c554e90a7a6089996e934102700000000000004454f5300000000047465737400
Neiter SHA256 of ChainID + packed_trx, neither SHA256 of packed_trx not equals Transaction ID
(for example I use this online hash generator: https://passwordsgenerator.net/sha256-hash-generator/)

The transaction ID is the sha256 of the transaction structure in memory.  See the code here.

Confirmed with this sha256 calculator
https://www.fileformat.info/tool/hash.htm?hex=f736bf5b7213e0d1fae1000000000100a6823403ea3055000000572d3ccdcd0190a7a608998c554e00000000a8ed32322590a7a608998c554e90a7a6089996e934102700000000000004454f5300000000047465737400
sha256 is 88aa28ba94c529aa075fa41f1ff7822703b7271b754be0f3c0253cfd973f4d48

How can I get packed_trx by offline signature?

https://developers.eos.io/manuals/eos/v2.1/cleos/command-reference/get/transaction_id


Process has no means to set argv[0] directly.

Process allows no means to set the value of argv[0] to be something other than the path to the executable.
https://github.com/apple/swift-corelibs-foundation/blob/01699b6e89f76f7270e73cc75836bef4859c487b/Sources/Foundation/Process.swift#L711
You can't trick it by simply passing a string, because run requires it to be a URL and checks that it is executable. (And later, posix_spawn will also check it, posix_spawnp will even do PATH lookup if it is a bare name.)
Is there a real need for Process to require a URL and to check it for execute permissions? One could argue that it is there for backwards compatibility with NSTask, but the biggest breaking-change is that "Process" is already not "NSTask". The biggest problem is that the API is already being used. Any change would need to be additive.
Possibilities:

Add a new property var executablePath: String? { get set } which will be used if executableURL is not set. Unlike executableURL, it will not be checked.
Add a new method static func run(executable: String, _ arguments: [String], terminationHandler: (Process) -> Void)?) -> Process in which executable is documented to be passed as-is as the executable path.

And while we are at it, let's add versions of the functions that don't take a termination handler but do take waitingUntilExit: Bool, and possibly even the environment array.

I see from the code comments that there are reasons. I also see that it is pretty simple to modify it in an entirely additive way so that argv[0] can be different from the path to the executable on both POSIX and Windows. I will send a PR.


Feedback for: datacenter/dtr/2.2/guides/index.md

File: datacenter/dtr/2.2/guides/index.md
We should do a better job of pitching DTR  on this page. We should mention notary, security scanning and other big features such as detailed tag metadata.

The page should begin with a contents block a la wikipedia for jumping to each feature on the page once those features are added. The images are yuge, so it wouldn't be clear what's on the page without scrolling a lot first.