[BEAM-4392] Fix :beam-runners-java-fn-execution failure

Root cause:
We have wrong shadowClosure configurations in beam/sdks/java/harness/build.gradle: https://github.com/apache/beam/blob/master/sdks/java/harness/build.gradle#L27, which cause produced jar doesn't include expected dependencies.
Solution:
Change bulid rules of sdks/java/harness to make harness as a uber-jar.
r: @lukecwik @aaltay

https://github.com/apache/beam/pull/5443/commits/c17332afef1ba5de86b021ab6af7054c33e0065b is the version I wrote in in #5443. I don't know which way is right though.

Hey @apilloud , I think maybe mine is the more correct one. What do you think @lukecwik ?

Boyuan and I looked through the source code for the shadow plugin and the matching rule was specifically if its explicitly included and not explicitly excluded (with no include rules meaning to include all):
https://github.com/johnrengelman/shadow/blob/98191096a94674245c7b3e63975df9e14f67074e/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/internal/DefaultDependencyFilter.groovy#L123
So as long as there is one include rule, it disables the default include all rule.

It seems like https://github.com/apache/beam/blob/4670344e5d9137020e128979a9154ee0794a5653/sdks/java/io/google-cloud-platform/build.gradle#L27 is broken as well with the wrong shadowClosure and should instead exclude all. It is unclear what .* is actually applying to (if anything) and the exclude("io/netty") seems redundant.

Thanks for getting to the bottom of exclude(".*")! I'll rebase on this.

Hey Luck @lukecwik , commit https://github.com/apache/beam/pull/5457/commits/a0945b5d7efddb149f43f06e68eaf4f22577b2ed addressed exclude all problems.

Merged Luke's comments. @lukecwik

With this PR a bunch of dependencies are being included in jars without being relocated. For example, protobuf in sdks-java-core, or protobuf, publicsuffix, and runners-local-java in runners-direct-java. This seems to account for a good number of the remaining problems in my test.

Could you please attach more details about how you notice that protobuf in sdks-java-core didn't get relocated? I ran ./gradlew -p sdks/java/core shadowJar and checked sdks/java/core/build/libs, protobuf did get relocated. @apilloud

I ran unzip -l sdks/java/core/build/libs/beam-sdks-java-core-2.5.0-SNAPSHOT-shaded.jar and observed the content. I'm noticing now that these appear to all be on master, sorry for blaming your change. I rebased on pulling this in and something else changed along with this. I'll track it down.

LGTM! Lets merge this!
Looks like the issues I "found" are not caused by this and are present on master. The root cause of my failures was renaming my configuration to testRuntimeClasspath, which conflicts with the existing config. I fixed that and this looks good!


Even more docs

Coverage increased (+4.0%) to 92.621% when pulling ebe8ba9d62f554276f10b58a441ef90e22489b9c on even-more-docs into 04131ac5c680247077c4f2e7cfca6e0649378d23 on master.


Update dependencies

Description
This Feature will update all dependencies of the project

:tada: This issue has been resolved in version 4.10.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Error message for simulate evoked.

This is for testing the circle caching, but I thought I'd tackle an issue in the meantime.
Closes https://github.com/mne-tools/mne-python/issues/3370
See if this is good enough.

Looks like the caching somewhat working. For PRs it is using the cache of the fork of the user. For this PR it only had a subset of the datasets because I had been playing around with the cache on my other branch. This could actually be the root of our problems somehow.

[Current coverage][cc-pull] is 86.67%

