"atlas" CLI reports "You are not authorized for this resource" when "mongocli atlas" doe snot

Describe the bug
A clear and concise description of the bug.
As requested, I followed the migration steps for using "atlas" rather than "mongocli atlas". However, I'm not getting the "You are not authorized for this resource" errors for the same configuration, but running the same comment through "mongocli atlas" works. I have "organizational" owner" rights.
To Reproduce
Using mongocli
$ mongocli iam projects list | grep "\"id\":" | wc -l
      11

Using atlas
$ atlas projects list
Error: GET https://cloud.mongodb.com/api/atlas/v1.0/groups?itemsPerPage=100&pageNum=1: 401 (request "") You are not authorized for this resource.

Expected behavior
Please explain what you expected to happen.
Screenshots
If possible, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Mac OS 12.3.1 M1Pro
MongoCLI version 1.24.1
Atlas cli version1.0.2
Ops Manager Version: N/A

Additional context
Add any other context about the problem here.

Hi @SteveH-US before I look into possible errors on our side can you please confirm that the config files look a like?
to open the config file for mongocli you can do mongocli config edit for atlas you can do vi ~/Library/Application\ Support/atlascli/config.toml

Also to confirm, was the migration relying on the automated atlas cli config file creation or was this related to an automated pipeline that required manual intervention for the file?

@gssbzn
Here's my config file with the keys redacted
mongosh_path = "/Users/steveh_1/.mongodb/mongosh"
skip_update_check = true

[default]
  mongosh_path = "/opt/homebrew/bin/mongosh"
  org_id = "***"
  output = "json"
  private_api_key = "***"
  project_id = "***"
  public_api_key = "***"
  service = "cloud"

[mom_mia]
  ops_manager_url = "https://mama.mia.ulti.io/"
  organization_id = "***"
  private_api_key = "***"
  project_id = "***"
  public_api_key = "***"
  service = "ops-manager"

I followed the migration instructions. It appears that the atlas config init command reused the mongocli config file that was there already.

There appears to be a bug in the way the atlas cli handles the init. It appears to copy the mongocli configuration as is when running atlas config init. I say this because when I rename the existing file, "~/Library/Application\ Support/atlascli/config.toml" and run 'atlas config init' again, I am able to get the expected results back. So, it appears that a mongocli configuration it copied, the one quoted above, causes the said erroneous error.


How to solve cuckoo cycle?

Hi, thanks for the great work you've done, but I have a question. What is the easiness param in CuckooContext?How can i use prefix and max_nonce from CyckooCycle?

This code as been adapted from source, I have no knowledge in login challenges and I struggled to understand it when I implemented it. To be honest I don't know, if you find anything relevant on the web I would be interesting because I never found anything relevant when I re-implemented it.
I think the original source is the open source BigWorld we have here : https://github.com/v2v3v4/BigWorld-Engine-14.4.1

This code as been adapted from source, I have no knowledge in login challenges and I struggled to understand it when I implemented it. To be honest I don't know, if you find anything relevant on the web I would be interesting because I never found anything relevant when I re-implemented it.
I think the original source is the open source BigWorld we have here : https://github.com/v2v3v4/BigWorld-Engine-14.4.1 More exactly : https://github.com/v2v3v4/BigWorld-Engine-14.4.1/blob/4389085c8ce35cff887a4cc18fc47d1133d89ffb/programming/bigworld/lib/connection/cuckoo_cycle_login_challenge_factory.cpp

Yeah, I've seen that realization. After reversing the application, it seems that even the constants are correct, however I don't know how this response is encrypted as the implementation outputs 168 bytes (42 uint32 elements), however the client response to the server contains a minimum of 440 bytes (not including header)

So you're interested in understanding how the login challenge is exchanged between the client and the server? Because there is some inherent overhead due to the network protocol, and the packet does not contain only the raw response.
https://github.com/mindstorm38/wg-toolkit-rs/blob/master/wg-toolkit/src/net/element/login.rs#L63-L71
Don't know if that's what you're searching

So you're interested in understanding how the login challenge is exchanged between the client and the server? Because there is some inherent overhead due to the network protocol, and the packet does not contain only the raw response. https://github.com/mindstorm38/wg-toolkit-rs/blob/master/wg-toolkit/src/net/element/login.rs#L63-L71
Don't know if that's what you're searching

I figured it out, after sending LoginRequest the server asks for cuckoo_cycle, however how the cuckoo_cycle response is encoded I don't know

After cuckoo cycle response it's contains extra 272 bytes of data, i don't know what is it

I think this is something I don't understand either... to be honest.

I think this is something I don't understand either... to be honest. At least I don't remember because I didn't touch this project for a year, I think I'll go back to it soon by the way.

Yeah, I think so, too. This implementation of https://github.com/v2v3v4/BigWorld-Engine-14.4.1/tree/main doesn't contain any additional data, at least I couldn't find any, so apparently I'll have to reverse-engineer wot itself


Add RetrievePartial method to allow resume of a partially transferred file

Add RetrievePartial method to allow resume of a partially transferred file

NOTE: I did not add any test for this new method.

Thank you. Can you describe the use case for this method? I am tentative to add additional methods to the API to keep as it 1-to-1 w/ the ftp commands as I can.

@muirmanders sure. This is used in case you have a file partially downloaded (imagine network connection being interrupted in a previous download attempt), and you want to continue the download from a specific offset.
It exposes transferFromOffset, which uses internally the FTP REST command. Rather than exposing the REST API directly, I thought that exposing the functionality as in this PR is more apt.

I'm trying to keep the API simple, so I don't think this feature warrants its own method.
One other possibility is to make Retrieve check if the io.Writer is an io.Seeker, and if so "resume" the download based on the current offset. This way if you wanted to resume a previous download attempt, you could seek your *os.File to the end and then invoke Retrieve.

That is an implicit behavior, unless you make the type explicitly io.SeekerWriter. In both cases (checking at run-time if the interface io.Seeker is satisfied or explicitly using io.SeekerWriter) you would make a compromise.
I retire the PR, thanks for your feedback.


【bug】It stuck when you turn on the 500Mhz mode

I just stuck when I started 'Carton fighter W' in 500Mhz mode, I can only start it normally in 444Mhz mode or lower.

Are you using ioplus.skprx? Switch back to kuio.skprx and see.
I had almost the same issue with ys viii, but mine was the whole game gets stuck on the splash screen regardless the clock. It's fixed once I switched back to kuio.

I had the same issue with YS VIII as masterrite mentioned. Although i was playing the maidump jp version. Removing ioplus from tai config fixed mine too.

LOLIcon does not need ioPlus nor kuio, LOLIcon runs in the kernel. Please refer to the release notes of the latest prerelease.

Sorry. I didnt know it doesnt have dependency for io. Autoplugin had it bundled with the installation of LOLIcon.


Login Backend Connection

Hey @Coderlearner41, Here is the requirements:

pull the main branch into yours
connect the frontend login with @Abijith27UK backend(when you will pull main into yours, backend code will be available to you locally)
once it's done create a pull request to the main
checkout flutter API connection library and use is

@Coderlearner41 kindy take over!

Thanks, guys, this issue has been resolved


Host this app on windows

Hi, I really need to run this app on windows - will be used to remotely control OBS in local LAN without an internet connection.
I installed Node.JS for Windows and did all the commands like npm build, but unfortunately I don't know, how to make it run on localhost.
Can you help me with that?
Thank you very much"

You need to host it from a web server, I'm using "nginx" installed on a raspberry pi but I'm pretty sure nginx is available for windows too.
Build the application, then either move the files to the location the web server serves from (entirely depends on your configuration and the server you use) or configure the web server to look for the files in the directory where you built the tablet remote app.
Sorry, can't give you a step by step guide since I've not used nginx on windows, I'm serving my own tablet remote from a spare raspberry pi.
Also if you don't have internet access, you might want to look at this pull request https://github.com/t2t2/obs-tablet-remote/pull/16 since some of the fonts are hosted internet side, I don't know if the tablet remote app will even work on a lan with no internet connection (I implemented the changes outlined in that pull request to my own "offline" version).


allow translating custom range in datepicker

refs: #3384
Problem: missing translated key in datepicker file for Custom Range.
Solution: get the translated string from crud lang file (was already there)

A new inspection was created.

The inspection completed: No new issues

Merged, thanks!


OMICs Retreat Introduction

[ ] Please prepare a short introduction to your team.
[x] please coordinate amongst yourselves who will present (@ESapenaVentura, @MightyAx)
[ ] If you plan to use slides, please send them to the organising committee by 13/9

The format of the presentation will be:

3 minutes talk
1 minute for q&a

Leaving for @ESapenaVentura


Filter out null files for multiple file uploads.

Fixes laravel/framework#12288
Includes test case and patch.

Please send to 5.2.


Refactor timeline macro for compatibility with Jinja2 templates

What is the context of this PR?
#3171 ... In timeline component, items is replaced with items_timeline as items is a built in function for looping dictionaries in python
How to review this PR

Test the changes in Design system
Pull the latest PR (link) which is in review. Follow the updated readme.
Update the macro and test it in Flask.

Checklist
This needs to be completed by the person raising the PR.

[x] I have selected the correct Assignee
[x] I have linked the correct Issue

I am not sure I understand what has been changed? Looks like a parameter name has been changed from items to items_timeline but I didn't see any .items() functions?

oh sorry I wasn't clear. Items is a reserved name mainly used as a built-in function for dictionary data structure. So when trying to iterate over this parameter named 'items', we get this error 'builtin_function_or_method' object is not iterable.

Can this information be put into the description

Can we have a "breaking changes" section added to the description that tells the user how to update their service to fix the breaking change we have introduced


Update to Node SASS 2.0.1

Looks like both grunt and gulp sass have updated their version of node-sass. Could you please update the loader?

#51


Allow all tests to run with --update-goldens.

Previously benchmark_test.dart would terminate flutter test if all tests are run with --update-goldens.
It is important for the Dart team to be able to run all tests this way to avoid maintaining golden files.

Actually we can just implement this in our 3xH patch.


Contracts flag - monotonic chain support

