Windows CI/CD cannot build

Steps to reproduce
name: Flutter Desktop CI/CD

on:
  push:
    branches:
      - testingcicd
  pull_request:
    branches:
      - testingcicd

jobs:
  build:
    name: Build
    runs-on: windows-latest

    outputs:
      app_version: ${{ steps.extract_version.outputs.app_version }}

    steps:
      - uses: actions/checkout@v3

      - name: Ensure PowerShell and where are in PATH
        run: |
          echo "Ensuring required paths are in PATH"
          $env:PATH += ";C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0"
          [System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, [System.EnvironmentVariableTarget]::Process)
          where.exe powershell
          where.exe cmd

      - name: Install Chocolatey
        run: |
          Set-ExecutionPolicy Bypass -Scope Process -Force; `
          [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
          iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

      - name: Install Flutter SDK
        uses: subosito/flutter-action@v2
        with:
          flutter-version: '3.19.6'
          channel: "stable"

      - name: Echo Process Environment Variables
        shell: pwsh
        run: |
          Write-Output "Process PATH:"
          $path = $env:PATH
          $chunks = 50
          for ($i = 0; $i -lt $path.Length; $i += $chunks) {
          Write-Output $path.Substring($i, [Math]::Min($chunks, $path.Length - $i))
          }

      - name: Echo System Environment Variables
        shell: pwsh
        run: |
          Write-Output "System PATH:"
          $systemPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)
          $chunks = 50
          for ($i = 0; $i -lt $systemPath.Length; $i += $chunks) {
            Write-Output $systemPath.Substring($i, [Math]::Min($chunks, $systemPath.Length - $i))
          }

      - name: Install Visual Studio Build Tools with Windows 10 SDK
        run: |
          choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --includeRecommended --includeOptional"

      - name: Verify Windows 10 SDK Installation
        run: |
          dir "C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0"

      - name: Install dependencies and generate models
        run: |
          ./sh

      - name: Cache Flutter Dependencies
        uses: actions/cache@v3
        with:
          path: |
            ~/.pub-cache
            ${{ runner.temp }}/flutter
          key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}
          restore-keys: |
            ${{ runner.os }}-flutter-

      - name: Echo PATH for Debugging
        run: echo $env:PATH

      - name: Build Flutter Desktop App
        env:
          PATH: ${{ env.PATH }};${{ runner.temp }}\.cargo\bin
        run: |
          cd presentation
          flutter doctor -v
          flutter build windows --release --dart-define-from-file=release.json

Actual results
After building the app for around 4 mins i am getting an error which i think it is related to the same reason why flutter doctor -v doesn't work, which is because of where.exe, but i tried to print the env path and the path for system32 where the where.exe is located, is present. I couldn't find any solutions regarding CI/CD for Windows apps.
Logs
"Echo Process Environment Variables" step:

Process PATH:
C:\Program Files\PowerShell\7;C:\Users\runneradmin
\AppData\Local\Pub\Cache/bin;C:\hostedtoolcache\wi
ndows\flutter\stable-3.19.6-x64/bin/cache/dart-sdk
/bin;C:\hostedtoolcache\windows\flutter\stable-3.1
9.6-x64/bin;C:\Program Files\MongoDB\Server\5.0\bi
n;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NS
IS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\h
ostedtoolcache\windows\stack\2.15.7\x64;C:\cabal\b
in;C:\\ghcup\bin;C:\mingw64\bin;C:\Program Files\d
otnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;
C:\Program Files\R\R-4.4.0\bin\x64;C:\SeleniumWebD
rivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDrive
r\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program F
iles (x86)\sbt\bin;C:\Program Files (x86)\GitHub C
LI;C:\Program Files\Git\bin;C:\Program Files (x86)
\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows
\go\1.21.10\x64\bin;C:\hostedtoolcache\windows\Pyt
hon\3.9.[13](https://github.com/CodeStorming/spm_desktop/actions/runs/9357033600/job/25755835152#step:6:14)\x64\Scripts;C:\hostedtoolcache\windows\
Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\
3.0.7\x64\bin;C:\Program Files\OpenSSL\bin;C:\tool
s\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temu
rin-Hotspot_jdk\8.0.412-8\x64\bin;C:\Program Files
\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Micro
soft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\P
rogramData\docker-compose;C:\ProgramData\Chocolate
y\bin;C:\Windows\system32;C:\Windows;C:\Windows\Sy
stem32\Wbem;C:\Windows\System32\WindowsPowerShell\
v1.0\;C:\Windows\System32\OpenSSH\;C:\Program File
s\dotnet\;C:\Program Files\PowerShell\7\;C:\Progra
m Files\Microsoft\Web Platform Installer\;C:\Progr
am Files\Microsoft SQL Server\Client SDK\ODBC\170\
Tools\Binn\;C:\Program Files\Microsoft SQL Server\
150\Tools\Binn\;C:\Program Files (x86)\Windows Kit
s\10\Windows Performance Toolkit\;C:\Program Files
 (x86)\WiX Toolset v3.[14](https://github.com/CodeStorming/spm_desktop/actions/runs/9357033600/job/25755835152#step:6:15)\bin;C:\Program Files\Micr
osoft SQL Server\130\DTS\Binn\;C:\Program Files\Mi
crosoft SQL Server\140\DTS\Binn\;C:\Program Files\
Microsoft SQL Server\[15](https://github.com/CodeStorming/spm_desktop/actions/runs/9357033600/job/25755835152#step:6:16)0\DTS\Binn\;C:\Program File
s\Microsoft SQL Server\[16](https://github.com/CodeStorming/spm_desktop/actions/runs/9357033600/job/25755835152#step:6:17)0\DTS\Binn\;C:\Strawberry
\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\p
erl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools
\Pulumi\bin;C:\Program Files\TortoiseSVN\bin;C:\Pr
ogram Files\CMake\bin;C:\ProgramData\chocolatey\li
b\maven\apache-maven-3.8.7\bin;C:\Program Files\Mi
crosoft Service Fabric\bin\Fabric\Fabric.Code;C:\P
rogram Files\Microsoft SDKs\Service Fabric\Tools\S
erviceFabricLocalClusterManager;C:\Program Files\n
odejs\;C:\Program Files\Git\cmd;C:\Program Files\G
it\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Pro
gram Files\GitHub CLI\;c:\tools\php;C:\Program Fil
es (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\
;C:\Program Files\Amazon\SessionManagerPlugin\bin\
;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program
 Files\Microsoft SQL Server\1[30](https://github.com/CodeStorming/spm_desktop/actions/runs/9357033600/job/25755835152#step:6:31)\Tools\Binn\;C:\Pro
gram Files\LLVM\bin;C:\Users\runneradmin\.dotnet\t
ools;C:\Users\runneradmin\.cargo\bin;C:\Users\runn
eradmin\AppData\Local\Microsoft\WindowsApps

"Build Flutter Desktop App" step :

[☠] Flutter (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X Error: Cannot find the executable for `where`. This can happen if the System32 folder (e.g. C:\Windows\System32 ) is removed from the PATH environment variable. Ensure that this is present and then try again after restarting the terminal and/or IDE.
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      _WindowsUtils._which (package:flutter_tools/src/base/os.dart:488:7)
      #2      OperatingSystemUtils.which (package:flutter_tools/src/base/os.dart:92:31)
      #3      FlutterValidator._validateSdkBinary (package:flutter_tools/src/doctor.dart:666:52)
      #4      FlutterValidator._validateRequiredBinaries (package:flutter_tools/src/doctor.dart:653:47)
      #5      FlutterValidator.validate (package:flutter_tools/src/doctor.dart:567:7)
      #6      Doctor.startValidatorTasks.<anonymous closure> (package:flutter_tools/src/doctor.dart:272:72)
      #7      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:[11](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:12)1:32)
      #8      _rootRun (dart:async/zone.dart:1399:13)
      #9      _CustomZone.run (dart:async/zone.dart:1301:19)
      #10     _runZoned (dart:async/zone.dart:1804:10)
      #11     runZonedGuarded (dart:async/zone.dart:1792:[12](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:13))
      #12     runZoned (dart:async/zone.dart:1744:12)
      #13     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #14     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:264:9)
      #15     Doctor.diagnose (package:flutter_tools/src/doctor.dart:396:72)
      #16     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:49:48)
      #17     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1765:12)
      <asynchronous suspension>
      #18     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:[13](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:14)89:27)
      <asynchronous suspension>
      #19     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
      <asynchronous suspension>
      #20     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
      <asynchronous suspension>
      #21     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
      <asynchronous suspension>
      #22     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:[15](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:16)3:19)
      <asynchronous suspension>
      #23     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
      <asynchronous suspension>
      #24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:119:9)
      <asynchronous suspension>
      #25     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
      <asynchronous suspension>
      #26     main (package:flutter_tools/executable.dart:90:3)
      <asynchronous suspension>

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Android\android-sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = C:\Android\android-sdk
    • ANDROID_SDK_ROOT = C:\Android\android-sdk
    • Java binary at: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.412-8\x64\bin\java
    X Could not determine java version
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.9.7)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Enterprise
    • Visual Studio Enterprise 2022 version 17.9.34902.65
    ! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.20348.2461]
    • Chrome (web)      • chrome  • web-javascript • unknown

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 4 categories.

Building Windows application...
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\CMakeFiles\d68f6[16](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:17)fe25895c47e368c836433d5fe\super_native_extensions.dll.rule;D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\CMakeFiles\0aa2c7a6fc773ceb7e0db91daf795391\super_native_extensions_plugin_cargokit.rule;D:\a\spm_desktop\spm_desktop\presentation\windows\flutter\ephemeral\.plugin_symlinks\super_native_extensions\windows\CMakeLists.txt' exited with code 1. [D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\plugins\super_native_extensions\super_native_extensions_plugin_cargokit.vcxproj]
Building Windows application...                                   245.7s
Build process failed.

Flutter Doctor output

Doctor output

[☠] Flutter (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X Error: Cannot find the executable for `where`. This can happen if the System32 folder (e.g. C:\Windows\System32 ) is removed from the PATH environment variable. Ensure that this is present and then try again after restarting the terminal and/or IDE.
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      _WindowsUtils._which (package:flutter_tools/src/base/os.dart:488:7)
      #2      OperatingSystemUtils.which (package:flutter_tools/src/base/os.dart:92:31)
      #3      FlutterValidator._validateSdkBinary (package:flutter_tools/src/doctor.dart:666:52)
      #4      FlutterValidator._validateRequiredBinaries (package:flutter_tools/src/doctor.dart:653:47)
      #5      FlutterValidator.validate (package:flutter_tools/src/doctor.dart:567:7)
      #6      Doctor.startValidatorTasks.<anonymous closure> (package:flutter_tools/src/doctor.dart:272:72)
      #7      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:[11](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:12)1:32)
      #8      _rootRun (dart:async/zone.dart:1399:13)
      #9      _CustomZone.run (dart:async/zone.dart:1301:19)
      #10     _runZoned (dart:async/zone.dart:1804:10)
      #11     runZonedGuarded (dart:async/zone.dart:1792:[12](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:13))
      #12     runZoned (dart:async/zone.dart:1744:12)
      #13     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #14     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:264:9)
      #15     Doctor.diagnose (package:flutter_tools/src/doctor.dart:396:72)
      #16     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:49:48)
      #17     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1765:12)
      <asynchronous suspension>
      #18     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:[13](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:14)89:27)
      <asynchronous suspension>
      #19     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
      <asynchronous suspension>
      #20     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
      <asynchronous suspension>
      #21     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
      <asynchronous suspension>
      #22     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:[15](https://github.com/CodeStorming/spm_desktop/actions/runs/9356586632/job/25754411567#step:11:16)3:19)
      <asynchronous suspension>
      #23     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
      <asynchronous suspension>
      #24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:119:9)
      <asynchronous suspension>
      #25     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
      <asynchronous suspension>
      #26     main (package:flutter_tools/executable.dart:90:3)
      <asynchronous suspension>

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Android\android-sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = C:\Android\android-sdk
    • ANDROID_SDK_ROOT = C:\Android\android-sdk
    • Java binary at: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.412-8\x64\bin\java
    X Could not determine java version
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.9.7)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Enterprise
    • Visual Studio Enterprise 2022 version 17.9.34902.65
    ! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.20348.2461]
    • Chrome (web)      • chrome  • web-javascript • unknown

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 4 categories.

Hi @almightydreamer, do you execute Flutter command on Windows\System32 path? Please check https://github.com/flutter/flutter/issues/119658#issuecomment-1412121745 to see if it helps.
Please also check Update your Windows PATH variable as well.

Hello, @huycozy, thanks for your reply.
I am not running flutter doctor on Windows/System32. Also all the path variables are good, they are shown in the logs

Hi,

I am not running flutter doctor on Windows/System32

I meant your Flutter SDK location. I'm not sure which location subosito/flutter-action@v2 is installed. Could you check it?
Also, please try the latest Flutter stable version (3.22.1) to see if the issue persists or not.

Hello,
at the moment I cannot migrate the project on 3.22.1 because of some issues on a device that this app needs to be running, but I tried it and same result.
After trying where.exe flutter and where.exe dart I got an error that neither of them could be found. I don't know why that's the reason because the flutter installed by subosito/flutter-action@v2 is present in the environment path variable

Cannot find the executable for where

I think which is more cross-platform supported

I decided to try a different approach for CI/CD and I used a simpler workflow and now the flutter doctor -v is looking good, but the problem building the app still persists
jobs:
  build:
    name: Build
    runs-on: windows-latest

    outputs:
      app_version: ${{ steps.extract_version.outputs.app_version }}

    steps:
      - uses: actions/checkout@v3

      - name: Install Flutter SDK
        uses: subosito/flutter-action@v2
        with:
          flutter-version: '3.19.6'
          channel: "stable"

      - name: Install dependencies and generate models
        run: |
          ./sh

      - name: Echo PATH for Debugging
        run: echo $env:PATH

      - name: Build Flutter Desktop App
        shell: pwsh
        run: |
          cd presentation
          flutter doctor -v
          flutter build windows --release --dart-define-from-file=release.json

Build Flutter Desktop App step logs:
Run cd presentation
[√] Flutter (Channel stable, 3.1[9](https://github.com/CodeStorming/spm_desktop/actions/runs/9406925475/job/25911510456#step:7:10).6, on Microsoft Windows [Version 10.0.20348.2461], locale en-US)
    • Flutter version 3.19.6 on channel stable at C:\hostedtoolcache\windows\flutter\stable-3.19.6-x64
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (7 weeks ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version [10](https://github.com/CodeStorming/spm_desktop/actions/runs/9406925475/job/25911510456#step:7:11) or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Android\android-sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = C:\Android\android-sdk
    • ANDROID_SDK_ROOT = C:\Android\android-sdk
    • Java binary at: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.4[12](https://github.com/CodeStorming/spm_desktop/actions/runs/9406925475/job/25911510456#step:7:13)-8\x64\bin\java
    X Could not determine java version
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.10.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Enterprise
    • Visual Studio Enterprise 2022 version 17.10.34928.[14](https://github.com/CodeStorming/spm_desktop/actions/runs/9406925475/job/25911510456#step:7:15)7
    • Windows 10 SDK version 10.0.22621.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.20348.2461]
    • Chrome (web)      • chrome  • web-javascript • unknown

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Building Windows application...
  SEVERE: error[E0282]: type annotations needed for `Box<_>`
SEVERE : error : could not compile `time` (lib) due to 1 previous error [D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\plugins\super_native_extensions\super_native_extensions_plugin_cargokit.vcxproj]
SEVERE : warning : build failed, waiting for other jobs to finish... [D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\plugins\super_native_extensions\super_native_extensions_plugin_cargokit.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\CMakeFiles\d68f6[16](https://github.com/CodeStorming/spm_desktop/actions/runs/9406925475/job/25911510456#step:7:17)fe25895c47e368c836433d5fe\super_native_extensions.dll.rule;D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\CMakeFiles\0aa2c7a6fc773ceb7e0db91daf795391\super_native_extensions_plugin_cargokit.rule;D:\a\spm_desktop\spm_desktop\presentation\windows\flutter\ephemeral\.plugin_symlinks\super_native_extensions\windows\CMakeLists.txt' exited with code -1. [D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\plugins\super_native_extensions\super_native_extensions_plugin_cargokit.vcxproj]
Building Windows application...                                   396.0s
Build process failed.

SEVERE: error[E0282]: type annotations needed for Box<_>
SEVERE : error : could not compile time (lib) due to 1 previous error [D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\plugins\super_native_extensions\super_native_extensions_plugin_cargokit.vcxproj]
SEVERE : warning : build failed, waiting for other jobs to finish... [D:\a\spm_desktop\spm_desktop\presentation\build\windows\x64\plugins\super_native_extensions\super_native_extensions_plugin_cargokit.vcxproj]

The error is related to super_native_extensions package and I see there is a similar error at https://github.com/superlistapp/super_native_extensions/issues/366. Looks like it's fixed on super_native_extensions: ^0.8.15.
Closing this as it's not an issue on Flutter framework but on a 3rd party package instead.


Include LICENSE and README.md in gem

Technically, the LICENSE is supposed to be distributed with the code. Adding the README is just a convenience.

Thanks for having an eye on this stuff! :) :+1:


logic

https://www.loom.com/share/be48e595c6fb4e10b2d10b0713aa248d

1st place in my group

1st place in my review.


Allow user to set per_channel and reduce_range quantization params (#156)

Also save quantization options

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


remove automanaged ns

What type of PR is this?
/kind bug
/kind failing-test

What this PR does / why we need it:
This PR removes the usage of deprecated automanaged ns, in continuation of #1806
Which issue(s) this PR fixes:

Fixes #1696
Special notes for your reviewer:
[WIP]
Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

/assign @marseel

There is a few more places where AutomanagedNamespaces could be removed, could you also remove them :)?

@marseel  could you check now?

/ok-to-test

/lint

/remove kind/failing-test

/remove-kind failing-test
/remove-kind bug
/kind cleanup
Generally looks good, but I think we missed this test: https://github.com/kubernetes/perf-tests/blob/master/clusterloader2/testing/network/config.yaml#L6
Could you open another PR where we migrate this test to namespaces, please?

namespaces

Sure!I l'll do that!

/remove-kind failing-test
/remove-kind bug
/kind cleanup
Generally looks good, but I think we missed this test: https://github.com/kubernetes/perf-tests/blob/master/clusterloader2/testing/network/config.yaml#L6
Could you open another PR where we migrate this test to namespaces, please?

Sure I'll do that!

@marseel , think we can now merge this one!


18.04 LTS and copyright

18.04 LTS and copyright

Hi @noraj, are you still interested in this PR? If so, can you update it
with latest changes?
We now support kernels from 4.2 to 4.20 and Ubuntu 16.04 and 18.04.
Thanks!

@displaylink-dkurek good?

yes, looks good. Thanks!


FederatedStore should not required graphIds option for operations that don't have a view

Merged into develop.


Mismatched supported .NET Framework versions

[Enter feedback here]
The "Max .NET version" for Functions 1.x on this page is .NET Framework 4.6 but in the Supported Languages page it says .NET Framework 4.7
Which one is correct?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7a4532b8-8c27-ca15-edc6-85fc38cab341
Version Independent ID: e06de78b-9271-25a4-439d-2a024f31693e
Content: Azure Functions C# developer reference
Content Source: articles/azure-functions/functions-dotnet-class-library.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@BlackMercy Thanks for the question! We're investigating this and will get back to you shortly.

@BlackMercy Yes, Azure Functions 1.x indeed supports targeting .NET Framework 4.7 as mentioned in the Azure Functions runtime versions overview.
Thank you for catching that error in the docs! I have submitted a PR to fix the issue that's in review.

@BlackMercy The Azure Functions C# developer reference now reflects the changes. Thanks again for the feedback!
We will now proceed to close this thread as resolved, but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


WASM Bindings: cannot add a new Public Key to PublicKeys array

Bug description
On the dev branch:
The Public Key of the Subscriber is available.
console.log(subs.clone().get_public_key());

Then I try to add it to a PublicKeys instance to be later used in a send_keyload method.
const publicKeys = new PublicKeys();
publicKeys.add(subs.clone().get_public_key());

Error is raised:
 [Runtime_Error]: null pointer passed to rust

I've tried making a copy of the public key string buffer but no luck either.
const str = Buffer.from(Buffer.from(subs.clone().get_public_key())).toString();

In wasm the null pointer error occurs when in rust (so js() call) you call a function that mutates the state of an object
but you submited a pointer of another and so on.
You must find where you forgot to use the helper function clone(), it could be somewhere an the beginning of your code.


records very little points

I found the tool works fine but it doesn't record points in the grass dashboard or records very little points

Takes up to a day or more to record the points.

I found the tool works fine but it doesn't record points in the grass dashboard or records very little points

It takes time to fetch real points.


Initiate a documentation for the package

Hi !
It took me a while to understand that I needed to read the test/Main.purs to understand how the library should be used, so I thought adding a small introduction wouldn't hurt.
I'm not a technical writter and not an english native speaker, so please tell me if something feels off.
Also I haven't used all the possibilities of the library so I might have forgotten some key aspect here.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

wow I completely forgot about this PR


DOCU-2423: Adds StatsD monitoring page under Kong in Production

Summary
Adds StatsD monitoring page under Kong in Production
Reason
Helps the user with a how-to guide to quickly run Kong GW, StatsD, and StatsD plugin
https://konghq.atlassian.net/browse/DOCU-2423
Testing
built and viewed docs locally

One other consideration for this guide is that StatsD collects data broadcast over UDP, and with the GW and StatsD running in the same network this works (the guide currently uses a named Docker network). If the user runs StatsD and GW in a different network (one where UDP is not properly propagating across the networks), the StatsD service likely will not properly collect data.  The StatsD Advanced plugin supports tcp communications, but that is EE.
I'm not sure if this should be documented here, in the StatsD plugin reference, or left to the StatsD documentation. If this page is meant to walk the user through setting up StatsD and seeing the data collection work, we should consider this technical aspect.

@Guaris @cloudjumpercat LGTM


feat: support accessKey and accessSecret login in AutoSigninFilter

fix: #3115

Thanks for the fix, but won't this create a new session on each request? there will be a lot of sessions created which is not necessary at all right? @dacongda

@hamidrabedi create a new issue


don't require git to perform upgrade-self

apt-cyg already requires wget, so if the install doesn't have git, I think it would be a good option to use wget as a fallback.

This issue was resolved by pull request #59.


add missing double quote

Just README change. Add missing double quote.

Please answer the following questions and leave the below in as part of your PR.

[x] I have read the developer documentation.

[x] This PR corresponds to an issue with a clear problem statement.

[ ] This PR contains a test to prevent against future regressions

[ ] I have updated the CHANGELOG.md file with a description of the addressed issue.

Thanks!

Wow, very fast review/merge! thanks!


How to set the repository address to local

First of all, thank you very much for this library, it's very cool!
IKVM.Maven.Sdk 1.6.9
my maven setting.xml ：
D:\apache-maven-3.9.8\mvn_repo
How to set up ikvm to use my local repository

https://github.com/ikvmnet/ikvm-maven/issues/39#issuecomment-1795591169

thanks!


Automated cherry pick of #3075: 新增 devtool cron manager，用来管理Ansibleserver 的定时任务

Cherry pick of #3075 on release/2.12.
#3075: 新增 devtool cron manager，用来管理Ansibleserver 的定时任务

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.12@16152a2). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release/2.12   #3076   +/-   ##
==============================================
  Coverage                ?   7.17%
==============================================
  Files                   ?     478
  Lines                   ?   76803
  Branches                ?       0
==============================================
  Hits                    ?    5507
  Misses                  ?   70832
  Partials                ?     464

Flag
Coverage Δ

#aFlag
7.17% <ø> (?)

Impacted Files
Coverage Δ

pkg/cloudcommon/db/db_dispatcher.go
0% <ø> (ø)

Continue to review full report at Codecov.

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


Error while running tts.py using sudo

Hi,
As per this document, executed 'python ~/AIY-projects-python/src/aiy/voice/tts.py "hello world" to convert text to speech, but failing when I run in sudo root privilege.
https://aiyprojects.readthedocs.io/en/latest/aiy.voice.tts.html
Tried python3 too.
Any insights on this ?
Thanks.
pi@raspberrypi:~ $ python ~/AIY-projects-python/src/aiy/voice/tts.py "hello world"
pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo python ~/AIY-projects-python/src/aiy/voice/tts.py "hello world"
Traceback (most recent call last):
  File "/home/pi/AIY-projects-python/src/aiy/voice/tts.py", line 72, in <module>
    _main()
  File "/home/pi/AIY-projects-python/src/aiy/voice/tts.py", line 68, in _main
    device=args.device)
  File "/home/pi/AIY-projects-python/src/aiy/voice/tts.py", line 52, in say
    with tempfile.NamedTemporaryFile(suffix='.wav', dir=RUN_DIR) as f:
  File "/usr/lib/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/run/user/0/tmpC3KxCi.wav'
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo python ~/AIY-projects-python/src/aiy/voice/tts.py "hello world"
Traceback (most recent call last):
  File "/home/pi/AIY-projects-python/src/aiy/voice/tts.py", line 72, in <module>
    _main()
  File "/home/pi/AIY-projects-python/src/aiy/voice/tts.py", line 68, in _main
    device=args.device)
  File "/home/pi/AIY-projects-python/src/aiy/voice/tts.py", line 52, in say
    with tempfile.NamedTemporaryFile(suffix='.wav', dir=RUN_DIR) as f:
  File "/usr/lib/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/run/user/0/tmpQLiULx.wav'
pi@raspberrypi:~ $
pi@raspberrypi:~ $ python ~/AIY-projects-python/src/aiy/voice/tts.py "hello world"
pi@raspberrypi:~ $

Update:
I've created '/run/user/0/' folder and ran via sudo, it worked.
sudo mkdir -p /run/user/0/
sudo python ~/AIY-projects-python/src/aiy/voice/tts.py "hello world"

Thanks.


[Vue warn]: Error in render: "TypeError: Cannot read property 'Code' of undefined"

Dear clients.
Is there any way to solve it?

Home.vue

I solved this similiar problem by implementing v-runtime-template in sub-component, then call this sub-component to main vue file. Read this solution

I solved this similiar problem by implementing v-runtime-template in sub-component, then call this sub-component to main vue file. Read this solution


refactor: forc init generate unexpected project_name when project dir contains dot

Description
Refer #5434
Found this issue when I tried to run forc init --script under a directory(/tmp/path_with_._dot) that contains a dot ".". The value of project.name in the generated file Forc.toml is truncated by the dot "." as path_with_.
Since project_dir must be a directory(has checked before), we can use file_name instead of file_stem to get the last-level dir name. Also, I think it would be better to replace "." with "_", otherwise a project_name that contains . would fail with validation validate_name(&project_name, "project name")?;
Screenshots
Before:

After:

Checklist

[ ] I have linked to any relevant issues.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book).
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[ ] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[ ] I have requested a review from the relevant team or maintainers.

Thanks for the PR! I will test this locally but it seems like this will allow project with . in the name, which is not something we should be doing imo. Blocking for now so that I can test

The . will be replaced with _. This pr just changed the value of project_name by using path_with___dot instead of path_with_. See the screenshot below:

I think we should disallow project names with dots or any special character other than _, similar to cargo. Numbers should be allowed but not as a first digit.
Here's a regex we can use: ^([a-zA-Z]([a-zA-Z0-9-_]+)|)$

I think we should disallow project names with dots or any special character other than _, similar to cargo. Numbers should be allowed but not as a first digit.
Here's a regex we can use: ^([a-zA-Z]([a-zA-Z0-9-_]+)|)$

If I understood correctly, the suggested changes are to revert the logic of getting project_name and add a new regex ^([a-zA-Z]([a-zA-Z0-9-_]+)|)$ checker into the function validate_name?

I think we should disallow project names with dots or any special character other than _, similar to cargo. Numbers should be allowed but not as a first digit.
Here's a regex we can use: ^([a-zA-Z]([a-zA-Z0-9-_]+)|)$

If I understood correctly, the suggested changes are to revert the logic of getting project_name and add a new regex ^([a-zA-Z]([a-zA-Z0-9-_]+)|)$ checker into the function validate_name?

Yes, I think that's the best path forward. If it doesn't match the regex, we can show an error like "The project name can be a combination of letters, numbers and underscores, and must start with a letter."

Yes, I think that's the best path forward. If it doesn't match the regex, we can show an error like "The project name can be a combination of letters, numbers, and underscores, and must start with a letter."

The function validate_name is not only used for project name but also for organization name and package name
The param use_case is not an enum, there may exist different values for the similar case project name, and it's hard to judge whether the case is project name or not

For the reason above, I think we should add a new function validate_project_name like this:
pub fn validate_project_name(name: &str) -> Result<()> {
    let re = Regex::new(r"^([a-zA-Z]([a-zA-Z0-9-_]+)|)$").unwrap();
    if !re.is_match(name) {
        bail!(
            "the project name `{name}` cannot be used as a project name.\n\
        project name can be a combination of letters, numbers, and underscores, \
        and must start with a letter."
        );
    }
    validate_name(name, "project name")
}

BTW, is the '-' hyphen valid in the project name?

Yes, good catch! - should be allowed.

The function validate_name is not only used for project name but also for organization name and package name

I don't think there is a difference between package name and project name. I agree that organization name should not have this validation.

BTW, is the '-' hyphen valid in the project name?

Yes, good catch! - should be allowed.

The function validate_name is not only used for project name but also for organization name and package name

I don't think there is a difference between package name and project name. I agree that organization name should not have this validation.

Suggestion changes done~

Can we get this merged now? Is there anything else that needs to be added?


add accesToken to user for android version

This was exactly what I was going to ask for!, please accept this pull request.

i support this. i needed so bad. please accept this pull request

Oh yeah! This should have been there at the first place!
Great job, @alppu ! 👍🙌
@devfd Could you merge this asap, please?

thanks @alppu I'll merge this


Fix set_meta on ScmRun

This should be deprecated in preference for the __setitem__ operator. pd.Series data should not be able to be passed as well, only scalars, lists and np.arrays

Fixed in #63


Split pane in same directory/location

Hi,
I don't find anything about splitting pane with the current directory opened.
My usual workflow looks like this:

cd path/to/directory
then run random process running in background like npm
then opening another pane for git or something else
Right now when I split the pane, I have to run cd path/to/directory again to go again to the project directory.
This option seems to be something quite basic to me.

Am I missing something on the doc or is this feature missing?

@sixclones We recently actually just added that section, in https://github.com/MicrosoftDocs/terminal/pull/449. See https://docs.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory


Test enhancement

Changed log

Using the class-based PHPUnit namespace to be compatible with the stable PHPUnit versions.
Add the php-nightly test in Travis CI build and it allows that can allow failure.
Set the different PHPUnit version to support the multiple PHP versions.
Using the annotation expectedException to be compatible with the different PHPUnit versions.
Separate the scheduleProvider and add the new test is for invalidScheduleProvider.
Using the assertInternalType to assert the result type.

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             master     #9   +/-   ##
=======================================
  Coverage       100%   100%
  Complexity       58     58
=======================================
  Files             3      3
  Lines           108    108
=======================================
  Hits            108    108

Continue to review full report at Codecov.

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

Much thanks 👍 💯 🥇


chore: add TODO

@Mini256  Maybe you can done it in https://github.com/ti-community-infra/ti-community-prow/issues/144.
You can refer to https://github.com/kubernetes/test-infra/pull/19965

/close

@Mini256 Maybe you can done it in #144.
You can refer to kubernetes/test-infra#19965

ok


Linux packaging export problem

Hi,
Sorry to disturb but I found out another packaging problem on
Linux 4.4.0-47 (ubuntu 16.04.1)
Meteor <IP_ADDRESS>
electrify 2.2.0

The packaging process seems go wrong on the last mv staging, since the output dir is deleted and nothing is replacing it, the bundle in /tmp/electrify/package is incomplete, the app/app dir does not exist to start. The .dist dir is not created either.
The error when packaging, with or without -o option, last lines :
Packaging app for platform linux x64 using electron v1.4.8
mv: omitting directory '/tmp/electrify/package'
mv: path is a directory

Does this issue also occur when using the original Electrify?
Try removing electrify-updated-test and installing electrify and please let me know.

With electrify, I have a cousin error : "EXDEV: cross-device link not permitted…"
So I tried on another Linux box with /tmp and /home on the same partition, the error does not occur.
The error seems to be in the last step when moving from /tmp to the .dist or "-o dir" and can not resolve paths on other partition or disk. Can you help on this ? What are the commands used, perhaps I can help you for "bashing" that ?

I must admit I am stumped, as I've never encountered this problem myself. Though I seem to remember there was someone with the same issue who reported it on Electrify's Gitter, but I can't remember for the life of me how. You could check there.
Sorry I can't be of much help here.

I will search a bit before closing, in case I can bring you a clue to update something.

I perhaps found out the original problem here and a potential solution given for electrify.
electrify issue 35
Can an update be done on your coding ?

I had to reformat my main machine, I choose a unified / partition, so I do not have the problem anymore, but the bug persist. Anyway, since I know how to circumvent it, I close the ticket.


httpx/httpcore ReadTimeouts in replicate.async_run

Hi! I am suddenly seeing a lot of readtimeouts - thought initially that it might have been a temporary issue on replicate side, but they seem to persist. Maybe similar to https://github.com/replicate/replicate-python/issues/345, but no further info there.
It doesn't seem to behave deterministically. E.g. for my last predictions, 8 out of 10 images were correctly downloaded (all were created). Example ReadTimeout exception:
Traceback (most recent call last):
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
    yield
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 377, in handle_async_request
    resp = await self._pool.handle_async_request(req)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
    raise exc from None
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
    response = await connection.handle_async_request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
    return await self._connection.handle_async_request(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
    raise exc
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/http11.py", line 113, in handle_async_request
    ) = await self._receive_response_headers(**kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/http11.py", line 186, in _receive_response_headers
    event = await self._receive_event(timeout=timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
    data = await self._network_stream.read(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 32, in read
    with map_exceptions(exc_map):
  File<EMAIL_ADDRESS>line 158, in __exit__
    self.gen.throw(value)
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc
httpcore.ReadTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<REDACTED>/src/util/api/replicate_api.py", line 78, in generate_images
    result = await task
             ^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/replicate/client.py", line 189, in async_run
    return await async_run(
           ^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/replicate/run.py", line 96, in async_run
    prediction = await client.predictions.async_create(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/replicate/prediction.py", line 586, in async_create
    resp = await self._client._async_request(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/replicate/client.py", line 94, in _async_request
    resp = await self._async_client.request(method, path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_client.py", line 1585, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_client.py", line 1674, in send
    response = await self._send_handling_auth(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_client.py", line 1702, in _send_handling_auth
    response = await self._send_handling_redirects(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects
    response = await self._send_single_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_client.py", line 1776, in _send_single_request
    response = await transport.handle_async_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/replicate/client.py", line 319, in handle_async_request
    response = await self._wrapped_transport.handle_async_request(request)  # type: ignore
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 376, in handle_async_request
    with map_httpcore_exceptions():
  File<EMAIL_ADDRESS>line 158, in __exit__
    self.gen.throw(value)
  File "<REDACTED>/venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ReadTimeout

Wrapping it now in retries, which seems to help, but still rather very dissatisfactory.

Hi @nicoluca could you give me some additional information about how you're using the library, it looks like you're using replicate.run() are you providing any additional arguments besides the model and inputs?
If possible, which model are you using?

Hi @aron,
Example call for a ComfyUI workflow:
replicate.async_run(
        model,
        input={
            "output_format": "png",
            "output_quality": 100,
            "randomise_seeds": True,
            "workflow_json": json.dumps(comfyui_json_dict)
        }
    )

Example call for nightmareai/real-esrgan:f121d640bd286e1fdc67f9799164c1d5be36ff74576ee11c803ae5b665dd46aa:
replicate.async_run(
        replicate_config.get(model),
        input={
            "image": open(image_path, "rb"),
            "scale": 2,
            "face_enhance": False
        }
    )

Was with v1.0.2 but just tried again with v1.0.3, no difference. My feeling is that it occurs more often when you try more concurrently, e.g. also leading to 5xxs sometimes on the server side. I believe replicate is just using default timeout values?


template change to secure connection workload -> (pilot, mixer) through SDS

splitted from original PR https://github.com/istio/istio/pull/13593, original issue https://github.com/istio/istio/issues/11434
This PR needs https://github.com/istio/istio/pull/15966 merged first

@quanjielin: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-unit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@quanjielin: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-unit-tests-master

istio-racetest-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@quanjielin: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-unit-tests-master

istio-racetest-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-racetest-master

istio-pilot-multicluster-e2e-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-pilot-multicluster-e2e-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@quanjielin: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-unit-tests-master

istio-racetest-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-racetest-master

istio-pilot-multicluster-e2e-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-pilot-multicluster-e2e-master

istio-codecov-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-codecov-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@quanjielin: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-unit-tests-master

istio-racetest-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-racetest-master

istio-pilot-multicluster-e2e-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-pilot-multicluster-e2e-master

istio-codecov-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-codecov-master

integ-mixer-k8s-presubmit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test integ-mixer-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@quanjielin: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-unit-tests-master

istio-racetest-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-racetest-master

istio-pilot-multicluster-e2e-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-pilot-multicluster-e2e-master

istio-codecov-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test istio-codecov-master

integ-mixer-k8s-presubmit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test integ-mixer-k8s-presubmit-tests-master

integ-security-k8s-presubmit-tests-master
abd1ebd70939f99a8ea4b7de29ebbd0178109f63
link
/test integ-security-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

close this, handoff to @JimmyCYJ https://github.com/istio/istio/pull/16459


Runtime 10.12 version check for CGLayer in non-native fullscreen

I'll check the rendering lag issue with non-fullscreen on 10.12 later.


Correctly setting the working directory when restoring NuGet packages.

Change to set the working directory to the function directory when executing nuget.exe, making sure config probing behaves as expected.

:shipit:


Building with --dest fails intermittently

Version
3.0.0-beta.11
Reproduction link
https://codesandbox.io/s/vue
Steps to reproduce

Create a new vue project. vue create foo.
Choose the "quick" configuration (or probably any config).
Build the project, specifying an output dir. yarn build --dest public

What is expected?
The build should succeed 100% of the time, and output files to public.
What is actually happening?
About 50% of the time, the build fails with 1 error:
⋊> ~/r/foo on master ⨯ yarn build --dest public                                                                                10:41:58
yarn run v1.7.0
$ vue-cli-service build --dest public

⠧  Building for production...

 ERROR  Failed to compile with 1 errors                                                                                10:42:07

  Error: Child compilation failed:
  Entry module not found: Error: Can't resolve '/Users/jingman/repos/foo/public/index.html' in '/Users/jingman/repos/foo':
  Error: Can't resolve '/Users/jingman/repos/foo/public/index.html' in '/Users/jingman/repos/foo'

  - compiler.js:79 childCompiler.runAsChild
    [foo]/[html-webpack-plugin]/lib/compiler.js:79:16

  - Compiler.js:243 compile
    [foo]/[webpack]/lib/Compiler.js:243:11

  - Compiler.js:488 hooks.afterCompile.callAsync.err
    [foo]/[webpack]/lib/Compiler.js:488:14

  - Hook.js:35 AsyncSeriesHook.lazyCompileHook [as _callAsync]
    [foo]/[tapable]/lib/Hook.js:35:21

  - Compiler.js:485 compilation.seal.err
    [foo]/[webpack]/lib/Compiler.js:485:30

  - Hook.js:35 AsyncSeriesHook.lazyCompileHook [as _callAsync]
    [foo]/[tapable]/lib/Hook.js:35:21

  - Compilation.js:966 hooks.optimizeAssets.callAsync.err
    [foo]/[webpack]/lib/Compilation.js:966:35

  - Hook.js:35 AsyncSeriesHook.lazyCompileHook [as _callAsync]
    [foo]/[tapable]/lib/Hook.js:35:21

  - Compilation.js:957 hooks.optimizeChunkAssets.callAsync.err
    [foo]/[webpack]/lib/Compilation.js:957:32

  - index.js:334
    [foo]/[uglifyjs-webpack-plugin]/dist/index.js:334:11

  - index.js:63 _class.runTasks
    [foo]/[uglifyjs-webpack-plugin]/dist/uglify/index.js:63:9

  - index.js:253 UglifyJsPlugin.optimizeFn
    [foo]/[uglifyjs-webpack-plugin]/dist/index.js:253:16

 ERROR  Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I believe this was failing every other time because I was using public as my output directory name. That turns out to be a bad idea.


SampleSet eq and tests

Implemeted and sampleset_tests.py and staticsynth_tests.py updated

Closing as I'll be incorporating these changes as part of #19.


Middleware return to view

How do i return a user to a view if he doesn't have the required role?
public function render($request, Exception $exception)
    {
        $userLevelCheck = $exception instanceof \jeremykenedy\LaravelRoles\Exceptions\RoleDeniedException ||
            $exception instanceof \jeremykenedy\LaravelRoles\Exceptions\RoleDeniedException ||
            $exception instanceof \jeremykenedy\LaravelRoles\Exceptions\PermissionDeniedException ||
            $exception instanceof \jeremykenedy\LaravelRoles\Exceptions\LevelDeniedException;

        if ($userLevelCheck) {

            $page = array(
                'name' => 'Dashboard'
            );

            return view('home')->with('page', $page);
        }

        return parent::render($request, $exception);
    }

This gives me a "Call to a member function setCookie() on null" error and i can't seem to fix it am i doing something wrong?

You can’t If they do not have the required role. That defeats the purpose of roles.

But the view i want to return the user to can be accessed by every role

Actually I think I missed understood, you would return earlier than the exceptions

But then how would i know what exception the user gets returned on?

You can keep your structure as is and to a redirect('routename')

Thanks for the quick responses!


Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: Shift detected GitHub Actions which run jobs using a version matrix. Shift attempted to update your configuration for Laravel 11. However, you should review these changes to ensure the desired combination of versions are built for your package.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/TwoFactor.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "laragear/two-factor": "dev-l11-compatibility",
    }
}

Finally, run: composer update


📝 Add lots of additional documentation

What and why?
This set of documentation should bring us to close parity with what is currently available with iOS and Android Native SDKs.
Review checklist

[ ] This pull request has appropriate unit and / or integration tests
[ ] This pull request references a Github or JIRA issue

CI Configuration (optional)

[ ] Run unit tests
[ ] Run integration tests

@alai97 Made a minor change to add what version of Flutter we support. Can you double check the language then we can merge this in.


Add flag SendExceptionType to configuration.

Fixes https://github.com/evalphobia/logrus_sentry/issues/50

Coverage decreased (-0.4%) to 83.379% when pulling 0aa2a26e91dca041cbcb180e62effb22e0db5e65 on krzysztofdrys:optional_error_type_logging into 7c1b7faba7ed5772effc03db8e1faa8c90624660 on evalphobia:master.

Coverage decreased (-0.4%) to 83.379% when pulling 6fb8dca2e81bc1b98f6c00a9bab04cb7fdd98b2f on krzysztofdrys:optional_error_type_logging into 7c1b7faba7ed5772effc03db8e1faa8c90624660 on evalphobia:master.

Thanks!
Note: https://github.com/evalphobia/logrus_sentry/releases


Dockerization of Mina local networks - Mac Silicon is not supported by the Docker image

The docker image on https://hub.docker.com/r/o1labs/mina-local-network does not support a Mac Silicon processor and throws an illegal instruction error when running on M2 Max.

Hey @dfstio, thanks for reporting this.
Can I ask you to try it again please on the Mac with Apple silicon?
zk lightnet start should pull the latest image with possible fix.

It doesn't work. We need to cross-build images for Arm platform. Details in that Discord thread.

Good progress so far. We have a build-system for arm64 now 🎉


Using this for a hobby project. Will you accept a PR for README and requirments.txt?

Of course, I'd welcome it. The README is sorely lacking.


UnitOfWork not saving data in my db

Hello!!
I made an api using your tutorial
i can post objects into the database. However when i restart the app I loose all data. I follow ur pattern of UnitOfWork. Not sure if my EFCore version matters but im using 3.1.8 and Im using netcore 3.1. Also, i made the base project in netcore 2.2 like u did and then migrate to 3.1. any ideas what could be with the migration from 2.2 to 3.1?

Hi @nunomarques97
Which database are you using? Which database provider are you using with Entity Core?
I used an in-memory provider for this tutorial, so all data is kept in memory. Once you restart the API, all data is lost.
Here is an example of how to configure Entity Framework to store data into SQL Server, so data is not lost after API restarts: https://entityframeworkcore.com/knowledge-base/54460412/how-to-connect-configure-entity-framework-to-connect-to-sql-server-
Can you confirm which provider you are using? If you're already using a different database provider, please, share a bit of your code, this way I can check what is happening.
Thanks.

this is my .csproj package:
`

