x/sys/unix: problem compiling yubihsm-connector

A follow-up to/continuation of the prematurely-closed https://github.com/golang/go/issues/30777
What version of Go are you using (go version)?
$ go version
go version go1.12 darwin/amd64
$

Does this issue reproduce with the latest release?
The latest release seems to be the only version where this issue appears.
What operating system and processor architecture are you using (go env)?
macOS Mojave 10.14.3, Xcode-10.1, current Go package for Mac from https://golang.org, and current gb installed following https://getgb.io/docs/install/ instructions.
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ur20980/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/ur20980/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T/go-build615060564=/tmp/go-build -gno-record-gcc-switches -fno-common"
$ gb info
GB_PROJECT_DIR="/Users/ur20980/src/yubihsm-connector"
GB_SRC_PATH="/Users/ur20980/src/yubihsm-connector/src:/Users/ur20980/src/yubihsm-connector/vendor/src"
GB_PKG_DIR="/Users/ur20980/src/yubihsm-connector/pkg/darwin-amd64"
GB_BIN_SUFFIX="-darwin-amd64"
GB_GOROOT="/usr/local/go"
$ gb env
GB_PROJECT_DIR="/Users/ur20980/src/yubihsm-connector"
GB_SRC_PATH="/Users/ur20980/src/yubihsm-connector/src:/Users/ur20980/src/yubihsm-connector/vendor/src"
GB_PKG_DIR="/Users/ur20980/src/yubihsm-connector/pkg/darwin-amd64"
GB_BIN_SUFFIX="-darwin-amd64"
GB_GOROOT="/usr/local/go"
$

What did you do?
Updated golang.org/x/sys/unix package explicitly (after updating everything with --all), and tried building again with gb build
What did you expect to see?
Successful build.
What did you see instead?
$ gb vendor update golang.org/x/sys/unix
$ gb build
golang.org/x/sys/unix
github.com/fsnotify/fsnotify
golang.org/x/crypto/ssh/terminal
github.com/sirupsen/logrus
github.com/spf13/viper
github.com/sirupsen/logrus/hooks/syslog
golang.org/x/sys/unix.libc_close_trampoline·f: relocation target golang.org/x/sys/unix.libc_close_trampoline not defined for ABIInternal (but is defined for ABI0)
golang.org/x/sys/unix.libc_ioctl_trampoline·f: relocation target golang.org/x/sys/unix.libc_ioctl_trampoline not defined for ABIInternal (but is defined for ABI0)
golang.org/x/sys/unix.libc_kevent_trampoline·f: relocation target golang.org/x/sys/unix.libc_kevent_trampoline not defined for ABIInternal (but is defined for ABI0)
golang.org/x/sys/unix.libc_kqueue_trampoline·f: relocation target golang.org/x/sys/unix.libc_kqueue_trampoline not defined for ABIInternal (but is defined for ABI0)
golang.org/x/sys/unix.libc_mmap_trampoline·f: relocation target golang.org/x/sys/unix.libc_mmap_trampoline not defined for ABIInternal (but is defined for ABI0)
golang.org/x/sys/unix.libc_munmap_trampoline·f: relocation target golang.org/x/sys/unix.libc_munmap_trampoline not defined for ABIInternal (but is defined for ABI0)
golang.org/x/sys/unix.libc_open_trampoline·f: relocation target golang.org/x/sys/unix.libc_open_trampoline not defined for ABIInternal (but is defined for ABI0)
# yubihsm-connector
yubihsm-connector
FATAL: command "build" failed: exit status 2
$

In https://github.com/golang/go/issues/30777 you said

You need to update to the current version of the golang.org/x/sys/unix package...

Would you mind telling how you suggest doing that, and why in your opinion my update (as shown above) is not sufficient?

Could you please show us the repro steps without gb ? We would want to eliminate as many variables as possible to home in on the target issue. If it is an issue with go build, then it should fail using normal go commands also.

I'm sorry, I don't know what gb vendor update does.

Could you please show us the repro steps without gb ?

I would be happy to - but, alas, I'm not a go programmer, and, frankly, wouldn't have touched this whole stuff - except that the package I need is (misguidedly, IMHO) written in Go. So I've no choice.
The good part of it is - my installation is very close to the standard because I don't know enough to mess with it. The bad part is - I don't even know how to do what you asked for, i.e., how to translate what gb does into go commands.
Here's what the Makefile does:
build:
	@gb generate ${GB_GEN_FLAGS}
	@gb build ${GB_BUILD_FLAGS}

Both of the env vars referred above are empty. Here's the entire Makefile:
Makefile.txt (those @ are just to make the command silent - no echo from make)
If you can tell me what to do/try to help debugging this problem - I'll be happy to do it.

I'm sorry, I don't know what gb vendor update does.

It does (at least according to its documentation - I probably have even less experience with it than you do) exactly what you suggested is needed - updates the given package, or if --all is specified in place of the package name - all the packages in src/vendor.
So there's no reason that I can see to assume that golang.org/x/sys/unix in src/vendor directory of this package is any older than current.

Also, in case it matters - I successfully built this package end of last November, with whatever Go compiler was stable release back then. It doesn't look like the relevant parts of it changed since.

The problematic changes to golang.org/x/sys/unix were made in December, and were designed to work with Go 1.12.
I have used a Darwin system, downloaded yubihsm-connector, installed the gb build tool, run gb vendor update --all, which does change the working directory vendor/src/golang.org/x/sys/unix among other directories, and ran gb build.  It builds golang.org/x/sys/unix successfully, but then gives the error
# github.com/spf13/afero
util.go:28:2: can't find import: "golang.org/x/text/transform"
FATAL: command "build" failed: exit status 2

Building and testing golang.org/x/sys/unix in the usual way, with the Go tool, works fine.
OK, I think I may know what is happening.  In the Go 1.12 cycle the compiler, assembler, and linker were changed to track the ABI version of assembler symbols; see #27539.  As part of making this work, the go tool itself was changed to build an ABI file; see https://golang.org/cl/147257 (some later CLs were also involved).
It is likely that gb build has not been updated for this.  Until that happens, it may not be possible to use gb build with Go 1.12 with the golang.org/x/sys/unix package.

@ianlancetaylor thank you. This probably isn't something that go can address/fix.
One workaround is to adjust the GOPATH for the project, making it point to the dependencies dir. E.g., if the project is in $HOME/dir/test, the project code itself is in $HOME/dir/test/src/test and the deps are in $HOME/dir/test/vendor/src (as per gb requirements), the correct  setting for the build would be
$ cd $HOME/dir/test/src/dir
$ GOPATH=$GOPATH:$HOME/dir/test/vendor go build

Then the build would succeed.
Perhaps the above would be useful for others.


Repo update and thanks