Closes #421
Description
Adds contract flag support to monotonic chain ( also probably other chain id's )

For contributor use:

[X] Targeted PR against master branch
[X] Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
[X] Code follows the standards mentioned here
[ ] Updated relevant documentation
[X] Re-reviewed Files changed in the GitHub PR explorer
[x] Added appropriate labels

@bluesign Thanks for the refactor :100: I didn't realize that I had made the chain hardcoded

I will add some tests or extend current test with simple addresses.

Nice! 👍
Yeah, it would be good to extend that test and run it for each chain. Currently it is just running for the "Emulator chain".
Thank you!

Updated test to include monotonic chain ( mainnet / testnet is used with remote debugger, basically RN nodes ) so they will already have contracts deployed.

Codecov Report

Merging #427 (5c6494b) into master (599441d) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #427      +/-   ##
==========================================
- Coverage   54.45%   54.44%   -0.02%
==========================================
  Files          27       27
  Lines        3509     3576      +67
==========================================
+ Hits         1911     1947      +36
- Misses       1444     1469      +25
- Partials      154      160       +6

Flag
Coverage Δ

unittests
54.44% <100.00%> (-0.02%)
:arrow_down:

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

Impacted Files
Coverage Δ

emulator/contracts.go
73.33% <100.00%> (-0.58%)
:arrow_down:

server/server.go
54.47% <100.00%> (-4.03%)
:arrow_down:

... and 3 files with indirect coverage changes


Request: configureable exhaustion

The exhaustion from jumping and attacking is too excessive for my playstyle. It would be great if it was configurable

Feature has been implemented. Will be included in the next update


Add indexing workflow

Description
Adding a workflow to run indexing with the following options:

manually
by schedule (weekly, on Saturdays)

Related Issue

https://github.com/AdobeDocs/commerce-php/pull/112
https://github.com/AdobeDocs/commerce-admin-developer/pull/44
https://github.com/AdobeDocs/commerce-cloud-tools/pull/35
https://github.com/AdobeDocs/commerce-contributor/pull/65
https://github.com/AdobeDocs/commerce-events/pull/99
https://github.com/AdobeDocs/commerce-frontend-core/pull/86
https://github.com/AdobeDocs/commerce-marketplace/pull/70
https://github.com/AdobeDocs/commerce-pwa-studio/pull/166
https://github.com/AdobeDocs/commerce-services/pull/38
https://github.com/AdobeDocs/commerce-testing/pull/32
https://github.com/AdobeDocs/commerce-webapi/pull/96
https://github.com/AdobeDocs/graphql-mesh-gateway/pull/102

Motivation and Context
Proper indexing automation.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

@jeff-matthews, please add an org secret AIO_ALGOLIA_WRITE_API_KEY for this project.

FYYI - This repo hasn't been indexed before. At least, I don't see a commerce-xd-kits index in Algolia.

I'm adding indexing because it's in [search-indices|https://github.com/AdobeDocs/search-indices/blob/main/product-index-map.json#L102].

@jeff-matthews, please add an org secret AIO_ALGOLIA_WRITE_API_KEY for this project.

Done @dshevtsov


Lua: autogenerate some more packages

Motivation for this change
autogenerate some more packages
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@7c6f434c feel free to launch the darwin build.
There are still lua-zlib/lua-cjson/luaexpat (from https://github.com/NixOS/nixpkgs/pull/55263) that I would like to generate but there might be problems with these ones so I might do them in smaller chunks.

@GrahamcOfBorg build luaPackages.luaevent luaPackages.luacheck luaPackages.luabitop luaPackages.lpty luaPackages.lua-iconv

seems like it timed out.

OK, Git on macOS is not my hill to die on, the non-git-source packages seem to work.


Misconfigured Node.js workflow

Node.js workflow is building twice which isn't necessary: https://github.com/abhinavsri360/GDSC-Lead-Map/runs/2321242275?check_suite_focus=true
It is also set to deploy on pull requests which means if an incorrect PR is sent, it will deploy the incorrect version:
https://github.com/abhinavsri360/GDSC-Lead-Map/blob/ff80168b8d42cf434dba9c03ab4aa3ac740d8eaf/.github/workflows/node.js.yml#L6-L10
Node.js 15 is used:
https://github.com/abhinavsri360/GDSC-Lead-Map/blob/ff80168b8d42cf434dba9c03ab4aa3ac740d8eaf/.github/workflows/node.js.yml#L19
But Chokidar 2 will break on node v14+: https://github.com/abhinavsri360/GDSC-Lead-Map/runs/2321242275?check_suite_focus=true#step:4:5
Better to use 12 instead.

@aravindvnair99
I just thought about
pull_request:
  branches: [main]

Don't you think this will run the flow whenever a new PR is made(for the changes made by the new PR, just like netlify does)?

@aravindvnair99
I just thought about
pull_request:
  branches: [main]

Don't you think this will run the flow whenever a new PR is made(for the changes made by the new PR, just like netlify does)?

@abhinavsri360 It will for any PRs to main branch. But you are deploying to a production server, unlike Netlify which is deploying to a development server.

Ohh got it!
Thanks 🚀


Update instance mode vars for clarity/consistency

For lmccart/p5.js#473
The exact terminology here is still open for discussion as far as I am concerned. I just wanted to take some action to make sure to keep the ball rolling.

Just a little doubt for curiosity's sake. Is keyword new necessary for instantiating a p5?

the new makes it clear we're creating a new instance.

So keyword new is indeed redundant. I'm asking that b/c @ https://github.com/lmccart/p5.js/wiki/Instantiation-Cases, I find instantiations like this: p5(s);.
However, p5(node, s); is clearly wrong and should be corrected!

thank you, you may update and add the new keyword to this page

I dunno where that section lies within GitHub!  Perhaps I should rename sketch to p too like @wxactly's?

yeah that's a good idea

All done!  :D


How to run fuel-download on Windows?

I'm trying to run "fuel-download mnist" using Cygwin. I set my environment path variable FUEL_DATA_PATH to C:\Users\Me\Documents\fuel_data. When I run "fuel-download mnist", the error I get is
Me@Me-PC /c/Users/Me/Documents/fuel_data
$ /cygdrive/c/Users/Me/Anaconda/Scripts/fuel-download mnist
C:\Users\Me\Anaconda\python.exe: can't open file '/cygdrive/c/Users/Me/Anaconda/Scripts/fuel-download': [Errno 2] No such file or directory
Am I missing something obvious? Is there an easier way to do this on Windows?

Sounds like a Cygwin/Python problem. Anaconda's Python is probably expecting Windows-native paths and doesn't know what the heck to do with a /cygdrive path.
(And Windows is, in general, barely supported, I would say. None of the developers use it, there's no buildbot for it. Patches are welcome but it's a fringe concern from my point of view.)


feat: add typeorm support ^0.3.0

Since there is no response from #34 I've pulled the changes from @dominicbachmann and rebased with master, the tests are passing also. Also, I've upgraded the MySQL client version to 2 to test with MySQL v8 and it's working.

@bashleigh would love to see typeorm 0.3.0 support added to this lib.
Thanks!

@rpvsilva you haven't published your fork have you?

After looking more closely at this PR, I've decided to submit a different approach to this upgrade.
Please see https://github.com/bashleigh/typeorm-polymorphic/pull/38 which explains the motivation.

Closing PR because of #38


Certificates: Parameterize the certs validity

Add a variable certs_validity_period_hours to parameterize the certs
validity in hours. Defaults to 8760 hours, which is 1 year.
Related PR https://github.com/kinvolk/terraform-render-bootkube/pull/22

Once https://github.com/kinvolk/terraform-render-bootkube/pull/22 is merged I will change the commit to match the corresponding merge commit!


gfortran now comes via gcc

:-)

Thanks!

I tend to recommend Anaconda these days; brew's Python stuff just seems too fragile.


docs: Update the url for offline mode

The old url just lead to the main page

Thanks, @Matthieu-LAURENT39!


Issue while compiling for Android

Hi @nikli2009
The plugin works flawlessly on iOS but it does not compile on Android for my app.
The minSdkVersion in my app is 23 and the app has been migrated to support AndroidX
android.useAndroidX=true
android.enableJetifier=true

My Flutter version is 1.9.1+hotfix.6
The error that I got while compiling the app on Android was this:
/Users/iNima/.pub-cache/hosted/pub.dartlang.org/flutter_audio_recorder-0.4.8/android/src/main/java/com/zeno/flutter_audio_recorder/FlutterAudioRecorderPlugin.java:10: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
                             ^
  symbol:   class ActivityCompat
  location: package android.support.v4.app
/Users/iNima/.pub-cache/hosted/pub.dartlang.org/flutter_audio_recorder-0.4.8/android/src/main/java/com/zeno/flutter_audio_recorder/FlutterAudioRecorderPlugin.java:11: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
                                 ^
/Users/iNima/.pub-cache/hosted/pub.dartlang.org/flutter_audio_recorder-0.4.8/android/src/main/java/com/zeno/flutter_audio_recorder/FlutterAudioRecorderPlugin.java:62: error: cannot find symbol
    return ContextCompat.checkSelfPermission(registrar.context(), Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED;
           ^
  symbol:   variable ContextCompat
  location: class FlutterAudioRecorderPlugin
/Users/iNima/.pub-cache/hosted/pub.dartlang.org/flutter_audio_recorder-0.4.8/android/src/main/java/com/zeno/flutter_audio_recorder/FlutterAudioRecorderPlugin.java:104: error: cannot find symbol
    ActivityCompat.requestPermissions(registrar.activity(), new String[]{Manifest.permission.RECORD_AUDIO}, MY_PERMISSIONS_REQUEST_RECORD_AUDIO);
    ^
  symbol:   variable ActivityCompat
  location: class FlutterAudioRecorderPlugin
4 errors
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************

Could you please check this issue as well?
Thanks
Nima

Hi @iNima,
This plugin hasn't been migrated to AndroidX at this point, alternatively I think we could set enableJetifier to false in our projects to let Gradle still use the old Android support libs to compile this plugin(or any other plugin that hasn't provide AndroidX support yet).
android.useAndroidX=true
android.enableJetifier=false

We will eventually migrate this plugin to AndroidX, and then update the major version of this plugin.
Hope this workaround works for you :)

Hi @nikli2009
Unfortunately, setting enableJetifier to false didn't work for me.
By doing that our app receives this error:
Gradle task assembleDebug failed with exit code 1
Based on this document the reason for setting enableJetifier to true is to be able to add plugins that have not yet migrated to AndroidX.
https://flutter.dev/docs/development/androidx-migration#what-if-my-app-is-migrated-to-androidx-but-not-all-of-the-plugins-i-use
So, now even I think the error messages I sent you in the first post might not be related to AndroidX at all.
It seems that it's related to permission issues. Although I saw you have done some changes in the Android side related to the permission in 0.4.9, it still shows me the same error message as the first post above.
I hope this issue can be fixed otherwise I need to use another plugin and write everything from scratch related to the audio recording part of the app.
Please let me know if I need to test it in another way.
Thanks.

Hi @iNima , my apology for all the troubles.
To reproduce the issue, I was using 1.9.1+hotfix.6 to create a new flutter application with AndroidX support enabled (using Android Studio), then add this plugin, then run flutter build apk, the issue was reproduced. and then after that I set ** enableJetifier** to false to make this finally works.

Could you provide your gradle version and would be better if paste build.gradle(the one under ./Android folder), with these information I can do more troubleshooting.

And it will be better if you could create a new flutter application just for testing and trying to integrate this plugin. If it doesn't works, please let me know.

(If all of these doesn't work, we will add AndroidX support later.)

Hi @iNima Just released AndroidX version(0.5.0), hope this build works for you.
In AndroidX project, use 0.5.x
In non-AndroidX project, use 0.4.9
ps: As it's beta version(0.x.x), the middle number will be treated as Major Version, so for non-AndroidX project, it is still safe if marked the version ^0.4.9 in yaml. It won't automatically upgrade to 0.5.x.

Hi @nikli2009
Thanks a lot for this change.
It works now in an AndroidX enabled project.
I found two more issues which I think would be better to create separate issue cards for them.
I think this issue card can be closed.
Thanks
Nima


Exporting failed. Will retry the request after interval

We are getting this error "Exporting failed. Will retry the request after interval" very randomly on random servers for short duration. Due to this error, the data stopped reporting for that duration. We have checked the network logs and flow but there is no issue with that.
Can anyone help on this.

Please open a support case as this might be an issue with your backend. Please add to the support ticket a description of your environment, such as your version of the collector used, and the destination information (Splunk Cloud, Splunk Observability).


Doesn't run under WinRM

Brief description of your issue
WinGet can't be run on a WinRM session. The UWP magic doesn't seem to understand such a setup and so there are various problems:

The winget command can't be found, despite the WindowsApps directory being in $PATH;
Access is denied ("The system cannot execute the specified program.") when providing a full path to the executable.

I'm working on a Chef cookbook which adds WinGet as a custom resource (so it can install packages) but at present this can't be smoothly tested because the call to the winget executable always fails.
Steps to reproduce

Use Enter-PSSession, vagrant powershell or the like to open a remote PowerShell session to a host with WinGet installed.
Try to run WinGet.

Expected behavior

WinGet prints its help output as it does when run in a local terminal

Actual behavior
Typical example output on an interactive session on a local Windows VM created by Vagrant:
[<IP_ADDRESS>]: PS C:\Users\vagrant\Documents> winget
Program 'winget.exe' failed to run: A specified logon session does not exist. It may already have been terminated.
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

[<IP_ADDRESS>]: PS C:\Users\vagrant\Documents> cd $Env:LOCALAPPDATA/Microsoft/WindowsApps
[<IP_ADDRESS>]: PS C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps> ls

    Directory: C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       20/05/2020     22:57                Backup
d-----       20/05/2020     22:57                Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
d-----       06/02/2020     20:09                Microsoft.MicrosoftEdge_8wekyb3d8bbwe
d-----       20/05/2020     18:10                Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
-a---l       20/05/2020     18:10              0 GameBarElevatedFT_Alias.exe
-a---l       06/02/2020     20:09              0 MicrosoftEdge.exe
-a---l       20/05/2020     22:57              0 python.exe
-a---l       20/05/2020     22:57              0 python3.exe
-a---l       20/05/2020     22:57              0 winget.exe

[<IP_ADDRESS>]: PS C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps> .\winget.exe
Program 'winget.exe' failed to run: A specified logon session does not exist. It may already have been terminated.
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

[<IP_ADDRESS>]: PS C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps>

Environment
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.18363.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Links:
  Privacy Statement: https://aka.ms/winget-privacy
  License agreement: https://aka.ms/winget-license
  3rd Party Notices: https://aka.ms/winget-3rdPartyNotice
  Homepage:          https://aka.ms/winget

Any other software?

WinRM

This is a really important one to the community that does Windows  automation. Not having remote command execution over WinRM will turn away the PowerShell community and they would actively discourage it's use. Windows Updates has a similar issue and the workarounds to their issue is really ugly. It's not something we want to deal with again.

This is a huge blocker.
Does it run over ssh? Even if it does, WinRM needs to work flawlessly too. Not every windows tool can utilize ssh for remoting yet.

It is bad enough that the feature has no Powershell Powershell cmdlets,  but not working over remoting?
Package management without remoting just makes this toil even less useful.

I was wondering if it would run under WinRM. I was thinking about using Ansible with WinRM to use winget...

OMG, i see thats a next to msix packaging tool software that cannot work from winrm.
At last there is a choco but this schould be fixed a months ago.

This is still an issue and should be a higher priority. Failure to run over a WSMan remoting session is a huge problem.

This also fails in an SSH session.  The system cannot execute the specified program.

And this fails using PSExec with an error that the file can't be found. Even when using the full path winget.exe.

What an utter disappointment; going through all kinds of hoops to get winget to run on Server2019, only to find out that it doesn't even run in a WinRM session.
How does Microsoft envision using this tool? Log in manually on a packer-provisioned VM to install software?!

# Install 7-Zip
$7zipUrl = "https://www.7-zip.org/a/7z2107-x64.exe"
$7zipPath = "c:\temp\7z2107-x64.exe"
$client = New-Object System.Net.WebClient
$client.DownloadFile($7zipUrl, $7zipPath)
cmd /c "start /wait $7zipPath /S"

# Install Winget
$WinGetUrl = ((Invoke-RestMethod -uri 'https://api.github.com/repos/microsoft/winget-cli/releases/latest').assets | Where { $_.browser_download_url.EndsWith('msixbundle') } | Select -First 1).browser_download_url
$WinGetPath = "c:\temp\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
$client = New-Object System.Net.WebClient
$client.DownloadFile($WinGetUrl, $WinGetPath)
mkdir 'C:\Program Files\Winget'
& 'C:\Program Files\7-Zip\7z.exe' x $WinGetPath -o'c:\temp\winget'
& 'C:\Program Files\7-Zip\7z.exe' x "C:\temp\winget\AppInstaller_x64.msix" -o'C:\Program Files\Winget' -y
Set-Alias -Name 'winget' -Value "C:\Program Files\Winget\AppInstallerCLI.exe"

@David-Ollivier
you are basically bypassing  AEAs(App Execution Aliases)  of MSIX packages..
Although this should work, AEAs of MSIX packages will work after WinRM/SSH/Docker  client  programs learn to handle them. see https://github.com/microsoft/winget-cli/issues/1474#issuecomment-1011330720 and https://github.com/microsoft/winget-cli/discussions/1838#discussioncomment-1950473

This problem kind of hearkens back to their decision to implement winget in C++ "because PowerShell was not implemented on all the systems they wanted to support."  Which basically means they didn't care about automation at all, and this brokenness that this issue represents just shows the team that invented winget did NOT care about automation, which means PowerShell and WinRM, at least in my opinion.

You realise that they are very likely entirely separate teams, right? Microsoft isn't just one big team of people who magically know what and how everything else is going on

Has there been any update to this? Still not working via WinRM, so you can't do an Enter-PSSession and use it, you can't use Invoke-Command, and you can't use PSExec. I'd love to use this in an enterprise environment, but without being able to automate it, I'm at a loss.

We are working on a solution for enterprise scenarios. Intune and other MDM providers will be able to execute commands remotely using system context:

#215

This same solution will also be part of the work for having native PowerShell support:

#221

For all the others that are stumbling over this after finding out, that WinGet does not work with HashiCorp Packer / WinRM and can't be automated (duh, of course...). I tinkered a little working PowerShell script that with the current latest version of WinGet takes every appx dependency and throws all the files into one folder together.
Write-Output "Downloading WinGet and dependencies..."

Invoke-WebRequest "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -OutFile "$ENV:USERPROFILE/Desktop/Microsoft.VCLibs.x64.14.Desktop.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/Desktop/Microsoft.VCLibs.x64.14.Desktop.zip" -DestinationPath "$ENV:USERPROFILE/Desktop/WinGet" -Force

Invoke-WebRequest "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.1" -OutFile "$ENV:USERPROFILE/Desktop/Microsoft.UI.Xaml.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/Desktop/Microsoft.UI.Xaml.zip" -DestinationPath "$ENV:USERPROFILE/Desktop/Microsoft.UI.Xaml"
Rename-Item -Path "$ENV:USERPROFILE/Desktop/Microsoft.UI.Xaml/tools/AppX/x64/Release/Microsoft.UI.Xaml.2.7.appx" -NewName "Microsoft.UI.Xaml.2.7.zip"
Expand-Archive -Path "$ENV:USERPROFILE/Desktop/Microsoft.UI.Xaml/tools/AppX/x64/Release/Microsoft.UI.Xaml.2.7.zip" -DestinationPath "$ENV:USERPROFILE/Desktop/WinGet" -Force

$WinGetUrl = ((Invoke-RestMethod -uri 'https://api.github.com/repos/microsoft/winget-cli/releases/latest').assets | Where { $_.browser_download_url.EndsWith('msixbundle') } | Select -First 1).browser_download_url
Invoke-WebRequest $WinGetUrl -OutFile "$ENV:USERPROFILE/Desktop/Microsoft.DesktopAppInstaller.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/Desktop/Microsoft.DesktopAppInstaller.zip" -DestinationPath "$ENV:USERPROFILE/Desktop/Microsoft.DesktopAppInstaller"
Rename-Item -Path "$ENV:USERPROFILE/Desktop/Microsoft.DesktopAppInstaller/AppInstaller_x64.msix" -NewName "AppInstaller_x64.zip"
Expand-Archive -Path "$ENV:USERPROFILE/Desktop/Microsoft.DesktopAppInstaller/AppInstaller_x64.zip" -DestinationPath "$ENV:USERPROFILE/Desktop/WinGet" -Force

At this point I restart the VM. I don't know if this is nessessary or not, but it works.
Write-Output "Installing 7zip"
cmd /c "$ENV:USERPROFILE\Desktop\WinGet\winget.exe" install 7zip.7zip --accept-package-agreements --accept-source-agreements

Disclaimer: I hope I am able to help others. I know this is all hacky and not the right way to do this. I want this to just work, nothing more. Thanks to @David-Ollivier who gave me the hints in the right direction. Some codelines have been taken from your example.

For all the others that are stumbling over this after finding out, that WinGet does not work with HashiCorp Packer / WinRM and can't be automated (duh, of course...). I tinkered a little working PowerShell script that with the current latest version of WinGet takes every appx dependency and throws all the files into one folder together.
Write-Output "Downloading WinGet and dependencies..."

New-Item -Path "$ENV:USERPROFILE" -Name "build" -ItemType "directory" -Force | Out-Null

Invoke-WebRequest "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -OutFile "$ENV:USERPROFILE/build/Microsoft.VCLibs.x64.14.Desktop.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.VCLibs.x64.14.Desktop.zip" -DestinationPath "$ENV:USERPROFILE/build/WinGet" -Force

Invoke-WebRequest "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.1" -OutFile "$ENV:USERPROFILE/build/Microsoft.UI.Xaml.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.UI.Xaml.zip" -DestinationPath "$ENV:USERPROFILE/build/Microsoft.UI.Xaml"
Rename-Item -Path "$ENV:USERPROFILE/build/Microsoft.UI.Xaml/tools/AppX/x64/Release/Microsoft.UI.Xaml.2.7.appx" -NewName "Microsoft.UI.Xaml.2.7.zip"
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.UI.Xaml/tools/AppX/x64/Release/Microsoft.UI.Xaml.2.7.zip" -DestinationPath "$ENV:USERPROFILE/build/WinGet" -Force

$WinGetUrl = ((Invoke-RestMethod -uri 'https://api.github.com/repos/microsoft/winget-cli/releases/latest').assets | Where { $_.browser_download_url.EndsWith('msixbundle') } | Select -First 1).browser_download_url
Invoke-WebRequest $WinGetUrl -OutFile "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller.zip" -DestinationPath "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller"
Rename-Item -Path "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller/AppInstaller_x64.msix" -NewName "AppInstaller_x64.zip"
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller/AppInstaller_x64.zip" -DestinationPath "$ENV:USERPROFILE/build/WinGet" -Force

Move-Item -Path "$ENV:USERPROFILE/build/WinGet" -Destination "$ENV:PROGRAMFILES" -PassThru
cmd /c setx /M PATH "%PATH%;$ENV:PROGRAMFILES\WinGet"

At this point I restart the VM. You could theoretically also just restart the shell, but this way it works afterwards.
Write-Output "Installing 7zip"
winget install 7zip.7zip --accept-package-agreements --accept-source-agreements

Disclaimer: I hope I am able to help others. I know this is all hacky and not the right way to do this. I want this to just work, nothing more. Thanks to @David-Ollivier who gave me the hints in the right direction. Some codelines have been taken from your example.

@raboni84 thank you for the above! out of interest do you cleanup any of the above before sysprepping or leave it all in place on the VM longterm? (also using Packer and hitting this same issue)

Same problem with version v1.6.3133. It seems that winget does not handle the situation when a non-interactive session is active.
> qwinsta
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
>services                                    0  Disc
 console           Piotrek                   2  Active
 rdp-tcp                                 65536  Listen

I'm trying to uninstall an unnecessary package:
> winget.exe uninstall --disable-interactivity --accept-source-agreements --exact --silent --force --scope=user "Microsoft Teams"
[...]
Found Microsoft Teams [MicrosoftTeams_8wekyb3d8bbwe]
Starting package uninstall...

 â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’  0%
Uninstall failed with exit code: 0x80070520 : unknown error

The winget logs then shows:
[...]
2023-11-28 23:53:39.604 [CORE] Deployment operation #2: A specified logon session does not exist. It may already have been terminated.

2023-11-28 23:53:39.604 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FFA312F0840: (caller: 00007FFA312F1E4C) Exception(3) tid(87cc) 80070520 A specified logon session does not exist. It may already have been terminated.

    Msg:[Operation failed: A specified logon session does not exist. It may already have been terminated.

]

2023-11-28 23:53:39.605 [CLI ] MSIXUninstall uninstaller failed:<PHONE_NUMBER>
2023-11-28 23:53:39.605 [CLI ] Terminating context: 0x80070520 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UninstallFlow.cpp:16a

Just playing around with an Azure Image Builder for Azure AVD Deployment and the same problem just cost me 2 days of playing around and realizing, .. It's just not working. How does microsoft believe that we replace a community driven chocolatey with this half baked (not) solution?

Chocolatey is more mature, works well, and even has decent cmdlets. Use it vs a 2nd rate beta power toy!

Just playing around with an Azure Image Builder for Azure AVD Deployment and the same problem just cost me 2 days of playing around and realizing, .. It's just not working. How does microsoft believe that we replace a community driven chocolatey with this half baked (not) solution?

Another way to get the installer would be to scrap the Winget repos and get the link from the yaml file.

Good luck

Do you guys do anything other than whine? If its "not ready", just.....wait until its "ready". As you have said multiple times, its not like its the only option.

Is this really your believe? we could just stop 'whining' and wait whatever "god" microsoft is creating for us. In the meantime - NOBODY will use it and these tools will die (because nobody showed interest).
Feedback and even if it's 'whining' shows interest, it shows what features are most used, most requested and probably, just probably, somebody at microsoft will hear us whining to fix the issues with a thousend upvotes more than the one some product manager believed would be a good idea. (which it is usually not!)

Just playing around with an Azure Image Builder for Azure AVD Deployment and the same problem just cost me 2 days of playing around and realizing, .. It's just not working. How does microsoft believe that we replace a community driven chocolatey with this half baked (not) solution?

Another way to get the installer would be to scrap the Winget repos and get the link from the yaml file.
Good luck

Getting the installer doesn't seem to be the problem, running winget through WinRM remoting is just not working (as described in this thread). So installing the current version with the Sandbox Script does work and shows the correct version afterwards, but calling winget to install packages just drops out with error messages and doesn't work at all.

https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.1

We have been "waiting" for four years for something that should have worked from the first release.

Do you guys do anything other than whine? If its "not ready", just.....wait until its "ready". As you have said multiple times, its not like its the only option.

Windows server core is a supported edtion of windows server and has been for many years.
It's supposed to be managed remotely by console so it's a very resonable expectation that you can manage it with WinRM and/or SSH.
Winget is (or rather should be) a console package manager. Is a package manager a tool you use to manage your servers ? Yes it is and therefore it is also a very resonable expectation that you can use the MS provided console package manager to manage your server over a remote console and not by loging in to a stripped down GUI
We have been "waiting" for almost four years for this. Something that should have worked from the first release.

The reality is that this tool was written for devs by devs to make it easier to install their tools. But system admins got all excited expecting this to fill the same package management gap for them, but they have been greatly disappointed because there use cases were never considered and still haven't been addressed.
I immediately knew this would be a big issue as Microsoft has made this mistake before. I opened this ticket in hopes that they would fix it before release as it would be a barrier to adoption for systems administrators.

for those who are not aware. it CAN be run under winrm but the install process is very different:
https://github.com/microsoft/winget-cli/issues/256#issuecomment-1416929101

for those who are not aware. it CAN be run under winrm but the install process is very different: #256 (comment)

I will pretty sure test and validate, but I wouldn't call this 'installing' .. it looks more like an adventure

We are using it as part of a packer setup for a year now and its been stable.
we do use winrm to update winrm as another step after setting it up

We are using it as part of a packer setup for a year now and its been stable. we do use winrm to update winrm as another step after setting it up

You're my men! this works perfectly and will use as long as Microsoft is not able to fix this behaviour.

for those who are not aware. it CAN be run under winrm but the install process is very different: #256 (comment)

Goes even further to prove that MS can solve the issue very quickly - it's only the will that is missing.
Would I use this "fix" it for 5000 production servers - maybe not without it being a little better supported ....
however for lab use - H*ll yes. I just verified that it works over SSH too.

For all the others that are stumbling over this after finding out, that WinGet does not work with HashiCorp Packer / WinRM and can't be automated (duh, of course...). I tinkered a little working PowerShell script that with the current latest version of WinGet takes every appx dependency and throws all the files into one folder together.
Write-Output "Downloading WinGet and dependencies..."

New-Item -Path "$ENV:USERPROFILE" -Name "build" -ItemType "directory" -Force | Out-Null

Invoke-WebRequest "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -OutFile "$ENV:USERPROFILE/build/Microsoft.VCLibs.x64.14.Desktop.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.VCLibs.x64.14.Desktop.zip" -DestinationPath "$ENV:USERPROFILE/build/WinGet" -Force

Invoke-WebRequest "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.1" -OutFile "$ENV:USERPROFILE/build/Microsoft.UI.Xaml.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.UI.Xaml.zip" -DestinationPath "$ENV:USERPROFILE/build/Microsoft.UI.Xaml"
Rename-Item -Path "$ENV:USERPROFILE/build/Microsoft.UI.Xaml/tools/AppX/x64/Release/Microsoft.UI.Xaml.2.7.appx" -NewName "Microsoft.UI.Xaml.2.7.zip"
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.UI.Xaml/tools/AppX/x64/Release/Microsoft.UI.Xaml.2.7.zip" -DestinationPath "$ENV:USERPROFILE/build/WinGet" -Force

$WinGetUrl = ((Invoke-RestMethod -uri 'https://api.github.com/repos/microsoft/winget-cli/releases/latest').assets | Where { $_.browser_download_url.EndsWith('msixbundle') } | Select -First 1).browser_download_url
Invoke-WebRequest $WinGetUrl -OutFile "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller.zip" -UseBasicParsing
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller.zip" -DestinationPath "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller"
Rename-Item -Path "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller/AppInstaller_x64.msix" -NewName "AppInstaller_x64.zip"
Expand-Archive -Path "$ENV:USERPROFILE/build/Microsoft.DesktopAppInstaller/AppInstaller_x64.zip" -DestinationPath "$ENV:USERPROFILE/build/WinGet" -Force

Move-Item -Path "$ENV:USERPROFILE/build/WinGet" -Destination "$ENV:PROGRAMFILES" -PassThru
cmd /c setx /M PATH "%PATH%;$ENV:PROGRAMFILES\WinGet"

At this point I restart the VM. You could theoretically also just restart the shell, but this way it works afterwards.
Write-Output "Installing 7zip"
winget install 7zip.7zip --accept-package-agreements --accept-source-agreements

Disclaimer: I hope I am able to help others. I know this is all hacky and not the right way to do this. I want this to just work, nothing more. Thanks to @David-Ollivier who gave me the hints in the right direction. Some codelines have been taken from your example.

Installing packages from the Winget source works, but it does not work when installing from manifest files. Has anyone had any success using this workaround to install with manifest files?


Fix type lowering of ~Copyable and ~Escapable generics.

Factor AbstractionPattern::conformsToKnownProtocol and lower ~Escapable using the same logic as ~Copyable.
Adds support for conditionally Escapable enums.
Correctly sets the SILType::isTrivial flags for conditionally escapable structs and enums in environments (extensions) that provide an Escapable conformance, such as:
struct NE<E: ~Escapable> : ~Escapable {}

extension NE: Escapable {
  func foo() -> Self {
    // Self is both Escapable and trivial here.
    self
  }
}

Fixes rdar://125950218 ([nonescapable] support conditionally escapable enums)

struct NE<E: ~Escapable> : ~Escapable {}

extension NE: Escapable {
  func foo() -> Self {
    // Self is both Escapable and trivial here.
    self
  }
}

I don't see a test case that covers this specific situation from your PR description -- how can we observe the triviality of self here?

Joe already wrote tests to check triviality. I reused those by adding ~Escapable

struct MyStruct<T: ~Copyable & ~Escapable>: ~Copyable & ~Escapable
enum MyEnum<T: ~Copyable & ~Escapable>: ~Copyable & ~Escapable

// CHECK-LABEL: sil{{.*}} @{{.*}}13trivialStruct
func trivialStruct() -> Int {
    // CHECK: [[ALLOC:%.*]] = alloc_stack $MyStruct<Trivial>
    // CHECK-NOT: destroy_addr [[ALLOC]] :
    // CHECK: dealloc_stack [[ALLOC]] :
     return MemoryLayout.size(ofValue: MyStruct(x: Trivial.a))
}
// CHECK-LABEL: sil{{.*}} @{{.*}}11trivialEnum
func trivialEnum() -> Int {
    // CHECK: [[ALLOC:%.*]] = alloc_stack $MyEnum<Trivial>
    // CHECK-NOT: destroy_addr [[ALLOC]] :
    // CHECK: dealloc_stack [[ALLOC]] :
     return MemoryLayout.size(ofValue: MyEnum.x(Trivial.a))
}

struct MyAssortment {
    var a: MyStruct<Trivial>
    var b: MyEnum<Trivial>
}

// CHECK-LABEL: sil{{.*}} @{{.*}}4frob
func frob(x: MyAssortment) -> Int {
    // CHECK: [[ALLOC:%.*]] = alloc_stack $MyAssortment
    // CHECK-NOT: destroy_addr [[ALLOC]] :
    // CHECK: dealloc_stack [[ALLOC]] :
    return MemoryLayout.size(ofValue: x)
}

This raises a good point that I was planning to bring up. We have a fair amount of complexity in AbstractionPattern to recognize inverse protocols. But any of that logic could be wrong and we'll never find out about it, at least for ~Escapabe, because the only effect is to set SILType::isTrivial in more cases. If we fail to set isTrivial, codegen is likely still correct and we'll never notice. None of the diagnostics exercise this logic, so it could be inconsistent.

@nate-chandler I can't remove the remaining uses of canBeEscapable yet because TypeConverter::visitAggregateLeaves recursively evaluates interface types. This may be as simple as mapping them into a context, but I don't understand this well enough to do it. So, for example:
struct Boxx<each T : _BitwiseCopyable> {
  var ts: (repeat each T)
}

Here, TypeConverter::verifyTrivialLowering is asked to evaluate the type of the ts member, which is a pack type with interface types:
(pack_expansion_type
  (pattern=pack_archetype_type address=0x150962278 conforms_to="Swift.(file)._BitwiseCopyable" name="each T"
    (interface_type=generic_type_param_type depth=0 index=0 decl="testbitwisecopyable.(file).Boxx.T@./testbitwisecopyable.swift:15:18" pack))
  (count=pack_archetype_type address=0x150962278 conforms_to="Swift.(file)._BitwiseCopyable" name="each T"
    (interface_type=generic_type_param_type depth=0 index=0 decl="testbitwisecopyable.(file).Boxx.T@./testbitwisecopyable.swift:15:18" pack)))

That's not going to work with any type system queries, including AbstractionPattern::isNoncopyable or, in this PR, AbstractionPattern::conformsToKnownProtocol.

@atrick Okay, I will address this in a follow-up.

@jckarter I included a fix for AbstractionPattern::isNoncopyable in this PR.
@nate-chandler I included several unit tests involving BitwiseCopyable which, ultimately, should result in trivial lowering. But it's not high enough priority to debug right now, so I left TODOs, which we may want to track in a bug report.

@swift-ci test

@atrick As a reminder, having conformance to BitwiseCopyable imply SIL trivial when appropriate (not always) is already tracked by rdar://123661042 and is not a correctness issue.

This is currently blocked on a segfault in stdlib/ArrayTraps.swift.gyb on iphonesimulator-x86_64 which I haven't been able to reproduce locally

This passes for me locally with the same build-script invocation as CI:
lit ./validation-test-iphonesimulator-x86_64 --filter stdlib/ArrayTraps.swift.gyb -a

@swift-ci test

@swift-ci smoke test windows


Browse and select network

Create a WiFi AccessPoint for the user to connect to.
Use the AP to enter credentials and then connect to selected network.

#15


MudDataGrid Error

Things to check

[X] I have searched the existing issues for this bug
[X] To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type
Component
Component name
MudDataGrid
What happened?
Since version 7.8, I am encountering the following error:
Error: No interop methods are registered for renderer 1
The relevant code is:
<MudDataGrid Items="@Records.FloatState.OrderByDescending(x => x.Value).ThenBy(x => x.Key.Item2)"
             T="KeyValuePair<Tuple<long?>, string>, bool">
    <Columns>
        <PropertyColumn Property="x => x.Key.Item2" Title="Name" />
    </Columns>
</MudDataGrid>

The error occurs when using the PropertyColumn.
Expected behavior
MudDataGrid must show relevant record
Reproduction link
https://github.com/aminsharifi/Cheetah/blob/master/sample/src/Presentation/Web/Blazor/Server/Components/Shared/LinkComponent.razor
Reproduction steps
After updating nuget, I encounter with this error
Relevant log output
No response
Version (bug)
7.8.0
Version (working)
7.7.0
What browsers are you seeing the problem on?
Chrome
On which operating systems are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Version (bug)
7.8.0

I see in your commit history that you reverted from 7.11.0 to 7.7.0 not from 7.8.0. Please, locate the exact version when it broke.

Your project cannot run without LDAP/SQL configuration. Please create a minimal reproduction in that case. Currently, it appears to be a general exception in Blazor rather than specific to MudBlazor. Without a runnable reproduction, no one will investigate the problem.
<MudDataGrid Items="@Records.FloatState.OrderByDescending(x => x.Value).ThenBy(x => x.Key.Item2)"
              T="KeyValuePair<Tuple<long?>, string>, bool">
    <Columns>
        <PropertyColumn Property="x => x.Key.Item2" Title="Name" />
    </Columns>
</MudDataGrid>

This code is too generic; we have many tests with PropertyColumn that pass.
Additionally, as a side note, using KeyValuePair when you intend to edit it is not advisable, as it is an immutable struct. See a related issue here: https://github.com/MudBlazor/MudBlazor/issues/7037.


L2CAP COC: We should get an error when trying to create more servers than configured

If we try to create a server for more connections than we support (e.g. we support 1 connection and then we try to create a second server) we do not return an error. The error is returned only when the Client tries to connect to us. Maybe we should throw an error when creating the server to save time.

There should be possible to create many CoC servers and then use them on the same ACL connection. Is there an issue with that?
For sure, number of supported acl connections is not related to number of supported CoC...well not counting that you need at least one acl :)

@michal-narajowski do you think we still need this PR or can we close it?

This issue appears when we create BLE_L2CAP_COC_MAX_NUM channels as a client and then we create an L2CAP server. When a peer tries to connect to it we will return an error because we will not be able to allocate a new channel (limit of channels reached). We can create a server successfully because this API uses ble_l2cap_coc_srv_pool mempool. Then when a peer connects to this server we try to allocate a channel from ble_l2cap_chan_pool mempool and fail.
I'm not saying this is a bug per se, more of a usability issue.

I think this issue no longer exists - size of ble_l2cap_coc_srv_pool is limited by BLE_L2CAP_COC_MAX_NUM in ble_l2cap_coc, method ble_l2cap_coc_init. If we try to create more servers, we get error 0x06 - BLE_HS_ENOMEM.


Add split_bands() method to Raster

As discussed with @adehecq, this functionality may have widespread use, and will be especially useful for a function in the making in xdem.
Example:
import geoutils as gu

rgb_img = gu.Raster(datasets.get_path('landsat_RGB'))

red, green, blue = img.split_bands()

# Do all kinds of analyses on each band separately

Maybe a .stack() method or similar should be added to reverse the functionality of .split_bands()?
Unfortunately, I wanted to add a copy: bool =  False kwarg to reduce copying, but this is not currently possible. Raster.from_array() always returns a copy, which is great in most cases, but maybe something can be done about that in the future? A copy: bool = True kwarg for from_array() which can be changed in case of memory-sensitive work?

Looks good to me!
Indeed in that case it would make sense to just have a pointer to the previous data, rather than copying...

I'll add it as an issue!

Looks good to me!
Indeed in that case it would make sense to just have a pointer to the previous data, rather than copying...

I'll add it as an issue!

I think by construction it would be really difficult to do, because from_array opens a memory file, with the data saved in it... We would need another way to create a Raster object from an array.


In edit word, "possible matches" is visible if dialog was canceled previously

Fixed.  See commit 5a53c4a


libsForQt5.mauiPackages: 2.2.0 -> 2.2.1

Description of changes
https://mauikit.org/blog/maui-2-2-1-release/

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

cc @milahu

Result of nixpkgs-review pr 205567 run on x86_64-linux 1

15 packages built:

libsForQt5.booth (plasma5Packages.booth)
libsForQt5.buho (plasma5Packages.buho)
libsForQt5.clip (plasma5Packages.clip)
libsForQt5.communicator (plasma5Packages.communicator)
libsForQt5.index (plasma5Packages.index)
libsForQt5.mauikit (plasma5Packages.mauikit)
libsForQt5.mauikit-accounts (plasma5Packages.mauikit-accounts)
libsForQt5.mauikit-filebrowsing (plasma5Packages.mauikit-filebrowsing)
libsForQt5.mauikit-imagetools (plasma5Packages.mauikit-imagetools)
libsForQt5.mauikit-texteditor (plasma5Packages.mauikit-texteditor)
libsForQt5.mauiman (plasma5Packages.mauiman)
libsForQt5.nota (plasma5Packages.nota)
libsForQt5.pix (plasma5Packages.pix)
libsForQt5.shelf (plasma5Packages.shelf)
libsForQt5.vvave (plasma5Packages.vvave)

Thank you!


Zone should offer a way to register to be notified when an uncaught error is detected

Suppose you use a library that does not respect Zones (for example, because it throws an error in response to a callback invoked by the VM embedder, or because it explicitly walks up the Zone chain to the root and runs things there).
Currently, exceptions thrown by that library are always reported to the console in an uncatchable manner.
It would be nice if there was a way to register to be notified of such errors so that they could be reported for analytics or sent to an in-process debugging environment or some such.

You can use Isolate.current.addErrorListener to be notified about uncaught errors hitting the root zone.
You probably also want to set uncaught errors to be non-fatal.
(VM embedder callbacks should probably just be bound to the current zone before passing them to the embedder, then they should work. For code deliberately run with Zone.ROOT.run, you can't prevent that - but perhaps we should remove Zone.ROOT in Dart 2 so code doesn't have a way to escape its current zone - you can't walk the zone chain manually, there is no Zone.parent getter).

You can use Isolate.current.addErrorListener

Nice! I'll give it a try.

Isolate.current.addErrorListener doesn't like my "regular Dart Instance" implementation of SendPort:
void main() {
  Isolate.current.addErrorListener(new ErrorReportingSendPort());
  runApp(new CrashyApp());
}

class ErrorReportingSendPort implements SendPort {
  @override
  void send(dynamic error) {
    print('Isolate.current.addErrorListener caught: $error');
  }
}

Result:
E/flutter (18057): Unhandled exception:
E/flutter (18057): Invalid argument(s): Illegal argument in isolate message : (object is a regular Dart Instance)
E/flutter (18057): #0      Isolate._sendOOB (dart:isolate-patch/isolate_patch.dart:512)
E/flutter (18057): #1      Isolate.addErrorListener (dart:isolate-patch/isolate_patch.dart:590)
E/flutter (18057): #2      main (file:///Users/yjbanov/code/flutter/crashy/lib/main.dart:13)
E/flutter (18057): #3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
E/flutter (18057): #4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

After some discussion with @rmacnak-google and @jason-simmons we found one possible workaround for Flutter. Since we have a custom embedder (including a custom event loop) we could capture microtask errors in it and feed the error back to Dart via Dart_Invoke. However, this feels a bit hacky. It would be great if we could do this without customizing the embedder.

Since this is closely related to zones, cc @floitschG

While it would be clever to create your own SendPort that doesn't actually send anything, you probably have to use a real SendPort. Those can be sent to any isolate, which arbitrary objects cannot.
var errors = new RawReceivePort((e) { print("Uncaught: ${e[0]}"); });
Isolate.current.addErrorListener(errors.sendPort);

I'm closing this. Isolate.current does not work due to Flutter's custom embedder. It works in the standalone VM. We're also fixing our interaction with zones.


Add ironic-python-agent-rhel-9.yaml

This yaml has been tested downstream to build IPA
images on rhel-9.

Adding something to the main README.rst for how to build this image would be helpful too


[interpolatable] Return master indices instead of names

Using names to refer to masters is weird. Return the index and the user can look up the name.
This changes the API in two ways:

test and test_gen do not accept a names parameter anymore. If needed I can put it back there unused.
master, master1, master2 in the problem reports are now indices, not names. If this is undesirable, I can add separate master_idx, master1_idx, master2_idx instead. Maybe that's better.

Nevermind. I'll make a non-breaking change.

PTAL!


Cannot add new user (when using MySQL database)

Using Serene website
Select "Administration"
Select "User Management"
Select "New User"
Enter information for user.
Select "Save"

Get exception:
"An exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in Serenity.Data.dll but was not handled in user code
Additional information: FUNCTION serene_default_v1.SCOPE_IDENTITY does not exist"

Can you check if identity inserts succeed in other tables? Like in Northwind?

It does not seem to work for the Northwind database either.  Same "SCOPE_IDENTITY does not exist" exception.

Ok, i could reproduce it. It seems like connection dialect is not used properly. Will release a new version soon.

Please update to 1.8.17 nuget packages, and let me know if you still have any problems. I don't have tests for other database types yet.

@brettbeard is your problem solved?

Yes, this appears to be fixed now.


Casper Signer Tutorial

Project name
Casper Signer Tutorial
URL to be whitelisted
*://www.playcasper.io
Code audit/review URL if available
No response
Project description
DevxDAO grant awarded for creating a Casper Signer Tutorial and live demonstration of a simple game interacting with the Casper blockchain.
Initial task is to get the Casper Signer SDK tutorial (https://github.com/casper-network/docs-archive/blob/master/dapp-dev-guide/tutorials/casper-signer.rst) working with the https://testnet.cspr.live/. Getting the public key current works but getting the balance is being blocked by CORS.
Once SDK is working, the plan is to implement a simple javascript game which saves/retrieves a value on the blockchain.
Project's phase
Design
Who is the project owner?
Private person
Project owner's name
Adrian Jelffs
What kind of Web3 functionality will you be offering in your product?
Contract calls to retrieve and write values
Contact details
Adrian Jelffs, Software Developer<EMAIL_ADDRESS>Link to the code
https://github.com/adrianj74/nodejs_signer
Is this a project by an enterprise partner of Casper Association or CasperLabs?
Yes
Grant/proposal number if this is a project funded by the DEVxDAO
566

Hello, thank you for your message. This is a replacement for the previous request as playcasper.io will be the permanent site. Although I would also like to keep casper-test.com on the whitelist also as a staging site if possible. Many thanks.

Thank you, @adrianj74, for the clarification.
cc: @piotr-dziubecki

Hi Adrian (@adrianj74 ), is there a way you can use developer tools to test instead and can we remove casper-test.com. If you still need it, please let us know.

Hello, yes I can definitely use developer tools now I know how to set up the nodejs server on an active URL. So you can remove casper-test.com if you would like to.

Thanks, @adrianj74, for the clarification.

Hi @adrianj74, your request was completed via the latest v1.4.17 release. Therefore, closing this request.


automatically adding FACEBOOK_APP_ID and FACEBOOK_DISPLAY_NAME to *-Info...

automatically adding FACEBOOK_APP_ID and FACEBOOK_DISPLAY_NAME to *-Info.plist via variables

+1


Unkown route middleware error

Environment

Operating System: Darwin
Node Version:     v18.18.0
Nuxt Version:     3.8.2
CLI Version:      3.10.0
Nitro Version:    2.8.0
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      build, css, components, modules, runtimeConfig
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
repository: https://github.com/hundklubb/hundklubb/tree/nuxt-bug

clone repo - git clone https://github.com/hundklubb/hundklubb.git && cd hundklubb
visit nuxt-bug branch - git checkout nuxt-bug
enter frontend directory - cd frontend
build app with docker - docker build -t hundklub-frontend:latest .
run app with docker - docker run -p 3000:3000 hundklub-frontend:latest
open app - localhost:3000
try to visit the 'Club Page' via the button/links - [fails with no warning/error]
try to visit the 'Club Page' (/localhost:3000/club) or any other page with a auth middleware - [fails with error 'unknown middleware']

Describe the bug
I get the error that the middleware 'auth' is unknown even though I have created it and tested it in development. Thus, there are two behaviors that I do not anticipate:

Any page with a middleware is unreachable by nuxt-link or directly via url path /path/to/page/with/middleware
In addition, using the url path takes you to an error page that claims that the middleware in use is unknown (see screenshot below)

Additional context
The app reaches the paths in development nuxt dev as well as with nuxt preview but it fails with docker.
Logs
No response

I'm dumb... didn't copy the middleware directory in the docker file 😮💨


Update owners for windows-azure-storage plugin

(This PR template only applies to permission changes -- ignore for changes to the tool)
https://github.com/jenkinsci/windows-azure-storage-plugin
Description
(fill in description here)
Permissions pull request checklist
Always

[x] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[ ] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] All newly added users have logged in to Artifactory at least once

@snallami is no longer maintaining this plugin


SDS100 audio

Adds support for Audio Feed which will automatically copy audio files over as they are created on the scanner.
Adds a Uniden WAV file parser. Partially reverse engineered. It's a wealth of data!

#6

@rabarar Do me a favor and take a close look at this and also let me know if it works on your SDS200! It's safe to ignore the Scanner said last command was invalid during file transfer warnings for now, not sure where they are coming from and I think it's just a timing issue.

Noticed that the private metadata heuristics break on non-trunked systems. Will fix tomorrow but I don't think we should hold up merging this because of that.

Did this work on your SDS200?

what do you mean by “this”?

On Jun 21, 2020, at 10:19 AM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Did this work on your SDS200?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647134451, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6FFB2JIL2JMP47OLSLRXYJHFANCNFSM4ODUYVUQ.

I mean when you started up the server did it successfully start downloading audio files from your SDS200?

nope. And using the  websocat -t - autoreconnect:ws://localhost:8080 ws://localhost:8080/ doesn’t connect to the bearcatter and respond either.

On Jun 21, 2020, at 12:35 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
I mean when you started up the server did it successfully start downloading audio files from your SDS200?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647151371, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6DTK6WLHWBLBRR6GFDRXYZFFANCNFSM4ODUYVUQ.

I verified there are two recordings on the scanner: here’s the output when I start up the server (while it’s connected via USB)
$ ./bearcatter -u /dev/tty.usbmodem142401  -r ./audio
INFO[0000] Connected to /dev/tty.usbmodem142401 via USB
INFO[0000] Started WebSocket Server at :8080
WARN[0001] HostMsgChannel: No Listener to Receive Msg, Msg Not Sent
INFO[0001] success true
INFO[0001] Scanner -> Host AUF	STS	NG	646
WARN[0001] Received a HomePatrol message!
WARN[0001] Scanner said last command was invalid during file transfer
WARN[0002] HostMsgChannel: No Listener to Receive Msg, Msg Not Sent
INFO[0002] Scanner -> Host AUF	INFO	NG	696
WARN[0002] Received a HomePatrol message!
WARN[0002] Scanner said last command was invalid during file transfer
WARN[0003] HostMsgChannel: No Listener to Receive Msg, Msg Not Sent
INFO[0003] Scanner -> Host AUF	INFO	NG	696
WARN[0003] Received a HomePatrol message!
WARN[0003] Scanner said last command was invalid during file transfer
WARN[0004] HostMsgChannel: No Listener to Receive Msg, Msg Not Sent
INFO[0004] Scanner -> Host AUF	INFO	NG	696
WARN[0004] Received a HomePatrol message!
WARN[0004] Scanner said last command was invalid during file transfer
WARN[0005] HostMsgChannel: No Listener to Receive Msg, Msg Not Sent
INFO[0005] Scanner -> Host AUF	INFO	NG	696
WARN[0005] Received a HomePatrol message!
WARN[0005] Scanner said last command was invalid during file transfer
^CINFO[0005] Terminating on signal...
WARN[0005] HostMsgChannel: No Listener to Receive Msg, Msg Not Sent
INFO[0005] Shutting down WebSocket server
INFO[0005] Shutting down file polling
INFO[0005] UDPServer Terminated.

On Jun 21, 2020, at 12:35 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
I mean when you started up the server did it successfully start downloading audio files from your SDS200?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647151371, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6DTK6WLHWBLBRR6GFDRXYZFFANCNFSM4ODUYVUQ.

Would be interesting to have you connect manually to the UDP port and run the commands to start up the Audio Feed function. If you check utils.go you can just use the HomePatrol command function. You want to run these commands (these are all []string{}):
“AUF”, “STS” // returns ON/OFF for audio feed status
“AUF”, “STS”, “ON” // turn on audio feed
// wait for a audio transmission to complete
“AUF”, “INFO” // should show file name and size
“AUF”, “INFO”, “ACK” // ack that you have received file data
“AUF”, “DATA” // you’ll receive a data blob
“AUF”, “DATA”, “CAN” // cancel the data transfer

AUF,STS  in the UDP port returns error. Connecting via USB reports the same error. No such command in the SDS200…

On Jun 21, 2020, at 1:27 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Would be interesting to have you connect manually to the UDP port and run the commands to start up the Audio Feed function. If you check utils.go you can just use the HomePatrol command function. You want to run these commands (these are all []string{}):
“AUF”, “STS” // returns ON/OFF for audio feed status
“AUF”, “STS”, “ON” // turn on audio feed
// wait for a audio transmission to complete
“AUF”, “INFO” // should show file name and size
“AUF”, “INFO”, “ACK” // ack that you have received file data
“AUF”, “DATA” // you’ll receive a data blob
“AUF”, “DATA”, “CAN” // cancel the data transfer
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647157388, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6DFX4QJUY7325DUA5TRXY7JRANCNFSM4ODUYVUQ.

are you sending a checksum as well with these commands as indicated in the docs? or just “AUF,STS\r”

On Jun 21, 2020, at 1:27 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Would be interesting to have you connect manually to the UDP port and run the commands to start up the Audio Feed function. If you check utils.go you can just use the HomePatrol command function. You want to run these commands (these are all []string{}):
“AUF”, “STS” // returns ON/OFF for audio feed status
“AUF”, “STS”, “ON” // turn on audio feed
// wait for a audio transmission to complete
“AUF”, “INFO” // should show file name and size
“AUF”, “INFO”, “ACK” // ack that you have received file data
“AUF”, “DATA” // you’ll receive a data blob
“AUF”, “DATA”, “CAN” // cancel the data transfer
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647157388, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6DFX4QJUY7325DUA5TRXY7JRANCNFSM4ODUYVUQ.

Yep. That’s why I said to use the home patrol command in utils.go, it calculates the checksum.

talking directly to the serial port - not in go -
so if I send the string “AUF\tSYS\t488” where 488 is the checksum of “AUF\tSYS\t” then I get back a valid response:
AUF		STS		ON		654

On Jun 21, 2020, at 2:15 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Yep. That’s why I said to use the home patrol command in utils.go, it calculates the checksum.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647162527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6B2O57YU46J7ZJWBF3RXZE4BANCNFSM4ODUYVUQ.

#include <stdio.h>
#include <string.h>
unsigned int checksum(char *str);
int main(int argc, char *argv[]) {
if (argc > 1) {
    checksum(argv[1]);
}

}
unsigned int checksum(char *str) {
int cs = 0;
for (int i=0; i<strlen(str); i++) {
    cs += str[i];
}
printf("%s: sum = %u\n", str, cs);

return cs;

}
so here’s a quick c program to compute checksums - I send commands to the SERIAL port and they work as you’d expect. But sending the same string to the UDP Port doesn’t result in a response.

On Jun 21, 2020, at 2:15 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Yep. That’s why I said to use the home patrol command in utils.go, it calculates the checksum.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647162527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6B2O57YU46J7ZJWBF3RXZE4BANCNFSM4ODUYVUQ.

Keep running through the commands I gave. If you get a data blob back, then we know it works and there’s just something off in the AUF parsing code for the SDS200.

Good distinction. So if you send via UDP you just get ERR? It may be formatting differences with tabs?

no -  i’m not getting data with the sequence… grr
“AUF”, “STS” // returns ON/OFF for audio feed status
“AUF”, “STS”, “ON” // turn on audio feed
// wait for a audio transmission to complete
“AUF”, “INFO” // should show file name and size
“AUF”, “INFO”, “ACK” // ack that you have received file data
“AUF”, “DATA” // you’ll receive a data blob
“AUF”, “DATA”, “CAN” // cancel the data transfer

On Jun 21, 2020, at 2:39 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Keep running through the commands I gave. If you get a data blob back, then we know it works and there’s just something off in the AUF parsing code for the SDS200.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647165312, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6HDEBEVN2G6HA3OVGLRXZHXVANCNFSM4ODUYVUQ.

I get no reply at all if I send via UDP - which is odd - i’d expect an ERR…

On Jun 21, 2020, at 2:44 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Good distinction. So if you send via UDP you just get ERR? It may be formatting differences with tabs?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647165772, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6ETG3ED4QWTQC6DY53RXZIH3ANCNFSM4ODUYVUQ.

HomePatrol never supported WiFi (as far as I know) so I guess it's not too surprising. Seems like a oversight to not enable commands to work the same on both transports, but then again, leaving HomePatrol commands in at all is probably an oversight on its own.

yeah - who knows what it’s doing on SDS200 - you’re getting audio data back successfully with the SDS100?

On Jun 21, 2020, at 3:05 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
HomePatrol never supported WiFi (as far as I know) so I guess it's not too surprising. Seems like a oversight to not enable commands to work the same on both transports, but then again, leaving HomePatrol commands in at all is probably an oversight on its own.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647168003, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6B4KR7CGJADNKO6NEDRXZKYXANCNFSM4ODUYVUQ.

Yep! Audio comes through very quickly and with no issues for me.

lucky bastard! lol

On Jun 21, 2020, at 3:08 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Yep! Audio comes through very quickly and with no issues for me.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647168376, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6CQVTYQ66SOPZMIXULRXZLEXANCNFSM4ODUYVUQ.

send me a log snippet of your successful session

On Jun 21, 2020, at 3:08 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Yep! Audio comes through very quickly and with no issues for me.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647168376, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6CQVTYQ66SOPZMIXULRXZLEXANCNFSM4ODUYVUQ.

all you’re doing is starting the ./bearcatter -u /dev/tty.usb… yes?

On Jun 21, 2020, at 3:08 PM, Robbie Trencheny<EMAIL_ADDRESS>wrote:
Yep! Audio comes through very quickly and with no issues for me.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/pull/10#issuecomment-647168376, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6CQVTYQ66SOPZMIXULRXZLEXANCNFSM4ODUYVUQ.

Send me a iMessage and let's continue this further. Can screen share. My address is<EMAIL_ADDRESS>


Add schematics of circuit and setup instructions

Combined with this issue; this is now a duplicate issue and therefore is no longer necessary..


Configures all async operations with .ConfigureAwait(false)

The important commit is about async (...).ConfigureAwait(false)
It fixes #1

Hey @nla-brandonjames
could you please take a look at this PR
thank you

I think this will be okay. I will have to configure the tests in a way where they run for anyone who modifies this library.

Do you plan to release this one?

I've been out of the office. I'm just now getting to this. Also am attempting to fix unit testing at the same time.

Just released a new update and sent it to NuGet. I made some changes as well. Now the build will show as passing.

thank you very much, appreciated


Add support for github statuses

See https://developer.github.com/v3/repos/statuses/
This is used in pull requests. I need it to make http://git-critique.herokuapp.com/hello/pulls more useful.

@phadej I think we can close this issue no?


How to get Values?

How can one get the Value of a specific titled row?

Sorry.. Found it after Going through it for a bit used the following method(if anyone in the future needed to know):
self.form.formValues()["StringTag"]?.description


Add "Author should include JSDoc" to PR template

What is the feature you are proposing?
Context: https://github.com/honojs/hono/pull/2615#issuecomment-2114090960

I'm thinking we should improve the PR template to tell every PR that adding a new feature should add TSDoc/JSDoc (if it's necessary) @yusukebe This way we can slowly migrate codebase to use TSDoc/JSDoc

If this is to be implemented, we also need to add a guide on how to write it (jsdoc).
e.x.
JSDoc must includes description, @see, @param, @returns, optional @throws, @example

If this is to be implemented, we also need to add a guide on how to write it (jsdoc).
e.x. JSDoc must includes description, @ see, @ param, @ returns, if needs @ throws, @ example

I have something simpler in mind will create a PR soon :)