netcoreapp3.1

`
does it help?
I also use like u did an in memory provider:
services.AddDbContext<AppDbContext>(options =>             {                 options.UseInMemoryDatabase(Configuration.GetConnectionString("memory"));             });
and i addopt ur Unitofwork pattern. if try to save it manually by SaveChangesAssyng it doesnt work as well

here i my .csproject package does it help? i also use in memory provider

Hi @nunomarques97
Sorry for the late reply.
It seems you have installed the SQL Server provider, but you are still using the In-Memory provider to persist data.
Try changing the AddDbContext directive in the Startup class like this:
services.AddDbContext<YourDbContextClass>(opt =>
{
	opt.UseSqlServer("your_connection_string_here");
});

You can find more information on how to configure Entity to use SQL Server and how to add the connection string here: https://docs.microsoft.com/pt-br/ef/core/dbcontext-configuration/
Let me know if it works.

Hi @nunomarques97
Sorry for the late reply.
It seems you have installed the SQL Server provider, but you are still using the In-Memory provider to persist data.
Try changing the AddDbContext directive in the Startup class like this:
services.AddDbContext<YourDbContextClass>(opt =>
{
	opt.UseSqlServer("your_connection_string_here");
});

You can find more information on how to configure Entity to use SQL Server and how to add the connection string here: https://docs.microsoft.com/pt-br/ef/core/dbcontext-configuration/
Let me know if it works.

Hi,
I'll close this due to inactivity. If there are problems yet, please, let me know.
Thank you.

Hi,
I'll close this due to inactivity. If there are problems yet, please, let me know.
Thank you.


Added Binary Search and String leetcode solution

Added Binary Search and String leetcode solution.
Happy hacktoberfest ^^

@zatch3301 great job 👍 , last thing left that that you will need to add the README.md files for every question which contains the problem statements and other stuff, checkout other questions to take reference.
(Future request, please make an issue before making PR, it helps others to find the hacktoberfest issues.)

@zatch3301 are you still working on this, if you are not, please delete the PR.


[PE-D][Tester E] Email validation Regex

<EMAIL_ADDRESS>is accepted as a valid email regex but it is not a valid email

Labels: type.FunctionalityBug severity.Medium
original: tanjiajiajun/ped#2

Functionality bug. Update the REGEX for email. Strictly incorrect.

According to the MESSAGE_CONSTRAINTS and UG, having multiple domain labels separated by multiple periods is the advertised behaviour, so this isn't incorrect?


cd .git/ produces fatal: /usr/lib/git-core/git-stash cannot be used without a working tree

$ cd ~/.git-radar/.git  # for example using the git-radar repo dir
fatal: /usr/lib/git-core/git-stash cannot be used without a working tree.
$ # i press enter
fatal: /usr/lib/git-core/git-stash cannot be used without a working tree.

this happens on every command i execute. spams the terminal.

hm weird... I tracked down the problem to be commit 989911c595b19aac9ecb4aa87eb2ac4d57610c86. This is the first commit in the history to have this issue.

I have a fix for this in PR #99. All it does is check if the current directory is called ".git".
If the owner would prefer a different way of checking, that is fine too, but I thought I would go ahead and submit this.

this might have caused #100

Closing as fixed

Would like to re-open this one, since going down a step further down in .git directory yells the same error. Also opened a pullrequest #107 to fix the issue.


Action fails if branch is already setup on amplify

Sample Run with Error: https://github.com/SimplQ/simplQ-frontend/pull/401/checks?check_run_id=1335345160
I am probably facing this issue because I have configured only deploy and not delete for my repo, but still it will be nice if in the above mentioned scenario where the branch is already connected on amplify, we don't fail but resume at the line where we emitted error.

@daltonfury42 Can you please describe the steps to reproduce this behavior or terminal output if applicable. Thank you!

We are also seeing that if the preview branch already exists in Amplify then subsequent runs of this action will appear as if it had failed back in the PR. Is there an option we are missing?

@voravor Can you describe the scenario about preview branch already exist?
At the beginning, there is no preview branch in the Amplify. After a new PR is created and submitted for review, with this setup, a preview branch will be created and exist in the Amplify automatically.

If this PR has a new update through a push, it will update the exiting preview branch in the Amplify automatically.
If this PR is approved and merged, it will delete the preview branch in the Amplify automatically.

Our project uses above scenario more than six months. We haven't encounter this issue.
Or, did you mean you deploy a branch in the Amplify first, so the branch already exists in the Amplify. Later, you update that branch with a PR with this setup?

When a PR is created with the correct label, the preview branch is correctly created in Amplify.
When new commits are added to this PR, the preview creation action is run again. This is sometimes resulting in a failure of the action.
An error occurred (BadRequestException) when calling the CreateBranch operation: Failed to create branch. The branch PICO-4365-Create-Popup-Button-Alignment-is-Too-High already exists for the app ***
Here's how it looks in the PR itself:

Note: there is no error in Amplify. The build history for this PR / connected branch looks like this:

I'm seeing this too. @yinlinchen It looks like this PR would have fixed the issue,
To recreate issue:

Set your action to run if: contains(github.event.pull_request.labels.*.name, 'Ready to Review')
Open a pull request, add label "Ready to Review"
Add additional commit
See the check fail

At first glance I think the var branch_exist vs branch_exists usage https://github.com/yinlinchen/amplify-preview-actions/pull/9/files line 49-50 will cause problems?

@voravor and @daltonfury42 could you please test if https://github.com/yinlinchen/amplify-preview-actions/pull/9/files from @sean-smith can resolve this issue? If it does, I am happy to merge that. The thing is, I am not able to reproduce this issue to test that. Thank you!


Add bandwidth transfer stats for arrays

Issue Description
Idea: What does it take to load an array from disk to gpu ram?
A form of "network latency" from cpu ram to gpu and instrumentation for file systems like hadoop will help with understanding different interconnects (RDMA,Infiniband etc)
Please describe your issue, along with:

expected behavior
encountered behavior

Version Information
Please indicate relevant versions, including, if relevant:

Deeplearning4j version
platform information (OS, etc)
CUDA version, if used
NVIDIA driver version, if in use

Contributing
If you'd like to help us fix the issue by contributing some code, but would
like guidance or help in doing so, please mention it!

Implemented, merged


Use freedesktop.org's Trash specification

Vimiv currently uses a custom mechanism to manage its trash. For better integration into many GNU/Linux Desktop Environments, vimiv should adhere to freedesktop.org's Trash specification. The standard is described here.
If you think that implementing this standard is a good idea, I am willing to implement it and submit a pull request.

Once again, I agree!


Implement graceful shutdown using tokio cancellation tokens

We've implemented graceful shutdown using cancellation tokens from the tokio runtime.
It allows users of this crate to optionally get the cancellation token, and send the shutdown signal to sidekiq.
The implementation is such that no on-hand work will ever be cancelled. This however means that sending a SIGINT doesn't mean immediate shutdown, as currently active jobs first need to finish. As soon as the cancellation token is cancelled, no new work will be taken on by the workers.
A minimal new example for using cancellation tokens is as follows:
// Sidekiq server
let mut p = Processor::new(
    redis,
    vec!["default".to_string()],
);
p.register(DemoWorker::new());

// Retrieve the cancellation token and store it
let cancellation_token = p.get_cancellation_token();

// Start the server and get a handle to it
let handle = tokio::spawn(p.run());

match signal::ctrl_c().await {
    Ok(()) => {
        debug!("Received control-c, quitting...");
        cancellation_token.cancel();
    },
    Err(err) => {
        error!("Unable to listen for shutdown signal: {}", err);
        cancellation_token.cancel(); // still cancel?
    },
}

handle.await.unwrap();

Fixes #37

I like this. Let me take a day or so to think about it/ where else we need to cancel. (ref: https://github.com/film42/sidekiq-rs/issues/37)

Great, please let me know if there is anything you would like to have changed.

Thanks so much for the contribution @georgeboot ! ❤
This was releases as v0.10.0.


The BSD link in the Downloads page doesn't go anywhere

As seen in: https://getmonero.org/downloads/#bsd

Should we just remove BSD then?

This should be solved by #870


Support hstack() and related functions

Current coverage is 87.12% (diff: 95.73%)

Merging #2069 into master will increase coverage by 0.04%

@@             master      #2069   diff @@
==========================================
  Files           305        305
  Lines         55562      55792   +230
  Methods           0          0
  Messages          0          0
  Branches       5752       5771    +19
==========================================
+ Hits          48384      48608   +224
- Misses         6242       6245     +3
- Partials        936        939     +3

Powered by Codecov. Last update fe99fbc...1910d7b


hide save button if repo is active

It is confusing for users to have a "save" and "github" button next to each other: they confuse saving to file and github (observed in classroom).
This change hides the save button when the project is tied to a repository.

Aren't the pngs used for importing extensions offline with the Import File... card? Is there still a way to create that? (I suppose any uf2 should work as well, but maybe a bit confusing that you'd have to pick a random device first)

In my opinion users should always be able to save on the desktop. I don't think hiding the button is the right thing to do. We should discuss in the UI meeting before changing this.
Also why is name of the project still there? Remove that as well.

May be we can find a different location for that GitHub button.
I think bigger issue here is students don't know what commit means.

The observed issue was that kids confused “save” as commit. Yes name should go away too.

Current offline story for extensions (import png) is quite convoluted. Can be made clearer with dedicated button GitHub view.

Can you remove name and display the GitHub repo name there with the save icon? That is lot more clearer, than this change, which just removes the save button.

Description updated.


Multiple dropzones on a page

Hi!
If I add two or more vue-dropzones on my page template, only the last one works.
Is it possible to add more than one?
UPD: Sorry, it was my mistake.

How did you solve it?


Support zooming vertically/horizontally by dragging left/right or up/down on the respective axist

Many modern charting/plotting UIs allow users to click on the axis (vertical/horizontal) and:

drag up/down

for vertical axis

left/right

for horizontal axis

I'd love for the plot to allow for an api, much like the existing allow_drag() api to enable axis zooming by dragging.
This should probably named in a descriptive way, something like: allow_axis_zoom_drag()

Just updating that I have a PoC that kind of works, more or less. trying to iron out some issues there and will submit as a draft for review of the overall approach


Optimization idea

Right, now in order to get diagnostics on the code (checking if there are any errors), the LSP uses typst::compile which also does the typesetting through typst::model::typeset. This is anyway needed when we want to export a PDF, but would not be needed otherwise.
Since I created a PR to avoid exporting a PDF on every document change (through a setting), there is unnecessary work being done. Likewise, in the future, people who choose to not use a preview will also not need the typesetting to happen.
Finally, since this LSP could be used in other applications, we cannot assume that people will always want to the fully formatted document to be generated.
The idea would be to only typst::eval::eval() the document to get the compilation errors, and then pass the returned module to typst::model::typeset() in case a preview or document export is needed.

After some testing, this will be tricky as the eval::eval function expects a Tracked<dyn World> and when I implement the necessary comemo trait on our SystemWorld, it then is not Sync anymore and there are plenty of errors in the LSP.
Needs investigation.. Here is the non-working version https://github.com/beeb/typst-lsp/tree/multistep-compilation

Judging from this piece of code, the proposed optimization seems to have been implemented since. However, I just wanted to note that this results in missing diagnostics in some cases. eval only evaluates the top-level model, there is still code running (and thus possibly errors happening) during typeset. For example, this snippet of code is clearly faulty, but Typst LSP generates no errors:
#locate(loc => {
  let x = 1 + 2 + "3"
  this.does.not.exist
})


Ask for meta data

Hi hhc, I found that the meta data is needed to reproduce your experimental results. I wonder if you can provide us with your original meta data? Or any meta data splited from the training and validation sets is OK? Much thanks for your reply!

Hello, Zihua,
Thank you for your interest in our work.
For the Flickr30K dataset, we randomly split the meta-data from the validation set:
    if opt.data_name == 'f30k_precomp':         meta_len = 2900 # 2% of 145,000         total_idsx = np.arange(0, len(images_meta)) #image length = caption length         meta_idxs = np.random.choice(total_idsx, meta_len, False)         captions_meta, images_meta = list(np.array(captions_dev)[meta_idxs]), images_dev[meta_idxs]         #save...
For the MS-COCO, the meta-data is split from the training set (6,328 pairs) and validation set (all 5,000 pairs):
`
if opt.data_name == 'coco_precomp':
im_div = [0, 1, 2, 3, 4]
sup_len = 6328 # 2%*566435 - 5000
total_img_idsx = np.arange(0, len(images_train))
total_cap_idsx = np.arange(0, len(captions_train))
sup_img_idxs = np.random.choice(total_img_idsx, sup_len, False)
sup_0t4_idxs = np.random.choice(im_div, sup_len, True)
sup_cap_idxs = sup_img_idxs * 5 + sup_0t4_idxs
mask_img = np.ones(len(total_img_idsx), dtype=bool)
mask_img[sup_img_idxs,] = False
    mask_cap = np.ones(len(total_cap_idsx), dtype=bool)
    del_cap_idxs = []
    for k in sup_img_idxs:
        del_cap_idxs.extend(list(range(k * len(im_div), k * len(im_div) + len(im_div))))
    del_cap_idxs = np.array(del_cap_idxs)
    mask_cap[del_cap_idxs,] = False
    ### get meta data
    img_meta_sup = images_train[sup_img_idxs]
    cap_meta_sup = list(np.array(captions_train)[sup_cap_idxs])
    images_meta = np.vstack((images_dev, img_meta_sup))
    captions_meta = captions_dev + cap_meta_sup
    ## get new train data
    images_train = images_train[mask_img]
    captions_train = list(np.array(captions_train)[mask_cap])
    #save