Merging [#3372][cc-pull] into [master][cc-base-branch] will increase coverage by 34.43%

@@             master      #3372   diff @@
==========================================
  Files           335        335
  Lines         57628      57630       +2
  Methods           0          0
  Messages          0          0
  Branches       8721       8782      +61
==========================================
+ Hits          30105      49952   +19847
+ Misses        25694       5002   -20692
- Partials       1829       2676     +847

[][cc-pull]

Powered by Codecov. Last updated by [1a641d7...7dc158b][cc-compare]
[cc-base-branch]: https://codecov.io/gh/mne-tools/mne-python/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/mne-tools/mne-python/compare/1a641d7bb800e8170d916b0289443abc9627b7eb...7dc158b491493155dc09632b4d7f1135c99fb604
[cc-pull]: https://codecov.io/gh/mne-tools/mne-python/pull/3372?src=pr

Comment addressed.

LGTM can you add a test?

can you add a test?

Done.

thx @jaeilepp


chore(main): release 1.26.19

:robot: I have created a release beep boop
1.26.19 (2023-10-07)
Bug Fixes

scoop upgrade (#200) (1c76c26)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aidanaden/canvas-sync/releases/tag/v1.26.19 :sunflower:


Orderbook details doesn't show bid offers closest to the spread

Maybe I have something inverted? Right now internally, i use base/buying and counter/selling. But I pass it into Horizon Details for Orderbook backwards. Now i'm questioning everything about whether I got the trades correct (there are 16 different ways that the orderbook could be setup and interpreted).
Laboratory link:

https://www.stellar.org/laboratory/#explorer?resource=order_book&endpoint=details&values=eyJzZWxsaW5nX2Fzc2V0Ijp7InR5cGUiOiJuYXRpdmUiLCJjb2RlIjoiVVNEIiwiaXNzdWVyIjoiR0JBVVVBNzRINFhPUVlSU09XMlJaVUE0UUw1UEIzN1UzSlM1TkUzUlRCMkVMSlZNSUY1UkxNQUcifSwiYnV5aW5nX2Fzc2V0Ijp7InR5cGUiOiJjcmVkaXRfYWxwaGFudW00IiwiY29kZSI6IlVTRCIsImlzc3VlciI6IkdCQVVVQTc0SDRYT1FZUlNPVzJSWlVBNFFMNVBCMzdVM0pTNU5FM1JUQjJFTEpWTUlGNVJMTUFHIn19&network=test

My interpretation of this data:

https://stellarterm.com/

Duplicate of #318, I believe.  These assertions (https://github.com/stellar/horizon/blob/master/src/github.com/stellar/horizon/db2/core/order_book_summary_test.go#L33-L56) confirm the behavior at the database level, so if the issue is still occurring, perhaps it is occurring at a higher level.


Create new MetaSprite builder

Need to create a new MetaSprite builder to replace the legacy SpriteBuilder logic. This should leverage the new Image class.

This needs to be implemented in Lua and not C# since it is part of the OS and not the core framework.


No deployment add-ons are enabled, skipping deployment.

I am trying to "Generate a Static Site" using the S3 addon. The Wordpress site is currently deployed via AWS LightSail.
The export is not successful and no files arrive in the S3 bucket.
The logs are as follows:
2020-12-29 18:45:38: Starting post-deployment actions
2020-12-29 18:45:38: No deployment add-ons are enabled, skipping deployment.
2020-12-29 18:45:38: Post-processing completed
2020-12-29 18:45:38: Finished processing crawled site.
2020-12-29 18:45:32: Processing crawled site.
2020-12-29 18:45:32: Starting post-processing
2020-12-29 18:45:32: Crawling completed
2020-12-29 18:45:32: Crawling complete. 24 crawled, 2421 skipped (cached).
2020-12-29 18:45:24: 404 for URL /partnerships/page/1/
2020-12-29 18:45:03: 404 for URL /fields/page/9/
2020-12-29 18:45:03: 404 for URL /fields/page/8/
2020-12-29 18:45:03: 404 for URL /fields/page/7/
2020-12-29 18:45:03: 404 for URL /fields/page/6/
2020-12-29 18:45:03: 404 for URL /fields/page/5/
2020-12-29 18:45:03: 404 for URL /fields/page/4/
2020-12-29 18:45:03: 404 for URL /fields/page/3/
2020-12-29 18:45:03: 404 for URL /fields/page/2/
2020-12-29 18:45:03: 404 for URL /fields/page/13/
2020-12-29 18:45:03: 404 for URL /fields/page/12/
2020-12-29 18:45:03: 404 for URL /fields/page/11/
2020-12-29 18:45:02: 404 for URL /fields/page/10/
2020-12-29 18:45:02: 404 for URL /fields/page/1/
2020-12-29 18:44:50: 404 for URL /blog/page/7/
2020-12-29 18:44:50: 404 for URL /blog/page/6/
2020-12-29 18:44:50: 404 for URL /blog/page/5/
2020-12-29 18:44:50: 404 for URL /blog/page/4/
2020-12-29 18:44:50: 404 for URL /blog/page/3/
2020-12-29 18:44:50: 404 for URL /blog/page/2/
2020-12-29 18:44:50: 404 for URL /blog/page/1/
2020-12-29 18:44:49: Using CrawlCache.
2020-12-29 18:44:49: Starting to crawl detected URLs.
2020-12-29 18:44:49: Starting crawling
2020-12-29 18:44:49: URL detection completed (2445 URLs detected)
2020-12-29 18:44:49: Detection complete. 2445 URLs added to Crawl Queue.
2020-12-29 18:44:46: Starting to detect WordPress site URLs.
2020-12-29 18:44:46: Starting URL detection

The S3 add-on has not been recognised it would seem although it has been configured:
No deployment add-ons are enabled, skipping deployment.
Is there something elementary missing in my setup or is this related to one of the Bitnami Wordpress setup issues mentioned in this post?
Setup:

WP2Static v7.1.6
WP2Static Add-on: S3 Deployment v1.0

Hi @toddpla, was this just a case of the Addons screen not having that one Enabled?
There have been quite a few reports of other issues around enabling/disabling which I suspect are down to some poor SQL code/logic in the plugin on certain environments.
If it was just that toggle you needed to do, that's easier, but also a good indicator I need to improve the UX in that area.

Hi @toddpla, was this just a case of the Addons screen not having that one Enabled?
There have been quite a few reports of other issues around enabling/disabling which I suspect are down to some poor SQL code/logic in the plugin on certain environments.
If it was just that toggle you needed to do, that's easier, but also a good indicator I need to improve the UX in that area.

Hi @leonstafford, thank for the follow up.
The addon was showing as 'enabled' in the UI which was why I found it confusing.
I've now torn down that environment and I'm going to try setting it up with Digital Ocean which I gather you recommend over the Lightsail
Bitnami instance?
If it works for a DO environment then I can take a closer look at pinpointing the issue in Lightsail if you like. Although I'm not familiar with Wordpress so might take some time.
Cheers

Hi @leonstafford, thank for the follow up.
The addon was showing as 'enabled' in the UI which was why I found it confusing.
I've now torn down that environment and I'm going to try setting it up with Digital Ocean which I gather you recommend over the Lightsail
Bitnami instance?
If it works for a DO environment then I can take a closer look at pinpointing the issue in Lightsail if you like. Although I'm not familiar with Wordpress so might take some time.
Cheers

Hi @toddpla,
Completely understand. I've got a project, Lokl expected to get big release soon, providing a nice stable local WP environment. If you wait for that, may make life bit less painful.
Yeah, I had these notes on Lightsail Bitnami adjusting but not tried in some time and if this enable/disable issue is around MySQL incompatibilities, then those unlikely to help.
DO is nice and reliable (or was last time I used about a year ago), as are Vultr.com
You can also try out for free StaticWeb with your GH account and those instances are built for WP2Static usage, so known not to have that issue in them...

Hi @toddpla,
Completely understand. I've got a project, Lokl expected to get big release soon, providing a nice stable local WP environment. If you wait for that, may make life bit less painful.
Yeah, I had these notes on Lightsail Bitnami adjusting but not tried in some time and if this enable/disable issue is around MySQL incompatibilities, then those unlikely to help.
DO is nice and reliable (or was last time I used about a year ago), as are Vultr.com
You can also try out for free StaticWeb with your GH account and those instances are built for WP2Static usage, so known not to have that issue in them...


Add Monokai Pro to Themes

A new addition (and a refreshing one) :smile:

This theme is awesome, but it's a commercial one, this should be mentioned.

Sure thing, I'll get on it.


✨[Idea] - Not Package.json Only

Idea ✨
Not Package.json Only
How it should work?
Currently it needs package.json to use it, lets make it multiplatform!
What it gonna solve? Why we should ad it?
Multiplatform
How it should be implemented?

Example of usage / I have seen it in other library
No response

Try use Bun.
Example:
bun build --compile --target=bun-linux-x64 ./index.ts --outfile myapp
For more information go to the documentation.


Fix LCM notebook due to diffusers API change

The LCM scheduler was refactored sometime between diffusers 0.21.4 an 0.22.1, which broke the LCM notebook. Fixing the notebook to 0.21.4 until the notebook gets rewritten to the new scheduler API.

Closing since LCM isn't even supported until diffusers 0.22.0. I'm not sure how this worked before, but it's broken for me now. We'll need to find an alternative fix.


Replace "acceptUntrustedCertificates" environment entries by dedicated property in executor config

Situation
At test phases or at developer machines, we often have self signed certificates, which are not accepted by default trust store settings.
So every adapter has the possibility to "accept untrusted certificates"  - of course this should not be enabled for a production setup.
Problem
Every adapter got their own setup and it's own parameter keys/environment entries which must be known by admins (and so documented). This is really cumbersome.
Wanted
As an administrator I want to have a simple way to turn on/off "accept untrusted certificates" which is always same for every product executor configuration.
Solution
Instead of providing every time a new special parameter key/environment entry for "trust all / accept untrusted certificates" we provide a dedicated property inside ProductExecutorConfigSetup + getter/setter.
Inside DAUI the executor configuration which looks currently as in next figure should get another checkbox with "accept untrusted certificates".

Steps

For product executors using runtime executor configurations the custom parameter and/or the environment entry/spring value
must be removed and replaced by the property

Implement for PDS and Checkmarx
Ignore for Netsparker, will be done with #512
Ignore for Nessus, will be done with #513

DAUI must be changed to provide always a checkbox entry for "accept untrusted certificates"

Be aware about compatibility:

Old configurations do not have "acceptUntrustedCertificates" property. If not defined the default is "false" and no error has to appear

Albert Tregnaghi<EMAIL_ADDRESS>Daimler TSS GmbH, imprint

It would be simpler, if we just provide always a parameter key like adapter.trustall for all of the product executor configurations. So no checkbox or a special attribute would be necessary.


nginx Demo Files Update

@smythp pinging you on this since you've helped me out with the review (thanks!).
Based on your feedback in the other pull request for the tutorial itself (https://github.com/chainguard-dev/edu/pull/1585) I had to make a few changes here to match things up. If you have the time to pass over the changes I'm pushing here & over there, that would be awesome!! :)
I agreed with your application vs website wording, so that has been changed; I also fixed the listen directive in the nginx.conf file and added a little note for Linux users in the same file. I think it should be good to go though I may need you to confirm I've got the right file Linux file path.

Michelle's updates to the example nginx site


Proper Game Type Handling

For discussion and finding a way to fix the game type situation. Should be linked to issues in respective repos that need changes, when there is agreement on what to do make a Github project.
Quotes from Zulip (Brutus):
Just a brief summary of what I have in my head right now
1. A lot of game type information (e.g. coop or ladder) is stored as a featured mod. This is bad because this causes a lot of hardcoded queries on stuff like leaderboards (ladder vs global) or replay handling (coop) and also downloading of patches (if ladder then use faf)
[parts of this might tackled by the new rating journal tables coming with TMM]
2. Storing game modes as featured mod also causes troubles introducing coop and tutorials for other featured mods like nomads. (You would need even more hardcoded values)
3. Featured Mods don't show dependencies between each other, but there are implicit ones (right now everything is based on faf, but fafbeta and fadevelop just override all files). This also causes issues introducing nomads tutorials or nomads coop
4. The featured mods depend on FAF, but there is no versioning. A change in FAF might influence phantomx or nomads, but these can't say which version of FAF they need.
5. Replays only store file patch information of the "top" featured mod, but not of the dependencies. Therefore if a new FAF patch comes out, all replays of all non-FAF featured mods will break.
6. We don't have patch file bundling, but rather version each file itself.
7. The whole patch bundling in zips on folder level is garbage, as it aimed for an improved patcher that is not working at all.
8. Each featured mod has 2 dedicated updater tables instead of one with pointing the featured mod (but this would not be an issue if we had a proper update mechanism)
9. Moving to a better patcher completely breaks previous replays unless you build a scary compatibility layer
10.  Coop maps are not in the vault and only in the featured mod. And the client can not handle that, how would he... I think they should be in the vault but hidden
13. The current update mechanism in the api does not auto update files on the root level when patching

A list of issues that related, blocked or caused by this:
https://github.com/FAForever/downlords-faf-client/issues/1676

Related:
https://github.com/FAForever/faf-aio-replayserver/issues/10
https://github.com/FAForever/faf-aio-replayserver/issues/14
https://github.com/FAForever/faf-aio-replayserver/issues/26
Replay format will probably change, too.

Project: https://github.com/orgs/FAForever/projects/8

is solved

is also solved

12 is not an issue anymore

Nice work!


NETFramework,Version=v4.5.2

Package Manager Console Host Version <IP_ADDRESS>1
Type 'get-help NuGet' to see all available NuGet commands.
PM> Install-Package TweetinviAPI
Attempting to gather dependency information for package 'TweetinviAPI.2.0.0' with respect to project 'SocialBot', targeting '.NETFramework,Version=v4.5.2'
Attempting to resolve dependencies for package 'TweetinviAPI.2.0.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'TweetinviAPI.2.0.0'
Resolved actions to install package 'TweetinviAPI.2.0.0'
GET https://api.nuget.org/v3-flatcontainer/autofac/4.6.0/autofac.4.6.0.nupkg
OK https://api.nuget.org/v3-flatcontainer/autofac/4.6.0/autofac.4.6.0.nupkg 511ms
Installing Autofac 4.6.0.
Adding package 'Autofac.4.6.0' to folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Added package 'Autofac.4.6.0' to folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Added package 'Autofac.4.6.0' to 'packages.config'
Successfully installed 'Autofac 4.6.0' to SocialBot
GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/10.0.2/newtonsoft.json.10.0.2.nupkg
OK https://api.nuget.org/v3-flatcontainer/newtonsoft.json/10.0.2/newtonsoft.json.10.0.2.nupkg 499ms
Installing Newtonsoft.Json 10.0.2.
Adding package 'Newtonsoft.Json.10.0.2' to folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Added package 'Newtonsoft.Json.10.0.2' to folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Added package 'Newtonsoft.Json.10.0.2' to 'packages.config'
Executing script file 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages\Newtonsoft.Json.10.0.2\tools\install.ps1'
Successfully installed 'Newtonsoft.Json 10.0.2' to SocialBot
GET https://api.nuget.org/v3-flatcontainer/nito.asyncex.context/1.1.0/nito.asyncex.context.1.1.0.nupkg
OK https://api.nuget.org/v3-flatcontainer/nito.asyncex.context/1.1.0/nito.asyncex.context.1.1.0.nupkg 499ms
Installing Nito.AsyncEx.Context 1.1.0.
Install failed. Rolling back...
Package 'Nito.AsyncEx.Context.1.1.0' does not exist in project 'SocialBot'
Removed package 'Newtonsoft.Json.10.0.2' from 'packages.config'
Removed package 'Autofac.4.6.0' from 'packages.config'
Package 'Nito.AsyncEx.Context.1.1.0' does not exist in folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Removing package 'Newtonsoft.Json.10.0.2' from folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Removed package 'Newtonsoft.Json.10.0.2' from folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Removing package 'Autofac.4.6.0' from folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Removed package 'Autofac.4.6.0' from folder 'c:\users\andre\onedrive\documents\visual studio 2015\Projects\SocialBot\packages'
Install-Package : Could not install package 'Nito.AsyncEx.Context 1.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2',
but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

Install-Package TweetinviAPI

  + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
  + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

PM>

please read this
Tweetinvi 2.0 requires .NETFramework 4.6.

Hello,
As written in the documentation, 4.5.2 is no longer supported. The reason is that some project lacks default SynchronizationContext which can result in problems with using Tweetinvi and multithreading.
Therefore I decided to use AsyncEx which wraps function inside its custom SynchronizationContext.
The problem is that AsyncEx is only available for .NETStandard 1.3 and therefore I cannot provide the new version of Tweetinvi for frameworks lower than 4.6.
Cheers,
Linvi


Feature request: bare html report without javascript or css

Jenkins by default doesn't support javascript/css without disabling CSRF protection. Would be nice to have format option which works out of the box.

been requested a few times, for e.g. https://stackoverflow.com/a/57395700/143475

closing as wontfix


Handle empty responses to prevent uncaught exceptions

Looks like the API returned a weird response which caused an empty response object from request
Stacktrace:
May 05 14:50:44 : [debug] "2015-05-05T14:50:44.777Z"  'TOPIC [devices] ACTIONS [postMultiple]'
May 05 14:50:46 : 5 May 14:50:46 - [red] Uncaught Exception:
May 05 14:50:46 : 5 May 14:50:46 - TypeError: Cannot read property 'body' of undefined
May 05 14:50:46 : at new Response (/usr/local/lib/node_modules/breeze-core/node_modules/node-red-m2x/node_modules/m2x/lib/response.js:4:19)
May 05 14:50:46 : at Request._callback (/usr/local/lib/node_modules/breeze-core/node_modules/node-red-m2x/node_modules/m2x/lib/client.js:80:33)
May 05 14:50:46 : at self.callback (/usr/local/lib/node_modules/breeze-core/node_modules/request/request.js:373:22)
May 05 14:50:46 : at Request.emit (events.js:95:17)
May 05 14:50:46 : at Request.onRequestError (/usr/local/lib/node_modules/breeze-core/node_modules/request/request.js:971:8)
May 05 14:50:46 : at ClientRequest.emit (events.js:95:17)
May 05 14:50:46 : at CleartextStream.socketErrorListener (http.js:1552:9)
May 05 14:50:46 : at CleartextStream.emit (events.js:95:17)
May 05 14:50:46 : at Socket.onerror (tls.js:1456:17)
May 05 14:50:46 : at Socket.emit (events.js:117:20)

This is ready for review

Looks good to me :rabbit2:

merging :rabbit:
@grilix could you prepare/publish a release?

@stream7 I will, in a moment :)

@grilix thank you!


Add formatter

Add formatter and respective workflows

Resolved via https://github.com/QEDjl-project/QEDcore.jl/pull/16


SW-4350 Use sub-location APIs

In preparation for adding sub-locations to nurseries, replace usages of the old
"storage location" APIs with the more general "sub-location" ones.

Rename code symbols and files that included the term "storage location" to
instead use "sub-location."
StorageLocationSelector had a misleading name because it actually selected
facilities, not storage locations; rename it to FacilitySelector for clarity.
Use the sub-location API endpoints instead of the seed-bank-specific storage
location endpoints.
Use the new sub-location accession and facility payload fields.

This is purely an internal change with no user-visible effect.

This depends on the corresponding server-side change https://github.com/terraware/terraware-server/pull/1430 and the CI build of this PR is expected to fail until that PR is merged.


BLE Peripheral server mode is not working on a Pixel 6A

Expected Behavior
Happy flow transaction between App Holder and App Verifier
Actual Behavior
After installing the security update March 5th 2023 on a Pixel 6a (Android 13), BLE peripheral server mode got disrupted. The mode was operational while running security update February 5.
The Pixel 6a mDoc Holder app will indicate that an anonymous verifier is trying to request mDL elements, quickly after the Pixel 6a indicates  "An error occurred.". Please find attached the logs from both the App Holder and App Verifier apps.
Steps to Reproduce the Problem

Open the Mdoc Holder app, and in settings configure "BLE peripheral server mode" as only data retrieval method
Press "Show QR Code" to start the exchange.
Use the App Verifier to scan the QR code and start a transaction
The Pixel 6a mDoc Holder app will indicate that an anonymous verifier is trying to request mDL elements, quickly after the Pixel 6a indicates  "An error occurred."
AppHolderLog.txt
AppVerifierLog.txt

Specifications

Version:
Platform: Pixel 6A with Android 13 Security level March 5th onwards.

I don't have a Pixel 6a but I tried to reproduce this on the Pixel 7a and Pixel 7 Pro devices that I have and I was unable to reproduce it. I'm curious, does it also happen when using mdoc BLE central client mode e.g. when the holder is the central?

Also, the debugging looks a bit abbreviated, for example each line is missing the tag/module, for example
15:18:49.032  D  onServerConnectionState() - status=0 serverIf=6 device=74:93:C0:1E:9D:AB

should be
15:18:49.032  D/GattServer:  onServerConnectionState() - status=0 serverIf=6 device=74:93:C0:1E:9D:AB

What I usually do is attach all the contents in the Run tab of Android studio (it's cleared every time the application is launched). Also if you can look at logcat and see if anything out of the ordinary is there. Finally, if you can try factory resetting the device and see if the problem persists. Thanks!

I tested this on my Pixel 6a with a variety of Android levels and found:

Android 13 (Feb 5, 2023 security update) : works
Android 13 (March 5, 2023 security update) : works first time, not sequential  -
13_March5_holder.txt
verifier_log.txt
seems to work when re-flashed to a different build of the same security patch though
Android 13 (May 5, 2023 security update) : works
Android 14 (Dec 5, 2022 security update) : works
Android 14 (Jan 5, 2023 security update) : errors, logcat attached 14_Jan_5_Holder_logcat.txt
Android 14 (Feb 5, 2023 security update) : works
Android 14 (April 5, 2023 security update) : works

(I couldn't get logs from the Run tab for some reason, so I attached the logcat logs)
It looks like there may have been an issue with BLE peripheral mode related to specific security updates, but the issue is resolved in the most recent updates.

@jos2237 Could you try updating your 6a device to the May 5, 2023 security update to see if the issue resolves itself on your end as well?

Test devices:

| Android version | Build number | Android security   update | Google Play system   update
-- | -- | -- | -- | --
Pixel 2 | 11 | RP1A.201005.004.A1 | October 5, 2020 | September 1, 2020
Pixel 3A | 12 | SP2A.220505.008 | May 5, 2022 | April 1, 2023
Pixel 5 | 13 | TQ3A.230605.011 | June 5, 2023 | April 1, 2023
Pixel 6A | 13 | TQ3A.230625.010 | June 5, 2023 | May 1, 2023

Scenario:
Add a basic mDL document to the Mdoc Holder app, make sure that only the indicated data retrieval method is selected (switch off NFC / WIFI). Perform a basic exchange using "mDL for US Transportation" and give consent for all requested elements on the holder.

Transactions:

Holder device
Holder config
Verifier device
Verdict 1st
Verdict 2nd
Remarks

Pixel 6A
BLE Client
Pixel 5
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 6A
BLE Server
Pixel 5
OK
OK

Pixel 6A
BLE Client
Pixel 3A
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 6A
BLE Server
Pixel 3A
NOK
NOK
"An error   occurred" is shown simultaneously with the user consent overlay.  When "Send Data" can be pressed,   after a timeout, the verifier device indicates "Error connecting to   holder"

Pixel 6A
BLE Client
Pixel 2
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 6A
BLE Server
Pixel 2
OK
OK

Pixel 5
BLE Client
Pixel 6A
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 5
BLE Server
Pixel 6A
OK
OK

Pixel 5
BLE Client
Pixel 3A
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 5
BLE Server
Pixel 3A
NOK
NOK
"An error   occurred" is shown simultaneously with the user consent overlay. The app   crashes when the "Send Data" is pressed. After a timeout, the   verifier device indicates "An error occurred" as well.

Pixel 5
BLE Client
Pixel 2
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection." the second attempt isn't   working

Pixel 5
BLE Server
Pixel 2
OK
OK

Pixel 3A
BLE Client
Pixel 6A
NOK
NOK
After scanning the   QR, the verifier app indicates "Error connecting to holder" while   the user consent overlay is being shown on the holder app.

Pixel 3A
BLE Server
Pixel 6A
OK
OK

Pixel 3A
BLE Client
Pixel 5
NOK
NOK
After scanning the   QR, the verifier app indicates "Error connecting to holder" while   the user consent overlay is being shown on the holder app.

Pixel 3A
BLE Server
Pixel 5
OK
OK

Pixel 3A
BLE Client
Pixel 2
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 3A
BLE Server
Pixel 2
OK
OK

Pixel 2
BLE Client
Pixel 6A
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 2
BLE Server
Pixel 6A
OK
OK

Pixel 2
BLE Client
Pixel 5
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 2
BLE Server
Pixel 5
OK
OK

Pixel 2
BLE Client
Pixel 3A
OK
OK
When the option   "Close (None)" is selected on the holder app, the verifier   indicates "Error with the connection."

Pixel 2
BLE Server
Pixel 3A
OK
OK

@jos2237 Thanks for effort of putting together this table!
Looking through the data, it seems like each of the NOKs involve a Pixel 3a (as either the holder or verifier) when the holder configures BLE peripheral server mode. We can assume this is a software issue (since recent security updates fixed the 6a). Unfortunately, this likely won't get fixed on the 3a since, according to Google's Pixel help center,

The following Pixel phones no longer receive Android version updates and security updates:

Pixel 3a & Pixel 3a XL
Pixel 3 & Pixel 3 XL
Pixel 2 & Pixel 2 XL
Pixel 1 & Pixel 1 XL

I'm going to close the issue since we found the root cause of the error and just note that users with a Pixel 3a will likely continue to experience issues when using BLE peripheral mode.


An internal error occurred while type checking file filename.py: RangeError: Maximum call stack size exceeded

Environment data

Language Server version: v2020.9.114305
OS and version: MacOS 10.14.6 (18G6032)
Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.5 (pyenv)

Expected behaviour
Pylance works
Actual behaviour
Pylance crashes with error on line 1, char 1 of every file
An internal error occurred while type checking file "~/app/file.py": RangeError: Maximum call stack size exceeded
    at v (~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:453945)
    at ~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:459847
    at Map.forEach (<anonymous>)
    at Object.a [as isSameGenericClass] (~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:459804)
    at v (~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:454072)
    at v (~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:454345)
    at v (~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:454588)
    at v (~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:455104)
    at ~/.vscode/extensions/ms-python.vscode-pylance-2020.10.0/dist/pyright.bundle.js:1:459847
    at Map.forEach (<anonymous>) Pylance

Thanks for reporting the problem.
By any chance, is your project available in a public github repo? If so, I can take a look at the problem. If not, I'll need to ask that you help us narrow down the problem further. I find I can usually find the cause by doing a binary search (deleting half the code to see if it still repros, etc.).

The repo cannot be made public. What do you need from me?

There's unfortunately not enough information available in the logs for me to diagnose the problem. You'd need to narrow it to a self-contained code snippet that exhibits the problem.

This issue has been open for 30 days waiting for info so I'm going to close this. If this is still an issue, please reopen!

I have the same problem. Commenting out my code part by part led to the following minimal example:
import torch.distributions as D
normal = D.Normal(0.0, 1.0)
D.kl_divergence(normal, normal)

It is the "D.kl_divergence(normal, normal)" line that causes the problem.

I'm not able to repro a problem with this code example. There must be something specific about your configuration that I'm missing. Which version of pytorch do you have installed? Which version of Python? Which platform (Windows, Mac, Linux)?

I'm using pylance through a remote Linux machine. Here's my environment:
Local system: macOS 11.0.1
Remote system: Ubuntu 20.04.1
Pylance: 2020.12.0
Python: 3.8.5 (conda build h7579374_1)
PyTorch: 1.7.0 (conda build py3.8_cuda11.0.221_cudnn8.0.3_0)
All Pylance settings are left as default.

I also am having this same problem. I also don't have a public codebase :(
Local System: macOS 10.15.6
No remote
Pylance as part of vscode python language tools (v2020.11.371526539):
Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-11T01:11:34.018Z (3 wks ago)
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 19.6.0

Python 3.9.0 as part of poetry (1.1.4) in a virtualenv installed via pyenv.
No adjustments to pylance.

@ehossack, could you open the Output tab corresponding to Pylance and paste the output related to the error? It should start with the statement "An internal error occurred while type checking file" and include a partial stack crawl. Thanks!

Hmmm is this it?
[Error - 6:04:27 PM] An internal error occurred while type checking file "/Users/ehossack/code/<project>/<path/to/folder>/<file>.py": RangeError: Maximum call stack size exceeded
    at Object.b [as lookUpClassMember] (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:454089)
    at Be (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:296050)
    at ue (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:275120)
    at /Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:297159
    at Be (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:297619)
    at pe (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:275028)
    at /Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:322073
    at /Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:451636
    at Array.forEach (<anonymous>)
    at Object.c [as mapSubtypes] (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:451513)
[Error - 6:04:27 PM] Error performing analysis: RangeError: Maximum call stack size exceeded
    at Object.b [as lookUpClassMember] (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:454089)
    at Be (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:296050)
    at ue (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:275120)
    at /Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:297159
    at Be (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:297619)
    at pe (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:275028)
    at /Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:322073
    at /Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:451636
    at Array.forEach (<anonymous>)
    at Object.c [as mapSubtypes] (/Users/ehossack/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:451513)
[Error - 6:04:27 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603

Yes, that's it. Based on this stack crawl, this appears to be a different but than the one originally reported in this issue.

Mmm gotcha. Should I retain this info and open a new bug?

Yeah, that would be really helpful for tracking this issue. Thanks!

Cannot disclose code, but recently started seeing similar error message (it was working fine before, not sure what changed):
An internal error occurred while type checking file "file.py": RangeError: Maximum call stack size exceeded     at An (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:415174)     at kn (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:412899)     at /Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:410997     at Dn (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:411548)     at An (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:418429)     at Fn (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:414900)     at An (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:415758)     at Vn (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:428144)     at Un (/Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:427186)     at /Users/yury/.vscode/extensions/ms-python.vscode-pylance-2020.12.0/dist/pyright.bundle.js:1:299349

The next release should contain at least one recursion fix, but I am working on getting source mappings included to better make sense of these.
I think we'd still appreciate fresh issues if the stack trace matches, though, as the issue is almost certainly different than this old bug.

Issue is reproduced in:
OS: MacOS Monterey version 12.3
Python 3.11
pyright: 1.1.333
Pyright fails when checking the file with the code with xlsxwriter.WorkBook usage:
An internal error occurred while type checking file "/Users/aliakseikudrautsau/Projects/portal-backend/portal_backend/serializers/xlsx_serializer.py": RangeError: Maximum call stack size exceeded     at isTypeVar (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/types.ts:2724:17)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11734:22)     at forEach (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:647:13)     at Array.forEach (<anonymous>)     at doForEachSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:646:18)     at validateArgType (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11733:13)     at forEach (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11264:31)     at Array.forEach (<anonymous>)     at validateFunctionArgumentTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11263:32)     at validateFunctionArgumentTypesWithContext (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:10986:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8586:28)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19913:28)     at validateOverloadsWithExpandedTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8585:36)     at validateOverloadedFunctionArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8997:32)     at validateCallForOverloadedFunction (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9488:28)     at validateCallArgumentsForSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9257:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9164:44)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19907:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9161:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3852:39)     at doForEachSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:650:9)     at expandSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3842:13)     at mapSubtypesExpandTypeVars (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3881:13)     at validateCallArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9157:26)     at getTypeOfCall (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8056:36)     at getTypeOfExpression (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1014:30)     at evaluateTypesForAssignmentStatement (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15501:39)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19011:25)     at a.evaluateTypesForStatement [as timeOperation] (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/common/timing.ts:40:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:360:31)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19125:9)     at a.evaluateTypeForSubnode [as timeOperation] (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/common/timing.ts:40:20)     at evaluateAssignmentFlowNode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:359:34)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:469:37)     at preventRecursion (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:368:36)     at getTypeFromFlowNode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:468:54)     at Object.getTypeFromCodeFlow (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:1101:20)     at getFlowTypeOfReference (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19193:25)     at getTypeOfName (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4454:48)     at getTypeOfExpression (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:999:30)     at validateArgType (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11784:40)     at forEach (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11264:31)     at Array.forEach (<anonymous>)     at validateFunctionArgumentTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11263:32)     at validateFunctionArgumentTypesWithContext (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:10986:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8586:28)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19913:28)     at validateOverloadsWithExpandedTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8585:36)     at validateOverloadedFunctionArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8997:32)     at validateCallForOverloadedFunction (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9488:28)     at validateCallArgumentsForSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9257:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9164:44)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19907:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9161:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3852:39)     at doForEachSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:650:9)     at expandSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3842:13)     at mapSubtypesExpandTypeVars (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3881:13)     at validateCallArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9157:26)     at getTypeOfCall (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8056:36)     at getTypeOfExpression (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1014:30)     at evaluateTypesForAssignmentStatement (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15501:39)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19011:25)     at a.timeOperation (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/common/timing.ts:40:20) Error performing analysis: RangeError: Maximum call stack size exceeded     at isTypeVar (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/types.ts:2724:17)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11734:22)     at forEach (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:647:13)     at Array.forEach (<anonymous>)     at doForEachSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:646:18)     at validateArgType (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11733:13)     at forEach (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11264:31)     at Array.forEach (<anonymous>)     at validateFunctionArgumentTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11263:32)     at validateFunctionArgumentTypesWithContext (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:10986:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8586:28)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19913:28)     at validateOverloadsWithExpandedTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8585:36)     at validateOverloadedFunctionArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8997:32)     at validateCallForOverloadedFunction (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9488:28)     at validateCallArgumentsForSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9257:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9164:44)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19907:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9161:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3852:39)     at doForEachSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:650:9)     at expandSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3842:13)     at mapSubtypesExpandTypeVars (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3881:13)     at validateCallArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9157:26)     at getTypeOfCall (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8056:36)     at getTypeOfExpression (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1014:30)     at evaluateTypesForAssignmentStatement (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15501:39)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19011:25)     at a.evaluateTypesForStatement [as timeOperation] (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/common/timing.ts:40:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:360:31)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19125:9)     at a.evaluateTypeForSubnode [as timeOperation] (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/common/timing.ts:40:20)     at evaluateAssignmentFlowNode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:359:34)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:469:37)     at preventRecursion (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:368:36)     at getTypeFromFlowNode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:468:54)     at Object.getTypeFromCodeFlow (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/codeFlowEngine.ts:1101:20)     at getFlowTypeOfReference (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19193:25)     at getTypeOfName (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4454:48)     at getTypeOfExpression (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:999:30)     at validateArgType (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11784:40)     at forEach (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11264:31)     at Array.forEach (<anonymous>)     at validateFunctionArgumentTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11263:32)     at validateFunctionArgumentTypesWithContext (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:10986:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8586:28)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19913:28)     at validateOverloadsWithExpandedTypes (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8585:36)     at validateOverloadedFunctionArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8997:32)     at validateCallForOverloadedFunction (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9488:28)     at validateCallArgumentsForSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9257:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9164:44)     at useSpeculativeMode (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19907:20)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9161:24)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3852:39)     at doForEachSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:650:9)     at expandSubtype (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3842:13)     at mapSubtypesExpandTypeVars (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3881:13)     at validateCallArguments (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9157:26)     at getTypeOfCall (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8056:36)     at getTypeOfExpression (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1014:30)     at evaluateTypesForAssignmentStatement (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15501:39)     at callback (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19011:25)     at a.timeOperation (/Users/aliakseikudrautsau/.cache/pyright-python/1.1.333/node_modules/pyright/dist/pyright-internal/src/common/timing.ts:40:20)