Improve access to TorqueBox::Logger

This PR is still somewhat of a work-in-progress, though I was hoping to get some eyes on it for feedback. Basic stdlib-style logging support is included in this PR.
Caveats
Ruby stdlib Logger supports a block form to ensure that expensive log messages are only calculated if the log level constraint is met, saving potentially unnecessary work:
logger.info { "Entry number #{i} is: #{entries[i]}" }

Logback, on the other hand uses parameterized logging to fulfill the same function: http://logback.qos.ch/manual/architecture.html#parametrized
I favored Logback's as I don't think that log level checking should be handled both in Ruby and Java spaces.
TODO

Rectify Logger::Severity differenes with Logback's Log levels
Ensure Log levels actually are enforced as expected
Ensure this is compatible with "typical" logging front ends like Rail's TaggedLogger.
Support Logback Formatters

I think that this is as complete as I'd like to make it for 4.0. I don't use TaggedLogger so don't have good context on what would need to be done to support it. Perhaps after the 4.0 release others would like to lend a hand.

Thanks for the contribution!


Attachment fields not supported

Amazing project first off. I just ran into an issue and it looks like attachment fields are not supported?
I see     // Unsupported field PDF: fld1HpbrZ347mSq6Z in the typings generated by airtable-ts-codegen
Any workarounds for working with these field types?

