Added Org features

Fulfills #23
I just applied for Particle and got to use this amazing API, so I figured I'd take the low hanging fruit.
Unfortunately, I don't have any devices on my account so I did my best verifying all of the methods. I'd love someone to take productClaimCode for a test drive... without devices I couldn't even check for an appropriate error (device completes url, so I just get 404).
Obviously, let me know if I need to make changes.

Coverage increased (+0.8%) to 63.689% when pulling 978085e047a12a40159baec2701030d30d175fa4 on tyleralves:org_features into b650d956a23718766669ddc6040116866bba8797 on spark:master.

Coverage increased (+0.8%) to 63.689% when pulling 978085e047a12a40159baec2701030d30d175fa4 on tyleralves:org_features into b650d956a23718766669ddc6040116866bba8797 on spark:master.

Coverage increased (+0.8%) to 63.689% when pulling 978085e047a12a40159baec2701030d30d175fa4 on tyleralves:org_features into b650d956a23718766669ddc6040116866bba8797 on spark:master.

Coverage increased (+0.8%) to 63.689% when pulling 978085e047a12a40159baec2701030d30d175fa4 on tyleralves:org_features into b650d956a23718766669ddc6040116866bba8797 on spark:master.

Coverage increased (+0.8%) to 63.689% when pulling 978085e047a12a40159baec2701030d30d175fa4 on tyleralves:org_features into b650d956a23718766669ddc6040116866bba8797 on spark:master.

Docs to come after method names are agreed upon.


Pass total gas reward from validator to on-chain contract at end of epoch

A validator will need to aggregate total gas reward happened during the epoch, during reconfiguration, so that it can pass that into the on-chain contract to properly distribute gas reward to stakers and delegators.

Addressed by #5246


"Access Blocked: This App's request is invalid" when trying to authorize an account

Hi,
I'm at this step in the setup process under the Authorize account section.

I select all the options as seen here:

But when I click Next I'm then presented with this error and I'm not sure why or what I'm doing wrong

So I'm wondering how to fix this?

Issue resolved. Tried again and it worked


Develop debugging envoy using vscode Container

.devcontainer/devcontainer.json

.devcontainer/Dockerfile

Run error：
#0 251.1 update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
#0 251.1 update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
#0 251.1 update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
#0 251.1 Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
#0 251.1 /bin/sh: 1: cannot create /etc/sudoers.d/root: Directory nonexistent
ERROR: failed to solve: executor failed running [/bin/sh -c apt-get -y update   && apt-get -y install --no-install-recommends libpython2.7 net-tools psmisc vim 2>&1   && echo $USERNAME ALL=(root) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME   && chmod 0440 /etc/sudoers.d/$USERNAME]: exit code: 2
[255819 ms] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-ddy/container-features/0.25.2-1675144392146/Dockerfile-with-features -t vsc-envoy-d743805f453ada6886f62c0f3889c7f9 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /usr/local/istio/envoy/.devcontainer
[255820 ms]     at Doe (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:1894:1669)
[255820 ms]     at runMicrotasks ()
[255820 ms]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[255820 ms]     at async EF (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:1893:1978)
[255821 ms]     at async uT (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:1893:901)
[255821 ms]     at async Poe (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:1899:2128)
[255821 ms]     at async Zf (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:1899:3278)
[255821 ms]     at async aue (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:2020:15276)
[255821 ms]     at async oue (/home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js:2020:15030)
[255828 ms] Exit code 1
[255836 ms] Command failed: /home/ddy/.vscode-server/bin/97dec172d3256f8ca4bfb2143f3f76b503ca0534/node /home/ddy/.vscode-remote-containers/dist/dev-containers-cli-0.266.1/dist/spec-node/devContainersSpecCLI.js up --workspace-folder /usr/local/istio/envoy --workspace-mount-consistency cached --id-label devcontainer.local_folder=\wsl$\Ubuntu\usr\local\istio\envoy --log-level debug --log-format json --config /usr/local/istio/envoy/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[255836 ms] Exit code 1

Similar to #25069, it could be resolved by bumping the build images.


Bug Report: Mod menu crashes the game when no mods are installed

[x] Windows
[ ] Linux
[ ] Mac
When I pressed TAB to open the mod switch menu within the MainMenuState (on the latest actions build (and without any mods installed)), the game crashes, the attached image below shows the error given by the crash handler.

Perhaps this could be fixed with a built-in error message that tells you that no mods are installed.

Nvm this is already known in the readme


ci: Update image name in container publish action

I didn't expect these things to fail due to the org moving. We should grep for kinvolk and make sure we update any GitHub org references.


feat(eslint-plugin): add no-rest-destructuring rule (#6265)

This pull request adds an eslint rule no-rest-destructuing to make sure that the query results are not captured by a rest element.
Discussion: #6265
I referenced the commit for stable-query-client rule for what I should do to make a new eslint rule in tanstack/eslint-plugin-query, please inform me if I still missed something. 😄

@TkDodo Thanks for your approval!
Furthermore, as I am not quite familiar with creating eslint rules, I cannot figure out how to write the autofix for this rule.
Hope someone can help make this rule better by introducing the autofix option.

I don't think we can or need to auto fix this because we can't really know what it should be auto fixed towards?

That's right, thank you!

@Newbie012 I have implemented the test cases for allowing rest destructuring hooks from other packages with the name useQuery, useInfiniteQuery and useQueries.


[iOS 14.7.1] App gets stuck at blank screen - Could not launch engine with configuration

When running the app on physical device it got stuck at installing and launching and only blank white screen appear.
iOS : 14.7.1
xcode : 12.5 or 13 beta still not fix the problem
Emulator : working properly
Info.plist information for local networking  still not working
flutter clean or recreate ios folder using flutter create . did not help, i'm running out option

Logs
flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-ID)
    • Flutter version 2.2.3 at /Users/ridwanfauzan/Documents/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

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

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • iPhone Testing (mobile) • 8b4b2dd0e3ca37ed268847ee5c745201027ef939 • ios            • iOS 14.7.1
    • macOS (desktop)         • macos                                    • darwin-x64     • macOS 11.4 20F71 darwin-x64
    • Chrome (web)            • chrome                                   • web-javascript • Google Chrome 92.0.4515.159

• No issues found!