@alexkudryavtsev88, the issue you're hitting is different from the one originally reported in this issue (which has been fixed). Could you please open a new issue and provide repro steps? The more detailed the better. Thanks!


lib: Add more configure flag helpers

Motivation for this change
Add with/without to match enable/disable, and add --{enable,with}-key=value versions of both.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Seems fine, I think it would play better with currying to have the bool as last argument, but since the existing enableFeature already has an order, we should keep consistency.

@Profpatsch yeah if you wanna change it later, fine with me.


.h files are assumed C++ and not C

Description
It seems .h files are assumed to be C++ headers and not C headers.
I got around the issue by symlinking my c.snippets to cpp.snippets
Steps to Reproduce
1 Only have c.snippets
2 try expanding a snippet in a header file, like test.h, it doesn't work
3 :SnippyEdit opens empty cpp.snippets
Expected Result
Expanded C snippet in header file
Actual Result
Snippet is not expanded
Additional Context
No response

Snippy relies entirely on Neovim's detection of the current filetype, so I believe Neovim treats header files as C++ files by default. After some Googling, it appears this is indeed the case. See this Reddit post for reference.
You can also refer to h: c_syntax_for_h.


error: '__device_dts_ord_DT_N_ALIAS_led0_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)

Describe the bug
A clear and concise description of what the bug is.
Does anyone meet the problem?
I try to follow https://docs.zephyrproject.org/latest/develop/getting_started/index.html to build sampe code.
And I used command
west build -p always -b qemu_riscv64 samples/basic/blinky