Thanks for raising the issue! Attachment fields are now supported as of airtable-ts v1.4.0, and airtable-ts-codegen v1.2.0.


Fix mfa bypass evaluator params not sent to rest endpoint

I was looking to use the bypass evaluator feature for the multifactor authentication. While I did successfully configure CAS to perform GET request on the configured endpoint (behaved as documented), the query parameters did not seem to be passed along in the request.
This is a trivial fix to include the query params in the http request, so that the behavior aligns with the documentation (https://apereo.github.io/cas/6.5.x/mfa/Configuring-Multifactor-Authentication-Bypass.html#bypass-via-rest):

Parameter
Description

principal
The identifier of the authenticated principal.

provider
The identifier of the multifactor authentication provider.

service
The identifier of the registered service in the registry, if any.

(I'm not sure if this is a good way to compose the test case. It seems more reasonable to verify MockWebServer receives the query params, but the class doesn't seem to record parameters received from a request)

@apereocas-bot runci


path_imgrec accepts multiple .rec files?

It seems that mxnet supports multiple .rec files in path_imgrec as suggested in https://github.com/dmlc/dmlc-core/blob/d0afb8e946dda3310e6ed062a59f97726bf4c565/src/io/input_split_base.cc#L97
The separator is ';'. Am I correct? @piiswrong @tqchen
BTW, I remember @tqchen onced pointed out that path_imgrec also accepts directory as input. So both ways are correct?

I checked: path_imgrec accepts directory with multiple .rec files

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Update Get-AzureADUser.md

Example five uses the wrong property name of 'Title.' In AzureAD, the property is 'JobTitle.' Allthough, interestingly enough, 'jobTitle' must start with a lower case 'j' and not a capital 'J' as is returned by a successful query.

Hi @glaisne
Per the read me file:
Please be aware that if you have any updates to automatically generated reference content, you should create an issue and not a PR.  The issue will then be created into a bug and triaged accordingly.  We do this because the reference content must mirror the *dll-help.xml file and subsequent updates to the reference content may overwrite any changes made through the repo.  Capturing it in the source code ensures that this does not occur.  Any PR with changes to automatically generated reference content will be closed.
Automatically generated reference content is any of the content under this Reference node, such as Get-AzureADUser
This only applies to reference content and not conceptual content.  Pull requests for changes to conceptual content are accepted and encouraged.  An example of the conceptual content is the Overview or a scenario such as importing data.
Thank you!
Bill


improve index based bubble sort

prototype improved index-based bubble sort
improve test coverage
improve test coverage
change key name in reference_based_bubble_sort
change key name in index_based_bubble_sort
improve documentation]
improve documentation]