@nyoung30 @pkbullock @veronicageek @pealmasa @PatD @tom-daly @juliemturner @SusanHanley @joannecklein @hugoabernier @eemancini
As the premier set of contributors to this repo, @vesajuvonen and I truly thank you! (He didn't say to include him, but I know how he feels.) We're about to launch the docs.microsoft.com version of the repo, and we couldn't have gotten to this point without you! The docs folks have been impressed with our progress, and I believe we can continue to impress them.
Of course, impressing the docs folks isn't the goal. We want to add value for the community in a way Microsoft has not tried in the past - at least in this form. We'd like to see if we can get some more activity flowing, so here are some steps we'd like to take.
Clean up assigned issues
@nyoung30 @ScottShearer @PatD @pkbullock
Each of you has at least one open issue assigned to you - generally because you asked to be assigned. Could you each please check the issues you have assigned to you and add a comment saying:

You'll commit to writing something in the next few weeks
You think the issue is no longer important - and why
Indicate that you'd like us to assign someone else

Once we get your feedback, we'll start promoting the unassigned issues to get more community traction.
Review the articles you've written for freshness and validity
Nothing stays constant in this world, and there may have been changes since you wrote your articles. If you could take a pass through them to see if you still consider them valid, that would be great. We will undoubtedly set up a more rigorous review cycle in the future, but we'd like to be sure we have content with veracity for the launch.
Generate new article suggestions
Have other ideas you'd like to add? Totally cool, even if you can't take them on yourself.
Thanks again for all your work and help!!! Stay tuned!

Sorry - I missed @jimmyhang.
cc: @pamgreen-msft @traya1 @dstrome

And I also missed some important things!
We'll be reorganizing the repo today to both adhere to some standards for the docs connection as well as to make the content flatter (are folders bad?).

The README has been updated with the new name and logo for the effort: Microsoft 365 Community Docs.
The articles will live in a folder called Community - no article subfolders.
The TOC will still display the articles with the same groupings. The flat article structure gives us more options to include content in multiple places (potentially) based on tags.
Images will move into a subfolder beneath that called media, with the existing subfolders containing the images for each article.
I'll add the various M365CommunityDocs logo options to the media subfolder once it's in place.
We'll be using the hashtag #M365CommunityDocs rather than #SPUsageDocs going forward. This better reflects what the content is (not just SP) and where it lives.
We will have a new markdown template for articles.
We will pare down your credits at the bottom of the articles to indicate you're the Original Author, but not the other links. This is due to standards in the docs arena. Hopefully this won't cause any angst.
Sometime soon (this is up to @vesajuvonen) we will start some type of public exposure for the repo. Each of you - as "charter contributors" - will get public credit for your great work so far.

If I've missed anything, Microsoft folks, please comment.

Due to the name change (to M365) I was wondering if articles would expand in topics and you confirmed that 🙂
Thanks
Veronique
Veronique

From: Marc D Anderson<EMAIL_ADDRESS>Sent: Monday, March 2, 2020 3:19:16 PM
To: MicrosoftDocs/microsoft-365-community<EMAIL_ADDRESS>Cc: Veronique Lengelle<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-community] Repo update and thanks (#75)
And I also missed some important things!
We'll be reorganizing the repo today to both adhere to some standards for the docs connection as well as to make the content flatter (are folders bad?).

The READMEhttps://github.com/MicrosoftDocs/microsoft-365-community/blob/master/README.md has been updated with the new name and logo for the effort: Microsoft 365 Community Docs.
The articles will live in a folder called Community - no article subfolders.
The TOC will still display the articles with the same groupings. The flat article structure gives us more options to include content in multiple places (potentially) based on tags.
Images will move into a subfolder beneath that called media, with the existing subfolders containing the images for each article.
I'll add the various M365CommunityDocs logo options to the media subfolder once it's in place.
We'll be using the hashtag #M365CommunityDocshttps://twitter.com/search?q=%23M365CommunityDocs rather than #SPUsageDocshttps://twitter.com/search?q=%23SPUsageDocs going forward. This better reflects what the content is (not just SP) and where it lives.
We will have a new markdown template for articles.
We will pare down your credits at the bottom of the articles to indicate you're the Original Author, but not the other links. This is due to standards in the docs arena. Hopefully this won't cause any angst.
Sometime soon (this is up to @VesaJuvonenhttps://github.com/VesaJuvonen) we will start some type of public exposure for the repo. Each of you - as "charter contributors" - will get public credit for your great work so far.

If I've missed anything, Microsoft folks, please comment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/microsoft-365-community/issues/75?email_source=notifications&email_token=AGAD4PKEHYMD72LEOKUYVUDRFPE7JA5CNFSM4K7VLXM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENPWJTQ#issuecomment-593454286, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGAD4PIPLC2HGNRKBFUWANLRFPE7JANCNFSM4K7VLXMQ.

This is great news, I am proud to have been a part of it and am looking forward to contributing more in the future.
I've added comments to open issues assigned to me.
Thanks @sympmarc!
Norm

I think most of the reorganization is complete. Thanks to those of you who have replied back about the issues assigned to you. Time to move forward!

Hi Marc, i haven’t had a chance to go in and ensure the content is up to date but i plan on doing that this weekend.
Thanks for all you’ve done on this initiative!
Joanne K
Get Outlook for iOShttps://aka.ms/o0ukef

From: Marc D Anderson<EMAIL_ADDRESS>Sent: Thursday, March 5, 2020 10:04:17 AM
To: MicrosoftDocs/microsoft-365-community<EMAIL_ADDRESS>Cc: Joanne Klein<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-community] Repo update and thanks (#75)
I think most of the reorganization is complete. Thanks to those of you who have replied back about the issues assigned to you. Time to move forward!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/microsoft-365-community/issues/75?email_source=notifications&email_token=ADIJRUVGEB5SS5IL7TQ4Z2LRF7EQDA5CNFSM4K7VLXM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN522HY#issuecomment-595307807, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADIJRUQK6RMP2QBBEGVDN4LRF7EQDANCNFSM4K7VLXMQ.

@joannecklein - we're just getting started! Thanks for doing the review...

I’ll do the same Marc go in over the weekend, been working hard on the modernisation tooling this slipped my mind. Sorry.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Joanne Klein<EMAIL_ADDRESS>Sent: Thursday, March 5, 2020 4:07:45 PM
To: MicrosoftDocs/microsoft-365-community<EMAIL_ADDRESS>Cc: Paul Bullock<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-community] Repo update and thanks (#75)
Hi Marc, i haven’t had a chance to go in and ensure the content is up to date but i plan on doing that this weekend.
Thanks for all you’ve done on this initiative!
Joanne K
Get Outlook for iOShttps://aka.ms/o0ukef

From: Marc D Anderson<EMAIL_ADDRESS>Sent: Thursday, March 5, 2020 10:04:17 AM
To: MicrosoftDocs/microsoft-365-community<EMAIL_ADDRESS>Cc: Joanne Klein<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-community] Repo update and thanks (#75)
I think most of the reorganization is complete. Thanks to those of you who have replied back about the issues assigned to you. Time to move forward!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/microsoft-365-community/issues/75?email_source=notifications&email_token=ADIJRUVGEB5SS5IL7TQ4Z2LRF7EQDA5CNFSM4K7VLXM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN522HY#issuecomment-595307807, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADIJRUQK6RMP2QBBEGVDN4LRF7EQDANCNFSM4K7VLXMQ.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmicrosoft-365-community%2Fissues%2F75%3Femail_source%3Dnotifications%26email_token%3DACC7Z4NHZBNCCE3Z5Z6C4XDRF7E5DA5CNFSM4K7VLXM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN53IIQ%23issuecomment-595309602&data=02|01|paul.bullock%40capacreative.co.uk|2a69d762b7144884094908d7c11f5898|b65b38dfdc4640ca92b9547172742753|0|0|637190212685830339&sdata=JOly7gVeXYLbE2qUC6sRRPjgdw%2FpGieTlinYYTYycxk%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACC7Z4JWTPGGMPEFJVZLA23RF7E5DANCNFSM4K7VLXMQ&data=02|01|paul.bullock%40capacreative.co.uk|2a69d762b7144884094908d7c11f5898|b65b38dfdc4640ca92b9547172742753|0|0|637190212685840294&sdata=IOQQ6dpnVnoF4U%2BkBLDMxOhlbsF2vhBqvBZIz1BvkuM%3D&reserved=0.

Adding @bigpix2000, as he just offereed to help with #13...
Another suggestion to you folks: you may be getting some public credit for your work here in the near future. Please make sure your Github profiles reflect who you really are: name, photo, location, company (if you want), etc. We want people to know who you are!

So many profiles so many places ... thanks for the reminder ... added to my tasks
Get Outlook for iOShttps://aka.ms/o0ukef

From: Marc D Anderson<EMAIL_ADDRESS>Sent: Saturday, March 14, 2020 6:45:28 PM
To: MicrosoftDocs/microsoft-365-community<EMAIL_ADDRESS>Cc: Ralph Rivas<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-community] Repo update and thanks (#75)
Adding @bigpix2000https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbigpix2000&data=02|01||69a2db95e0564471ab7208d7c871c6f9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637198263296007998&sdata=Q3ktLIC8Fbtzr2F63g07%2FSgnAShCFeRSx%2F38XEQGrYs%3D&reserved=0, as he just offereed to help with #13https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmicrosoft-365-community%2Fissues%2F13&data=02|01||69a2db95e0564471ab7208d7c871c6f9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637198263296007998&sdata=XuB%2FSte42fZJ8naax21GbOOwx%2FdvRd4L%2Be3OxVpstIc%3D&reserved=0...
Another suggestion to you folks: you may be getting some public credit for your work here in the near future. Please make sure your Github profiles reflect who you really are: name, photo, location, company (if you want), etc. We want people to know who you are!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmicrosoft-365-community%2Fissues%2F75%23issuecomment-599148519&data=02|01||69a2db95e0564471ab7208d7c871c6f9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637198263296017990&sdata=boeQrehYiFLCA%2Fc%2BlIWona5mf6iFIle0Ezj8bj%2FkG2I%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB2OOTVQFHZPOW6NWVWU2WLRHQJJRANCNFSM4K7VLXMQ&data=02|01||69a2db95e0564471ab7208d7c871c6f9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637198263296017990&sdata=mB%2BRKbSWfqTZ7JUmsqTJNW0gHh2vDVQ99VpA%2Fn8K8HM%3D&reserved=0.

Hi Marc,
I have collaborated on this article
https://github.com/MicrosoftDocs/microsoft-365-community/blob/master/Community/list-column-or-site-column-which-one-to-choose.md
but I don't see my name on it.
cheers
On Sat, 14 Mar 2020 at 23:45, Marc D Anderson<EMAIL_ADDRESS>wrote:

Adding @bigpix2000 https://github.com/bigpix2000, as he just offereed
to help with #13
https://github.com/MicrosoftDocs/microsoft-365-community/issues/13...
Another suggestion to you folks: you may be getting some public credit for
your work here in the near future. Please make sure your Github profiles
reflect who you really are: name, photo, location, company (if you want),
etc. We want people to know who you are!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/microsoft-365-community/issues/75#issuecomment-599148519,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACWTF34LYKQQE6KFHMTJMADRHQJJTANCNFSM4K7VLXMQ
.

@pealmasa  Looking at that article history, I don't see any changes from you. Are you sure that's the right one? I'm hoping we didn't lose any attribution when we moved things from sp-usage-docs to this new repo.

I believe we did lose. I've added the search related part of the list vs
site column.
No worries, I expect to contribute more as time allows me.
On Sun, 15 Mar 2020 at 18:31, Marc D Anderson<EMAIL_ADDRESS>wrote:

@pealmasa https://github.com/pealmasa Looking at that article history,
I don't see any changes from you. Are you sure that's the right one? I'm
hoping we didn't lose any attribution when we moved things from
sp-usage-docs to this new repo.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/microsoft-365-community/issues/75#issuecomment-599247152,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACWTF32AOJ3VGV2UHMDJL5DRHUNHLANCNFSM4K7VLXMQ
.

Over the weekend, I did some reorganizing. If any of you have a chance, take a look at the revised TOC. I think this broader structure will give us more room to grow.
@pealmasa I'm really sorry that detail disappeared. No worries, though. The fact that you are involved in this discussion means we know you are one of the early contributors. You'll get credit!
cc: @JoanneHendrickson

#wow, it's super awesome love it, ;)

@sympmarc , let me know what you recommend I do for the article created for licensing (issue #13 )  I just recalled that there was going to be an MD template for articles after I created mine. Thanks in advance!


NIFI-12152 Refactored addProvider() Bouncy Castle references

Summary
NIFI-12152 Refactors references to Security.addProvider() with global registration of the Bouncy Castle Provider.
Changes include removing unnecessary registration from multiple test classes and adjusting references to use an instance of BouncyCastleProvider instead of the BC provider name string that requires global registration.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[X] Build completed using mvn clean install -P contrib-check

[X] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

Reviewing the system test failures after several attempts...

It appears that system tests have failed on the main branch from the last several runs:
https://github.com/apache/nifi/actions/workflows/system-tests.yml?query=branch%3Amain


Leafletjs 1.1.0 Deprecated of L.Mixin.Events

Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.
fusesearch.js line 27:  includes: L.Mixin.Events

Fixed by pull request from getaclue


Proposal to Create a Contribution.md File for new contributors

Hey @thekavikumar . I believe it would be beneficial for us to create a Contribution.md file to provide guidelines and information for potential contributors. As someone who is deeply invested in this project, I would like to take responsibility for creating and maintaining this file.
The proposed Contribution.md file will include:

Welcome note to new contributors
A comprehensive compilation of guidelines and instructions.
Instructions on setting up the development environment for newcomers.
Submission guidelines for contributors to ensure proper handling of pull requests.

Thank you for assigning me to this issue. I'll keep you updated on the changes and will contact you if there is anything wrong.

Good day @thekavikumar. Here is my current status on this issue:
Tasks Completed:

[x] Welcome Note to new contributors
[x] Linked useful resources to learn about Git and GitHub
[x] Made a getting started section containing important guidelines

Tasks Left:

[ ] Create a Development Environment section to help contributors set up their project locally
[ ] Create a How to Contribute section
[ ] Community Guidelines
[ ] License


Missing common.cfg

I'm trying to get simianauth --debug to work.  I believe the issue has to due w/ the CA Issuer is looking for it to use / not commas.  According to the guide, I need to change this in etc/simian/common.cfg but I don't have that file.  Was there a change?

Yes.  There used to be common.cfg, client.cfg and server.cfg, but we combined them into settings.cfg: https://github.com/google/simian/blob/master/etc/simian/settings.cfg
Fixed: https://github.com/google/simian/wiki/SimianAndCertificates

Wow, that was a quick response! I’m still a little confused.  I see you removed the reference to common.cfg on the wiki, but how do I change Simian to accept the /’s?
On Jan 14, 2015, at 10:09 AM, Justin McWilliams<EMAIL_ADDRESS>wrote:

https://github.com/google/simian/blob/master/etc/simian/settings.cfg

For the required_issuer field, instead of:
/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
You'd need:
C=AU,ST=Some-State,O=Internet Widgits Pty Ltd
Simply omit any leading slash, and swap the rest of them for commas.  Does that help?

The full DN of the CA that Simian certificates are signed by.
required_issuer = CN=ca-server.tapestryschool.org
Thats what I had in the settings.cfg file.  Do I change "CN=ca-server.tapestryschool.org" to C=AU,ST=SOME STATE...ETC.....?

Yes, that's right!

Yep, that's right.
On Wed, Jan 14, 2015 at 10:42 AM, maryniewskij<EMAIL_ADDRESS>wrote:

The full DN of the CA that Simian certificates are signed by.
required_issuer = CN=ca-server.tapestryschool.org
Thats what I had in the settings.cfg file. Do I change "CN=
ca-server.tapestryschool.org" to C=AU,ST=SOME STATE...ETC.....?
—
Reply to this email directly or view it on GitHub
https://github.com/google/simian/issues/8#issuecomment-69935261.

Are you building a CA from scratch or using an existing CA?
If you are building from scratch it is sufficient to say CN=ca-server.tapestryschool.org is the DN for the CA and thus is the required_issuer. If you are reusing a CA then you need to take into account whatever the DN actually is.
You don't need to add all the other fields like city C, state ST, etc unless if you actually need to or want to.

I got it working! Thanks for your help.  I pasted the whole cn= text into the settings.cfg.
Now I'm going to figure out how to restrict users to only certain people to see the simian website. I'm currently looking into OAuth 2.0
Thanks again!


[issue 59] Bitbucket does not show a fallback image when the connected user has no profile image set #59

removed image from /bitbucket me response
ticket here
Fixes #59

Hello @sibasankarnayak,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Codecov Report

Merging #63 (35843e6) into master (aabb5c5) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master      #63   +/-   ##
=======================================
  Coverage   17.03%   17.03%
=======================================
  Files          13       13
  Lines        1773     1773
=======================================
  Hits          302      302
  Misses       1453     1453
  Partials       18       18

Impacted Files
Coverage Δ

server/command.go
9.72% <0.00%> (ø)

Continue to review full report at Codecov.

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

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @aspleenic

@DHaussermann Can we test this PR as part of release testing?


Display param descriptions in start pipeline and add trigger.

Fix: #413

Codecov Report

Merging #465 (97fc314) into master (8cc7bd0) will increase coverage by 0.01%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #465      +/-   ##
==========================================
+ Coverage   67.40%   67.42%   +0.01%
==========================================
  Files          74       74
  Lines        4915     4927      +12
  Branches      867      869       +2
==========================================
+ Hits         3313     3322       +9
- Misses       1602     1605       +3

Impacted Files
Coverage Δ

src/tekton/addtrigger.ts
80.30% <0.00%> (-1.24%)
:arrow_down:

src/tekton/webviewstartpipeline.ts
97.22% <87.50%> (-2.78%)
:arrow_down:

src/tkn.ts
66.71% <100.00%> (+0.08%)
:arrow_up:

Continue to review full report at Codecov.

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


Replace while loops with recursion in tutorials

Remove uses of the while loop from any place it exists in the tutorial pages. In examples and exercises where the while loop is used, rewrite them to use recursion instead.
Do not delete the while loop tutorial, simply move it to the old_tutorials (located in the tutorials folder).

Do you want me to also remove 'loop' from the glossary?

Also, made all the changes. I have some questions that I will bring up in tomorrow's meeting, so I am waiting to push & make a pull request!

Good work!


Run mypy on typed files

Description:
Update script/lint to run mypy on typed files.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

Closing as mypy has now been added as a pre-commit trigger in #27339


Script files paths are invalid

Description
How can the docs be improved?
Current docs in the Getting started section are not using correct paths for script files and links are broken, i.e. Grafana config: https://karpenter.sh/docs/getting-started/getting-started-with-karpenter/#add-optional-monitoring-with-grafana

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Thanks for pointing this out. We changed up the docs versioning scheme for v0.28+, which those commands check out what the repo looked like at that tag. This should eventually be phased out when we release more versions, but in the meantime, I'll hard-code the fix to those links so that they're correct.


fishPlugins.hydro cannot find command "fish"

Describe the bug
the error message show in every time I start a fish session:
fish: Unknown command: fish
/nix/store/h44v3fqpf2pcrqjqmrr8y3dj6xqd699f-source/conf.d/hydro.fish (line 61):
    fish --private --command "

Steps To Reproduce
use home manager in macos aarch:
{ pkgs, ... }:

{
  programs.fish = {
    enable = true;
    plugins = [
      { name = "hydro"; src = pkgs.fishPlugins.hydro.src; }
    ];
    shellAliases = {
      gst = "git status";
      gd = "git diff";
      gdc = "git diff --cached";
      gl = "git pull";
      gp = "git push";
      gco = "git checkout";
      gcm = "git checkout master";
      gb = "git branch";
      gcl = "git config --list";
      gcp = "git cherry-pick";
      ga = "git add";
      gaa = "git add --all";
      gsta = "git stash";
      gstp = "git stash pop";
      gstd = "git stash drop";
      cf = "git-cf";
    };
  };
}

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
@theHedgehog0
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.4.0, macOS 13.3.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/store/cyqa3d8y0q5dn6mmpyvpr10cz946scqf-source`

I found plugin nix.fish can fix this problem

I cannot reproduce this error with wrapFish or home-manager on my x86_64-linux and aarch64-darwin.
We may be missing some others problem.

I install nix with https://zero-to-nix.com/

@Eliot00 I believe .nix-profile is for packages installed using nix-env which I don't think is what you want. I'm using fish and home-manager (+ nix-darwin) and my /etc/shells looks like this:
cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

# List of shells managed by nix.
/run/current-system/sw/bin/fish

For some reason I can't recall, I have fish installed at the system level using nix-darwin, so you might want something like this instead /etc/profiles/per-user/<your-user>/bin/fish

I realized that this issue is not related to nixpkgs and I will close this issue.

I believe this PR fixes the issue


Updated the readme (example of Effect decorator on a function)

Thanks, I've updated the PR

Sorry for taking so long to get to this, but an example of decorating a method with @Effect() is included in the docs.
Thanks for the contribution!


Bug request new account

I tried with 3 of my email addresses, but when I registered, the information was like the photo above

OS: MacOS
Browser: Sidekick (Chromnium)

the problem is the cors origin policy

so what i did is i disabled the cors origin policy in chrome . this may not be the safest method but it works
Open Start window
Search Run and open it or press Window+ R
Paste chrome.exe --user-data-dir="C://Chrome dev session" --disable-web-security and execute it

@CALEB789  This solution don't resolve this problem in my Macbook

Thank you for your patience. We have received several similar error reports, so let us confirm the cause.
https://github.com/aws/studio-lab-examples/issues/254

@anhquan0 use this instead of that
open /Applications/Google\ Chrome.app --args --user-data-dir="/var/tmp/chrome-dev-disabled-security" --disable-web-security --disable-site-isolation-trials

open /Applications/Google\ Chrome.app --args --user-data-dir="/var/tmp/chrome-dev-disabled-security" --disable-web-security --disable-site-isolation-trials

I have the same error

@anhquan0    then the problem is with your email address not the site

Thank you for your patience. We are investigating this issue. We would like to designate a single point of contact, therefore, we will be closing this issue. Please watch the following issue to monitor the progress.
https://github.com/aws/studio-lab-examples/issues/254


Update resource-group-move-resources.md

Removing wording about "limited Public Preview" since this feature is already GA.
Announcing Azure Backup support to move Recovery Services vaults across subscriptions and resource groups
https://azure.microsoft.com/en-us/updates/azure-backup-support-to-move-recovery-services-vaults/
Tuesday, April 16, 2019: GA support for move functionality for recovery services vaults where you can migrate a vault between subscriptions and resource groups

@maorteg : Thanks for your contribution! The author, @tfitzmac, has been notified to review your proposed change.

@maorteg - thanks for the update!

#sign-off


[cosmosdb] Move to use core-http

This package should depend on core-http and as part of that we should align RetryOptions per #6149

This was accomplished in #14341


Documentation

For each index, I think we'll want a short textual description, a longer explanation including the mathematical formula, an example, and references to papers either defining the indicator or using it.

Would it make sense to use docstrings to an extent? e.g. https://stackoverflow.com/a/24385103/7322852
While the benefits of following reST conventions are lost on Python2, Python3 IDEs can extract type indications from the text and IIRC, we can configure sphinx to extract this info directly to HTML.

That's the idea. My preference goes to the numpy doc style, which supports references and examples. I find the rest convention really ugly.

According to the Python maintainers, reST is the standard (PEP 287) but thankfully, PyCharm has support for all of the docstring types as mentioned here.
So long as we're consistent, my joy will know no bounds.

Oh nice ! Good catch. I've created an example for your consideration and critique. Pull the latest from master, build the docs and check out the TG function in the ICCLIM page.

Question: Will we be using ReadTheDocs to put our documentation online? I'm wondering if it makes sense for me to sign-up and allow them read-access to this repo.

Sure, go ahead.

Docs are now up! https://xclim.readthedocs.io/en/latest/


Images don't show in Inkscape

Bitmap pictures of SVG output are not visible in free vector editor named Inkscape. The reason is probably because image href attribute should be xlink:href. I tried changing following lines localy<EMAIL_ADDRESS>in (content|background).js(|.map) which solved the issue for me:
        // Inline binary images as base64 data: URL
        const dataUrl = await blobToDataURL(blob);
        element.dataset.src = element.href.baseVal;
        element.setAttribute('xlink:href', dataUrl.href);

Please include Inkscape to your testing software.

This issue on the Inkscape issue tracker


Spark batch ingestion common code abstraction.

TODO

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

Project coverage is 0.00%. Comparing base (59551e4) to head (f282d60).
Report is 1302 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (59551e4) and HEAD (f282d60). Click for more details.
HEAD has 53 uploads less than BASE

Flag
BASE (59551e4)
HEAD (f282d60)

integration
7
1

integration2
3
1

temurin
12
1

java-21
7
1

skip-bytebuffers-true
3
1

skip-bytebuffers-false
7
0

unittests
5
0

unittests1
2
0

java-11
5
0

unittests2
3
0

integration1
2
0

custom-integration1
2
0

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #14415       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436        3     -2433
  Lines        133233        6   -133227
  Branches      20636        0    -20636
=============================================
- Hits          82274        0    -82274
+ Misses        44911        6    -44905
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
?

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

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

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

@jadami10 Are you using the spark job for the batch ingestion? It would be good if you can help review this PR

this seems right. From what I can tell, it's just code moving.
curious why you're not doing SparkSegmentGenerationJobRunner.java and SparkSegmentMetadataPushJobRunner.java.

Yes, it's just a common code movement; no change in logic.
It's also there for SparkSegmentMetadataPushJobRunner (reference). However, I am not able to find a common code pattern for SparkSegmentGenerationJobRunner.

Can i get some review on this? Thanks


Data from HA energy tab does not reflect enlighten data.

Howdy,
Using the energy plugin from HA and your enphase-mqtt plugin the numbers to not align to what enphase enlighten data shows.
Example:
May 13th Production/Consumption
HA: 18.9 kWH/24.5kWH
Enlighten: 40.2kWH/91.6kWH
May 12th
HA:21.6kWh/26.4kWh
Enlighten:  44.4kWh/94.9kWh
Here is my config minus the customization.yaml file you provided me with in another issue.
sensor:
  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_production"
    qos: 0
    unit_of_measurement: "W"
    value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | int(0) }}{%endif%}'
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] }}'
    name: "mqtt_consumption"
    qos: 0
    unit_of_measurement: "W"
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_power_factor"
    qos: 0
    unit_of_measurement: "%"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["pf"] }}'
    state_class: measurement
    device_class: power_factor

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_voltage"
    qos: 0
    unit_of_measurement: "V"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["v"] }}'
    state_class: measurement
    device_class: voltage
sensor:

  #
  # These ones are for Envoy via mqtt
  #
  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_production"
    qos: 0
    unit_of_measurement: "W"
    value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | int(0) }}{%endif%}'
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] }}'
    name: "mqtt_consumption"
    qos: 0
    unit_of_measurement: "W"
    state_class: measurement
    device_class: power

  - platform: template
    sensors:
      exporting:
        friendly_name: "Current MQTT Energy Exporting"
        value_template: "{{ [0, (states('sensor.mqtt_production') | int(0) - states('sensor.mqtt_consumption') | int(0))] | max }}"
        unit_of_measurement: "W"
        icon_template: mdi:flash
      importing:
        friendly_name: "Current MQTT Energy Importing"
        value_template: "{{ [0, (states('sensor.mqtt_consumption') | int(0) - states('sensor.mqtt_production') | int(0))] | max }}"
        unit_of_measurement: "W"
        icon_template: mdi:flash
      solarpower:
        friendly_name: "Solar MQTT Power"
        value_template: "{{ states('sensor.mqtt_production')}}"
        unit_of_measurement: "W"
        icon_template: mdi:flash

sensor 1001:
  - platform: integration
    source: sensor.solarpower
    name: energy_solar
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2
sensor 1002:
  - platform: integration
    source: sensor.exporting
    name: energy_exporting
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2
sensor 1003:
  - platform: integration
    source: sensor.importing
    name: energy_importing
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2

A thought - do you have a single or 3-phase system? You’ll need to adjust the sensors if it’s 3-phase.

I am not sure, I have standard US residential electric, is there any way I can tell by visiting the enphase dashboard?

It’s easy to tell if you have two or three phases - please navigate to http://your_envoy_ip/stream/meter and post back here a sample output please.

data: {"production":{"ph-a":{"p":1425.106,"q":267.66,"s":1455.476,"v":121.981,"i":11.932,"pf":0.98,"f":60.0},"ph-b":{"p":1412.965,"q":255.507,"s":1442.333,"v":120.886,"i":11.932,"pf":0.97,"f":60.0},"ph-c":{"p":0.0,"q":0.0,"s":0.0,"v":0.0,"i":0.0,"pf":0.0,"f":0.0}},"net-consumption":{"ph-a":{"p":-824.356,"q":-140.062,"s":894.075,"v":122.006,"i":7.33,"pf":-0.92,"f":60.0},"ph-b":{"p":893.219,"q":-439.596,"s":1125.802,"v":120.838,"i":9.28,"pf":0.79,"f":60.0},"ph-c":{"p":0.0,"q":0.0,"s":0.0,"v":0.0,"i":0.0,"pf":0.0,"f":0.0}},"total-consumption":{"ph-a":{"p":600.75,"q":-407.722,"s":561.489,"v":121.994,"i":4.603,"pf":1.0,"f":60.0},"ph-b":{"p":2306.184,"q":-695.104,"s":2563.706,"v":120.862,"i":21.212,"pf":0.9,"f":60.0},"ph-c":{"p":0.0,"q":0.0,"s":0.0,"v":0.0,"i":0.0,"pf":0.0,"f":0.0}}}

Thanks for that - you have a dual phase system - note you have numbers for “ph-a” and “ph-b”. This is phase a and phase b. It’s an easy fix - in the sensors you created simply modify the value template in these two lines. If you don’t know how to do that let me know and I’ll post it shortly.
‘’’ sensor:

platform: mqtt
state_topic: "/envoy/json"
name: "mqtt_production"
qos: 0
unit_of_measurement: "W"
value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | int(0) }}{%endif%}'
state_class: measurement
device_class: power

platform: mqtt
state_topic: "/envoy/json"
value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] }}'
name: "mqtt_consumption"
qos: 0
unit_of_measurement: "W"
state_class: measurement
device_class: power
‘’’

If you can post the 2 phase power update to the sensors when you have time I would appreciate it.

Will do shortly. Cheers

Before I post the updated code, can you please confirm the code you posted above is EXACTLY how it is within your configuration.yaml? I'm asking because as you've posted it, sensor: is listed twice and that won't work as each sensor: must have a unique number.
This is a truncated version of what you posted - note sensor: at the start and end - that won't work?
sensor:
  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_production"
    qos: 0
    unit_of_measurement: "W"
    value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | int(0) }}{%endif%}'
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] }}'
    name: "mqtt_consumption"
    qos: 0
    unit_of_measurement: "W"
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_power_factor"
    qos: 0
    unit_of_measurement: "%"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["pf"] }}'
    state_class: measurement
    device_class: power_factor

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_voltage"
    qos: 0
    unit_of_measurement: "V"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["v"] }}'
    state_class: measurement
    device_class: voltage
sensor:

I think I was confused by the readme on the project and I copy/pasted both sensor stanzas.  Config as follows:

sensor:

platform: mqtt
state_topic: "/envoy/json"
name: "mqtt_production"
qos: 0
unit_of_measurement: "W"
value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | int(0) }}{%endif%}'
state_class: measurement
device_class: power

platform: mqtt
state_topic: "/envoy/json"
value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] }}'
name: "mqtt_consumption"
qos: 0
unit_of_measurement: "W"
state_class: measurement
device_class: power

platform: mqtt
state_topic: "/envoy/json"
name: "mqtt_power_factor"
qos: 0
unit_of_measurement: "%"
value_template: '{{ value_json["total-consumption"]["ph-a"]["pf"] }}'
state_class: measurement
device_class: power_factor

platform: mqtt
state_topic: "/envoy/json"
name: "mqtt_voltage"
qos: 0
unit_of_measurement: "V"
value_template: '{{ value_json["total-consumption"]["ph-a"]["v"] }}'
state_class: measurement
device_class: voltage
sensor:

These ones are for Envoy via mqtt

platform: mqtt
state_topic: "/envoy/json"
name: "mqtt_production"
qos: 0
unit_of_measurement: "W"
value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | int(0) }}{%endif%}'
state_class: measurement
device_class: power

platform: mqtt
state_topic: "/envoy/json"
value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] }}'
name: "mqtt_consumption"
qos: 0
unit_of_measurement: "W"
state_class: measurement
device_class: power

platform: template
sensors:
exporting:
friendly_name: "Current MQTT Energy Exporting"
value_template: "{{ [0, (states('sensor.mqtt_production') | int(0) - states('sensor.mqtt_consumption') | int(0))] | max }}"
unit_of_measurement: "W"
icon_template: mdi:flash
importing:
friendly_name: "Current MQTT Energy Importing"
value_template: "{{ [0, (states('sensor.mqtt_consumption') | int(0) - states('sensor.mqtt_production') | int(0))] | max }}"
unit_of_measurement: "W"
icon_template: mdi:flash
solarpower:
friendly_name: "Solar MQTT Power"
value_template: "{{ states('sensor.mqtt_production')}}"
unit_of_measurement: "W"
icon_template: mdi:flash

sensor 1001:

platform: integration
source: sensor.solarpower
name: energy_solar
method: left

unit: kWh
unit_prefix: k
unit_time: h
round: 2

sensor 1002:

platform: integration
source: sensor.exporting
name: energy_exporting
method: left

unit: kWh
unit_prefix: k
unit_time: h
round: 2

sensor 1003:

platform: integration
source: sensor.importing
name: energy_importing
method: left

unit: kWh
unit_prefix: k
unit_time: h
round: 2

Thanks- that’s strange as you definitely have a duplicate sensor: - this should be throwing errors in your logs. Can you confirm that sensor 999: is unused and I’ll update that entire code for you. I’ll also make a change as currently it’s ignoring the numbers as decimals so that will also give a slight variance to the online Enphase readings you’re comparing to.

Sensor 999 is unused, Should i remove the 2nd sensor: stanza or the 2nd sensor stanza and mqtt_production, mqtt_consumption and the 3 templates?

Thanks Tim - just leave it for now - replace the entire section with the "fixed" version I'm just about to post

Replace your current code entirely with this. Note I've added three phases just in case you upgrade one day.
Notes:

I also assume sensor 1000: is free?
I've renamed the power factor and voltage sensors you created as I've included both phase a and phase b for them - You'll have to change your dashboard etc to display these new ones (I appended _phasea or _phaseb to the sensor names)
Let me know how this goes?

sensor 999:
  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_production"
    qos: 0
    unit_of_measurement: "W"
    value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | float(0) + value_json["production"]["ph-b"]["p"]  | float(0) +value_json["production"]["ph-c"]["p"]  | float(0) }}{%endif%}'
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] | float(0) + value_json["total-consumption"]["ph-b"]["p"] | float(0) + value_json["total-consumption"]["ph-c"]["p"] | float(0) }}'
    name: "mqtt_consumption"
    qos: 0
    unit_of_measurement: "W"
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_power_factor_phasea"
    qos: 0
    unit_of_measurement: "%"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["pf"] }}'
    state_class: measurement
    device_class: power_factor

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_power_factor_phaseb"
    qos: 0
    unit_of_measurement: "%"
    value_template: '{{ value_json["total-consumption"]["ph-b"]["pf"] }}'
    state_class: measurement
    device_class: power_factor

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_voltage_phasea"
    qos: 0
    unit_of_measurement: "V"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["v"] }}'
    state_class: measurement
    device_class: voltage

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_voltage_phaseb"
    qos: 0
    unit_of_measurement: "V"
    value_template: '{{ value_json["total-consumption"]["ph-b"]["v"] }}'
    state_class: measurement
    device_class: voltage

sensor 1000:

  #
  # These ones are for Envoy via mqtt
  #
  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_production"
    qos: 0
    unit_of_measurement: "W"
    value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | float(0) + value_json["production"]["ph-b"]["p"]  | float(0) + value_json["production"]["ph-c"]["p"]  | float(0) }}{%endif%}'
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] | float(0) + value_json["total-consumption"]["ph-b"]["p"] | float(0) + value_json["total-consumption"]["ph-c"]["p"] | float(0) }}'
    name: "mqtt_consumption"
    qos: 0
    unit_of_measurement: "W"
    state_class: measurement
    device_class: power

  - platform: template
    sensors:
      exporting:
        friendly_name: "Current MQTT Energy Exporting"
        value_template: "{{ [0, (states('sensor.mqtt_production') | int(0) - states('sensor.mqtt_consumption') | int(0))] | max }}"
        unit_of_measurement: "W"
        icon_template: mdi:flash
      importing:
        friendly_name: "Current MQTT Energy Importing"
        value_template: "{{ [0, (states('sensor.mqtt_consumption') | int(0) - states('sensor.mqtt_production') | int(0))] | max }}"
        unit_of_measurement: "W"
        icon_template: mdi:flash
      solarpower:
        friendly_name: "Solar MQTT Power"
        value_template: "{{ states('sensor.mqtt_production')}}"
        unit_of_measurement: "W"
        icon_template: mdi:flash

sensor 1001:
  - platform: integration
    source: sensor.solarpower
    name: energy_solar
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2
sensor 1002:
  - platform: integration
    source: sensor.exporting
    name: energy_exporting
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2
sensor 1003:
  - platform: integration
    source: sensor.importing
    name: energy_importing
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2

Sorry Tim - I had a Sunday morning brain fade - You'll probably see that sensor 999: and sensor 1000: have mqtt_production and mqtt_consumption so I've duplicated them. The correct code is as follows so please use that instead of the above:
sensor 999:

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_power_factor_phasea"
    qos: 0
    unit_of_measurement: "%"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["pf"] }}'
    state_class: measurement
    device_class: power_factor

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_power_factor_phaseb"
    qos: 0
    unit_of_measurement: "%"
    value_template: '{{ value_json["total-consumption"]["ph-b"]["pf"] }}'
    state_class: measurement
    device_class: power_factor

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_voltage_phasea"
    qos: 0
    unit_of_measurement: "V"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["v"] }}'
    state_class: measurement
    device_class: voltage

  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_voltage_phaseb"
    qos: 0
    unit_of_measurement: "V"
    value_template: '{{ value_json["total-consumption"]["ph-b"]["v"] }}'
    state_class: measurement
    device_class: voltage

sensor 1000:

  #
  # These ones are for Envoy via mqtt
  #
  - platform: mqtt
    state_topic: "/envoy/json"
    name: "mqtt_production"
    qos: 0
    unit_of_measurement: "W"
    value_template: '{% if is_state("sun.sun", "below_horizon")%}0{%else%}{{ value_json["production"]["ph-a"]["p"]  | float(0) + value_json["production"]["ph-b"]["p"]  | float(0) + value_json["production"]["ph-c"]["p"]  | float(0) }}{%endif%}'
    state_class: measurement
    device_class: power

  - platform: mqtt
    state_topic: "/envoy/json"
    value_template: '{{ value_json["total-consumption"]["ph-a"]["p"] | float(0) + value_json["total-consumption"]["ph-b"]["p"] | float(0) + value_json["total-consumption"]["ph-c"]["p"] | float(0) }}'
    name: "mqtt_consumption"
    qos: 0
    unit_of_measurement: "W"
    state_class: measurement
    device_class: power

  - platform: template
    sensors:
      exporting:
        friendly_name: "Current MQTT Energy Exporting"
        value_template: "{{ [0, (states('sensor.mqtt_production') | int(0) - states('sensor.mqtt_consumption') | int(0))] | max }}"
        unit_of_measurement: "W"
        icon_template: mdi:flash
      importing:
        friendly_name: "Current MQTT Energy Importing"
        value_template: "{{ [0, (states('sensor.mqtt_consumption') | int(0) - states('sensor.mqtt_production') | int(0))] | max }}"
        unit_of_measurement: "W"
        icon_template: mdi:flash
      solarpower:
        friendly_name: "Solar MQTT Power"
        value_template: "{{ states('sensor.mqtt_production')}}"
        unit_of_measurement: "W"
        icon_template: mdi:flash

sensor 1001:
  - platform: integration
    source: sensor.solarpower
    name: energy_solar
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2
sensor 1002:
  - platform: integration
    source: sensor.exporting
    name: energy_exporting
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2
sensor 1003:
  - platform: integration
    source: sensor.importing
    name: energy_importing
    method: left
#    unit: kWh
    unit_prefix: k
    unit_time: h
    round: 2

Thinking about this - since mqtt_production and mqtt_consumption were duplicated in your original configuration using the same sensor: identifier, it would have still worked as the second sensor: may have over-ridden the first sensor: - you probably wouldn't have been able to see power factor or voltage I'd guess with your original config?

I have replaced/added this to my config and it seems to be working as intended, I created a power-wheel-card and the realtime consumption is on par with enphase monitoring now.

Ok great thanks

@vk2him Do you have any thoughts on using this approach to integrate with Energy vs the older approach at https://community.home-assistant.io/t/enhpase-envoy-on-2021-8-with-new-energy-feature/328668? That will update at the frequency of the Enphase integration (every minute, I’m not sure?) vs this approach of every second. Given the Energy component gives pretty coarse readings, I’m wondering whether updating it every second produces any unnecessary overhead. Thanks.

Yes you’re right that the per second updates are overkill for energy- the only impact on resource would be disk space I’d guess however I haven’t experienced any issues.

Yes, I suppose every update to the sensors would be recorded, and have to be for the Energy history.


Update dependencies

What should this PR do?
Resolves DEVED-93 by bumping versions of js-yaml, next-mdx-remote, rehype-react, remark-rehype, and sass.
This PR does not bump rehype-slug or rehype-autolink-headings due to low current adoption of these packages currently (in each case, a Sourcegraph search results in only one instance of adoption for these versions in 1M repos), coupled with the update being a breaking change.
Some context for future discussion of adopting these packages:
rehype-slug rewrite
next-mdx-remote type definitions, particularly for mdxOptions
Open issue on types for remarkPlugins and rehypePlugins in next-mdx-remote.
Why are we making this change?

Part of an effort to keep our dependencies up-to-date

What are the acceptance criteria?

The app should exhibit no changes, and builds should succeed.

How should this PR be tested?

Check out the branch, remove node_modules, and install dependencies with npm ci.
Ensure that the above criteria are met.

Pull request process
Reviewers:

Test functionality using the criteria above.
Offer tips for efficiency, feedback on best practices, and possible alternative approaches and things that may not have been considered.
For shorter, "quick" PRs, use your best judgement on #2.
Use a collaborative approach and provide resources and/or context where appropriate.
Provide screenshots/grabs where appropriate to show findings during review.

Reviewees:

Prefer incremental and appropriately-scoped changes.
Leave a comment on things you want explicit feedback on.
Respond clearly to comments and questions.

Will close #149 and #148 manually once this is merged.


Support statements with bound values

Hi,
first, thank you for this great crate!
It would be nice to have support for bound values, i.e. statements with ? or $1. So it would benefit from DB statement caching.

Like this?
let sql = SqlBuilder::select_from("books")
    .field("title")
    .field("price")
    .and_where("price > ?")
    .and_where("title LIKE ?")
    .bind(100)
    .bind("Harry Potter%")
    .sql()?;

Yes, or even like this
let sql = SqlBuilder::select_from("books")
    .field("title")
    .field("price")
    .and_where("price > ?", 100)
    .and_where("title LIKE ?", "Harry Potter%")
    .sql()?;

? can be replaced by $1 if dialect is postgres.
Such form would be extremely helpful for example when you create the SQL statement based on multiple search criteria. I.e. in a web server processing a search query: if the user submitted this use  where(a), if the user submitted that add where(b).
These ideas are taken from squirrel.

But Rust has no function overloading. I can make separate macro for that:
.and_where( bind!("price BETWEEN ? AND ?", 100, 200) )

Maybe it can be something like this
fn and_where<T: TypeTrait>(sql: &str, bindings: &[T]) {...}

And the final sql() could return a tuple of SQL statement and Vec<dyn TypeTrait>

Check, please:
let sql = SqlBuilder::select_from("company")
    .fields(&["id", "name"])
    .and_where("salary BETWEEN ? AND ?".binds(&[&10000, &25000]))
    .and_where("staff BETWEEN ? AND ?".bind(&100).bind(&200))
    .sql()?;

I like usage of bind/binds 👍 But I guess in order to be able to benefit from SQL statement caching, sql()? should return two things (they can be wrapped in a struct):

SQL statement with ?/$1
a list of variables to bind

Having things like this, would allow a DB server to cache the execution plan for the statements with ? and reuse it for any different incoming variables.

May it will be convenient in this form?
let statement = SqlBuilder::select_from("books")
    .field("title")
    .and_where("price > ?")
    .and_where("title LIKE ?")
    .prepare()?;

let sql1 = statement.sql(&[&100, &"Harry%"])?; // SELECT title FROM books WHERE price > 100 AND title LIKE 'Harry%';
let sql2 = statement.sql(&[&200, &"Alice%"])?; // SELECT title FROM books WHERE price > 200 AND title LIKE 'Alice%';

Actually I like more the previous variant
.and_where("salary BETWEEN ? AND ?".binds(&[&10000, &25000]))

It is helpful, because when you create the SQL for a search request from a user, it might contain multiple search criteria. So you can immediately provide required values:
if(criteria1) {
  sql_builder.and_where("salary BETWEEN ? AND ?".binds(&[&10000, &25000]))
}
if(criteria2) {
  sql_builder.join("tableX as X on X.id=Y.x_id")
}

let (sql, values) = sql_builder.sql()?;

my_transaction.execute(sql, values.into())?;

I guess the last proposal
let sql1 = statement.sql(&[&100, &"Harry%"])?;
let sql2 = statement.sql(&[&200, &"Alice%"])?;

is not very helpful, because you again have the final statement as a string. So the DB server will have to generate (actually the same) plan for sql1 and sql2.

Since 0.11.9:
bind, binds:
"staff BETWEEN ? AND ?".bind(&100).bind(&200))

"salary BETWEEN ? AND ?".binds(&[&10_000, &25_000]))

bind_num, bind_nums:
"staff BETWEEN $1 AND $2".bind_num(1, &100).bind_num(2, &200))

"salary BETWEEN $1 AND $2".bind_nums(&[&10_000, &25_000]))

bind_name, bind_names:
"staff BETWEEN :min: AND :max:".bind_name("min", &100.sql_arg()).bind_name("max", &200.sql_arg()))

let mut names = HashMap::new();
names.insert("min", 1_000_i32.sql_arg());
names.insert("max", 25_000_i32.sql_arg());
"salary BETWEEN :min: AND :max:".bind_names(&names)

How would you use it with for example sqlx?


Possible affect:
I suppose that due to sa_relationship_kwargs={"lazy": "joined"} used now large and redundant amounts of data are loaded through relations (i.e. user -> invitation -> other user -> other invitation -> ...).
Known solutions:

Make DB connections synchronous
Prevent relationships to be lazy loaded by loading it manually or at the moment when a main object is loaded
The very last option is chosen

Reproduction

Remove sa_relationship_kwargs={"lazy": "joined"} from relationship definitions
Run tests

Screenshots / Additional context
Some info

Should be rechecked after https://github.com/one-zero-eight/InNoHassle-Rooms/commit/e9bdf6672f85f7b195aeb1b5113599a8fae5b829

All relationships are removed out of harm's way. Honestly, they are nightmare. I don't know how to make them work properly (without tons of extra methods or attributes) with asynchronous DB drivers.

Maybe use joinedload()/selectinload() to request only specified relationships (reference). Maybe in future...


JAMES-3781 As a user I want to enforce explicit configuration

Adds james.fail.on.missing.configuration=true JVM option.

CI failed so badly on friday that #1055 was not built, I had to reopen to get this up and running...


[Penalty strengths] Investigate ML models for penalty strength tuning

Currently, the choices for the default values of parameters governing the penalty strength is based on the literature and related software implementations. We would like to tune these penalty strength choices in the future with the help of machine learning.
For this, investigate the ways in which penalty strengths can be tuned using ML techniques.

Dropped as part of the CSE2000 Software Project after a discussion with our client prioritizing tasks.

Close in favour of #180


Feature Request: Marking patrons that have lost equipment / "Patron has lost equipment" option in check in procedures

It'd be useful to see how many times a patron has lost equipment so that once a certain threshold is reached they can have their privileges restricted.  One great way to have this work is to have an option in the check in procedures "Patron has lost equipment" so that when we have been notified, by the patron or otherwise, we can check in the reservation.

This is now more relevant to #1216 as #462 changed to be a refactoring of statuses.

After thinking about counter caches for #1501, we might just want to add "red flags" as a counter cache on users that is incremented each time a user performs a high-risk action (overdue reservations, lost / damaged equipment returned reservation, etc). Seems manageable enough, we'd just have to tweak it with client feedback.


[ML-27556] Add PandasColumnTransformer

Codecov Report
Base: 95.48% // Head: 95.57% // Increases project coverage by +0.09% :tada:

Coverage data is based on head (3de1475) compared to base (8f96f51).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   95.48%   95.57%   +0.09%
==========================================
  Files          25       26       +1
  Lines         863      882      +19
==========================================
+ Hits          824      843      +19
  Misses         39       39

Flag
Coverage Δ

unittests
95.57% <100.00%> (+0.09%)
:arrow_up:

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

Impacted Files
Coverage Δ

...time/databricks/automl_runtime/sklearn/__init__.py
100.00% <100.00%> (ø)

...utoml_runtime/sklearn/pandas_column_transformer.py
100.00% <100.00%> (ø)

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Files still locked after dumping

Guess this has to do with the new update? Never had this issue before.
Talking about Forza Horizon 3 btw.

I noticed from hw2 that they still show the lock icon for files and folders act as if still locked but if you try copying the files from folder elsewhere to take a look, it probably works fine.

Some of the more recent updates should fix your issue. Be sure to download the latest build from AppVeyor

Getting this a couple times when I try to copy the folder

Fastest way around it is to tar then and move the tar elsewhere, as most likely the folder is taken over by NTFS inheritance / encryption

how do I tar?

I use 7zip

Getting this a couple times when I try to copy the folder
Fastest way around it is to tar then and move the tar elsewhere, as most likely the folder is taken over by NTFS inheritance / encryption

Oh yeah, just saying, if you for some reason can't use 7Z, then try copy-pasting the files. The folders don't work. But you have to do everything manually.


feat(frontend): service util for rest requests

Motivation
The Etherscan API has a maximum calls/second limit and with the unified transaction we are always breaking it.
There are a few ways to handle/solve this issue, but, as first important guard, we would like to create a way to handle retries in our requests to the Rest API. Right now a request would fail at the first try (if it fails).
So, we create a service handler (similar to queryAndUpdate) that accepts a request and handles success, errors and retries.
Tests
Provided some tests.

[OISY-130]


Little error in example code listing

Hi!
I think here it must be
main.py
from books import books_app

because in books.py the var name is already books_app.

Thanks.


Maven Repo

Please fix maven repo
> Could not resolve org.spacehq:mcprotocollib:1.8-SNAPSHOT.
  Required by:
      ru.ensemplix.server:enServer:0.1
   > Unable to load Maven meta-data from http://repo.spacehq.org/content/repositories/snapshots/org/spacehq/mcprotocollib/1.8-SNAPSHOT/maven-metadata.xml.
      > Could not GET 'http://repo.spacehq.org/content/repositories/snapshots/org/spacehq/mcprotocollib/1.8-SNAPSHOT/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

Fixed.

@Steveice10
Sorry for necro-posting but I'd rather not open another issue just for this small thing. Unfortunately GitHub doesn't offer any PM, so I figured posting here might be the least off-topic.
Trying to load from the maven repo currently does not seem to work
I'm not sure what exactly the problem is however just not forcing https would be a quick workaround.

I don't know about gradle, but maven would need to be updated to a later version that supports SNI. Working fine for me.

Thanks for that quick answer. I could indeed find an issue (unresolved for 5 month) on the gradle bug tracker and a PR for preparing SNI support (3 month old, no activity for one month).
Looks like all is fine from your side and I'll just have to wait for gradle to be updated and find a workaround in the meantime.

Rehosting repo - http://maven.ensemplix.ru/artifactory/spacehq/


[Bug]: Slow cloning over SSH (243KB)

Description
Cloning a tiny repo (243KB) takes around 4 minutes.
Minimal Reproduction (if possible, example repository)
Clone a repo of size 243KB over SSH.
Exception or Error
None. It's just slow.
Version
v4.0.0-beta.323
Cloud?

[ ] Yes
[X] No

Could you please provide a repo URL.
What do you mean cloning over SSH? Did zoy deploy the repo via the Girhub type?

I cannot provide a repo URL. It is an internal repository deployed with SSH (using a private key)

Which git provider are you using?

I'm using Forgejo 8.

There's absolutely nothing wrong with my connection. Using a bond of 4 ports which each have 2.5 gigabit ethernet connected.
The server is also running inside a VM and I'm cloning locally over IP address, closing this issue won't fix it :/

We could fix it, if we know that it is related to Coolify itself, but as you are the only one affected by this, and we have no idea how to replicate, we cannot fix it.
Is it still not working on that VM?

Idk, updating it fixed it but still unknown cause. Strange issue that got fixed on its own I guess. I've reinstalled it and it works fine.


How to Update Permissions/Scope without Installing App again

Hi team, I am wondering how I could update my existing OAuth scopes with this method app.client. apps_permissions_request? I tried to run it with this code
@app.action("update_permission")
def update_message(ack, client, body):
   ack()
   client.apps_permissions_request(token=os.environ.get('SLACK_BOT_TOKEN_DEV'), trigger_id=body["trigger_id"], scopes='mpim:read')

however, I get the following response:
Failed to run listener function (error: 'WebClient' object has no attribute 'apps_permissions_request')
How can I fix/workaround this?
Thanks for your help/input :)

Hi @ManuelBuri, the method you found is for deprecated workspace apps. It’s no longer usable. Also, I'm sorry to say this but there is no way to update an app's scopes etc at the moment. Doing the installation in browser is the only way to add new scopes to your app.


Remove to call the deprecated vscode API

Objective
In this commit I tried to resolve the issue https://github.com/Autodesk-AutoCAD/AutoLispExt/issues/11
Test performed
I tried to pack a test package, and test the following cases:

Attach debug
Launch debug, and for this mode I tried to specify the parameters or without parameters

Module affected:
extension/src/debug.ts

implement two individual DebugAdapterDescriptorFactory for Launch and Attach modes

package.json

remove the deperated the debug adapter command

Screen Shot
No new behavior introduced. Not applicable.

I am going to fairly busy until January, but I did test this both in Launch & Attach modes, stepped through code, watched variables change, etcetera.
This appears to be functioning fine and using the #11 specified DebugAdapterDescriptorFactory.

Thank you very much for reviewing it!


Unit Converter

Pull Request Template
script name - unit_converter
What have you Changed
Added new script.
Issue no.(must) - #497
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me.
[x] One Change in one Pull Request
[x] My file is in the proper folder
[x] I am following clean code and Documentation and my code is well-linted with flake8.
[x] I have added README.md and requirements.txt with my script

If the issue was not assigned to you Please don't make a PR. It will mark as invalid.
Join Us on Discord:- https://discord.gg/JfbK3bS
acknowledgment

[x] I have tested the script and distributed it under an MIT license.

Oh oops.. forgot to fetch before I pushed this. It's showing my commits from the previous PR as well but no merge conflicts.


have multiple config files for subdirectories

i have a js/ folder where i want to lint with
"esnext": true,
"envs": [
"browser"
]
and then i have my gulpfile folder where i want to lint with
"esnext": false,
"envs": []
this works with .jshint files because i can have multiple of them in the different folders. but with xo the configuration is stored in the package.json which i tried duplicating with different rules into the different folders but it didn't work.
so i'm wondering if theres a solution already? seems like a common case.

Could xo support .xorc or .eslintrc in sub-directories.

You can put a package.json file there with just the XO stuff:
{
	"xo": {
		"esnext": true,
		"envs": [
			"browser"
		]
	}
}

You can put a package.json file there with just the XO stuff

That did not work for me.
I am trying to add just sinon and assert as globals for tests, I put this in tests/package.json.
{
  "xo": {
    "global": [
      "assert",
      "sinon"
    ]
  }
}

The package.json from the projects base folder has:
  "xo": {
    "envs": [
      "node",
      "mocha"
    ]
  }

Oh, duuh, my mistake. Not sure what I was thinking... Not yet possible.
I haven't yet decided whether to do nested configs or have the top-level config be able to do file/glob specific options overrides. I'm quite busy right now, so I could use some help on this.

I was thinking the "file/glob" specific overrides, just to start the conversation on what it might look like:
For boolean flags (esnext, semicolons, and  space), just replace with a glob string.
"esnext": "**/test/*"

For arrays of strings (envs, globals - maybe plugins?) turn it into an object hash,
"envs": {
  "node": true,
  "mocha": "**/test/*"
}

See related ESLint discussion: https://github.com/eslint/eslint/issues/3611

I was thinking something more like:
{
	"xo": {
		"ignores": [
			"foo.js"
		],
		"overrides": {
			"test/**": {
				"esnext": true,
				"env": [
					"node",
					"browser"
				]
			}
	}
}

Alternatively this if we want to support multiple patterns:
{
	"xo": {
		"ignores": [
			"foo.js"
		],
		"overrides": [{
			"files": ["test/**"],
			"esnext": true,
			"env": [
				"node",
				"browser"
			]
		}]
	}
}

Thoughts?
I'm not happy about the overrides name.


blacklist keyword filter?

It seems like someone is spamming pypi quite hard with libraries related to roblox and robux.
see https://github.com/DavHau/pypi-deps-db/commit/d0a9f29fb0932029ffe854c74bce4c868c01b280
Does it make sense to implement a filter to reduce storage requirements?

i suggest a whitelist filter, derived from download stats
https://discourse.nixos.org/t/scaling-the-python-package-set-in-nixpkgs/3749/20


Style1 to patternfly in reports

Parent issue: #3139
Partials not found yet.

@PanSpagetka duplicate of #4400. Can be closed.


MWPW-129831 - moving the loading of instrumentation to, after experim…

…ent config is created (#824)
Please always provide the JIRA issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix
Test URLs:

Before: https://main--express-website--adobe.hlx.page/express/
After: https://--express-website--adobe.hlx.page/express/

Sync'ing the adobe/express repo to adobecom/express respo.


Move all the eHealth FE to common heroku account

@lymychp I need admin excess to next repos:
https://github.com/edenlabllc/nhs.admin.web
https://github.com/edenlabllc/nhs.portal.web
https://github.com/edenlabllc/uaddresses.web


Added error handling as documented by gulp-sass

https://www.npmjs.com/package/gulp-sass#basic-usage

@rburgt the build fails

@kaspereden this is also happening on the current released version

@rburgt
Crap :(

I had locally the same issue, and the problem seemed to be a wrong version of yeoman. 👎

should work now


fix: Escape displayed password with htmlSpecialChars

If an editor is using some special characters like < in their password, the backend can break.  Escaping the displayed password with String.htmlSpecialChars() will prevent this.
thanks for a quick merge @rolandschuetz

@rolandschuetz thanks for reviewing if you find some time 👍

🔔 @rolandschuetz

@gradinarufelix @rolandschuetz
As you can see i also added Neos 8 Support (in the same branch).


Are there plans to add scrips that build this with existing cores?

Are there plans to add scrips that build this with existing cores, like rocket-chip or BOOM?
I'd like to play around with simulating this vector processor, but don't have the knowledge to add the OVI interface into an existing open source core.
I'm not sure what the state of the project is, or its goals are, but having an easy way to simulate it would be quite useful.

We have done simple tests on it and preparing more exhausted tests.
The test framework uses a system verilog module to extract vector instructions and send them to VPU.  The Spike is used as ref model to compare with the VPU output.
We may integrate the VPU with existing core such as Rocket-chip, will discuss it after current test.


Can't build: /scripts/build_toolchain "too many arguments"?

Describe the bug
Unable to build_toolchain after unzipping project and installing dependencies like cmake, gcc, g++, clang...
Host configuration
Windows Subsystem for Linux
OS: Ubuntu 20.04 LTS on Windows 10 x86_64
Kernel: <IP_ADDRESS>-microsoft-standard-WSL2
CPU: Intel i5-7200U (4) @ 2.711GHz
GPU: 2ce4:00:00.0 Microsoft Corporation Device 008e
Memory: 72MiB / 6271MiB
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1 20.04.1)
g++ (Ubuntu 9.4.0-1ubuntu1 20.04.1) 9.4.0
clang version 10.0.0-4ubuntu1
Toolchain configuration
Run with no additional configuration or modifications.
cmake version 3.16.3
GNU Make 4.2.1
Tilck build configuration
2c5b642, Last Week, today's version (downloaded July 13 2023)
Type of issue (select one)

Tilck build problem

Reproduction details
Downloaded project as *.zip and unzipped project.
Moved into directory, ran ./scripts/build_toolchain
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master# ./scripts/build_toolchain
./scripts/build_toolchain: line 36: cd: too many arguments

ARCH=i386
HOST_ARCH=x86_64
GCC_TC_VER=8.4.0
ARCH_GCC_TC_VER=stable-2020.02-2

./scripts/build_toolchain: line 287: /scripts/bash_includes/script_utils: No such file or directory
./scripts/build_toolchain: line 709: /scripts/tc/pkgs/*: No such file or directory
./scripts/build_toolchain: line 686: install_packages: command not found
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master#

Expected behavior
cmake begins building of dependencies for creating the disk image built using the other scripts.
Screenshots
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master# ./scripts/cmake_run
./scripts/cmake_run: line 10: cd: too many arguments
./scripts/cmake_run: line 12: /scripts/bash_includes/script_utils: No such file or directory
[cmake_run] Using '/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master' as build directory
./scripts/cmake_run: line 105: generic_get_version_str: command not found
./scripts/cmake_run: line 106: fail_if_too_old: command not found
./scripts/cmake_run: line 110: generic_get_version_str: command not found
./scripts/cmake_run: line 111: fail_if_too_old: command not found
[cmake_run] Using 'cmake' as CMake executable
./scripts/cmake_run: line 134: cd: too many arguments
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:90 (message):
  Toolchain not found: run scripts/build_toolchain first.

-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master/CMakeFiles/CMakeOutput.log".
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master# ./scripts/build_toolchain
./scripts/build_toolchain: line 36: cd: too many arguments

ARCH=i386
HOST_ARCH=x86_64
GCC_TC_VER=8.4.0
ARCH_GCC_TC_VER=stable-2020.02-2

./scripts/build_toolchain: line 287: /scripts/bash_includes/script_utils: No such file or directory
./scripts/build_toolchain: line 709: /scripts/tc/pkgs/*: No such file or directory
./scripts/build_toolchain: line 686: install_packages: command not found
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master#

I read through that CMakeOutput.log and I wasn't able to find anything in it that helped figure out what the problem exactly is.
Additional context

@0xdeadbad @lvntky would you like to have a bit of fun with this issue? It's about putting Tilck's main directory in a path with spaces and fix all the places where quotes are not used properly. For example, in this case this:
MAIN_DIR="$(cd $SOURCE_DIR/.. && pwd)"

I guess should be fixed to be something like:
MAIN_DIR=$(cd "$SOURCE_DIR/.." && pwd)

But I'm not completely sure it will work perfectly. Maybe this way?
MAIN_DIR="$(cd \"$SOURCE_DIR/..\" && pwd)"

OR, considering the example of previous line, maybe quotes inside $() don't need to be escaped?
MAIN_DIR="$(cd "$SOURCE_DIR/.." && pwd)"

Of course, @JohnAlexCO you're welcome to propose a fix as well, if you like.

Yes i would like to :) can you assign me please

Sure, @lvntky. I assigned the issue to you.
Btw, $( ) creates a new context, so inside it quotes can be used without escaping. Check this link: https://unix.stackexchange.com/questions/118433/quoting-within-command-substitution-in-bash
Therefore, the MAIN_DIR="$(cd "$SOURCE_DIR/.." && pwd)" is the correct one. But the point of this issue is not fixing just that particular case, but testing Tilck's build with paths containing spaces and fixing also other places where paths are not quoted properly and break. I guess there are a few places in the CMake files as well where quoting is necessary.

Hi sorry for latency i had some issues with my dev computer tonight i try to open a PR :)

I spent a bit of time checking how big & tricky will be fixing this issue and after fixing 20-30 places I realized that non only it will require quite some effort to support paths with spaces, but overall the code will look uglier with all of those quotes. It's not worth. So I committed ad058400867b79633c3edc070ab4c5061a807eb2 which checks for spaces in the path and fails gracefully with an error if any are found.

Describe the bug Unable to build_toolchain after unzipping project and installing dependencies like cmake, gcc, g++, clang...
Host configuration Windows Subsystem for Linux OS: Ubuntu 20.04 LTS on Windows 10 x86_64 Kernel: <IP_ADDRESS>-microsoft-standard-WSL2 CPU: Intel i5-7200U (4) @ 2.711GHz GPU: 2ce4:00:00.0 Microsoft Corporation Device 008e Memory: 72MiB / 6271MiB
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1 20.04.1) g++ (Ubuntu 9.4.0-1ubuntu1 20.04.1) 9.4.0 clang version 10.0.0-4ubuntu1
Toolchain configuration Run with no additional configuration or modifications. cmake version 3.16.3 GNU Make 4.2.1
Tilck build configuration 2c5b642, Last Week, today's version (downloaded July 13 2023)
Type of issue (select one)

Tilck build problem

Reproduction details Downloaded project as *.zip and unzipped project. Moved into directory, ran ./scripts/build_toolchain
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master# ./scripts/build_toolchain
./scripts/build_toolchain: line 36: cd: too many arguments

ARCH=i386
HOST_ARCH=x86_64
GCC_TC_VER=8.4.0
ARCH_GCC_TC_VER=stable-2020.02-2

./scripts/build_toolchain: line 287: /scripts/bash_includes/script_utils: No such file or directory
./scripts/build_toolchain: line 709: /scripts/tc/pkgs/*: No such file or directory
./scripts/build_toolchain: line 686: install_packages: command not found
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master#

Expected behavior cmake begins building of dependencies for creating the disk image built using the other scripts.
Screenshots
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master# ./scripts/cmake_run
./scripts/cmake_run: line 10: cd: too many arguments
./scripts/cmake_run: line 12: /scripts/bash_includes/script_utils: No such file or directory
[cmake_run] Using '/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master' as build directory
./scripts/cmake_run: line 105: generic_get_version_str: command not found
./scripts/cmake_run: line 106: fail_if_too_old: command not found
./scripts/cmake_run: line 110: generic_get_version_str: command not found
./scripts/cmake_run: line 111: fail_if_too_old: command not found
[cmake_run] Using 'cmake' as CMake executable
./scripts/cmake_run: line 134: cd: too many arguments
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:90 (message):
  Toolchain not found: run scripts/build_toolchain first.

-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master/CMakeFiles/CMakeOutput.log".
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master# ./scripts/build_toolchain
./scripts/build_toolchain: line 36: cd: too many arguments

ARCH=i386
HOST_ARCH=x86_64
GCC_TC_VER=8.4.0
ARCH_GCC_TC_VER=stable-2020.02-2

./scripts/build_toolchain: line 287: /scripts/bash_includes/script_utils: No such file or directory
./scripts/build_toolchain: line 709: /scripts/tc/pkgs/*: No such file or directory
./scripts/build_toolchain: line 686: install_packages: command not found
root@LAPTOP-2GLCKP5T:/mnt/c/Users/fake pasta/Downloads/tilck-master/tilck-master#

I read through that CMakeOutput.log and I wasn't able to find anything in it that helped figure out what the problem exactly is.
Additional context

Pro tip: don't use WSL/WSL2. Just use VirtualBox for God sake.


Assigning initial values for dynamicScreenSpaceErrorDensity

i think dynamicScreenSpaceErrorDensity, dynamicScreenSpaceErrorFactor and dynamicScreenSpaceErrorHeightFalloff  should be assigned in the constructor.

Thank you so much for the pull request @lyhkop! I noticed this is your first pull request and I wanted to say welcome to the Cesium community!
The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.

:x: Missing CONTRIBUTORS.md entry.

Please add yourself to the contributors file!

:x: Missing CLA.

Please send in a Contributor License Agreement (CLA) and comment back here to let us know to check this!

:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

Thanks again for your contribution @lyhkop!
No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?
I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.


realsense2:x64-windows - rs2::pipeline::start() blocks forever while running with Realsense T265.

While using Realsense2 (for x64-windows) library in the application communicating with the Intel Realsense T265 device, a call to method rs2::pipeline::start() never returns. The problem is 100% reproducible.
Unfortunately, there's no output at all from the realsense2 lib. If there's a switch to enable debug logs, please let me know and I will paste the logs from runtime.
To solve the problem, I downloaded realsense2 source from https://github.com/IntelRealSense/librealsense/archive/v2.32.1.zip and built it with -DBUILD_WITH_TM2=ON flag. Now, it works just fine.
This is the reason why it seems that the vcpkg package is somehow broken for T265.
Please, can someone advise? Would it be possible to update the vcpkg package?

Thanks for posting this issue. This issue has been fixed. So I am closing this issue for now.


Undo and eraser don't work in pixel annotation tool

Describe the bug
When using pixel annotation, undo doesn't work. Instead of undoing the last brush stroke it undos pixel by pixel. The eraser tool (assuming that the button with a scissors icon is an eraser) doesn't do anything.
To Reproduce
Steps to reproduce the behavior:
Selecting the label and annotating, then pressing the undo button. Selecting the scissors button and applying to existing annotation.
Expected behavior

Undo of last brush stroke with undo
Erasing of previous brush stroke with the scissors tool

Environment (please complete the following information):

OS: Tried on Linux Ubuntu 20.04, MacOS Big Sur 11.3
Label Studio Version 1.01

Hope the latest version works well.

@makseq It does! Thanks!

This issue still seems to be on the latest version 1.6.0.  Any updates on this?


File local loading get "Unexpected server response (0)" (Offline - iOS)

Configuration:

Web browser and its version: Safari (14.0.3 Mobile)
Operating system and its version: iOS 14
PDF.js version: 2.2.171 (build: c8c937c2)
Is a browser extension: No

Hello, I'm encountering a weird error when trying to load a Blob saved locally (temporary stored in IndexedDB) while offline (no internet connection).
The error is:
PDF.js v2.2.171 (build: c8c937c2) Unexpected server response (0) while retrieving PDF "blob?:https://[app-domain]/[fileUrl]". undefined
Where [app-domain] is the same domain where the app frontend is served (no calls to a different origin server are done) and [fileUrl] is an Object URL created from a Blob and PDF.js viewer is loaded into an iframe:
const file = getFileFromIndexedDB();
fileUrl = encodeURIComponent(URL.createObjectURL(file));
let viewerUrl = `assets/pdfjs/web/viewer.html`;
viewerUrl += `?file=${fileUrl}`;
this.iframe.nativeElement.src = viewerUrl;

This is actually a summary of what the ng2-pdfjs-viewer library does.
By looking at the Network tab in the Debug console, it actually seems like a security issue:

it specify the Initiator is pdf.js:23477, which should be here
the xhr requests fails because "the resource requested is insecure"
"Failed to load resource" impossible to complete the operation (Error WebKitBlobResource 1)

The point is that I am using Service Worker and cache to serve the app, and the error happens when the network is actually offline (no problem on Android).
Anyone can give me some advice on possible solutions and/or other places where I can ask for suggestions?
Thank you in advance!

PDF.js version: 2.2.171 (build: c8c937c)

That version is first of all not an official release, as found at https://github.com/mozilla/pdf.js/releases, meaning that support for it was always limited.
Secondly, that version must be from 2019, which means that it's simply way too old in general; please find the supported releases at https://mozilla.github.io/pdf.js/getting_started/#download

Hello, I'm encountering a weird error when trying to load a Blob saved locally (temporary stored in IndexedDB) while offline (no internet connection).
The error is:
PDF.js v2.2.171 (build: c8c937c) Unexpected server response (0) while retrieving PDF "blob?:https://[app-domain]/[fileUrl]". undefined
Where [app-domain] is the same domain where the app frontend is served (no calls to a different origin server are done) and [fileUrl] is an Object URL created from a Blob and PDF.js viewer is loaded into an iframe:

This unfortunately sounds like a platform/browser specific bug, rather than a PDF.js one, and as such it's difficult to see that we can do anything much that here. Also, given the information provided, it's basically impossible for anyone to even reproduce this.

const file = getFileFromIndexedDB();
fileUrl = encodeURIComponent(URL.createObjectURL(file));
let viewerUrl = `assets/pdfjs/web/viewer.html`;
viewerUrl += `?file=${fileUrl}`;
this.iframe.nativeElement.src = viewerUrl;

Please note https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.

This is actually a summary of what the ng2-pdfjs-viewer library does.

Please note that since that's a different project, which we know nothing about it here, and thus it's unfortunately impossible to provide support for it here. Most likely you'll have better luck getting support directly from that project instead.

@Snuffleupagus thanks for taking time to answer.
I know it is not a PDF.js direct issue, and reproducing it it is quite complicated since it happens offline and on iOS.
Mine was more a question than an issue, and I try to write it differently: "why there should be this issue with an object url of a file when offline and requesting a url of the same domain?"
I was hoping that anyone, which is more expert than me on the xhr call that it's emitted, could give me some insights on a possible solution.
PS I did already created also an issue directly on the mentioned library (https://github.com/intbot/ng2-pdfjs-viewer/issues/129)