8.3.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
[        ] 8.3.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
[  +10 ms] 8.3.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
[  +10 ms] 8.3.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
[        ] 8.3.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
[  +46 ms] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[        ] [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[        ] [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[        ] [VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.
[   +8 ms] Observatory URL on device: http://<IP_ADDRESS>:53332/
Forwarded port ForwardedPort HOST:57031 to DEVICE:53332
[        ] Forwarded host port 57031 to device port 53332 for Observatory
[   +5 ms] Caching compiled dill
[ +119 ms] Connecting to service protocol: http://<IP_ADDRESS>:57031/
[ +184 ms] Launching a Dart Developer Service (DDS) instance at http://<IP_ADDRESS>:0, connecting to VM service at http://<IP_ADDRESS>:57031/.
[  +69 ms] DDS is listening at http://<IP_ADDRESS>:57034/JedQqwtZ4wM=/.

Hi @rymesaint
Thanks for filing the issue

flutter clean or recreate ios folder using flutter create . did not help, i'm running out option

Instead of cleaning an existing project or creating an ios folder, can you please try to reproduce the issue using a new project without using third-party packages?
flutter create myapp
cd myapp (add your team id to run the app on physical device)
flutter run -v > run.log (this will copy your logs in a file, please drop this file in the comments below)
Thank you

still blank with new project without any third party packages
run.log

Hi @rymesaint
I just tried a physical device with iOS 14.7.1 and it runs fine when new or exisitng project on the latest stable and master channels
Logs
run.log

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5304g darwin-x64, locale en-GB)
    • Flutter version 2.2.3 at /Users/tahatesser/Code/flutter_stable
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Code/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.1

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

[!] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E            • ios            • iOS 14.7.1
    • iPhone 12 (mobile)     • 7CC8A747-CD39-4C42-871C-2D1CCEAE2AE2 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • macOS 12.0 21A5304g darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 92.0.4515.159

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.5.0-7.0.pre.130, on macOS 12.0 21A5304g darwin-x64, locale en-GB)
    • Flutter version 2.5.0-7.0.pre.130 at /Users/tahatesser/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d83fba1a22 (4 hours ago), 2021-08-18 03:02:04 -0400
    • Engine revision a27da3eeb6
    • Dart version 2.15.0 (build 2.15.0-24.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E            • ios            • iOS 14.7.1 18G82
    • iPhone 12 (mobile)     • 7CC8A747-CD39-4C42-871C-2D1CCEAE2AE2 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • macOS 12.0 21A5304g darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 92.0.4515.159

• No issues found!

Your issue looks similar to https://github.com/flutter/flutter/issues/67222

here is happening the same...
all member of my team too.

A workaround that works here is running on the xcode but you do not have the power of hot reload.

Hi @rymesaint
I just tried a physical device with iOS 14.7.1 and it runs fine when new or exisitng project on the latest stable and master channels
Logs
run.log
flutter doctor -v
Your issue looks similar to #67222

deleting flutter_tools.stamp did not work, using new download from flutter.dev its work only using xcode with terminal still the same error

Hi @rymesaint
I just tried again, I still can't reproduce on a smaller app, when loading Flutter Gallery, which is much bigger, still doesn't get stuck, and only a blank page for a short time which has been there before
On stable channel
https://user-images.githubusercontent.com/48603081/129923720-093f9be4-c76f-4527-9e40-cce33fcfccc8.mov
On master channel
https://user-images.githubusercontent.com/48603081/129923762-135a5d9d-6b1e-4f11-a26e-5226e33b03bf.MP4
Does this something happen if you wait few seconds on the blank screen? App closes or stays as it is?

Does this something happen if you wait few seconds on the blank screen? App closes or stays as it is?

I am having the same issue on iPhone with iOS 14.7.1. I just created a new empty project and tried to run it from Xcode, and a white screen appears on the device and stays there forever. This is the log on Xcode's terminal:
2021-08-18 12:39:52.752284-0300 Runner[598:57834] Metal API Validation Enabled
2021-08-18 12:39:52.859326-0300 Runner[598:57834] Warning: Unable to create restoration in progress marker file
2021-08-18 12:39:52.880041-0300 Runner[598:58099] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
2021-08-18 12:39:52.880256-0300 Runner[598:58099] [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
2021-08-18 12:39:52.881257-0300 Runner[598:58099] [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
2021-08-18 12:39:52.881453-0300 Runner[598:58099] [VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.
2021-08-18 12:39:52.937794-0300 Runner[598:58113] flutter: Observatory listening on http://<IP_ADDRESS>:56483/AtRT5SAt0vA=/

From VSCode, running flutter run, I get the following output:
Running Xcode build...
 └─Compiling, linking and signing...                         3,6s
Xcode build done.                                            7,9s
(lldb) 2021-08-18 13:08:44.148257-0300 Runner[634:67422] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.
Installing and launching...                                         9,2s

Although it says Installing and launching, it just keeps on the white screen. It works normally on Simulator with iOS 14.5.
My flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (version 2020.3)
    ✗ Unable to find bundled Java version.
[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
[✓] VS Code (version 1.59.0)
[✓] Connected device (3 available)

! Doctor found issues in 1 category.

Invalid kernel binary format version. generally means there's a mismatch between the version of Flutter used to build the app, and the dart VM version.  Or something else in the artifacts cache is corrupted.

using new download from flutter.dev its work only using xcode with terminal still the same error

@rymesaint You mean you deleted your Flutter cache, downloaded it again from the website, and still see the same error?
@MateusHBR @daniloapr can we get your flutter doctor -v?

A workaround that worked here is running on the xcode but you do not have the power of hot reload.

@MateusHBR you only see it from the terminal, not from Xcode?
For anyone reproducing this, can you zip up and attach your entire project directory?  This will include your actual app, so you may want to reproduce with a newly created flutter created app.

For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

https://wetransfer.com/downloads/f40ce2c9dc3913c2941a1ca3bb6149a420210818190534/9769a3deb4b9be1afcc64505c1d9132920210818190554/d1516c
I changed branch to master and back to stable.

@ristiisa Can you just attach the zip to GitHub?  What's your flutter doctor -v?

@ristiisa Can you just attach the zip to GitHub? What's your flutter doctor -v?

The folder is 160MB, github shows me an error(I did not crop it, that is the entire message):

What I interpret as "file too large".
I can solve the issue with deleting flutter folder and downloading the latest stable pack, but the problem is back after switching to master.
Flutter 2.5.0-7.0.pre.139 was on the master branch I switched to.
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3 20E232 darwin-arm, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (version 2020.3)
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.59.0)
[✓] Connected device (2 available)

@ristiisa The wetransfer link doesn't open for me, can you share it another way?
That flutter doctor output is missing -v

Invalid kernel binary format version. generally means there's a mismatch between the version of Flutter used to build the app, and the dart VM version. Or something else in the artifacts cache is corrupted.

using new download from flutter.dev its work only using xcode with terminal still the same error

@rymesaint You mean you deleted your Flutter cache, downloaded it again from the website, and still see the same error?
@MateusHBR @daniloapr can we get your flutter doctor -v?

A workaround that worked here is running on the xcode but you do not have the power of hot reload.

@MateusHBR you only see it from the terminal, not from Xcode?
For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

i saw the problem on Vscode and terminal. In xcode it works fine.
A solution that i found is run the project once on xcode, stop xcode running, after that try run on terminal or vscode and the problem got solved.
Flutter version:
Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (7 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4

flutter foctor -v:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-arm, locale pt-BR)
    • Flutter version 2.2.3 at /Users/mateusramalho/development/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mateusramalho/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

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

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)

@MateusHBR

For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

I'm able to reproduce this by downgrading from any other channel to stable.
On stable 2.2.3 downloaded from the website bin/cache/artifacts/engine/ios/Flutter.xcframework contains:
ios-armv7_arm64
ios-x86_64-simulator

However, when you downgrade from any other channel to stable it instead contains:
ios-arm64_armv7
ios-arm64_x86_64-simulator
ios-armv7_arm64
ios-x86_64-simulator

It contains the newer ios-arm64_x86_64-simulator from https://github.com/flutter/flutter/pull/85642 in 2.4.0-4.0.pre, and it contains the newer Xcode 12 style ios-arm64_armv7 https://github.com/flutter/infra/pull/473.
Sure enough I can see the Flutter.framework Info.plist FlutterEngine being embedded in the app does not match the engine hash from stable 2.2.3.  And when I rm -rf bin/cache/artifacts/engine/ios* and then flutter clean it doesn't reproduce.
Another version of old cache files not being cleaned up.
Steps to reproduce
$ cd path/to/flutter/sdk
$ rm -rf bin/cache/artifacts/engine/ios*
$ git checkout 2.5.0-1.0.pre
$ cd ~/Desktop
$ flutter create bug
$ cd bug
$ flutter run
...
An Observatory debugger and profiler on iPad is available at

$ cd path/to/flutter/sdk
$ ls bin/cache/artifacts/engine/ios/Flutter.xcframework
Info.plist                 ios-arm64_armv7            ios-arm64_x86_64-simulator
$ git checkout 2.2.3
$ flutter precache --no-web --no-linux --no-windows --no-macos --no-fuchsia
$ ls bin/cache/artifacts/engine/ios/Flutter.xcframework
Info.plist                 ios-arm64_x86_64-simulator ios-x86_64-simulator
ios-arm64_armv7            ios-armv7_arm64
$ cd ~/Desktop/bug
$ flutter clean
$ flutter run
...
[VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[VERBOSE-2:shell.cc(576)] Could not launch engine with configuration.

The stale artifacts problem was fixed by https://github.com/flutter/flutter/pull/85075 available on 2.4.0-0.0.pre.

Workaround
$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run

@MateusHBR @rymesaint @daniloapr Can you confirm this workaround works for you?

Workaround
$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run

@MateusHBR @rymesaint @daniloapr Can you confirm this workaround works for you?

ok this one solve the problem thanks

@ristiisa The wetransfer link doesn't open for me, can you share it another way?

https://drive.google.com/file/d/1_Eh305syqpAHbKJILHy33srA8y4Sa2Qm/view?usp=sharing

That flutter doctor output is missing -v

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3 20E232 darwin-arm, locale en-GB)
    • Flutter version 2.2.3 at /Users/silver/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/silver/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

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

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

[!] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (1 available)
    • Chrome (web)             • chrome                    • web-javascript • Google Chrome 92.0.4515.131

Closing as duplicate of https://github.com/flutter/flutter/issues/85062.  The workaround is to stay on the beta channel until the next stable, or to run the following after switching to 2.2.3:
$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run


Sort tables

Closes #62
Things to be done:

[x] Add an icon
[x] Descending sorting
[x] Fix console errors at current account page, "Extrato Geral" tab

It still seems to break for me, but only in this table.

I forget to mention that I didn't look to this table, as it will be remaked in #28


[Feature request] Automatically add javadoc and sources jar to publications configuration

I am wondering if it is desired to automatically add "javadoc" and "sources" jar to publication configuration using shadow.component(it) if respective tasks javadocJar and sourcesJar are available.
Both tasks will be created using withJavadocJar() or withSourcesJar() (docu since Gradle v6.0 or can be created manually as you did in your own docs.gradle.
Please let me know if this a desired feature and I will create a pull request with tests and documentation for it. Looking forward to your response.
Expected Behavior
A "javadoc" and a "sources" jar will automatically be added to publications configuration using shadow.component(it). Preconditions are correct task names which should be documented as such.
Actual Behavior
You and I need to manually add them, e.g. as here.

One use case when this may be required is publishing to Maven Central. Their rules clear states that javadoc and sources artefacts are required.

e.g. as here

is pointing to master, which doesn't have the file anymore. Here's that snippet, at a then-current commit:
publishing {
    publications {
        plugin(MavenPublication) {
            shadow.component(it)
            artifact sourcesJar
            artifact javadocJar
...


Price Source Defaults Back to TSM after Patches

I have set my price source to Auctionator and whenever there is a new update to the addon, it gets defaulted back to TSM. Can this be changed so your choice is still saved when updated?

When you load onto a character where Auctionator is not loaded then CraftSim will load and set TSM as your default. When you then log back to a character that has Auctionator loaded, tsm will still be your default


removed XML declaration before signature operations

Overview/Description
In this merge request, I have implemented a change to the process of generating and validating XML signatures. Specifically, I've removed the XML declaration from documents before these cryptographic operations are performed.
Why the Change Was Necessary
The presence of an XML declaration was found to potentially affect the consistency of the signature generation and validation processes. Differences in the XML prolog presence could lead to mismatches in signature validation, which in turn could compromise the integrity and reliability of the system.
What Was Changed

XML Parsing Adjustment: The code now systematically removes the XML declaration from the document before any signature-related processing occurs. This ensures that the XML content fed into the signing and validation processes is consistent, regardless of its original state.
Code Refactoring: Minor refactoring was done to enhance the clarity and efficiency of the signature processing functions, aligning with best practices for XML manipulation.

Impact of the Change
This change standardizes how XML documents are handled, removing potential discrepancies that could arise from varying XML prolog presence. As a result, the system's cryptographic operations are now more robust and less prone to errors related to XML formatting differences.
Additional Notes

Testing: tests were added to validate xml signature digest with signature digest generate using xmlsec

@call-stack Thanks for the PR! It looks like there's a small typo to fix.

Thanks for fixing the typo. Currently I have moved this PR to Draft state.
Reason: when we are calling doc.RemoveChild(p) it is keeping the empty line there. I raised it here but the solution provided seems to be changing indentation. Till we solve for this keep PR in draft state.
Etree issue

Thank you for this improvement!


OpenTelemetry integration

I'm writing an app with ruby-openai and it gives me a bit of a worry that I don't know how much I'm spending on OpenAI. I would like a pane on my Honeycomb.ai dashboard measuring how much data I'm sending and receiving. Adding alerting to my dashboard for unexpectedly high usage would give me peace of mind. And if latency of OpenAI's servers was also instrumented, so I could see that latency in traces, that would help me understand what performance I should expect as well.
OpenTelemetry seems like the natural way to instrument this. Here's a list of existing libraries. I'd love to add
  c.use "OpenTelemetry::Instrumentation::Openai"

to my config/initializers/opentelemetry.rb and have my ruby-openai usage magically become available on my Honeycomb dashboard. Or of course it would work for whatever other provider people are using.
My suggested implementation would be to make the telemetry class a separate gem, and add a check whether the gem's class is defined in OpenAI::HTTP#json_post and related methods. If so, wrap the methods' functionality in a tracing block. But I'm open to alternatives. I haven't actually written a telemetry module before, so maybe thinking it's easy is hubris on my part.
Alternatively, I could add a similar wrapper in my own app and just use it for personal use. But this seems like something that would benefit the community and might as well be shared.

One approach is to make the gem more extendable. The HTTP gem does a great job at this. Here’s some examples:
https://github.com/httprb/http/tree/main/lib/http/features
If this gem would have the right hooks, it allow anyone anyone to more easily build features like telemetry on top of it.

@jamiemccarthy - v6.3 allows you to add custom Faraday middleware - see README - I think this could be used to link to OpenTelemetry?

Info on this - https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-faraday/v0.16.0/ - could be nice to add instructions to the README if people would find it useful

Cool, I'll see about giving this a try in my project shortly, thanks for the suggestion


Integrate contracts into substrate-demo runtime

Also, the way contract address is calculated is changed.
ext_create now takes one additional parameter: salt (u64), which is ultimately passed into the contract_address_for. You can read about motivation in KIP-4.
Additionally, data (input parameter for constructor) is also passed to the contract_address_for . This was changed to make address calculation mechanism to be similar to pwasm's one, where input data is also accounted for address calculation (since it is a part of the constructor code there).
contract_address_for for substrate-demo has the following formula:
blake2_256(blake2_256(code) + blake2_256(data) + LE(salt) + origin)

not super keen on salt - we can just introduce a "salt" into the init code to avoid this.

Me too. But I'm not keen on the introducing salt into the init code either, for the same reason why we pass init code and data separately (like we are doing in pwasm).
In pwasm we do this because of compatibilty with ethereum, where you don't have separate "data" field. In case of EVM this works fine since it just a bunch of instructions and data, but in case of wasm, which have a strict binary format, it is merely a hack: we just concatenate input data to the end of wasm init code. This trailing data makes the wasm binary invalid and we detect this in pwasm loader and strip all trailing data and treat it as input data. But that said, this is a better solution than trying to modify init code wasm binary: you can't get away with monkey patching the data section because you need to preserve binary format. Moreover, you need to be careful to not overwrite existing data in data section and update the initial memory page count if input data doesn't fit in. There might be other caveats that I can't come up with now. All of this makes me think that modifying init code is not feasible.
Back to salt: we can make it an ABI problem, user can always modify data and just ignore it in their constructor. But this will introduce some burden in the userspace: constructors should provide a way to supply some space for the salt in data they accept.

we can make it an ABI problem

Indeed.

Ok, removing salt then!

Removed salt and rebased @gavofyork

more resolving :) @pepyakin


[FEATURE] Role account friendly name

Is there an existing issue for this?

[X] I have searched the existing issues

Feature description
When using multiple roles, label account_id is populated as a label in a metric, however there is no support for an user friendly name. Currently i have around 10 AWS accounts, so differentiating between them based on account_id is difficult. We can either use externalId value to add as a label in a metric, or we can introduce a new field name under roles.
What might the configuration look like?
discovery:
  jobs:
  - type: rds
    roles:
      - roleArn: "arn:aws:iam::<account_id>:role/platform/grafana_cloudwatch_access"
        externalId: "internal1"
      - roleArn: "arn:aws:iam::<account_id>:role/platform/grafana_cloudwatch_access"
        externalId: "workload1"

or
discovery:
  jobs:
  - type: rds
    roles:
      - roleArn: "arn:aws:iam::<account_id>:role/platform/grafana_cloudwatch_access"
        name: "internal1"
        externalId: "internal1"
      - roleArn: "arn:aws:iam::<account_id>:role/platform/grafana_cloudwatch_access"
        name: "workload1"
        externalId: "workload1"

Anything else?
No response

Hey @LowLevel96, I think this is better achieved with relabeling at scrape time with something like:
      metric_relabel_configs:
        - source_labels: ["account_id"]
          regex: "1234567890"
          replacement: "workload1"
          target_label: "account_name"
          action: replace

This is a good source of examples for relabeling settings.


Crash on malformed zip archive

Summary
When ZIPFoundation tries to uncompress a specific malformed zip file it crashes.
Steps to Reproduce
Please use the following attached minimal zip file
archive.zip. Try to decompress this file with ZIPFoundation. I simply used your provided sample at https://github.com/weichsel/ZIPFoundation#unzipping-archives
Expected Results
Error message is shown indicating that the file is malformed.
Actual Results
Process 50 launched: '/swift/.build/debug/test' (x86_64)
Process 50 stopped
* thread #1, name = 'test', stop reason = signal SIGILL: illegal instruction operand
    frame #0: 0x000055555558956b test`Entry.CentralDirectoryStructure.init(data=46 bytes, provider=0x0000555555581680 test`partial apply forwarder for closure #1 (Swift.Int) throws -> Foundation.Data in static (extension in ZIPFoundation):Foundation.Data.readStruct<A where A: ZIPFoundation.DataSerializable>(from: Swift.UnsafeMutablePointer<__C._IO_FILE>, at: Swift.Int) -> Swift.Optional<A> at <compiler-generated>) at Entry.swift:324:84
   321          self.internalFileAttributes = data.scanValue(start: 36)
   322          self.externalFileAttributes = data.scanValue(start: 38)
   323          self.relativeOffsetOfLocalHeader = data.scanValue(start: 42)
-> 324          let additionalDataLength = Int(self.fileNameLength + self.extraFieldLength + self.fileCommentLength)
   325          guard let additionalData = try? provider(additionalDataLength) else { return nil }
   326          guard additionalData.count == additionalDataLength else { return nil }
   327          var subRangeStart = 0
Target 0: (test) stopped.

(lldb) frame variable
(Data) data = 46 bytes
() -> () provider = 0x0000555555581680 test`partial apply forwarder for closure #1 (Swift.Int) throws -> Foundation.Data in static (extension in ZIPFoundation):Foundation.Data.readStruct<A where A: ZIPFoundation.DataSerializable>(from: Swift.UnsafeMutablePointer<__C._IO_FILE>, at: Swift.Int) -> Swift.Optional<A> at <compiler-generated>
(ZIPFoundation.Entry.CentralDirectoryStructure) self = {
  centralDirectorySignature = 33639248
  versionMadeBy = 831
  versionNeededToExtract = 10
  generalPurposeBitFlag = 0
  compressionMethod = 0
  lastModFileTime = 43499
  lastModFileDate = 20705
  crc32 =<PHONE_NUMBER>
  compressedSize = 5
  uncompressedSize = 5
  fileNameLength = 24840
  extraFieldLength = 24929
  fileCommentLength = 24929
  diskNumberStart = 24929
  internalFileAttributes = 24929
  externalFileAttributes =<PHONE_NUMBER>
  relativeOffsetOfLocalHeader = 0
  fileNameData = 0 bytes
  extraFieldData = 0 bytes
  fileCommentData = 0 bytes
}
(Data) additionalData = 0 bytes
(Int) subRangeStart = 0
(Int) subRangeEnd = 0
(Int) additionalDataLength = <variable not available>

I think the crash could be due to the fact that 24929*3 is larger than UInt16.max.
Regression & Version
Version was 0.9.11, I verified this on iOS 13.5.1 and Linux
Related Link
https://github.com/weichsel/ZIPFoundation/blob/3f8516cef138413d60f33d8255eece869be1702b/Sources/ZIPFoundation/Entry.swift#L324
Please let me know in case I can provide more details.
Thank you for your effort.
Markus

Hello Markus,
Thanks for providing the detailed error report.
I was not able to reproduce the issue with the archive you attached when using the unzip code from the README. ZIP Foundation fails to initialize an Archive because it fails to find an endOfCentralDirectoryRecord.

I think the crash could be due to the fact that 24929*3 is larger than UInt16.max.

Good point. Are you using the data based initializer of Archive? Can you try to change the framework code so that the cast is performed on each length property individually:
let additionalDataLength = Int(self.fileNameLength) + Int(self.extraFieldLength) + Int(self.fileCommentLength)

Hello Thomas,

Are you using the data based initializer of Archive?

Sorry not really sure what you mean in this case. I am using the attached zip file and the following basic structure:
cat Package.swift
// swift-tools-version:5.0
import PackageDescription
let package = Package(
    name: "<Your Product Name>",
    dependencies: [
                .package(url: "https://github.com/weichsel/ZIPFoundation/", .upToNextMajor(from: "0.9.0"))
    ],
    targets: [
        .target(
                name: "test",
                dependencies: ["ZIPFoundation"]),
    ]

and
# cat Sources/test/main.swift
import ZIPFoundation
import Foundation
import Glibc

let fileManager = FileManager()
let currentWorkingPath = fileManager.currentDirectoryPath
var sourceURL = URL(fileURLWithPath: currentWorkingPath)
sourceURL.appendPathComponent("archive.zip")
var destinationURL = URL(fileURLWithPath: currentWorkingPath)
destinationURL.appendPathComponent("directory")
do {
    try fileManager.createDirectory(at: destinationURL, withIntermediateDirectories: true, attributes: nil)
    try fileManager.unzipItem(at: sourceURL, to: destinationURL)
} catch {
    print("Extraction of ZIP archive failed with error:\(error)")

Can you try to change the framework code so that the cast is performed on each length property individually
Yes, I did it like you suggested and now what I get is:

root@ef962562d158:/swift# lldb .build/debug/test
(lldb) target create ".build/debug/test"
Current executable set to '/swift/.build/debug/test' (x86_64).
(lldb) run
Process 408 launched: '/swift/.build/debug/test' (x86_64)
Process 408 exited with status = 0 (0x00000000)

So no crash anymore, however there is also no output that the file is corrupted. Of course, no output file is generated. Do I need to enable a debug flag for further details?
Kind regards,
Markus

Markus,
I reviewed the code base for integer overflows that could happen for archives that contain entries with very long filename or extra data fields. There were some code paths that contained a similar bug to the one you pointed out (wrong add/cast order when adding/upcasting UInt16 fields). I fixed those in PR #180 .

So no crash anymore, however there is also no output that the file is corrupted. Of course, no output file is generated. Do I need to enable a debug flag for further details?

The archive initializer is failable and therefore returns nil when the archive is invalid (e.g. when it does not contain an endOfCentralDirectory record - like in the archive you provided).
ZIP Foundation is strict when reading archives and does not try to skip or fix invalid entries.

Hi Thomas,
awesome, thank you! Jep, you are right, it might also happen at other code places.
PR looks good to me, with my limited Swift knowledge. So as soon as this is merged this issue can be closed in my opinion.
Best,
Markus


MediaController and Brightness not Working

I had tried to implement the media controller but other other than play/ pause button no other button like forward, backward media button is not working and also the brightness seekbar had no effect on screen.

Hello @TheGreat0004, would you be able to provide me with the xml layout you are using? https://github.com/malmstein/fenster/blob/master/library/src/main/java/com/malmstein/fenster/controller/SimpleMediaFensterPlayerController.java is designed to do exactly what you are looking for

@malmstein , i am using your own default sampe app Gesture media player and it is not working


<EMAIL_ADDRESS>decompress error

from 7zip.log:
7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04

Scanning the drive for archives:
1 file, 23627069 bytes (23 MiB)

Extracting archive: C:\Users\XXXXXXXX\scoop\apps\windows-terminal\1.5.10271.0\dl.7z
WARNING:
C:\Users\XXXXXXXX\scoop\apps\windows-terminal\1.5.10271.0\dl.7z
Can not open the file as [7z] archive
The file is open as [zip] archive

--
Path = C:\Users\XXXXXXXX\scoop\apps\windows-terminal\1.5.10271.0\dl.7z
Open WARNING: Can not open the file as [7z] archive
Type = zip
ERRORS:
Headers Error
Physical Size = 23627069
64-bit = +

Archives with Errors: 1

Open Errors: 1

For others having this problem:
Turns out I had to update 7zip.
Consider adding such an error message if decompression fails.


Extension API

This pull request allows other vs code extensions to access object running and object files renaming functionality by exporting it as na api. It is done by returning new ObjectNamesApi object from extension activation function. This object has 2 public members: RunObjectApi and ObjectNamesApi.
Exported API
RunObjectApi is just a proxy that calls methods from existing DynamicsNAV class and exposes these 4 functions:

RunObjectInWebClient(objecttype: any, objectid: any) : void;
RunObjectInTabletClient(objecttype: any, objectid: any) : void;
RunObjectInPhoneClient(objecttype: any, objectid: any) : void;
RunObjectInWindowsClient(objecttype: any, objectid: any) : void;

ObjectNamesApi is also a proxy that uses existing NAVObject class and allows other vs code extensions to use crs-al-language-extension patterns to generate object names and object file names. These 4 functions are exposed:

GetObjectFileName(objectType: string, objectId : string, objectName: string) : string;
GetObjectExtensionFileName(objectType: string, objectId : string, objectName: string, extendedObjectId : string, extendedObjectName : string) : string;
GetObjectExtensionName(objectType: string, objectId : string, objectName: string, extendedObjectId : string, extendedObjectName : string) : string;
GetBestPracticeAbbreviatedObjectType(ObjectType: String): string;

How to use it
To use these new APIs in dependent extensions, you have to call vscode.extensions.getExtension function to get the extension object. The next step is to check if extension is active. If it is active, then public api can be found in 'exports' member of the extension object. If it is not active then call to async activate() method will activate it and return public api object. This example gets crs-al-language-extension api and calls GetObjectFileName function.
import * as vscode from 'vscode';

async function textCRSExtensionApi() {
    //get crs-al-language-extension public api
    let crsExtension = vscode.extensions.getExtension('waldo.crs-al-language-extension');
    let crsALLangExtApi : any;

    if (crsExtension) {
        if (crsExtension.isActive)
            crsALLangExtApi = crsExtension.exports;
        else
            crsALLangExtApi = await crsExtension.activate();
        vscode.window.showInformationMessage('CRS-AL-LANGUAGE-EXTENSION GetObjectFileName("table", "50000", "My Table") api call result: ' +
            crsALLangExtApi.ObjectNamesApi.GetObjectFileName('table', '50000', 'My Table'));
    } else
        vscode.window.showErrorMessage('CRS-AL-LANGUAGE-EXTENSION not found');
}

Example above is not the best one as it uses 'any' type so it is not helping developer to choose the right functions using intellisense. To solve this problem, ObjectNamesApi, RunObjectApi and ObjectNamesApi classes implement interfaces defined in 'src/api/CRSExtensionPublicApiInterfaces.ts' file. You can copy this file to your extension and then import it to be able to see all available members and functions. Modified sample code can look like this one:
import * as vscode from 'vscode';
import * as crsALExt from 'crs-al-language-extension-api';

async function textCRSExtensionApi() {
    //get crs-al-language-extension public api
    let crsExtension = vscode.extensions.getExtension('waldo.crs-al-language-extension');
    let crsALLangExtApi : crsALExt.ICRSExtensionPublicApi;

    if (crsExtension) {
        if (crsExtension.isActive)
            crsALLangExtApi = crsExtension.exports;
        else
            crsALLangExtApi = await crsExtension.activate();
        vscode.window.showInformationMessage('CRS-AL-LANGUAGE-EXTENSION GetObjectFileName("table", "50000", "My Table") api call result: ' +
            crsALLangExtApi.ObjectNamesApi.GetObjectFileName('table', '50000', 'My Table'));
    } else
        vscode.window.showErrorMessage('CRS-AL-LANGUAGE-EXTENSION not found');
}

Wow, awesome!  Thanks so much!


ScanOptions.BACKGROUND not working with USB-3101FS

I am using a USB-3101FS and copying the a_out_scan example.
I don't think the ScanOptions.BACKGROUND mode is working properly because after executing ul.a_out_scan there is a long pause and then "Waiting for output scan to complete..." appears immediately followed by "Scan completed successfully".
I am running Python 3.6.6 on Windows 10 64-bit

Hi Kevin,
I just ran a_out_scan.py with a USB-3101FS on my Windows 7 64 bit computer, using Visual Studio 2015 with the python add in.  I do see a delay at the beginning of the app, but that is due to python taking time to generate the array of data.
I put a break point on ul.a_out_scan() so it would run to that point and stop.  From the time I click start to the time it hits the break point there's a ~20 to 30 second delay.  When I click "continue" at ul.a_out_scan() my 'scope immediately starts to show the sine wave of channel 0 (what I'm monitoring).  and when the app states it is done, so is the data being output by the USB-3101FS.

Hi Jeff,
I also used breakpoints in the code as well as a print statement
immediately before and immediately after the call to ul.a_out_scan
What I see if is the "before" print statement executes, then analog output
starts immediately after (I'm watching it on a scope)
There is then a ten second period where the analog output is taking place
before I see the "after" print statement.
This runs counter to my understanding of the BACKGROUND option. My
understanding is that this option should allow the program to continue
executing after the analog output has started. This is not what I observe.
On Thu., Jul. 18, 2019, 13:29 JeffG at MCC<EMAIL_ADDRESS>wrote:

Hi Kevin,
I just ran a_out_scan.py with a USB-3101FS on my Windows 7 64 bit
computer, using Visual Studio 2015 with the python add in. I do see a delay
at the beginning of the app, but that is due to python taking time to
generate the array of data.
I put a break point on ul.a_out_scan() so it would run to that point and
stop. From the time I click start to the time it hits the break point
there's a ~20 to 30 second delay. When I click "continue" at
ul.a_out_scan() my 'scope immediately starts to show the sine wave of
channel 0 (what I'm monitoring). and when the app states it is done, so is
the data being output by the USB-3101FS.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mccdaq/mcculw/issues/15?email_source=notifications&email_token=ABBVGEKF5JPXR6CYRK3QVIDQADHBZA5CNFSM4IE7C572YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JWAVY#issuecomment-512974935,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBVGENKGBSG57AZYP7OBUDQADHBZANCNFSM4IE7C57Q
.

@jeffreyg3 I'm wondering if you have been able to reproduce this issue. I still can't get the BACKGROUND option to work for me...

I have not been able to reproduce your issue.
How about this:
If you change the scan option from BACKGROUND to DEFAULTIO that will force foreground.
When you are in BACKGROUND, the next few lines of code (while loop) are run showing a message printed of
Waiting for output scan to complete...
while the loop runs, after every iteration it adds a "." to the end of the above.
It can do this because it is in a loop checking the status of the background output scan calling ul.get_status(), looking for Status = IDLE.
when the Status does equal IDLE, it exits the loop.
This is a true background operation because the app continues immediately after the call to a_out_scan().  If it was foreground, the app would not be able to proceed to the next line until the output completes.

Hi @jeffreyg3
I traced the problem to a difference between the Python 2 print function and the Python3 print function.
As written the print("Waiting for output scan to complete...", end="") followed by many print(".", end="") is buffered and does not show up until the final print("") is executed.
With Python3 the command needs to be print("Waiting for output scan to complete...", end="", flush=True) and the "." print statement should be print(".", end="", flush=True)

This stackexchange has more info https://stackoverflow.com/questions/493386/how-to-print-without-newline-or-space
I would suggest that if you want to make the code compatible with both Python 2 and 3 you should add a call to sys.stdout.flush() after both of the print statements. This is because the __future__ version of the print function doesn't support the flush=True argument.

Hi Kevin,
Thank you for your efforts in resolving this issue.  I have forwarded the information on to our developers for update in the next revision of the software.
Best regards,
Jeff


fix: allow multiple notationCert in default chart

Description

update deployment template to create multiple inline cert provider
extract release name into global variable
updated e2e test for using cert array
add note about deprecation for notationCert value

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #1145
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Helm Chart Change (any edit/addition/update that is necessary for changes merged to the main branch)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Mutiple cert scenario covered by e2e install commands
helmfile still uses single cert value to provide some coverage
Checklist:

[ ] Does the affected code have corresponding tests?
[ ] Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
[ ] Does this introduce breaking changes that would require an announcement or bumping the major version?
[ ] Do all new files have appropriate license header?

Post Merge Requirements

[ ] MAINTAINERS: manually trigger the "Publish Package" workflow after merging any PR that indicates Helm Chart Change

Still investining e2e failure, Looks like references to ratify-notation-inline-cert, needs to be updated

Still investining e2e failure, Looks like references to ratify-notation-inline-cert, needs to be updated

Fixed! :)

@susanshi I think some of our website quickstarts might need to be updated? Should we hold off on that until next release?

@susanshi not a block change but I think we should consider updating our helmfiles to use the new array-based helm value.

Doc updates are pushed to PR , https://github.com/deislabs/ratify-web/pull/31


Can't toggle mobile data from my watch anymore

Hello!
After I updated the SimpleWear app and it's helper app to the latest version, I discovered that I can't toggle the mobile data on my phone anymore. Was this feature entirely removed for older phones like mine is?
In such case, I'd like to avoid having to downgrade and redo everything. But I will if I have to...
And no, having to start Shizuku every time I reboot my phone is not an option for me - ADB worsens the already poor battery life of my phone even further, so I only enable it to then start up the system shell exploit (there's an API for it to launch commands). And then I turn it back off... Plus you need a PC or a WiFi hotspot to even be able to start it.
Galaxy Note 10 running Android 12 (April 2023 update)
Galaxy Watch 4 (March 2024 update)
Please advise. Thank you!

Hi,
This was mentioned in a previous issue, but the toggle before did not actually do anything.
If you tried to toggle data off it would still be on, although it would appear off in Settings (you can check this with this command - adb shell settings put global mobile_data 0).
To be able to reliably toggle mobile data and support multi-sim devices, you will unfortunately need either root or Shizuku access.
https://github.com/SimpleAppProjects/SimpleWear/issues/5#issuecomment-1732471911

Hey,
I recommend you just downgrade the SimpleWear settings to 1.0.0. Everything should work and you don't have to redo everything, you will just need to reapply the permissions in the SimpleWear settings app. Worked for me on the SimpleWear 1.15.3, both Android 12 and 13.
Also, a note for the developer: in the SimpleWear settings, there should be a switch or something that allows you to toggle mobile data through root/Shizuku or by setting the write secure settings. However, I'm not fully familiar with Android apps and permissions, so I'm not sure if this is even possible or makes sense.


Phone number regex problem

Detecting a phone number for any country is no easy task. Some Python libs are doing a great job at it using mix of regex and Machine Learning. Current implementation in lemmeknow is creating lot of obvious false positives:

Boundaryless mode is on by default for lemmeknow binary, that is why it identified the phone number, if you add -b flag to turn it off, you will see the results only if the whole text matched.


Puller in ModalViewController

Love the puller! Want to use it!
But when puller open from modalViewController - shrink animation for controller in background in LargeState is strange(

I checked how it works in Apple's sheet and did the same behaviour in the puller. Is it your case?


Add "recalibrate" accessory switch?

Could you add a "recalibrate" accessory switch, that would run "/cgi-bin/action.cgi?cmd=motor_calibrate" on the camera?

If I can do it with MQTT, I’ll take a look.

I know homebridge-dafang does it, but that plugin hasn't had any love in awhile, and your plugin in conjunction with camera-ffmpeg is a better solution at this point.

I’m pretty sure that plugin only talked to the camera through MQTT, so it should be doable.

Looks like it does this:
this.publishToMQTT('/motors/set', 'calibrate')

Perfect, should be simple to add.

Sorry for the delay, this will be in the next release, which should be within the next few days.

I'll be happy to have it whenever you get to it, absolutely no rush. I hope you're staying warm!

Added in v2.2.0


main to live

Docs Build status updates of commit 944f0dc:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

Advertising/bingads-13/ad-insight-service/ad-insight-service-reference.md
:white_check_mark:Succeeded

Advertising/bingads-13/bulk-service/bulk-service-reference.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/addbidstrategies.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/bidstrategy.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/campaign-management-service-reference.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/fileimportjob.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/getbidstrategiesbyids.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/googleimportoption.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/importjob.md
:white_check_mark:Succeeded

Advertising/bingads-13/campaign-management-service/updatebidstrategies.md
:white_check_mark:Succeeded

Advertising/bingads-13/customer-billing-service/customer-billing-service-reference.md
:white_check_mark:Succeeded

Advertising/bingads-13/customer-management-service/customer-management-service-reference.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/TOC.yml
:white_check_mark:Succeeded

Advertising/bingads-13/guides/account-hierarchy-permissions.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/ad-extensions.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/ad-insight-guides.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/audience-ads.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/bulk-guides.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/campaign-management-guides.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/campaigns.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/code-examples.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/concepts.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/customer-management-guides.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/entity-hierarchy-limits.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/faq.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/get-started.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/index.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/migration-guide.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/mixed-campaigns.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/product-ads.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/reference.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/release-notes.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/reporting-guides.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/reports.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/services.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/technical-guides.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/reporting-service-reference.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


https://www.learnpython.org/pl/

Traceback (most recent call last):
File "/usr/lib/python3.5/py_compile.py", line 125, in compile
_optimize=optimize)
File "", line 735, in source_to_code
File "", line 222, in _call_with_frames_removed
File "./prog.py", line 5
print "Hello, World!"
^
SyntaxError: Missing parentheses in call to 'print'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/py_compile.py", line 129, in compile
raise py_exc
py_compile.PyCompileError:   File "./prog.py", line 5
print "Hello, World!"
^
SyntaxError: Missing parentheses in call to 'print'

Traceback (most recent call last):
File "/usr/lib/python3.5/py_compile.py", line 125, in compile
_optimize=optimize)
File "", line 735, in source_to_code
File "", line 222, in _call_with_frames_removed
File "./prog.py", line 5
print "Hello, World!"
^
SyntaxError: Missing parentheses in call to 'print'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/py_compile.py", line 129, in compile
raise py_exc
py_compile.PyCompileError: File "./prog.py", line 5
print "Hello, World!"
^
SyntaxError: Missing parentheses in call to 'print'


ORDER

The query runs without any errors but its not ordering as required. Tried everything I can think of, really scratching my head with this one.
offset := views.ParseUintOrDefault(c.Request.URL.Query().Get("offset"), 0)
limit := views.ParseUintOrDefault(c.Request.URL.Query().Get("limit"), uint64(viper.GetInt("api.limit")))
order_by = "ASC"
sort_by := c.Request.URL.Query().Get("sort_by")
order := "Apps."  LIMIT ? OFFSET ? ;", string(order), limit, offset)

Excuse me if I am wrong, but isn't this a SQL question rather than a GORP question?

Well thats just it, when I run this query inside Sequel Pro it runs fine, ordering is as expected.... using gorp it runs, without errors but returns results unordered.

What is the type of response.AppsData?

ping @TheInsideMan


gaston build should create bundle.css and build.css

this is very outdated and it's working as intended.


Accidentally broke the sidebar

I don't have any idea how this could ever happen:

As you can see I now have 2 source control tabs and one of them is the actual "find and replace" tab. I might have accidentally dragged one icon onto the other while the app was loading something and so it froze for a second and did this to the tabs.
Also, it's gone from the menu as well:

VSCode Version: 1.52.1
OS Version: macOS Big Sur 11.1

Steps to Reproduce:

Open a project
Drag your sidebar icons onto one another

Does this issue occur when all extensions are disabled?: Yes

I can repro this only if I do following

Move Search view into Source control views
Move source control views out into its own view container

I do not think this can be done automatically other than user interaction. You can always use Reset Locations command to reset all.

I can repro this only if I do following

Move Search view into Source control views
Move source control views out into its own view container

I do not think this can be done automatically other than user interaction. You can always use Reset Locations command to reset all.

@sandy081 so for you it's completely normal behaviour that when you drag an icon into another, the other tab name (find and replace) gets replace by the dragged one. See the picture, and tell me whether it's normal that the find and replace tab has the title "source control"...

@sandy081 so for you it's completely normal behaviour that when you drag an icon into another, the other tab name (find and replace) gets replace by the dragged one. See the picture, and tell me whether it's normal that the find and replace tab has the title "source control"...

so for you it's completely normal behaviour that when you drag an icon into another, the original tab name gets replaced by the dragged one.

I don't think this is happening here right? When you moved Search views into Source control, Original tab name and icon are still applied. It is still true when you move all other Source control views out of Source control. As a result, search view remains as the only view in Source control. The original tab name and icon still remain and hence search view got Source control icon and name.

so for you it's completely normal behaviour that when you drag an icon into another, the original tab name gets replaced by the dragged one.

I don't think this is happening here right? When you moved Search views into Source control, Original tab name and icon are still applied. It is still true when you move all other Source control views out of Source control. As a result, search view remains as the only view in Source control. The original tab name and icon still remain and hence search view got Source control icon and name.

Well, I'm a programmer and I find this behaviour very confusing anyways. To me it doesn't make any sense at all. Why would you rearrange tabs and then get the wrong names for them...

Well, I'm a programmer and I find this behaviour very confusing anyways. To me it doesn't make any sense at all. Why would you rearrange tabs and then get the wrong names for them...

I do not think VS Code is doing this automatically and all actions are performed by the user and works in according to the user actions. May be we are not on same page, can you please explain your thinking, probably by providing the steps to repro and what is the expected behaviour.

I do not think VS Code is doing this automatically and all actions are performed by the user and works in according to the user actions. May be we are not on same page, can you please explain your thinking, probably by providing the steps to repro and what is the expected behaviour.


Synapse Error when deploying

{
    "status": "Failed",
    "error": {
        "code": "ValidationFailed",
        "message": "Spark pool request validation failed.",
        "details": [
            {
                "code": "DynamicExecutorAllocationNotValid",
                "message": "Min and max executors properties are mandatory fields when dynamic executor allocation is enabled"
            }
        ]
    }
}

Resource Type:
Microsoft.Synapse/workspaces/bigDataPools
Deployment always fails at this stage...

Pull request: #5


Code text appearing foggy/blurry

All code text in version 1.14.0 is appearing foggy/blurry.

VSCode Version: 1.40.0
OS Version: Windows 10 18362.418

Steps to Reproduce:

Open Visual Studio Code
Open any file

Does this issue occur when all extensions are disabled?: Yes

/duplicate - see #84154


zsh: command not found: ytarchive

After I installed it with 'go install github.com/Kethsar/ytarchive@master'
I type 'ytarchive -w' in terminal
but 'zsh: command not found: ytarchive' came out
how can i do to fix it
thank you
sorry for my poor english

You need to add Go's bin directory to your PATH. Go's bin directory can be found at $GOPATH/bin.
Alternatively grab the binary release from the releases page. Installing from source via go install assumes you have yourself set up to do that.


Test image not provided

tests/utils/compare_image.py:27 ([doctest] tests.utils.compare_image.compare_images)
050         - *tol*: The comparison tolerance.
051
052     Raises:
053         ValueError: If either of the provided images is not suitable.
054         IOError: If either of the image files cannot be found.
055
056     Examples:
057         >>> img1 = "docs/images/wheel_on_inclined_plane.png"
058         >>> img2 = "docs/images/wheel_on_inclined_plane.png"
059         >>> compare_images(img1, img2, 0.001)
UNEXPECTED EXCEPTION: ValueError('Output image docs/images/wheel_on_inclined_plane.png does not exist.')

Visual inspection of the image produced indicates that there are probably no issues in the code under test and that the absence of the reference image is the reason for the failure.
However, a ValueError was raised, in lieu of an IOError: If either of the image files cannot be found..
All 43 other tests pass.

Which command are you using to run this? Are you running it as part of the nox build?

The image is provided here. I'm not able to replicate this. Can I close it? Or can you provide the commands you use to run this so I'm more able to help?

I ran the tests with the IDE default test runner launch command (clicked on the menu).
IDK how to extract the command line generated, but I saved the runConfiguration file generated pytest_in_tests.xml - maybe you can use it? let me know if I need to dig deeper:
<component name="ProjectRunConfigurationManager">   <configuration default="false" name="pytest in tests" type="tests" factoryName="py.test" nameIsGenerated="true">     <module name="pysketcher-1" />     <option name="INTERPRETER_OPTIONS" value="" />     <option name="PARENT_ENVS" value="true" />     <option name="SDK_HOME" value="" />     <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/tests" />     <option name="IS_MODULE_SDK" value="true" />     <option name="ADD_CONTENT_ROOTS" value="true" />     <option name="ADD_SOURCE_ROOTS" value="true" />     <option name="_new_keywords" value="""" />     <option name="_new_parameters" value="""" />     <option name="_new_additionalArguments" value="""" />     <option name="_new_target" value=""$PROJECT_DIR$/tests"" />     <option name="_new_targetType" value=""PATH"" />     <method v="2" />   </configuration> </component>
in addition to the current issue, I tried to run $ pytest from the tests directory - it ran 3 tests, and hung forever. Here is the output until the KB interrupt:
`$ pytest
======================================================================================== test session starts =========================================================================================
platform darwin -- Python 3.9.7, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /Users/ReblochonMasque/Projects/Projects/pysketcher-1/pysketcher-1, configfile: pyproject.toml
plugins: hypothesis-6.24.1
collected 44 items
test_angle.py ...^C
`


Add transparent border-bottom to top nav for high contrast

Summary of the changes
Add transparent border-bottom to top nav for high contrast
Related issue
#89
Checklist

[x] I have added relevant unit and visual regression tests.
[x] I have manually accessibility tested any changes, if relevant.
[x] I have ensured any changes match the Figma component library.

The App Icon for the top nav doesn't match up when switching between light and dark theme, which can cause it to become invisible. Probably want to switch it to use currentColor fill property (https://www.smashingmagazine.com/2022/06/guide-windows-high-contrast-mode/#behavior-of-images)

@GCHQ-Developer-741 Looks like that will be fixed in this PR


removed physics only items including GraphSketcher and SymbolicChemistry questions

https://github.com/isaaccomputerscience/isaac-cs-issues/issues/86

There is a dependency called isaac-graph-sketcher in package.json. Does that need to be removed too?


Cinnamon Pi

LGTM!

Not merging yet as I will most probably roll this into each exercise in the repo instead of just exercise 7.
Also, the current implementation requires changes in the root build.sbt which is inconvenient in view of the tooling that is in place (course management tools).


Show link to tag a new release when a PR is merged

Saves a few clicks. Might help some to release more often!
To not clutter the PR page too much the link should appear after the PR is merged / branch deleted.
cc https://github.com/sindresorhus/refined-github/issues/1024

Thanks for the suggestion, but we're going to pass on this. I would find this more annoying than helpful. I don't release after every PR, and most projects cannot release directly from the GitHub UI.


Fix DZIP naming on screen and in Excel export

Done in https://github.com/Neural-Systems-at-UIO/WebWarp/commit/a505fc5999e644954f8c4fb2fb3b80e13752e0db


MINOR: Reset java.security.auth.login.config in ZK-tests to avoid config reload affecting subsequent tests

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@omkreddy Thanks for the review, test failures not related, merging to trunk.


[FEATURE] The planOnly mode of kyuubi spark engine support SQL lineage output

Code of Conduct

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

Search before asking

[X] I have searched in the issues and found no similar issues.

Describe the feature
Executing sql with the PlanOnly mode will get the output of SQL's lineage
Motivation
No response
Describe the solution
No response
Additional context
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

I'm so curious about the result with SQL's lineage~

I'm so curious about the result with SQL's lineage~

You can refer to this pr https://github.com/apache/incubator-kyuubi/pull/3185


Add a convenience target to use when debugging topologies locally

https://issues.apache.org/jira/browse/STORM-759
It would be really nice if there was a storm target like "jar", but one that would pause and wait for a remote java debugger so you could debug your topology while running locally.
Incidentally, here's a more or less trivial fix for this.

you could just use the storm jar command and provide the debug args as topology.worker.childopts config. I don't think we need a special command for this.

Doing
Config conf = new Config();
conf.put(Config.TOPOLOGY_WORKER_CHILDOPTS, "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005");
Doesn't make the JVM suspend upon start and wait for a debugger. Would there be another convenient way?

@Parth-Brahmbhatt
Maybe @l03wn3 want to attach debugger with main process which submits topology, not deployed workers. But still I agree it doesn't need to add special command.
@l03wn3
If I know "storm.py" right, for now you can try adding your arguments to system environment STORM_JAR_JVM_OPTS before executing "storm jar".
Sure you can restore STORM_JAR_JVM_OPTS after doing this.

in that case you are right , if you want to test in local mode you should use STORM_JAR_JVM_OPTS.

@HeartSaVioR Yes, precisely. I've been adding stuff to storm.py and then removing it, but since it's annoying and not convenient to edit the storm binary of the system, I decided to add another target instead. I know there's other less convenient ways, but this is much more convenient and does not require modifying system files.

@Parth-Brahmbhatt +1

@l03wn3, is STORM_JAR_JVM_OPTS OK for debugging this way?
If so, would you close this pull request?  Otherwise, would you create a Jira issue for this change?

Closing this. Please reopen if it's still an issue.


Add tests for Cobertura parser

Coverage increased (+6.8%) to 49.805% when pulling b370a6e72978c787860c6bae59d9c56da65a73f6 on cobertura-test into a1bf6bdc9db3fb629404731c5115a4d1e7fe5e6c on master.


ardb snapshot backup/restore

[ ] Check server type. info server -> ardb_version:0.9.4, engine:rocksdb
[x] Make sure rocksdb backup works well when WAL disabled (write_option.disableWAL=true) https://github.com/facebook/rocksdb/wiki/basic-operations
*** Backup doesn't work when WAL disabled ***
Backup works well with WAL enabled.
[ ] State machine take snapshot. By: bgsave backup
[ ] State machine load snapshot. By: import <backup_path>

WIP: Make sure rocksdb backup works well when WAL disabled (write_option.disableWAL=true) https://github.com/facebook/rocksdb/wiki/basic-operations

@GhostComputing

WIP:

State machine take snapshot. By: bgsave backup；
State machine load snapshot. By: import <backup_path>；
[btw: reuse StateMachineRedis.cc]

@TigerZhang


gradcam and segmentation output

hello author,
I have a question related to grad cam. I want to know the difference between class activation maps and output feature map. If i apply the gradcam module for the last conv block or intermediate conv blocks, it is supposed to give the heatmap about where in the image the channels are activated. In case of classification task it maskes sense. What about in case of segmentation task?
If i apply grad cam to the last conv block, the gradcam heatmap is same as the output feature map or output segmentation output?
I have tried this on my task, and i found that the gradcam heatmap and final output is different. What can i conclude from this?

thank you

I can't draw any conclusion from the heatmaps with seen the original image.
If the heatmap (gradients taken with respect to the bottleneck) doesn't repeat the segmentation mask, it means the context influenced the prediction of the mask.


Implement proper caching of Airtable requests (add state management?)

Is your feature request related to a problem? Please describe
The current caching logic doesn't work, so we're still making requests to Airtable to get the full list of prefectures, languages and topics every time we load the speaker list and the nominate form.
Since we shouldn't have any more N+1 requests problem, it's a not a huge deal right now, but could improve the performance slightly and more as we add more pages to the site in the future (speaker profile page, etc?).
Describe the solution you'd like
I think we should probably just add centralized state management with Vuex.
Describe alternatives you've considered
I tried a few workarounds for caching, but they all have problems (serializing/deserializing data, etc).

lolololol we should fix this, it's making the page load slower and slower as our userbase grows

It's already fixed on the PR I submitted above.


Space Mode: Exporting same plan repeatedly alternates between adding and deleting files

I have a test plan that just has all the street fighter games in a subfolder called Fighters.
Just ran it for the 4th time:

and here's my _Arcade contents now (empty):

Just triple-confirming. Ran it for a 5th time (no changes to plan):

and the files are there now:

By the way, this is all on Space mode (edited title to reflect this)

Additional info: when I edit games between exports, it seems to add newly added ones, but delete the ones that were added the previous time.

Can you go to Catalog > Open Folder. Then go up one folder and there should be files named "export-log--exportToMister...". Can you zip them all up and attach them here?

The only files in the entire AppData > Roaming folder I see that contain the word log are:

I clearly need to test on Windows more :)
I know what this is. This is due to Jotego dropping the dates from his core names. That broke AMMister and my fix was not good enough. Let me think a bit.

haha yeah, gonna be lots of windows dummies using this I bet
Do you mostly use linux for daily use / testing?

Yeah I use Linux. Thankfully OS specific issues are usually rare. Although that one you found where you can't edit the directory name, that seems like a bug in Windows itself. Not sure yet what I'll do about that one.

That one seems pretty edge case, wouldn't worry about it too much

The fix for this will be in 0.25.3 once it shows up. I also added an integration test to help ensure this doesn't happen again.


shareReplay keeps subscription alive even with 0 subscribers

Bug Report
Current Behavior
As far I understand, shareReplay(1) should function like share(), except it keeps track of the last emission, so when a new subscriber appears, it immediately emits it to that new subscriber.
For both share() and shareReplay(), I would expect the observable to be disposed when it reaches 0 subscribers. This works for share() but not for shareReplay().
See the following example:
Reproduction
https://stackblitz.com/edit/rxjs-s2u1y1
console.clear();

const source = interval(1000).pipe(
  shareReplay(1)
);

const subscription = source.subscribe(x => console.log(x));

setTimeout(() => {
  console.log("unsubscribing...");
  subscription.unsubscribe();
}, 4000);

setTimeout(() => {
  console.log("RE-subscribing...");
  source.subscribe(x => console.log(x));
}, 8000);

Expected behavior
I would expect to see:
0
1
2
3
unsubscribing...
RE-subscribing...
0 (or maybe 3 - if the behaviour is to remember the last value, even with zero subs)
...

But instead of a 0 or 3, we see a 7 - an indication that the interval kept firing in the background and was not stopped.
If we use a share() in the same example, it works as expected and starts from 0.
Environment

Runtime: 79.0.3945.88 (Official Build) (64-bit)
RxJS version: 6.5.2

Have I missed something or would this be unexpected?

Not a bug. shareReplay defaults to not reference counting - for an explanation of the history behind this, see https://ncjamieson.com/whats-changed-with-sharereplay/
If you want the subscription to the source to be reference counted, use a config argument:
    shareReplay({
      bufferSize: 1,
      refCount: true,
    })

That's very interesting! I learned something today - thanks for sharing! I'll close this and appreciate the quick reply!


Upgrade sbt-docker to 1.4.1

This fixes issues with parsing the new naming scheme especially on macOS. See also
https://github.com/marcuslonnberg/sbt-docker/issues/60

Merged. Thank you for your contribution!


Rhai shared scoped refs

A couple of quick observations:

Try not to change existing API like register_get or else we'll break code. Better to add to the API surface instead.

Same for examples and tests... Try to add instead of change. This would be quite messy to undo by the time we're ready to merge.

Try to have as few changed files as possible as that would help with reasoning. Also it'll help putting this under a feature flag.

I wonder how this is working out...


Discussion/pre-RFC: what is the right long-term home for environment types?

Today, Glint supplies all of the type definitions it requires to work via a combination of the @glint/template package (the baseline for the rest) and the various environments which extend that appropriately for their own context. This is serving us well so far, but it has the potential to cause some issues down the line, which I want to note down as I'm thinking about them today.
One of the frustrations with DefinitelyTyped is that there is no good way to match the versioning between the types on DT with the actual version of any given package, particularly around new features added in minor releases. For example, we recently had a very annoyed user complaining about the Ember 3.x types including all APIs released up through 3.28 on types which worked for any Ember 3.x consumer, and thereby providing some misleading suggestions for APIs which do not exist on the version he was on. (I do not want to over-index on that particular complaint, of course, but it is illustrative of the challenge.) We have the same potential issue for every item which appears in the globals list for any given environment.
Consider the introduction—hopefully soon!—of the equality and comparison keywords: these will need to be added to the globals/built-ins list in environment-ember-loose, but they will only actually work correctly in Ember on a version which actually includes that functionality.[^polyfill] We do not have any particularly good way to signal which versions of Glint environment types are compatible with a given Ember version. We can (and, as long as we are taking this tack, definitely should) document it, but we also then have the problem of figuring out how to handle bug fix releases—do we end up having @glint/template with 1.1.x and 1.2.x maintenance streams ongoing, where 1.2.x supports Ember 4.10+, while 1.1.x does not? Etc.
Net, I propose that medium-to-long-term, the Glint environments should move out of Glint to the packages which they represent. Now, that has its own potential problems in that we could end up with Glint depending on types from those packages and those packages depending on types from Glint. One way to cut that knot is to make sure that @ember/glint (hypothetical future package) is a real package which is versioned in lockstep with and published out of the same repo as ember-source, and to then guarantee that the direction of dependencies only ever running these ways:

ember-source ← @glint/template
ember-source ← @ember/glint
@glint/template ← @ember/glint

I believe that would resolve that particular thorny issue, while giving us the ability to make sure we keep the definitions for the environment in sync—but it’s very possible there’s a piece of it I’m not seeing! Also, it still has a relatively annoying issue around versioning of @glint/template and ember-source (and the relation of both to the underlying @glimmer/* bits: because they are intimately and inextricably connected to at least some degree).
Thoughts, @dfreeman @jamescdavis?
[^polyfill]: or via polyfill, of course, but the point is generally the same.

Net, I propose that medium-to-long-term, the Glint environments should move out of Glint to the packages which they represent.

I think this makes sense, particularly as first-class TS support is approaching reality in Ember itself. Everything that follows is just sifting through the details.

ember-source ← @glint/template
ember-source ← @ember/glint
@glint/template ← @ember/glint

I think in this scenario (if I'm understanding correctly), ember-source and @glint/template would be mutually unaware of each other, and @ember/glint would be solely responsible for tying the two together.

@ember/glint (hypothetical future package)

From a naming perspective, we might go with @ember/glint-environment. That would open the door to do the same thing Babel and ESLint both do for their plugin packages and accept environment: "@scope" as shorthand for environment: "@scope/glint-environment".
Then we could have environment: "@ember", environment: "@glimmerx", and so on to refer to Glint integration provided by the toolkit in question.

Also, it still has a relatively annoying issue around versioning of @glint/template and ember-source

Agreed we would need to think carefully about the semver policy here, but I expect after the changes under discussion in https://github.com/typed-ember/glint/issues/396 land that @glint/template will be fairly stable for the foreseeable future.
We also need to worry some about the touchpoint between @ember/glint-environment and @glint/core, as we've so far been able to treat the environment interface as essentially an implementation detail. I think stabilizing that interface and declaring it public is feasible, it will just require us to be a little more thoughtful about any changes to it going forward.

(and the relation of both to the underlying @glimmer/* bits: because they are intimately and inextricably connected to at least some degree)

Glint does of course have a connection to the underlying @glimmer packages in terms of how it represents template semantics and what's valid there, but since that's mediated by Ember (or whatever environment), I think Glint itself can remain fairly decoupled on that front.
Off the top of my head, the only tight binding I know we have currently outside of an environment package is the use of ExpandSignature from @glimmer/component in @glint/template, and that's already caused some consternation in other areas since it forces a peer dependency.
I think our reasoning for making @glimmer/component the source of truth made sense, but we might just want to cut that knot and define our own ExpandComponentSignature type in @glint/template. Technically the @glimmer/component package doesn't even care about anything other than Args anyway!


Support for basepath

Hello again 🙌🏻
I'm made demo on gh-pages and I can't specify base path for router (in my case it wouter-async-routes)
need this feature 💁🏻♂

If I get you right what you need is being able to match a path with a constant prefix like so:
/app/users => /users
You can easily achieve that via the custom hook feature released in v2.0.0. It allows you to specify your own useLocation hook which is used for obtaining the current location. I could imagine that what you need could look like:
import { useLocation, Router } from "wouter";

const usePartialLocation = () => {
  const [location, setLocation] = useLocation();

  const stripped = location.replace(/^\/app/, '')
  return [stripped, to => setLocation("/app' + to)]
}

Nice!!!
thanks for explanation

now demo works as expected


efficientnet pretrained model URL is empty

When I use this code
model = geffnet.create_model(
'efficientnet_b5',
num_classes=1000,
in_chans=3,
pretrained=True,
exportable=True)

But this error occured.
efficientnet b0~b3 => okay
efficientnet b4~b7 => URL is empty.
How to solved this problem?

Ross has not trained efficientnet_b5 by himself yet. You can try using tf_efficientnet_b5. Good luck
Linh

On 9 Nov 2020, at 17:35, HyunJun Lee<EMAIL_ADDRESS>wrote:

When I use this code
model = geffnet.create_model(
'efficientnet_b5',
num_classes=1000,
in_chans=3,
pretrained=True,
exportable=True)
But this error occured.
efficientnet b0b3 => okay
efficientnet b4b7 => URL is empty.
How to solved this problem?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@linhduongtuan
You mean tensorflow hub efficientnet?

Not really, he converts/ports TF weights to compatible PT weights.
Linh

On 10 Nov 2020, at 08:52, HyunJun Lee<EMAIL_ADDRESS>wrote:
@linhduongtuan https://github.com/linhduongtuan
You mean tensorflow hub efficientnet?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rwightman/gen-efficientnet-pytorch/issues/53#issuecomment-724397740, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27FZSX2C2GQCMQZPIFDSPCMFXANCNFSM4TPFAS4A.

1/ I don’t really know. You can look more closely eyes in his repos
2/ instead of using model = create_model(‘efficientnet_b5’, pretrained=True), you should use model = create_model(’tf_efficientnet_b5’, pretrained=True). To know where is a weight link, you can go into timm —> models —> efficientnet.py —> url for them
3/ Yes, you will use transfer learning with the pretrained weight from Google which is ported to PT
Linh

On 10 Nov 2020, at 09:27, HyunJun Lee<EMAIL_ADDRESS>wrote:
@linhduongtuan https://github.com/linhduongtuan
Oh, I'm so sorry ,I didn't get it exactly.
where is converts/ports file? I can't find that in this repository.
Can you give the link?
I'm not correctly know model that is you mentioned, Can you give link that has model?
You mean that pretrained TF efficientnet model weight to convert Pytorch weight?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rwightman/gen-efficientnet-pytorch/issues/53#issuecomment-724408517, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27FPBGUGA5UNDL4KZZLSPCQHTANCNFSM4TPFAS4A.

Oh, I understand clearly.
I have one more question.
I see tf_efficientnet is more accurately better than efficientnet.
Did you know the reason that?

thanks @linhduongtuan
@hjlee9182 all models with the tf_ prefix were converted from original Tensorflow weights, and are available here https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet ... numerous different papers are covered so quite a few different sets of weights. The models without the prefix were trained in PyTorch by me, I've only had resources to train the smaller ones. The models do differ in the padding used. You can research SAME padding in PyTorch if you are curious why that's relevant.


test commit

📝Changed routes:

/posts

(view full size)

Commit 4656f0e12bf5b45078d8a193e8ff822d9461a961 (https://sirius-next-hupoztrwz-bookman0001.vercel.app).


fix #420. Make available to use client host URL.

urlparse uses '/'(as taken from default request) instead of client URL.
I suggest to set default URL as empty to allow using path from client host URL
like 'http://host/path'
I couldn't merge this patch with HEAD in https://github.com/boto/botocore/pull/447
so I've created a new one...

Coverage remained the same at 94.25% when pulling 6969fe0110d3fe958926d87a592a585b5d0e3185 on Andrey-mp:develop into ae1293d1271b4ead7356458ed6aaffa6039c55aa on boto:develop.

I think this would be a helpful feature.  We may need to make some adjustments for how this is implemented so we can avoid changing the protocol compliance tests, but I think the test_endpoints.py are a great starting point.  I'll take a look at this more today.  Thanks for the PR.