Codecov Report
Attention: Patch coverage is 89.74359% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 99.21%. Comparing base (a8b52a4) to head (2413716).

Files
Patch %
Lines

src/ofnodes/structures/singlylinkedlist.py
0.00%
6 Missing :warning:

src/ofnodes/sorting/mixins.py
89.47%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
- Coverage   99.79%   99.21%   -0.59%
==========================================
  Files          15       15
  Lines         980     1019      +39
==========================================
+ Hits          978     1011      +33
- Misses          2        8       +6

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


During Upgrade provide more details that it's pulling image

When staging an image:
sudo ros os upgrade -s -i rancher/os:v0.4.0-rc7
Only outputs are
INFO[0000] [0/1] [os-upgrade]: Starting
INFO[0032] [1/1] [os-upgrade]: Started

It gives no indication that it's pulling down the image.

This is probably a duplicate of https://github.com/rancher/os/issues/488 but a specific use case.

Closed in favor of #488


Navbar with off-canvas drawer is hidden by backdrop

If you have a navbar with an off-canvas drawer, the backdrop hides it. The official Bootstrap backdrop is appended to the navbar while Bootstrap.Native backdrop is appended to the document body.

Can you have a codepen link or something to see the diffrence?

Bootstrap Official
Bootstrap Native

The backdrop utility has the document body hardcoded in. Adding an option for a mounting point then defaulting to the document body if none is provided seems like an excellent addition.