The result showed
In file included from /home/tjwu1217/zephyrproject/zephyr/include/zephyr/toolchain/gcc.h:92,
                 from /home/tjwu1217/zephyrproject/zephyr/include/zephyr/toolchain.h:50,
                 from /home/tjwu1217/zephyrproject/zephyr/include/zephyr/kernel_includes.h:19,
                 from /home/tjwu1217/zephyrproject/zephyr/include/zephyr/kernel.h:17,
                 from /home/tjwu1217/zephyrproject/zephyr/samples/basic/blinky/src/main.c:7:
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_N_ALIAS_led0_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
........

/home/tjwu1217/zephyrproject/zephyr/include/zephyr/devicetree.h:233:32: error: 'DT_N_ALIAS_led0_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  233 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
      |                                ^~~~~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/devicetree.h:4151:9: note: in definition of macro 'DT_CAT7'
 4151 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  332 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  367 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/samples/basic/blinky/src/main.c:20:40: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   20 | static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
      |                                        ^~~~~~~~~~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/include/zephyr/devicetree.h:233:25: note: in expansion of macro 'DT_CAT'
  233 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
      |                         ^~~~~~
/home/tjwu1217/zephyrproject/zephyr/samples/basic/blinky/src/main.c:14:19: note: in expansion of macro 'DT_ALIAS'
   14 | #define LED0_NODE DT_ALIAS(led0)
      |                   ^~~~~~~~