`
For the CC152K, the meta-data is split from the validation set of the original Conceptual Captions. You can download the meta-data from https://drive.google.com/drive/folders/1XnGr7S-rXRfDbdeIF0QmTJV8kQFHx71-?usp=sharing.

Hello, Zihua,
Thank you for your interest in our work.
For the Flickr30K dataset, we randomly split the meta-data from the validation set:
if opt.data_name == 'f30k_precomp':
    meta_len = 2900 # 2% of 145,000
    total_idsx = np.arange(0, len(images_meta)) #image length = caption length
    meta_idxs = np.random.choice(total_idsx, meta_len, False)
    captions_meta, images_meta = list(np.array(captions_dev)[meta_idxs]), images_dev[meta_idxs]
    #save...

For the MS-COCO, the meta-data is split from the training set (6,328 pairs) and validation set (all 5,000 pairs):
if opt.data_name == 'coco_precomp':
    im_div = [0, 1, 2, 3, 4]
    sup_len = 6328 # 2%*566435 - 5000
    total_img_idsx = np.arange(0, len(images_train))
    total_cap_idsx = np.arange(0, len(captions_train))
    sup_img_idxs = np.random.choice(total_img_idsx, sup_len, False)
    sup_0t4_idxs = np.random.choice(im_div, sup_len, True)
    sup_cap_idxs = sup_img_idxs * 5 + sup_0t4_idxs
    mask_img = np.ones(len(total_img_idsx), dtype=bool)
    mask_img[sup_img_idxs,] = False

    mask_cap = np.ones(len(total_cap_idsx), dtype=bool)
    del_cap_idxs = []
    for k in sup_img_idxs:
        del_cap_idxs.extend(list(range(k * len(im_div), k * len(im_div) + len(im_div))))
    del_cap_idxs = np.array(del_cap_idxs)
    mask_cap[del_cap_idxs,] = False
    ### get meta data
    img_meta_sup = images_train[sup_img_idxs]
    cap_meta_sup = list(np.array(captions_train)[sup_cap_idxs])
    images_meta = np.vstack((images_dev, img_meta_sup))
    captions_meta = captions_dev + cap_meta_sup
    ## get new train data
    images_train = images_train[mask_img]
    captions_train = list(np.array(captions_train)[mask_cap])
    #save

For the CC152K, the meta-data is split from the validation set of the original Conceptual Captions. You can download the meta-data from https://drive.google.com/drive/folders/1XnGr7S-rXRfDbdeIF0QmTJV8kQFHx71-?usp=sharing.

Thank you for your quick response!
There's another question: I wonder if your are using the same correspondence noise index as NCR or DECL? Or you are using the simulated index randomly shuffled by yourself? I truely understand if there's a difference, but the experimental results can be better compared if the simulated datasets share a same noise index.

Hello, @ZihuaZhao,
I use the same noise index files provided by NCR (20% and 50%). For the noise index of 70% noisy correspondence, we employ the code provided in NCR (see line 58 in MSCN/data.py) to generate it.

Hello, @ZihuaZhao, Thank you for your interest in our work. For the Flickr30K dataset, we randomly split the meta-data from the validation set:
if opt.data_name == 'f30k_precomp':
    meta_len = 2900 # 2% of 145,000
    total_idsx = np.arange(0, len(images_meta)) #image length = caption length
    meta_idxs = np.random.choice(total_idsx, meta_len, False)
    captions_meta, images_meta = list(np.array(captions_dev)[meta_idxs]), images_dev[meta_idxs]
    #save...

For the MS-COCO, the meta-data is split from the training set (6,328 pairs) and validation set (all 5,000 pairs):
if opt.data_name == 'coco_precomp':
    im_div = [0, 1, 2, 3, 4]
    sup_len = 6328 # 2%*566,435 - 5000
    total_img_idsx = np.arange(0, len(images_train))
    total_cap_idsx = np.arange(0, len(captions_train))
    sup_img_idxs = np.random.choice(total_img_idsx, sup_len, False)
    sup_0t4_idxs = np.random.choice(im_div, sup_len, True)
    sup_cap_idxs = sup_img_idxs * 5 + sup_0t4_idxs
    mask_img = np.ones(len(total_img_idsx), dtype=bool)
    mask_img[sup_img_idxs,] = False

    mask_cap = np.ones(len(total_cap_idsx), dtype=bool)
    del_cap_idxs = []
    for k in sup_img_idxs:
        del_cap_idxs.extend(list(range(k * len(im_div), k * len(im_div) + len(im_div))))
    del_cap_idxs = np.array(del_cap_idxs)
    mask_cap[del_cap_idxs,] = False
    # get meta data
    img_meta_sup = images_train[sup_img_idxs]
    cap_meta_sup = list(np.array(captions_train)[sup_cap_idxs])
    images_meta = np.vstack((images_dev, img_meta_sup))
    captions_meta = captions_dev + cap_meta_sup
    # get new train data
    images_train = images_train[mask_img]
    captions_train = list(np.array(captions_train)[mask_cap])
    #save

For the CC152K, the meta-data is split from the validation set of the original Conceptual Captions. You can download the meta-data from https://drive.google.com/drive/folders/1XnGr7S-rXRfDbdeIF0QmTJV8kQFHx71-?usp=sharing.

Thank you for your helpful responses, I've successfully generated the meta-data through your hints. There's something to mention that if "len(images_meta)" in the 3rd line for Flickr30K should be "len(images_dev)" according to your description?
By the way, I've downloaded the meta-data for CC152K, and found that the image data is stored in original images. NCR pre-processes the images into vectors through SCAN, which is found hard to implement since the processing code is based on Python2.7 and corresponding gcc version, which is not supported by new GPUs with new CUDA. I wonder if you have also processed the images through SCAN? Or you simply index in the processed vectors by NCR?

Hi，@ZihuaZhao. It should be len(images_dev) in the 3rd line for Flickr30K, and I have fixed this issue. For the meta-data in CC152K, I process the images through SCAN. You can download the processed features from https://drive.google.com/drive/folders/1XnGr7S-rXRfDbdeIF0QmTJV8kQFHx71-?usp=share_link

Hi @hhc1997 , thank you a lot for providing so much details!
I've found the original representations provided by SCAN is so limited, that further works can hardly be done. However the code under python2.7 and caffe can hardly be compiled. I've heard that you successfully extract the features using the SCAN code. It will be so kind if you can provide more details to run the code, including the conda environment or device version(3090 or A100 or something?) or your're using a docker?
Thank you a lot for your replies again, and your answers do help.

Hi, @ZihuaZhao. Yes, compiling the SCAN code is hard on 3090 or A100. So I rent a server with a 2080Ti GPU on AutoDL (https://www.autodl.com/home).

Hi, @ZihuaZhao. Yes, compiling the SCAN code is hard on 3090 or A100. So I rent a server with a 2080Ti GPU on AutoDL (https://www.autodl.com/home).

Well, this is an available solution. Thank you :)

Hello, @ZihuaZhao, Thank you for your interest in our work. For the Flickr30K dataset, we randomly split the meta-data from the validation set:
if opt.data_name == 'f30k_precomp':
    meta_len = 2900 # 2% of 145,000
    total_idsx = np.arange(0, len(images_dev)) #image length = caption length
    meta_idxs = np.random.choice(total_idsx, meta_len, False)
    captions_meta, images_meta = list(np.array(captions_dev)[meta_idxs]), images_dev[meta_idxs]
    #save...

For the MS-COCO, the meta-data is split from the training set (6,328 pairs) and validation set (all 5,000 pairs):
if opt.data_name == 'coco_precomp':
    im_div = [0, 1, 2, 3, 4]
    sup_len = 6328 # 2%*566,435 - 5000
    total_img_idsx = np.arange(0, len(images_train))
    total_cap_idsx = np.arange(0, len(captions_train))
    sup_img_idxs = np.random.choice(total_img_idsx, sup_len, False)
    sup_0t4_idxs = np.random.choice(im_div, sup_len, True)
    sup_cap_idxs = sup_img_idxs * 5 + sup_0t4_idxs
    mask_img = np.ones(len(total_img_idsx), dtype=bool)
    mask_img[sup_img_idxs,] = False

    mask_cap = np.ones(len(total_cap_idsx), dtype=bool)
    del_cap_idxs = []
    for k in sup_img_idxs:
        del_cap_idxs.extend(list(range(k * len(im_div), k * len(im_div) + len(im_div))))
    del_cap_idxs = np.array(del_cap_idxs)
    mask_cap[del_cap_idxs,] = False
    # get meta data
    img_meta_sup = images_train[sup_img_idxs]
    cap_meta_sup = list(np.array(captions_train)[sup_cap_idxs])
    images_meta = np.vstack((images_dev, img_meta_sup))
    captions_meta = captions_dev + cap_meta_sup
    # get new train data
    images_train = images_train[mask_img]
    captions_train = list(np.array(captions_train)[mask_cap])
    #save

For the CC152K, the meta-data is split from the validation set of the original Conceptual Captions. You can download the meta-data from https://drive.google.com/drive/folders/1XnGr7S-rXRfDbdeIF0QmTJV8kQFHx71-?usp=sharing.

Hi @hhc1997 @ZihuaZhao, may I ask where this code should be inserted?

Hello, @ZihuaZhao, Thank you for your interest in our work. For the Flickr30K dataset, we randomly split the meta-data from the validation set:
if opt.data_name == 'f30k_precomp':
    meta_len = 2900 # 2% of 145,000
    total_idsx = np.arange(0, len(images_dev)) #image length = caption length
    meta_idxs = np.random.choice(total_idsx, meta_len, False)
    captions_meta, images_meta = list(np.array(captions_dev)[meta_idxs]), images_dev[meta_idxs]
    #save...

For the MS-COCO, the meta-data is split from the training set (6,328 pairs) and validation set (all 5,000 pairs):
if opt.data_name == 'coco_precomp':
    im_div = [0, 1, 2, 3, 4]
    sup_len = 6328 # 2%*566,435 - 5000
    total_img_idsx = np.arange(0, len(images_train))
    total_cap_idsx = np.arange(0, len(captions_train))
    sup_img_idxs = np.random.choice(total_img_idsx, sup_len, False)
    sup_0t4_idxs = np.random.choice(im_div, sup_len, True)
    sup_cap_idxs = sup_img_idxs * 5 + sup_0t4_idxs
    mask_img = np.ones(len(total_img_idsx), dtype=bool)
    mask_img[sup_img_idxs,] = False

    mask_cap = np.ones(len(total_cap_idsx), dtype=bool)
    del_cap_idxs = []
    for k in sup_img_idxs:
        del_cap_idxs.extend(list(range(k * len(im_div), k * len(im_div) + len(im_div))))
    del_cap_idxs = np.array(del_cap_idxs)
    mask_cap[del_cap_idxs,] = False
    # get meta data
    img_meta_sup = images_train[sup_img_idxs]
    cap_meta_sup = list(np.array(captions_train)[sup_cap_idxs])
    images_meta = np.vstack((images_dev, img_meta_sup))
    captions_meta = captions_dev + cap_meta_sup
    # get new train data
    images_train = images_train[mask_img]
    captions_train = list(np.array(captions_train)[mask_cap])
    #save

For the CC152K, the meta-data is split from the validation set of the original Conceptual Captions. You can download the meta-data from https://drive.google.com/drive/folders/1XnGr7S-rXRfDbdeIF0QmTJV8kQFHx71-?usp=sharing.

Hi @hhc1997 @ZihuaZhao, may I ask where this code should be inserted?

Hi. You can run this code in a new Python file and save the 'images_meta ' and 'captions_meta ' as 'meta_ims.npy' and 'meta_caps.txt', respectively.


fix: added true freedom (as in freedom, not as in beer)

Motivation
I added true freedom as in the right to use, copy, modify and share programs.
How it looks?
You can see a preview here: https://ratsclub.github.io/copacabana-www/

cc. @takusuman

@takusuman Can you review this pull request?

@takusuman Can you review this pull request?

For sure, but it's already closed.
I've seen it now, I think it can be used as a good April Fool's joke.


Uncontrolled?

Is it really possible to do uncontrolled? In the demo it's connected to state. I need a totally uncontrolled field with just a defaultValue. In all cases I need defaultValue to be blank. Right now on re-render it is blanking out, or if I set a date prop it goes back to that original value.

You want the defaultValue to be null?

Thanks so much @dubert for the reply. Yes sir, it should be blank, and then when they pick something it should not change state, just set uncontrolled value of the input box via a ref or document.blah.value = 'rawr'. The important thing is, uncontrolled components do not get their uncontrolled value wiped out on re-render. When user clicks "submit" on my form I re-render my form to show a loading animation, at that point the Kronos field gets wiped out.

Looks like you're correct. The uncontrolled is not truly uncontrolled. I'm not entirely sure how to implement this though, since there is a lot of internal logic handling the validation of the date and internal state storage. Do you have any recommendations?
I've read Facebook's page on uncontrolled components but it doesn't help me implement them.

Thanks @dubert!
I haven't looked into the internals yet :( I will try to take a peak


[QUESTION] Is it possible to collect multiple users at the same time?

Is it possible to collect from multiple users in parallel? I've tried
import twint
from multiprocessing import Process

def process(user):
    c = twint.Config()
    c.Username = user
    c.Since = '2018-07-01'
    c.Store_json = True
    c.Output = '{}.json'.format(user)
    twint.run.Search(c)

users = ['otojya', 'otsuichich']

for user in users:
    p = Process(target=process, args=(user,))
    p.start()
    p.join()

But it doesn't seem to run in parallel. It finishes collecting otojya and then it collects from otsuichich.

Hi @sshum00, the pythonic way for doing multi scrapes concurrently requires some code edits.
This feature is not ready, yet. I suggest you to run separate scripts.
If you want to run a lot of multiple scraping sessions, I suggest you to create a script in bash/sh/zsh/pwsh/etc.
Thank you for your patience

I think I can help here,
If you use threading instead of Process you can achieve it
I did something similar but to run three search in parallel, the same query but searching in three different languages
https://github.com/twintproject/twint/issues/171
it works, you can run several different searches in parallel. You only have to adapt the code to search by different users.

Ah thank you, I'll look into using your code, currently I'm using subprocess.Popen to handle it atm but it's a little janky in that regards since it's actually using the Twint.py file opposed to the module.

@Nestor75 I tried out your code and it doesn't seem to run in parallel. It finishes for one entry before scraping another.

I am using this code with even more threads and it runs in parallel or of
them.
For me it works but may be is because I am no using the latest version on
twitter...
El vie., 27 jul. 2018 22:59, Shelby S<EMAIL_ADDRESS>escribió:

@Nestor75 https://github.com/Nestor75 I tried out your code and it
doesn't seem to run in parallel. It finishes for one entry before scraping
another.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/twintproject/twint/issues/185#issuecomment-408537263,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALesvDHJXDZASODsdxvNBGzgwvlgpdrPks5uK38igaJpZM4ViVCD
.


[BUG] Wrong variable name resolution in comprehensions

Describe the bug
Cython fails when naming the loop variable in a list comprehension the same as a local variable, while also using this local variable to create whatever is being iterated over. Example:
def bug():
    a = 10
    result = [a for a in (a + 1, a + 2)]

Running the above in Cython, we get
UnboundLocalError: local variable 'a' referenced before assignment

To Reproduce
Consider the above example, which works fine in Python. The fact that a is used for generating the results of the comprehension is not important. Also, the way a is used to generate the iterable does not matter. A simpler (though quite synthetic) example is then
def bug():
    a = 10
    result = [5 for a in f(a)]

with an arbitrary definition of f. Even f = None will do, as the error happens before calling f.
The exact way in which this fails depend upon whether this is inside a function or not, and whether a is typed. Using e.g.
def f(x):
    return [x]
def bug():
    cdef int a
    a = 10
    result = [a+5 for a in f(a)]
    print(result)

the code now runs, though I get the wrong result [5] as opposed to [15]. I also get a maybe-uninitialized compilation warning, matching this.
Expected behavior
In all cases, the name used for the loop variable inside the comprehension should not matter. This variable should be internal to the comprehension and have nothing to do with the surrounding scopes. That is, the first a in [... for a in f(a)] should be understood as a new variable, completely separate from the second a, and indeed separate from all other variables. The second a should (and do) refer to some pre-existing variable named a.
Adding in two extra a's for completeness, [r(a) for a in f(a) if c(a)], these two new a's should now refer to the comprehension-local a first (if this is indeed the name used), and then look in the outer scopes. This works as expected, though of course it can't be tested fully as long as having f(a) doesn't work.
Environment

OS: Linux Mint 20
Python version: 3.9.0
Cython version: 0.29.21
GCC: 9.3.0

Additional context
The same problem exists for dict and set comprehensions. Minimal not-working examples:
{0: 0 for a in f(a)}

{0 for a in f(a)}

For generator expressions, the UnboundLocalError does not appear until the iteration is performed:
result = (0 for a in f(a))
list(result)  # triggers error

Duplicate of #1159.


[SPARK-47132][DOCS][PYTHON] Correct docstring for pyspark's dataframe.head

What changes were proposed in this pull request?
Change description of returns in docstring for pyspark's dataframe's head to match actual behaviour.
Why are the changes needed?
The docstring claimed that head(n) would return a Row (rather than a list of rows) iff n == 1, but that's incorrect.
Type hints, example, and implementation show that the difference between row or list of rows lies in whether n is supplied at all -- if it isn't, head() returns a Row, if it is, even if it is 1, head(n) returns a list.
Does this PR introduce any user-facing change?
No, only a Python docstring is changed.
How was this patch tested?
No tests were added since only docs changed.
Was this patch authored or co-authored using generative AI tooling?
No.

Thank you @xinrong-meng ! I've created the JIRA and edited the PR.