What if you move the offcanvas outside of the navbar, it should work as expected. The point I'm trying to make is that less configuration for more functionality is best, sounds good?

That's perfectly reasonable. Thanks!


Gain normalized or not

Maybe adding a type parameter to MelGeneralizedCepsturm?
abstract GainForm
type NormliazedGain <: GainForm
end
type UnNormalizedGain <: GainForm
end
...

immutable MelGeneralizedCepstrum{F<:Frequency,L<:Log,G<:GainForm, T<:FloatingPoint,N} <: AbstractMelGeneralizedCepstrumArray{F,L,T,N}
...

will be fixed by #8

SpectralParamState manages me-generalized cepstrum values are gain-normalized or not.


Because I am incapable of using git, this is a complete re-fork

I seriously messed things up in my attempt to rebase. I figure for a single file change, it was going to be easier just to delete my fork, re-fork, add the file, and reopen a pull request. That is what I have done.
Don't mind me, I'll be in the corner, facing the wall, wearing the git cone hat of shame

I prefer the wording of the original document, as it sounds more professional and grandiose (and more in line with the other swift project overall wording) but it does add more information

Thank you for working on this! I want to reflect on these changes a bit, especially as the first few reviews progress, to see how we can make this clearer.

Doug: That sounds perfect. Thank you.