/home/tjwu1217/zephyrproject/zephyr/samples/basic/blinky/src/main.c:20:57: note: in expansion of macro 'LED0_NODE'
   20 | static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
      |                                                         ^~~~~~~~~
[14/129] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj

Please also mention any information which could help others to understand
the problem you're facing:

What target platform are you using? QEMU-riscv64
What have you tried to diagnose or workaround this issue? No
Is this a regression? If yes, have you been able to "git bisect" it to a
specific commit? No
...

To Reproduce
Steps to reproduce the behavior:
I try to follow https://docs.zephyrproject.org/latest/develop/getting_started/index.html to build sampe code.
when I used command
west build -p always -b qemu_riscv64 samples/basic/blinky

The error shows.
Expected behavior
A clear and concise description of what you expected to happen.
Compiler successful.
Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)
showstopper
Logs and console output
If applicable, add console logs or other types of debug information
e.g Wireshark capture or Logic analyzer capture (upload in zip archive).
copy-and-paste text and put a code fence (```) before and after, to help
explain the issue. (if unable to obtain text log, add a screenshot)

Environment (please complete the following information):

OS: Ubuntu
Toolchain Zephyr SDK 16.0
Commit SHA or Version used: 533c198

Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...

The qemu_riscv64 platform is a minimal qemu image, it does not have any device tree entries for dts, so these would need to be added though would not be visible from qemu itself.


adding options for logLevel and silent mode

Coverage decreased (-1.18%) to 98.82% when pulling c3dd09edbd32676987e80d218539cb5f370fcc41 on dlockhart:silent into 2bdd3ea6b65c0ca5ecc0048eadf4c9eecb5e2e8e on Brightspace:master.


Shell completions

Was wondering if anyone created some sort of shell completion generator which works with cmd-ts

I'd like this as well.  I wonder how well the parser can accommodate this. Can the parser be run and tell you where it had to stop so you know what it's expecting next?  Then completions can come from there.


Add parallel re-indexer implemented in C++ and provide API to be used in SOMA Axis Query for both R and Python

Is your feature request related to a problem? Please describe.
The re-indexing is needed across vars and obs coordinates is a needed feature which currently uses Pandas reindexing. An example of the main case can be found here
Unfortunately the Pandas re-indexing mechanism is not parallelizable.
Describe the solution you'd like
Based on our research the best khash is the most performant hash with some extra cost on the used memory. Additionally, Pandas use khash internally (although single threaded). Our PoC shows that a thread pool implemented in C++ can make khash speed scale linearly by up to 8 or 16 threads. Using threadpool inside tileDB core is not a choice they are not open to public. So the solution is to add the threadpool to tileDB-SOMA and then provide the right cython API that can be used by SOMA Axis Query in both python and R.
Describe alternatives you've considered
We look into a bunch of other hashing mechanism including BT hashing and the conclusion was khash is the best choice.

Unfortunately the Pandas re-indexing mechanism is not parallelizable.

It is certainly feasible to externally partition (multi-threaded) calls to Pandas.Index.get_indexer (although this is not explicitly supported by Pandas, it works fine in the current implementation).  The larger motivation is that we want a common, high-performance implementation to be accessible to both R and Python TileDB-SOMA implementations, and there is an opportunity to also reduce over-parallelization by having a single TileDB-SOMA thread pool which is used for other work (e.g., the upcoming CSR/CSC performance effort).


Lost focus (bug)

When I open the lid of my macbook pro (10.11.5) ControlPlane switch profile correctly. But sometimes I can't use my keyboard anymore! I can select every app window with the mouse but I can't interact with them. It's like I have lost control of the focus (all the app windows are grey). This is happening since I have installed ControlPlane. I attached a screenshot with the switches I currently use:

This app is perfect for me, i love it. But I need to resolve this annoying issue.
Can you help me? Thanks

I'm not sure how ControlPlane could cause this but to rule it out stop loading ControlPlane for a while and see if the problem goes away or not.

I did some testing and I find out the problem was caused by a ShellScript used to enable/disable screensaver password:
/usr/bin/osascript -e 'tell application "System Events" to set require password to wake of security preferences to true'
How is it possible?


False positives in I18nSniff

In my Preferred Languages plugin I am using some low-level WordPress functions to load some text domains.
One piece of code in it looks like this:
$translations = get_translations_for_domain( $domain );
$translation  = $translations->translate( $text );

Note: get_translations_for_domain() returns an instance of the Translations class. Its translate() method takes only one argument, the text to translate.
This code results in the following PHPCS output:
FOUND 2 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------
 2 | WARNING | Use of the "translate()" function is reserved for low-level API usage. (WordPress.WP.I18n.LowLevelTranslationFunction)
 2 | ERROR   | Missing $domain arg. (WordPress.WP.I18n.MissingArgDomain)
 2 | ERROR   | The $text arg must be a single string literal, not "$text". (WordPress.WP.I18n.NonSingularStringLiteralText)
----------------------------------------------------------------------------------------------------------------------------------------

I think the main issue here is that the sniff doesn't distinguish between translate() as a function and the method I am calling on this object. If it would do this, the errors and warnings would go all away, I think.

I'm using PHP 7.2, WPCS 0.14 (current master), and PHPCS 3.3.0

Closing as duplicate of #1266 which has already been fixed. The fix will be included in the upcoming 1.0.0 release.

Oh, I didn‘t see that one. Thanks for letting me know & already fixing it!


ISPN-4393 Separate Memcached and Hot Rod protocol decoders

https://issues.jboss.org/browse/ISPN-4393
There are still some possible refactorings but better do them after the upcoming work on non-blocking which will change how things are wired internally

Pushed, thanks !


⚠ Bofrost.at has degraded performance

In e5e8838, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1520 ms

Resolved: Bofrost.at performance has improved in 736fdca after 47 minutes.


Docs: Add .md file extension

Added .md file extension for proper rendering of the contents.

@djkoloski Just a minor edit. Hopefully it helps. 😄

Thanks for the PR! I think this makes sense to do. Sorry about the failing actions, those have hopefully been fixed with 671ecbecb37e2423bdff0a4270a2fc2094d62afc

No worries about the actions. 😄 Thanks for approving it.


Unknown environment 'matrix'

Because you are loading MathJax modules directly rather than using MathJax Components, you have to load all the needed modules yourself by hand.  In particular, you need to load the ams package code using
import 'mathjax-full/js/input/ams/AmsConfiguration.js';

Similarly, load any other packages you may need.  Listing it in the tex.packages array is not enough to cause it to be loaded.  The matrix environment is part of the ams package, which is why you are getting the message about it being undefined.
Note that you don't have to create and register the adaptor each time renderMathToImg() is called (in fact, you should not re-register the adaptor each time).  These can be global values that renderMathToImg() re-uses each time.
You haven't said which version of MathJax you are using, but 4.0.0-beta.7 includes an option in the "Show Math As" menu for generating an SVG image (if the SVG output is selected), so perhaps you can take advantage of that.


Fix base64 option

Hi, I fixed base64 option.
Please review it if you would like.

Closed the PR because it is wrong.
https://github.com/kubevault/docs/pull/79#discussion_r454233734


The type of annotations(@BeforePinpointPluginTest,@AfterPinpointPluginTest) and actual usage are different.

Prerequisites
Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.

[x] I have checked the FAQ, and issues and found no answer.

What version of pinpoint are you using?
master
Describe the bug
Annotations(@BeforePinpointPluginTest,@AfterPinpointPluginTest) cannot be used per method.

@BeforePinpointPluginTest
@AfterPinpointPluginTest
AbstractPinpointPluginTestSuite

What did you do to trigger the bug?
I faced this while writing tests for pinpoint-test. I wasn't able to test the following annotations.
Expected behavior
If my guess is correct, the annotation should be available in the same scope as @BeforeClass and @AfterClass based on JUnit4.

Isn't this a problem? 🤔 If not, I will close the issue.


Adds "S" flag to curl command

Seems composer stopped installing without the -S flag:
[03:53 PM]-[vagrant@local]-[/tmp]
$ curl -s http://getcomposer.org/installer | php

<title>302 Found</title>

302 Found

nginx

Per their website, they list curl -sS https://getcomposer.org/installer | php.
[03:54 PM]-[vagrant@local]-[/tmp]
$ curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...

Composer successfully installed to: /tmp/composer.phar
Use it: php composer.phar

This has been working fine until now, I think it's best if we use their recommended install string.

@jtreminio released in v1.3.7 on puppet forge


fix (TDI-37208): NPE when tsalseforceOutput action is upsert

Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
When schema include field which not exist in module. and it is used in upsert relation table.
Would get NPE.
What is the new behavior?
Avoid the NPE
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information:
Upsert relation table can't add junit with current salesforce test account.

Merge PR test is not reported.
Need to wait https://jira.talendforge.org/browse/DEVOPS-1413

Maybe you may try to rerun Jenkins. I know 2 ways to do it:

Rebuild button in Jenkins build page
https://ci-common.datapwn.com/job/components_pull-request_master/1069/
Update PR:
2.1. git commit --amend (change something. e.g. add space in commit message)
2.2. git push -f origin [branch]
or add one more fake commint

@gonchar-ivan
Thanks. Seems solution 1 is works. And the build is block by another problem.

@sgandon
As what I said in pull request description, I didn't find a way to use salesforce default standard fields to test upsert relation table.
Should I add some unit test and ignore  them during build. Just test them manually?
Or can I get the test salesforce account to create some test module for upsert relation ?

Pull request test result: success :star:

I have add the unit test but with "@ignore"
If we want remove "@ignore", we need to add 2 custom module to the test salesforce account:

Object Name:"TestLookupModule"(API Name: "TestLookupModule__c")
Create External ID field for "TestLookupModule":
Field Type: "TEXT"
Field Name: "ExternalID"(API Name: "ExternalID__c")
Note: Check "Set this field as the unique record identifier from an external system", when created the field
Object Name:"TestModule"(API Name: "TestModule__c")
a) Create External ID field for "TestLookupModule":
Field Type: "TEXT"
Field Name: "ExternalID"(API Name: "ExternalID__c")
Note: Check "Set this field as the unique record identifier from an external system", when created the field
b) Created lookup field for "TestModule"
Field Type: "Lookup Relationship"
Choose the related object: "TestLookupModule"
Field Name: "TestLookupModule"(API Name: "TestLookupModule__c")

Pull request test result: failure :x:

Pull request test result: success :star:

@sgandon

in my opinion, we better to use the same word for the avro design schema(which is stored and load when use the component) and avro runtime schema(at runtime, we fetch it for something like dynamic or use it like here), and talend schema, and i think main/output/reject schema should alreadys belong to avro design schema.


Any room for performance optimizations?

Hey, I've been wanting to use the library. However, when benchmarking against JSON.stringify() structured-clone gives me between 6-8 times slower performance.
I'm wondering, do you think there is any room for optimizing the performance?
Here's a single example of performance in our app (these are ms):

the structured clone algorithm does much more than just JSON so you are comparing apples to oranges but I can't see any obvious way to make it faster ... if you do, PR welcome!

https://www.npmjs.com/package/joyson


feat: prevents dirty data from increasing MySQL IO

This PR is for:

Server

Affected branches

main
v6.5

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


better support umbrella

Solves https://github.com/mirego/credo_naming/issues/23

Close in favor of https://github.com/mirego/credo_naming/pull/17


Regex.test gives returns wrong value

phantomjs> var value = '6.6', precision = 2;
undefined
phantomjs> console.log(new RegExp("(^|)(\.|\,)\d{0," + precision + "}$").test(value));
false
undefined
In all other browsers this logs true. Unfortunately this exact case is run into in one of our unit tests in our CI environment. Version 1.9.2 on OS X 10.9.1.
Thanks for looking at this.

A simplified test case that shows the error:
/(^|)\./.test('6.6')

evaluates to false in Phantomjs 1.9.15 and evaluates to true in node.

Issue still exists in PhantomJS 2.0, checked in MAC OS X 10.9.5

sunesimonsen's simplified test case works for me with development trunk:
phantomjs> /(^|)\./.test("6.6")
true

as does mwinche's original:
phantomjs> new RegExp("(^|)(\.|\,)\d{0," + 2 + "}$").test('6.6')
true

NateRedding's test case does not work ...
phantomjs> new RegExp('/^([+-])?(?:\d+\.?\d{0,8}|\d*\.?\d{0,8})$/g').test('1')
false

... but that's because it's buggy.  As written, it attempts to match the slashes and 'g' literally, and since there are ^ and $ anchors inside those, it can't match anything at all!  The corrected version works:
phantomjs> new RegExp("^([+-])?(?:\d+\.?\d{0,8}|\d*\.?\d{0,8})$", "g").test('1')
true
phantomjs> (/^([+-])?(?:\d+\.?\d{0,8}|\d*\.?\d{0,8})$/g).test('1')
true

@rajagopr If you have a regexp that you think should match, but it doesn't, please first verify that a tester like https://regex101.com/#javascript agrees with you, and then file a new bug.

@zackw : my bad, it's working as expected.


Torch Geometric compatibility

Hi,
Awesome package, I'm really liking how easy it is to plug-and-play in my training scripts.
Would it be possible to have compatibility with PyTorch geometric? (graph neural networks, etc). torch geometric uses a custom collate function in their DataLoader to deal with graph-like data, so right now putting it into the Accelerator gives this error upon iterating:
TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found <class 'torch_geometric.data.data.Data'>

Here is the relevant code: https://github.com/rusty1s/pytorch_geometric/blob/480f9d59d6d18166a5da2e2519fa9a6b33d3d4ad/torch_geometric/data/dataloader.py#L8-L70
Thanks!
Miles

Hi there! Could you share how you created the data loader that returned this error? Looking at the code, Accelerate should honor the special data collator (it keeps the one in the data loader you pass to prepare_data_loader). You might lose the attributes follow_batch and exclude_keys but that's something we can easily add in Accelerate.

Sorry, it turns out I made a really dumb mistake (unrelated to accelerate). Looks like it already works well! Nice job.
Sorry for posting the issue!
Cheers,
Miles


[Bug] Undo sometimes undoes multiple changes

When testing and drawing multiple strokes, pressing CTRL+Z somestimes undoes more than just the last stroke. This may be placebo, but this SEEMED to happen more often when I drew longer strokes (sometimes leading to a separate bug where if you draw off of canvas and it scrolls down, even if you let go of left-click, it still draws until you press left click again).
Firefox on Windows

I haven't fully investigated this, but my first guess is that it's related to debouncing the CTRL+Z so that each press is only registered once.  Thanks for reporting.


SIL: add a utility which can manage per-block bitfields and flags efficiently.

The BasicBlockBitfield utility adds a custom bitfield to a function's basic blocks.
It can be used by transforms to store temporary flags or tiny values per basic block.
It is very efficient: no memory allocation is needed, no hash set or map is needed for lookup and there is no initialization cost (in contrast to BasicBlockData which needs to iterate over all blocks at initialization).

I don't agree with the concern of exceeding 64-bytes (for several reasons). But we can discuss this offline.
Nevertheless, using TinyPtrVector for the arguments is a great idea!

I don't agree with the concern of exceeding 64-bytes (for several reasons). But we can discuss this offline.
Nevertheless, using TinyPtrVector for the arguments is a great idea!

@swift-ci test

@swift-ci test

@atrick I pushed a new version.
I'll change the argument list to a TinyPtrVector in a separate PR.

@atrick I pushed a new version.
I'll change the argument list to a TinyPtrVector in a separate PR.

So @eeckstein informed me that SILBasicBlock was already just over a cache line, and cache alignment doesn't matter because we're using the bump pointer allocator (I was thinking of issues we had with LLVM IR, especially MachineInstr)

So @eeckstein informed me that SILBasicBlock was already just over a cache line, and cache alignment doesn't matter because we're using the bump pointer allocator (I was thinking of issues we had with LLVM IR, especially MachineInstr)


Handle select tag initialization

This allows initial-value directive to handle select tags by picking up the value of the selected option...

As it is in https://github.com/glaucocustodio/angular-initial-value/blob/master/test/example.html, this directive already support select tag, I just tested again and it worked.

will check that out and let you know


Fix Android app download warning

This pull request adds a warning message displayed on the website regarding the unavailability of the Android app for download.
The first commit adds more info about how to setup the project.

LGTM!

preview works https://6723d0d4c414c8169d234000--bertytech.netlify.app/


Linking event constructors

The [Constructor] bit of an Event class needs to link to https://dom.spec.whatwg.org/#concept-event-constructor. I believe there's no event that requires its own constructor at the moment. It's however not entirely possible to do this through Bikeshed I think.
Maybe there should be a way to claim any inherited classes as well from a constructor definition?

Okay, so it looks like I can reliably tell when an interface inherits from Event. You're saying that, in this circumstance, the associated constructor should auto-link to the link you provided, for all interfaces?
One problem I see right now is that CustomEvent has its own custom constructor, right there in DOM. ^_^

CustomEvent does not? Its constructor algorithm is the one I pointed to. One problem might be that you need the entire chain to end up at Event. E.g., MouseEvent inherits from UIEvent.

CustomEvent does not? Its constructor algorithm is the one I pointed to.

Ah, I was looking at the additional "detail" attribute, but didn't read the algo to see that that's automatically handled.

One problem might be that you need the entire chain to end up at Event. E.g., MouseEvent inherits from UIEvent.

Oh, hm, I don't track inheritance like that right now, so it won't work reliably; I can just extract inheritance information from a single IDL block.  I'll put this on the back burner for now, and first look at possibly tracking inheritance.


Extension hover shows on mousedown

Install rust-lang.rust-analyzer
Open a rust project

Hold mousedown on the rust analyzer status bar contribution. 🐛 The hover appears and disappears when the mouse is released.

@meganrogge it seems like you added these listeners to prevent flickering from happening in the status bar. Maybe this is not required anymore? It seems like this is causing the flickering to happen currently.
cc @bpasero as he added the if condition

I added those listeners so that the tooltip is shown and hidden when keyboard focus moves into / out of status bar items.
I just tested and those listeners are no longer needed because of work you've done to support showing the tooltip for items around the workbench when they're focused with the keyboard @benibenj.


Docs(web-react): Add Icons demo #DS-900

Add Components and Icons tabs
Create demo page for icons

Description

Additional context

Issue reference

Before submitting the PR, please make sure you do the following

[ ] Read the Contributing Guidelines.
[ ] Follow the PR Title/Commit Message Convention.
[ ] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

coverage: 69.502% (-0.9%) from 70.438% when pulling d9782f08b0f4b62bad3a1c1a2f775c888b1a9d59 on docs/DS-900-icon-demo into 8b0255f7522b260b2321af68146b8b94063569b3 on main.