Doug: Revised with feedback from on-list discussion.


Hide App.framework.dSYM from Spotlight

When Xcode uploads an app to the App Store it invokes symbols to generate debug information for embedded frameworks. symbols uses Spotlight to find dSYM files for the framework binaries (mdfind "com_apple_xcode_dsym_uuids == <uuid of framework>") and for some reason it exits with an error code (bug?) if it finds a dSYM file. The error exit code causes the app store upload to fail.
This change hides the dSYM file from Xcode by placing it in a folder ending with .noindex.

Have we filed a radar with Apple? :)  I find it hard to imagine this is intentional behavior.

mkdir: build/dSYMs.noindex will fail if the folder already exists.


small open wire change and another tweak

@howardgao @gaohoward  It seems this is not really needed. I didn't find a real use for it at least.. all the tests are passing the same.  Can you confirm please? (talking about 36350c2)

@clebertsuconic yeah I think you can just merge it. They are not needed anywhere in the clients as far as I can tell. However I'll run the tests just to make double sure (meaning don't wait for me).

I already run the tests.. didn't make a difference

ok. It should be ok enough.

The create durable queue is creating some test failures.. the change is good but there are tests failing (probably because they need to cleanup something... I will have to check out).
Let me work on this first


Feature request: JSON pre-processing

Firstly, thanks for writing and maintaining this plugin! It's been really useful.
Often I've found myself writing nearly the same set of JSONPath/JSONata expressions for each field, with only minor differences. To take a trivial example, if I have an API that returns {"array": [{}, {}, ...]}, I need to prefix each field's query with $.array[*].
It'd be useful if there was a way of applying a JSONPath/JSONata transformation to the complete response body before handing it off to the individual fields - in the above example this would involve a "global" expression of $.array[*], and then each field could reference the array element individually.
I'd be up for writing up a PR to implement this if you think it'd be useful (I've never worked on Grafana plugins before, but there's a first time for everything!).

Yes! This is something I've been thinking about for a while actually. Though from the perspective of "nesting" queries rather than "preprocessing" them.
Basically, you'd be able to create a child query from another query. Basically nesting them under each other.

This would let you use both JSONata and JSONpath for different parts of the response.
Does that sound like what you were looking for?

@marcusolsson Oh, I hadn't thought about it that way, but now that you mention it that would do what I want - I'd wrap all my field queries in one "group".
I'm curious about how you'd implement this - in my mind the fields would go from being a flat list to a "tree", where the root and branches are groups. Something like this:
┌─────────────┐
│  $.array[*] │
└┬────────────┘
 │
 ├─────── $.field1
 │
 │
 │        $.field2
 │
 │      ┌┬───────────────────┐
 └──────┼ $.anotherArray[*]  │
        └┼───────────────────┘
         │
         ├─────── $.subfield1
         │
         │
         └─────── $.subfield2

And then at runtime it'd traverse the tree, essentially flattening it to get the resulting fields, so you end up with just [field1, field2, subfield1, subfield2]. Have I understood your idea correctly?

Exactly! It would essentially just be an easier way to build the queries. You'd still need each query to return arrays of the same length.

Sounds good! I've started work on this on my fork at https://github.com/marcusolsson/grafana-json-datasource/compare/main...markspolakovs:marks/field-groups - currently I've only got the back-end (and it needs work), I'll submit a PR once it's ready.


MATH-1519 Implement Calinski-Harabasz clusters evaluator.

MATH-1519 Implement Calinski-Harabasz clusters evaluator.

Coverage increased (+0.008%) to 90.517% when pulling d1a8e3c7ff245b0a1704968aa1032fd57ba54827 on chentao106:Feature_Calinski-Harabasz into aafc49afd764351668045c0fadf2ad6222490ba7 on apache:master.


Arpack

@hainm, this builds arpack for OS X and linux without requiring linking against any fortran libraries (no libgfortran or libquadmath).

Awesome. I will try. Thanks. Ping @drroe here too.

@rmcgibbo I clone your f2c and arpack folders and try to conda build arpack, got errors.

:D I open your PR and though it's faster to copy and paste. (But I am wrong since arpack build need f2c).

It should actually be possible to do this without f2c using the same static libgfortran trick from https://github.com/omnia-md/conda-recipes/pull/345#issue-110837185

nvm. there's a conda libgcc that just provides the necessary shared libraries (libgfortran, etc), so that's a better solution.


Fix deprecation warning

Fixes #178
WHY
BEFORE - What was wrong? What was happening before this PR?
Deprecation warning, see #178
AFTER - What is happening after this PR?
No deprecation warning
HOW
How did you achieve that, in technical terms?
Used {$filePath} instead of ${filePath}
Is it a breaking change or non-breaking change?
Non-breaking
How can we test the before & after?
Test it in PHP 8.2

Thanks @mattsches , very appreciated 🙏
I just need to confirm if all the PHP versions we support, support that syntax. (I think it does, at least from PHP 5.4+)
Just need to confirm that and after I will merge this.
Will check it later 👍