Error while using FFI function: Could not open USB device file(/dev/bus/usb/002/002): Permission denied

I try to open USB device (FPGA development board) in Flutter Android.
I have .so library that contains all functions and library's C header file.
I managed to load it with dart:ffi, but I got error when I call function to open device:
Could not open device file(/dev/bus/usb/002/002): Permission denied
Why could that happen?
USB permissions set in manifest:
    <uses-permission android:name="android.permission.MANAGE_USB" />

    <uses-feature
            android:name="android.hardware.usb.host"
            android:required="true" />

With similar permission settings same device is working using Java.
I can provide file descriptor to .so library's device opening function as argument, but how to get descriptor from Flutter?
In Java there are UsbManager and UsbDeviceConnection classes and getFileDescriptor() function

Hi @KestutisMa
Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample
Thank you

Hi @TahaTesser, I provided info you asked,
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Linux, locale en_US.UTF-8)
    • Flutter version 1.22.1 at /home/kest/snap/flutter/common/flutter
    • Framework revision f30b7f4db9 (12 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/kest/Android/Sdk
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Android Studio (version 3.6)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 49.0.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • Optimus G (mobile) • <IP_ADDRESS>:5555 • android-arm • Android 7.1.2 (API 25)

flutter run --verbose
[ +137 ms] executing: [/home/kest/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +43 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f30b7f4db93ee747cd727df747941a28ead25ff5
[        ] executing: [/home/kest/snap/flutter/common/flutter/] git tag --points-at HEAD
[  +10 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.0-12.4.pre
           1.22.1
[  +10 ms] executing: [/home/kest/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/kest/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +53 ms] executing: [/home/kest/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +51 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +17 ms] executing: /home/kest/Android/Sdk/platform-tools/adb devices -l
[  +45 ms] List of devices attached
           <IP_ADDRESS>:5555     device product:nitrogen_geehrc model:Optimus_G device:geehrc transport_id:1
[   +8 ms] /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell getprop
[ +261 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +132 ms] Found plugin flutter_usb_write at /home/kest/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_usb_write-0.1.0/
[ +184 ms] Found plugin flutter_usb_write at /home/kest/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_usb_write-0.1.0/
[  +33 ms] Generating /home/kest/Documents/flutterProjektai/pirmas/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +34 ms] ro.hardware = geehrc
[        ] ro.build.characteristics = nosdcard
[  +53 ms] Starting incremental build...
[   +3 ms] Initializing file store
[  +15 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +5 ms] Launching lib/main.dart on Optimus G in debug mode...
[   +6 ms] /home/kest/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/kest/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/kest/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tools.GNHJLK/flutter_tool.HAIUMP/app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[  +19 ms] executing: /home/kest/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/kest/Documents/flutterProjektai/pirmas/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +6 ms] Exit code 0 from: /home/kest/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/kest/Documents/flutterProjektai/pirmas/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.example.pirmas" (Raw: "com.example.pirmas")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=22)
                 A: android:name(0x01010003)="android.permission.MANAGE_USB" (Raw: "android.permission.MANAGE_USB")
               E: uses-feature (line=24)
                 A: android:name(0x01010003)="android.hardware.usb.host" (Raw: "android.hardware.usb.host")
                 A: android:required(0x0101028e)=(type 0x12)0xffffffff
               E: uses-feature (line=27)
                 A: android:name(0x01010003)="android.hardware.usb.host" (Raw: "android.hardware.usb.host")
                 A: android:required(0x0101028e)=(type 0x12)0xffffffff
               E: application (line=31)
                 A: android:label(0x01010001)="pirmas" (Raw: "pirmas")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=37)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.pirmas.MainActivity" (Raw: "com.example.pirmas.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=51)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=61)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=65)
                     E: action (line=66)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=68)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                   E: intent-filter (line=71)
                     E: action (line=72)
                       A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_ATTACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_ATTACHED")
                   E: meta-data (line=75)
                     A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_ATTACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_ATTACHED")
                     A: android:resource(0x01010025)=@0x7f0c0000
                   E: intent-filter (line=79)
                     E: action (line=80)
                       A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_DETACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_DETACHED")
                   E: meta-data (line=83)
                     A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_DETACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_DETACHED")
                     A: android:resource(0x01010025)=@0x7f0c0000
                 E: meta-data (line=91)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +9 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell -x logcat -v time -t 1
[ +381 ms] Exit code 0 from: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           10-20 18:49:39.087 W/LocationUpdateService( 1482): ------------------------------------------ Destroyed Location update Service
[   +1 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell -x logcat -v time -t 1
[  +82 ms] Exit code 0 from: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           10-20 18:49:39.087 W/LocationUpdateService( 1482): ------------------------------------------ Destroyed Location update Service
[  +18 ms] <- compile package:pirmas/main.dart
[  +13 ms] executing: /home/kest/Android/Sdk/platform-tools/adb version
[  +23 ms] Android Debug Bridge version 1.0.41
           Version 30.0.1-6435776
           Installed as /home/kest/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/kest/Android/Sdk/platform-tools/adb start-server
[   +9 ms] Building APK
[  +29 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] gradle.properties already sets `android.enableR8`
[   +2 ms] Using gradle from /home/kest/Documents/flutterProjektai/pirmas/android/gradlew.
[        ] /home/kest/Documents/flutterProjektai/pirmas/android/gradlew mode: 33261 rwxr-xr-x.
[   +8 ms] executing: /opt/android-studio/jre/bin/java -version
[  +79 ms] Exit code 0 from: /opt/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_212-release"
           OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
           OpenJDK 64-Bit Server VM (build 25.212-b4-5784211, mixed mode)
[   +5 ms] executing: [/home/kest/Documents/flutterProjektai/pirmas/android/] /home/kest/Documents/flutterProjektai/pirmas/android/gradlew -Pverbose=true -Ptarget-platform=android-arm
-Ptarget=/home/kest/Documents/flutterProjektai/pirmas/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1444 ms] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit
versions. For more information, visit https://g.co/64-bit-requirement
[+2293 ms] > Task :app:compileFlutterBuildDebug
[        ] [ +132 ms] executing: [/home/kest/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +34 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] f30b7f4db93ee747cd727df747941a28ead25ff5
[        ] [        ] executing: [/home/kest/snap/flutter/common/flutter/] git tag --points-at HEAD
[        ] [  +11 ms] Exit code 0 from: git tag --points-at HEAD
[        ] [        ] 1.22.0-12.4.pre
[        ]            1.22.1
[        ] [  +15 ms] executing: [/home/kest/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/kest/snap/flutter/common/flutter/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +51 ms] executing: [/home/kest/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +48 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +12 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +10 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [ +104 ms] Initializing file store
[        ] [  +20 ms] Done initializing file store
[        ] [  +39 ms] Skipping target: gen_localizations
[        ] [ +618 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[        ] [  +26 ms] /home/kest/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/kest/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/kest/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --no-link-platform --packages /home/kest/Documents/flutterProjektai/pirmas/.packages --output-dill
/home/kest/Documents/flutterProjektai/pirmas/.dart_tool/flutter_build/14770072f5ddaad5d2f7f70c08ac425b/app.dill --depfile
/home/kest/Documents/flutterProjektai/pirmas/.dart_tool/flutter_build/14770072f5ddaad5d2f7f70c08ac425b/kernel_snapshot.d package:pirmas/main.dart
[+8770 ms] [+9344 ms] kernel_snapshot: Complete
[ +600 ms] [ +623 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged}
[ +199 ms] [ +190 ms] debug_android_application: Complete
[ +308 ms] [ +340 ms] Persisting file store
[  +91 ms] [   +6 ms] Done persisting file store
[        ] [   +7 ms] build succeeded.
[        ] [  +12 ms] "flutter assemble" took 11,370ms.
[        ] [   +4 ms] ensureAnalyticsSent: 0ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +198 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_usb_write:preBuild UP-TO-DATE
[        ] > Task :flutter_usb_write:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_usb_write:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :flutter_usb_write:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[  +98 ms] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_usb_write:mergeDebugShaders UP-TO-DATE
[        ] > Task :flutter_usb_write:compileDebugShaders UP-TO-DATE
[        ] > Task :flutter_usb_write:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_usb_write:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +197 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_usb_write:generateDebugResValues UP-TO-DATE
[        ] > Task :flutter_usb_write:compileDebugRenderscript NO-SOURCE
[        ] > Task :flutter_usb_write:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_usb_write:packageDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[  +96 ms] > Task :flutter_usb_write:checkDebugManifest UP-TO-DATE
[        ] > Task :flutter_usb_write:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :flutter_usb_write:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :flutter_usb_write:generateDebugRFile UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :flutter_usb_write:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_usb_write:javaPreCompileDebug UP-TO-DATE
[        ] > Task :flutter_usb_write:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :flutter_usb_write:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:generateJsonModelDebug UP-TO-DATE
[  +97 ms] > Task :flutter_usb_write:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_usb_write:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :flutter_usb_write:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :flutter_usb_write:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :app:externalNativeBuildDebug
[        ] > Task :app:compileDebugSources
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :flutter_usb_write:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_usb_write:bundleLibResDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_usb_write:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :flutter_usb_write:createFullJarDebug UP-TO-DATE
[  +96 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[  +99 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ +999 ms] > Task :app:packageDebug
[        ] > Task :app:assembleDebug
[        ] > Task :flutter_usb_write:extractDebugAnnotations UP-TO-DATE
[        ] > Task :flutter_usb_write:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :flutter_usb_write:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :flutter_usb_write:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :flutter_usb_write:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_usb_write:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[  +84 ms] > Task :flutter_usb_write:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_usb_write:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_usb_write:compileDebugSources UP-TO-DATE
[        ] > Task :flutter_usb_write:assembleDebug UP-TO-DATE
[        ] BUILD SUCCESSFUL in 15s
[        ] 61 actionable tasks: 7 executed, 54 up-to-date
[ +337 ms] Running Gradle task 'assembleDebug'... (completed in 16.1s)
[  +40 ms] calculateSha: LocalDirectory: '/home/kest/Documents/flutterProjektai/pirmas/build/app/outputs/flutter-apk'/app.apk
[  +16 ms] calculateSha: reading file took 15us
[ +310 ms] calculateSha: computing sha took 309us
[   +7 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[   +3 ms] executing: /home/kest/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/kest/Documents/flutterProjektai/pirmas/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +10 ms] Exit code 0 from: /home/kest/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/kest/Documents/flutterProjektai/pirmas/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.example.pirmas" (Raw: "com.example.pirmas")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=22)
                 A: android:name(0x01010003)="android.permission.MANAGE_USB" (Raw: "android.permission.MANAGE_USB")
               E: uses-feature (line=24)
                 A: android:name(0x01010003)="android.hardware.usb.host" (Raw: "android.hardware.usb.host")
                 A: android:required(0x0101028e)=(type 0x12)0xffffffff
               E: uses-feature (line=27)
                 A: android:name(0x01010003)="android.hardware.usb.host" (Raw: "android.hardware.usb.host")
                 A: android:required(0x0101028e)=(type 0x12)0xffffffff
               E: application (line=31)
                 A: android:label(0x01010001)="pirmas" (Raw: "pirmas")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=37)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.pirmas.MainActivity" (Raw: "com.example.pirmas.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=51)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=61)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=65)
                     E: action (line=66)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=68)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                   E: intent-filter (line=71)
                     E: action (line=72)
                       A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_ATTACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_ATTACHED")
                   E: meta-data (line=75)
                     A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_ATTACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_ATTACHED")
                     A: android:resource(0x01010025)=@0x7f0c0000
                   E: intent-filter (line=79)
                     E: action (line=80)
                       A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_DETACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_DETACHED")
                   E: meta-data (line=83)
                     A: android:name(0x01010003)="android.hardware.usb.action.USB_DEVICE_DETACHED" (Raw: "android.hardware.usb.action.USB_DEVICE_DETACHED")
                     A: android:resource(0x01010025)=@0x7f0c0000
                 E: meta-data (line=91)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +5 ms] Stopping app 'app.apk' on Optimus G.
[   +1 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell am force-stop com.example.pirmas
[+1167 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell pm list packages com.example.pirmas
[+1114 ms] package:com.example.pirmas
[   +6 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell cat /data/local/tmp/sky.com.example.pirmas.sha1
[  +63 ms] 41b797a3ed5ed2a84cc2333f238767ee448ad2b3
[   +1 ms] Installing APK.
[   +2 ms] executing: /home/kest/Android/Sdk/platform-tools/adb version
[   +7 ms] Android Debug Bridge version 1.0.41
           Version 30.0.1-6435776
           Installed as /home/kest/Android/Sdk/platform-tools/adb
[        ] executing: /home/kest/Android/Sdk/platform-tools/adb start-server
[   +7 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 install -t -r /home/kest/Documents/flutterProjektai/pirmas/build/app/outputs/flutter-apk/app.apk
[+14749 ms] Performing Streamed Install
                     Success
[   +2 ms] Installing build/app/outputs/flutter-apk/app.apk... (completed in 14.8s)
[   +3 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell echo -n ca838d0dd256271f1ad4992c1556ebdb7317dbc1 > /data/local/tmp/sky.com.example.pirmas.sha1
[ +251 ms] Optimus G startApp
[   +8 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez
enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.pirmas/com.example.pirmas.MainActivity
[+1428 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.pirmas/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+5745 ms] Observatory URL on device: http://<IP_ADDRESS>:59603/UPSq0oG3JS4=/
[   +3 ms] executing: /home/kest/Android/Sdk/platform-tools/adb -s <IP_ADDRESS>:5555 forward tcp:0 tcp:59603
[   +9 ms] 45551
[        ] Forwarded host port 45551 to device port 59603 for Observatory
[   +5 ms] Caching compiled dill
[  +46 ms] Connecting to service protocol: http://<IP_ADDRESS>:45551/UPSq0oG3JS4=/
[   +1 ms] DDS is currently disabled due to https://github.com/flutter/flutter/issues/62507
[+1354 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:45551/UPSq0oG3JS4=/
[        ] Waiting for Optimus G to report its views...
[  +59 ms] Waiting for Optimus G to report its views... (completed in 58ms)
[  +81 ms] DevFS: Creating new filesystem on the device (null)
[ +241 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.pirmas/code_cache/pirmasSKAUJZ/pirmas/)
[   +4 ms] Updating assets
[  +91 ms] Syncing files to device Optimus G...
[   +2 ms] Scanning asset files
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:pirmas/main.dart 47f55941-6448-41e9-8055-08fa47a5aebf
[        ] <- 47f55941-6448-41e9-8055-08fa47a5aebf
[  +67 ms] Updating files
[ +865 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Optimus G... (completed in 940ms)
[   +2 ms] Synced 1.8MB.
[   +3 ms] <- accept
[  +29 ms] Connected to _flutterView/0xa871bc10.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Optimus G is available at: http://<IP_ADDRESS>:45551/UPSq0oG3JS4=/
[+8120 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[        ] W/Adreno-EGL( 2216): <qeglDrvAPI_eglSwapBuffers:3815>: EGL_BAD_SURFACE
[        ] W/OpenGLRenderer( 2216): swapBuffers encountered EGL error 12301 on 0x8cefffe0, halting rendering...
[ +286 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[        ] W/Adreno-ES20( 2216): <finish_current_fbo_rendering:387>: GL_OUT_OF_MEMORY
[  +26 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[ +118 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[ +144 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[  +23 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[  +17 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[  +39 ms] W/Adreno-EGLSUB( 2216): <DequeueBuffer:726>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
[        ] W/Adreno-EGL( 2216): <qeglDrvAPI_eglSwapBuffers:3815>: EGL_BAD_SURFACE
[+42675 ms] I/flutter ( 2216): okFrontPanel_Construct= Pointer<Void>: address=0x85be7f80
[  +39 ms] E/FrontPanel( 2216): Could not open device file(/dev/bus/usb/002/002): Permission denied
[  +17 ms] I/flutter ( 2216): okFrontPanel_OpenBySerial= -1

Minimal example: same as "Flutter Demo Home Page" (initial) project, I just added some lines to main.dart function which is executed when button is pressed:
<...>
    final DynamicLibrary nativeFrontPanelLib = Platform.isAndroid
        ? DynamicLibrary.open("libokFrontPanel.so")
        : DynamicLibrary.process();
   final Pointer<Void> Function() okFrontPanel_Construct = nativeFrontPanelLib
        .lookup<NativeFunction<Pointer<Void> Function()>>(
            "okFrontPanel_Construct")
        .asFunction();
    final int Function(
        Pointer<Void>,
        Pointer<
            Utf8>) okFrontPanel_OpenBySerial = nativeFrontPanelLib
        .lookup<NativeFunction<Int32 Function(Pointer<Void>, Pointer<Utf8>)>>(
            "okFrontPanel_OpenBySerial")
        .asFunction();
    Pointer<Void> d = okFrontPanel_Construct();
    print('okFrontPanel_Construct= ${d.toString()}');
    Pointer<Utf8> serial = Utf8.toUtf8("");
    int err = okFrontPanel_OpenBySerial(d, serial);
    print('okFrontPanel_OpenBySerial= ${err.toString()}');
<...>

Hi @KestutisMa
Can't you use the platform channel to execute this in Java?

I can provide file descriptor to .so library's device opening function as argument, but how to get descriptor from Flutter?

Can you please complete the sample code  in a repository?
Thank you

Hi @TahaTesser

Can't you use the platform channel to execute this in Java?

Probably yes, thanks for a workaround suggestion, but then call stucture would be Flutter->Java->.so library, I think calling .so library directly with dart:ffi would require less code and be more resource efficient, wouldn't?
Maybe I can use Java platform channel just to get the descriptor then return it to Flutter and use with function called with FFI:
UsbDeviceConnection conn = usbManager.openDevice(device);
int fd = conn.getFileDescriptor();

But I think it would be cleaner code if I could get descriptor/permissions from Flutter if that is possible?
There is package https://pub.dev/packages/permission_handler but I didn't see USB in it's list.

Can you please complete the sample code in a repository?

The example code of getting USB permissions in Java is here:
https://github.com/KestutisMa/FrontPanel-Android/blob/f5d9176efc78bfd4a29f53da196dcc35ad3ffd35/Samples/Counters/app/src/main/java/com/opalkelly/frontpanelcounters/MainActivity.java#L76#L96

Hi @KestutisMa
permission_handler is for runtime app permissions not for stuff like this
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Hi @TahaTesser ,
Thanks for suggestions,
I am asking about approach because I didn't find that in dart::FFI documentation and straightforward use of dart::FFI on C library that access USB gives permission error on Android. I think this could be relevant to many use cases as it is quite common to control IoT or other specialized USB devices through C library interface.
If I understand you correctly, in Flutter there is now no other possibility but use Java to deal with Android USB permissions?


App insight Deployment error during FL demo

Describe the bug
FL demo deployment causes an app insight deployment error.
To Reproduce
Steps to reproduce the behavior:

Go to  https://github.com/Azure-Samples/azure-ml-federated-learning/blob/main/docs/quickstart.md
Click on the first "Deploy to Azure" button
Fill in the form and I used westus3 as the region.
See error below for the App insight

{
"status": "Failed",
"error": {
"code": "BadRequest",
"message": "Region doesn't support Classic resource mode for Application Insights resources. Please use Workspace-based mode."
}
}
Expected behavior
The FL demo deployment to go through.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Sounds like the reason is that we're using "classic" appinsights instead of workspace appinsights. We need to modify our bicep provisioning to align with the latest provisioning strategy for appinsights instances attached to our demo workspace.

Provisioning of app insights has been removed from our bicep files in release-06.

We had to rollback the changes. We initially removed appinsights from the workspace provisioning, but that's not supported in 3p subscriptions. We've restored the changes and we'll have to figure out how to provision workspace-based appinsights in a coming release.
related: #294


tsdb: Fixed chunk querier segfaulting on chunk bytes accessing.

Fixes: https://github.com/prometheus/prometheus/issues/7776

/prombench master

Not much difference in resources if not better (chunks are compacted better) so canceling prombench (: All seems to be good.

/prombench cancel

Windows test fail was flakiness, so this is ready to be reviewed. (:

I might be wrong  but do we use that in prometheus? Because currently it does not seem like you close them.

Can you rebase, so we have green on windows?

Done! :+1:

I might be wrong but do we use that in prometheus? Because currently it does not seem like you close them.

Missed this. Close what?

Addressed all (:

ping (: @brian-brazil @krasi-georgiev

Tests are improved, but oveall clone is not really needed at the end, so I will split this PR into smaller pieces and apply all comments :hugs:


"locals" not getting passed

Describe the bug
Idk if I'm doing something wrong, but setting locals.user inside hooks and then retrieving it from +layout.server.js or +page.server.js doesn't work.
Reproduction
https://github.com/buhodev/repro-locals-not-working
Logs
No response
System Info
System:
  OS: Windows 10 10.0.22621
  CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
  Memory: 871.74 MB / 7.33 GB
Binaries:
  Node: 18.15.0 - ~\AppData\Local\Volta\tools\image\node\18.15.0\node.EXE
  npm: 9.5.0 - ~\AppData\Local\Volta\tools\image\node\18.15.0\npm.CMD
  pnpm: 8.6.5 - C:\Program Files\Volta\pnpm.EXE
Browsers:
  Edge: Spartan (44.22621.2283.0), Chromium (117.0.2045.47)
  Internet Explorer: 11.0.22621.1
npmPackages:
  @sveltejs/adapter-auto: ^2.0.0 => 2.0.0
  @sveltejs/kit: ^1.25.1 => 1.25.1
  svelte: ^4.2.1 => 4.2.1
  vite: ^4.4.11 => 4.4.11

Severity
annoyance
Additional Information
No response

https://kit.svelte.dev/docs/hooks Hooks go in src, not src/routes. Your handle hook isn't being run at all.


Version Bump

This PR aligns semantic release version with the manually released version.

:tada: This PR is included in version 8.11.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


historical-performance-data -> historical-performance-data-list

Proposal:
To align with general naming practice, the name of the historical-performance-data attribute shall be changed towards historical-performance-data-list.

historical-performance-data  -> goes to  historical-performance-data**-list**
as for all other interfaces
2020-12-09: decided as proposed.

Issue obsolete, because attribute deleted according to #21 .


Can't use cluster swarm with kitchen-docker

Im not sure if it's a bug or not, this is what I have when i use kitchen-docker with a docker-swarm cluster :
Successfully built a1ab400bbcc4
44eb605e4b9f2b576164766c581a292f28a7f89e47928e03e3310639b058b355
<IP_ADDRESS>:32774
Waiting for SSH service on <IP_ADDRESS>:32774, retrying in 3 seconds
Waiting for SSH service on <IP_ADDRESS>:32774, retrying in 3 seconds
Waiting for SSH service on <IP_ADDRESS>:32774, retrying in 3 seconds
Waiting for SSH service on <IP_ADDRESS>:32774, retrying in 3 seconds

Any clue or workaround with this ?
thx for your help.

kitchen-docker assumes that the IP we talked to Docker at is also where you should SSH to (with the random mapped port). To fix this we would need to parse the output to get the IP to connect to. I don't have a Docker Swarm setup to test with but if you can paste the raw docker run output I can try and write the parser logic.

Any updates here? :)


Timezone offset ignored when loading into sqlite

Overview
I have a data package with timestamps that have timezone offsets, e.g.:
2020-09-09T07:10:20+02:00

The spec for this fields is:
{
  "name": "timestamp",
  "type": "datetime",
  "format": "%Y-%m-%dT%H:%M:%S%z"
}

When saving this data package to sqlite, timezone offsets get ignored and are saved in sqlite as:
2020-09-09 07:10:20.000000

Retaining timezone offsets is not possible in sqlite's datetime strings, but it would be good if timezones are converted to UTC before uploading to sqlite:
2020-09-09 05:10:20.000000

Is that possible?

Please preserve this line to notify @roll (lead of this repository)

Hi,
Have you tried it with Frictionless?
This is a legacy codebase

No, do you mean using to_spss()? In the documentation I see:

Wriring to SQL [sic]
[NOTE] Timezone information is ignored for datetime and time types.

@peterdesmet
It's a typo in the SQL Tutorial - package.to_sql - https://github.com/frictionlessdata/frictionless-py/blob/master/tests/plugins/test_sql.py#L123
But yes the timezones don't seem to be supported

We have an issue for it - https://github.com/frictionlessdata/frictionless-py/issues/405 - but not yet ready

Thanks, will close this issue here in favour of the other issue.


Relic/LC location set as "Trailblazer" regardless of TB's class

Hello,
Noticed that the output file always sets relics/light cones of the TB as "Trailblazer", regardless of the TB's class.
If I'm not mistaken, this is hard-coded in this line, in the lookup_avatar_name function? Do correct me if I'm wrong in my assessment.
Kinda wanted to try to fix this myself, but always getting an attempt to multiply with overflow with my unmodified local build, and with my complete inexperience in Rust, I decided to post an issue here.
Sorry for bothering and thank you for your work here!

thank you for reporting! i've confirmed with kelz that this is a discrepency to the hsr-scanner output, which outputs it as "TrailblazerPreservation" and "TrailblazerDestruction" respectively. this was a low priority issue, however version 2.2 will make it possible to have relics equipped to all trailblazer paths at the same time, so this will definitely be fixed with next update.


HTTP PATCH call failing when istio is active on pod

our  k8s is 1.13.5
Istio is 1.2.5 and installed with helm and the default values
We have a pod that sends all sort of calls to a remote service.
The GET, POST, PUT calls succeed, but a PATCH call fails.
We have used istio default setup, and are not blocking/altering any traffic with it.
But we tested and confirmed that once we configure the pod with sidecar.istio.io/inject: "false" this PATCH call works, and once istio is active again as a side car on this pod, this call fails.
The calls are done through Spring RestTemplate, and when failing, the failure is an 'Internal server error. 404 Not Found'
Anyone knows how to fix this?
We really want to use istio, but are stuck in staging version due to this problem.
Thank you
Carmit

Seems we have overcome the issue
Instead of a PATCH call, we now use a POST call with this URL parameter: "_HttpMethod", "PATCH"
We will do some more tests, but it seems the issue is resolved.


fullwidth tilde / wave dash problem.

The game in the texts like:
'みししっ、たのしんでいってね～！',
'きーあ、みっしぃにきっくをしたいかな～！',
'おにいちゃん～',
'きゃっ、みつかっちゃった～',
'みししっ、のろまなみっしぃおにいちゃんとはおおちがいだよ～',
expects  ～ (Unicode U+FF5E ～ FULLWIDTH TILDE).
It works on Japanese IME for Windows platform but it is not working on systems like Linux and Android.
Because Japanese IME like Mozc gives 〜 (Unicode U+301C 〜 WAVE DASH) by default.
Is it possible to make game accept both full-width tilde and wave dash?
Thanks for awesome japanese typing practice game.

Hello @ataniazov, thank you for reporting this bug! It should be possible to fix by replacing the 〜 in the input with ～ in highlightText() and checkAnswer(). I'll go ahead and do that right now 👍

It should be fixed now. If the issue is still persisting, let me know. Thanks again!

Yep, now it accepts both inputs.
ありがとうございます。


Ability to send part of screen

Hi,
In documentation is described that it is possible to send part of Zabbix screen. How can I do that?

Can you show me exact word, please?
There is no such feature and documentation says that.


Updated benchmarks for docs

Adds a benchmarks page in the docs. It contains how-to instructions for the scripts we have in examples/benchmarks and some pages with the latest plots and bechmark times. The results will contain the following sections:

[x] Quantum Fourier Transform
[x] Variational circuit
[x] Measurements
[x] Simulation precision
[x] Adiabatic evolution
[x] Hardware configuration histograms

@scarrazza let me know if this presentation format looks okay. The idea is similar to what are using in tutorials, have the various results in markdown and link to them from the docs.
I will mark this PR as ready when I complete all sections.

Thanks, yes, this looks pretty good!

I added all sections mentioned in the first post and also some text in each section and the main benchmark page. I also rearranged this page slightly so that the benchmark results appear on top. I believe this is good for review.


Bank Accounts

Accounts
- Savings account

Customizable Name
1 per profile
Penalty of 5% if you do an action more than once in six months
Variable Interest Rate

- Checking Account

Customizable
No limit
4 actions per day

Creation


No runtime target mention

I see no mention of what .Net version or Runtime target supports default interface implementation.
[Enter feedback here]

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

ID: e26a623c-ade0-8630-2447-c526cf8ac3aa
Version Independent ID: cc560dac-f9d5-06b0-0851-1ba48e860582
Content: Safely update interfaces using default interface methods in C#
Content Source: docs/csharp/tutorials/default-interface-methods-versions.md
Product: dotnet-csharp
Technology: csharp-advanced-concepts
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Hi @JustinAtSama
Default interface implementation was released in C# 8, and .NET Core 3.0.
In general, the articles should mention the first available implementation when that is one of the last three releases (C# 9 - C#11 at this time). Do we need to extend that guideline?
In general, I want to avoid describing every feature by version. That would make it difficult for developers learning C# as a new language now. However, I know there are reasons to note when features are newer. How far back do you think we should go? Why?


[!] Error in auth:   'player' "same error again, i am using latest version"

TapSwap server error!

And dont use script
Wait for update
https://github.com/Poryaei/TapSwap-Clicker/issues/28

hi i update code but get this error
[!] Error in auth:   'player'

I have a different error on my end.

Update the script, there shouldn't be any problem. 👍


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-25-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3655

Questions ?
Please refer to the Backport tool documentation


Add ConvNeXt

Add ConvNeXt
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

Also - update the readme!

Also update the main README


$scope.data is not reflecting chart

I am loading the data via $scope.data. It starts with nothing but there's a button that calls createPhase which makes a temporary task and Row.
But I cannot delete a row that has a parent(or a child row if you refer to it like that) via function removeGantt from the chart. As in it seems like the object changes but the change is not reflected on the chart and is showing there forever. Parent row are removed just fine as well as  tasks.
`
$scope.data = [];
$scope.removeGantt = function (md, isTask) {
   var tmp = [];
    angular.forEach($scope.data, function (val, key) {
        if (!isTask) {
            if (val.id != md.id)
                tmp.push(val);
        } else {
            var tmp1 = [];
            angular.forEach(val.tasks, function (val1, key) {
                if (md.id != val1.id)
                    tmp1.push(val1);
            });
            val.tasks = tmp1;
            tmp.push(val);
        }
    });
        $scope.data = tmp;
        $scope.api.dependencies.refresh();
}

$scope.createPhase = function () {
    var tmpParent = $('#sel1').val();
    if (tmpParent == 'none') {
        if($scope.data.length == 0) {
            $scope.data.push({ id: "new-project" + $scope.counter++, name: $scope.phaseName, content: ' {{row.model.name}}' },
                 { name: 'PLACEHOLDER', parent: $scope.phaseName, content: ' {{row.model.name}}', tasks: [{ id: "PLACEHOLDER1", name: 'PLACEHOLDER-TASK', content: ' {{task.model.name}}', from: new Date(y, m, d), to: new Date(y, m + 1, d + 10) }] });
        }else
            $scope.data.push({ id: "new-project" + $scope.counter++, name: $scope.phaseName, content: ' {{row.model.name}}' });
    } else {
        $scope.data.push({ id: "new-project" + $scope.counter++, name: $scope.phaseName, parent: tmpParent, content: ' {{row.model.name}}' });
    }
    $scope.phaseName = '';

    $scope.api.columns.generate();
}`

Seem to have resolve itself? Maybe after I updated plugins 1.2.6 to 1.2.14


Chroniques Oubliees: improved documentation.

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Improved a bit the documentation.
Added new configuration option for character type sheet default.

Character Sheet Info Roll20 Internal Use only.

It would have helped if the constraints for the preview image were described in [https://wiki.roll20.net/Sheet.json](the wiki).


Submit a blog for the announcement

Here is the submission link
https://cd.foundation/cdf-blog-submission-form/

Here is the blog link
https://hackmd.io/@LInuxSuRen/r1lgSHA0d

Done with the submission. See the following screenshot:

Waiting for the response.

The final link is https://cd.foundation/blog/2021/09/01/announcement-cdf-chinese-localization-sig/


chore: remove blank-issue option

What this PR changes/adds
removes the option to submit a blank issue.
Why it does that
all issues should either be feature requests or bug reports. or they should really be a discussion.
Further notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
Linked Issue(s)
Closes # <-- insert Issue number if one exists
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

Codecov Report
Patch coverage has no change and project coverage change: +0.56 :tada:

Comparison is base (36aa899) 65.37% compared to head (9b7e61e) 65.94%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3238      +/-   ##
==========================================
+ Coverage   65.37%   65.94%   +0.56%
==========================================
  Files         837      843       +6
  Lines       16822    16871      +49
  Branches      926      925       -1
==========================================
+ Hits        10998    11126     +128
+ Misses       5452     5375      -77
+ Partials      372      370       -2

see 33 files with indirect coverage changes

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


staruml: 6.3.0 -> 6.3.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/staruml/versions.
meta.description for staruml is: Sophisticated software modeler
meta.homepage for staruml is: https://staruml.io/
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 6.3.1 with grep in /nix/store/r5bhbkq9rvsrvqd6jh5gzr4mw6s3dfxc-staruml-6.3.1
found 6.3.1 in filename of file in /nix/store/r5bhbkq9rvsrvqd6jh5gzr4mw6s3dfxc-staruml-6.3.1

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

staruml

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/r5bhbkq9rvsrvqd6jh5gzr4mw6s3dfxc-staruml-6.3.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A staruml https://github.com/r-ryantm/nixpkgs/archive/d3f62f546507bce2f3d8058e959d966b45716c2c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/d3f62f546507bce2f3d8058e959d966b45716c2c#staruml

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/r5bhbkq9rvsrvqd6jh5gzr4mw6s3dfxc-staruml-6.3.1
ls -la /nix/store/r5bhbkq9rvsrvqd6jh5gzr4mw6s3dfxc-staruml-6.3.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

staruml

Maintainer pings
cc @kashw2 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


register dataset does not set contenturl

Using 0.1.5a1, i noticed that when I register a dataset, the content url does not get set and i dont see any other field denoting what file has been registered. Should I be setting the name to the name/location of the file?
{
      "@id": "81651092-f711-4a38-9ae9-7447f8138dd1",
      "@context": {
        "@vocab": "https://schema.org/",
        "evi": "https://w3id.org/EVI#"
      },
      "metadataType": "https://w3id.org/EVI#Dataset",
      "url": null,
      "name": "cellmaps_imagedownloader downloaded image file",
      "keywords": [],
      "author": "Emma Lundberg",
      "datePublished": "05-11-2023",
      "version": "???",
      "description": "IF image file",
      "associatedPublication": null,
      "additionalDocumentation": null,
      "format": ".jpg",
      "schema": null,
      "generatedBy": [],
      "derivedFrom": [],
      "usedBy": [],
      "contentUrl": null
    },

Fixed with commit 48fe7e1add961ff7db0dfb5be59d3229c374297e to max-dev-schema.
Leaving this open until I build.


Add Unreal Tournament (UT99)

Adds Unreal Tournament (UT99) dedicated server.
Thanks in particular to @TABLE272 for all their testing and feedback (and to TeJay on Discord for their input too).
And big thanks to @IceOfWraith for hosting the Bonus Packs in a format that is workable with AMP!
Notes:

Configured for Windows and Linux.
Needs 5 sequential ports (game port + 4 next ports), plus an additional webserver port. AMP can't at this stage guarantee the ports are sequential.
Uses an AMP-supplied config file (_AMP_UnrealTournament.ini) that needs to be used instead of the default UnrealTournament.ini). This is to ensure that any user changes to the file are not overwritten on later updates.

Adjust the update source to CC and it's ready to merge. Very nice work on this one!


Update bicep publish command in bicep-registry-modules repo to include documentationUri

Once this change is checked in and released, we should update publish command in this workflow to include --documentationUri. DocumentationUri should point to readme.

@StephenWeatherford, I don't think this is done. Assigning to you to check.

@puicchan, this was done via https://github.com/Azure/bicep-registry-modules/commit/a86c1e2eff4e2812fcb1298a8a752b782ffa9d55. I think we can close it.
cc: @StephenWeatherford


komongo 4.7.1 unrecognize coroutine extension using 1.6.4 coroutine 1.7.20 kotlin

I do not reproduce the bug. Have you imported import org.litote.kmongo.coroutine.coroutine?

Yes it is already imported.

My bad, this import should be use instead of the default import org.litote.kmongo.reactivestreams.KMongo. Closing this ticket now.


Adding a point extraction feature to the zonal stats

It won't create the centroids for us, but if we have centroids of our own, it will do point extractions instead of zonal stats.

@AdamJCrawford if you get a chance to look at the files changed here, please do give me feedback. I'm going to merge these for now, but if you have any thoughts on anything I did, I'm interested.

How do you want to handle the version number in init.py? I noticed you didn't change it for this PR

@nickrsan Not sure if you saw this or not.

Hey Adam, sorry, I did see it, but hadn't responded - was slowly turning my attention to syncing up code here, but we should be all set to create new branches and not conflict with each other again, etc.
For now, I'm just bumping the version number whenever we think of it - it was missed for this PR, but that's probably OK. In the future, a better system would be nice. Do you know how others handle this in their release process?


Add Luciano Strika to contributors list

Just added my name and username to the Contributors.md file.

Hi  @StrikingLoo, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


Request for Support: Issue with List Conversion in Plugin

Hi there,
I am currently using your plugin to convert text content into a list format, but I’ve encountered an issue when applying the {{content|list}} transformation.
While the transformation works for the first paragraph and adds the - symbol to it, subsequent paragraphs are not formatted with list items. This results in the text appearing as a continuous block, with only the first paragraph preceded by a -.
Here is an example of the content I am working with:
Ringbauer and colleagues (2021) examined a large global aDNA dataset, focusing on ROH (Runs of Homozygosity) across 1785 ancient individuals. They found that the degree of consanguinity was lower than expected based on anthropological literature...

[Another paragraph]
...

Expected behavior:
Each paragraph should be converted into a list item, like so:

Ringbauer and colleagues (2021) examined a large global aDNA dataset, focusing on ROH...
[Another paragraph]

However, only the first paragraph receives the - symbol, and the rest remain as regular text.
I’ve tried several approaches, such as using {{content|replace("\n\n", "\n\n- ")}} or {{content|split("\n\n")|map("- {{value}}")}}, but these methods still fail to apply the list format correctly to all paragraphs.
Could you please guide me on how I can ensure that each paragraph is properly converted into a list item? Alternatively, would it be possible to implement this feature in a future update of the plugin?
Thank you for your time and support. I look forward to hearing from you.

{{content|split:"\n\n"|list}}

@kepano
Thank you so much for providing the code! It has successfully resolved my issue, and I really appreciate your help.
I have one more request—would it be possible to remove another previously closed issue (This)? I mistakenly posted this same question with the wrong account earlier, and after closing it, I reposted the question using the correct account. I would like to avoid any potential privacy risks, and I would be very grateful if you could assist with this. Thank you again for your support!

it is not possible to delete issues afaik


Infinite loop when usage page not loading

It seems like Xfinity is currently having issues with their site (shocker). If I try to log in manually right now and load the usage page, it tells me it's having issues and logs me out. However when the addon tries to do the same, it appears to get stuck in an infinite loop.
I'm no python dev, but it appears that this current scenario is causing us to get stuck in this portion of the loop, and because it can log in, but not load the page, nothing happens - it just keeps reloading and printing that line in the log file. I'd expect after a few attempts, it would abort and try again on the next scheduled update (Which I set to hourly, as I don't need 15-minute granularity).
Here is a log file except:
INFO: Entering username (URL: https://login.xfinity.com/login)
INFO: Entering password (URL: https://login.xfinity.com/login)
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details
INFO: Didn't get usage data, reloading page (URL: https://customer.xfinity.com/#/devices#usage)
INFO: Updating Session Details
INFO: Updating Session Details

Perhaps as simple as using the retry annotation/decorator that I see used on other methods?

I'll add some logic so that it only retries at most 5 time before giving up.


Alps 649 scene events

Add JSON events on Story.js and Scene.js
Story can now declare these events in the JSON:
"events":
{
    "onReady": "action-story-onReady",
    "onGroupChange": "action-story-onGroupChange",
    "onSceneLoadStart": "action-story-onSceneLoadStart",
    "onSceneLoadComplete": "action-story-onSceneLoadComplete"
}

Scene can now declare these events in the JSON:
"events":
{
        "onLoadStart": "action-scene-onLoadStart",
        "onLoadComplete": "action-scene-onLoadComplete",
        "onUnloadStart": "action-scene-onUnloadStart",
        "onUnloadComplete": "action-scene-onUnloadComplete"
}

Actions
Actions have now window as the default target.
ActionEventDispatcher can now re-schedule the destroy call if it is called during event dispatch.

 All committers have signed the CLA.


Issue-add styles to path nodes

Automated Review Comments
Issues in examples/streamGraphExample/src/components/Path.js:

(4, 'Hardcoded string found')
(5, 'Hardcoded string found')
(6, 'Hardcoded string found')
(17, 'Hardcoded string found')
(18, 'Hardcoded string found')
(20, 'Hardcoded string found')
(28, 'Hardcoded string found')
(30, 'Hardcoded string found')
(35, 'Hardcoded string found')
(40, 'Hardcoded string found')
(41, 'Hardcoded string found')
(48, 'Line exceeds 80 characters')
(53, 'Hardcoded string found')
(54, 'Hardcoded string found')
(65, 'Hardcoded string found')

I got it.


[BUG] Failed to launch sh finetune/finetune_qlora_ds.sh with error: ImportError: This modeling file requires the following packages that were not found in your environment: kernels. Run pip install kernels

是否已有关于该错误的issue或讨论？ | Is there an existing issue / discussion for this?

[X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答？ | Is there an existing answer for this in FAQ?

[X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior
Got an error when running sh pip install environment-kernels, full log:
sh finetune/finetune_qlora_ds.sh
WARNING:torch.distributed.run:
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
[2023-09-26 00:04:17,229] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2023-09-26 00:04:17,236] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2023-09-26 00:04:18,250] [INFO] [comm.py:637:init_distributed] cdb=None
[2023-09-26 00:04:18,254] [INFO] [comm.py:637:init_distributed] cdb=None
[2023-09-26 00:04:18,254] [INFO] [comm.py:668:init_distributed] Initializing TorchBackend in DeepSpeed with backend nccl
Traceback (most recent call last):
  File "/media/peter/Data/Qwen/finetune.py", line 353, in <module>
    train()
  File "/media/peter/Data/Qwen/finetune.py", line 294, in train
    model = transformers.AutoModelForCausalLM.from_pretrained(
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 503, in from_pretrained
    model_class = get_class_from_dynamic_module(
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 485, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 313, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 179, in check_imports
    raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: kernels. Run `pip install kernels`
Traceback (most recent call last):
  File "/media/peter/Data/Qwen/finetune.py", line 353, in <module>
    train()
  File "/media/peter/Data/Qwen/finetune.py", line 294, in train
    model = transformers.AutoModelForCausalLM.from_pretrained(
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 503, in from_pretrained
    model_class = get_class_from_dynamic_module(
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 485, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 313, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
  File "/home/peter/.local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 179, in check_imports
    raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: kernels. Run `pip install kernels`
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 107288) of binary: /usr/bin/python3
Traceback (most recent call last):
  File "/home/peter/.local/bin/torchrun", line 8, in <module>
    sys.exit(main())
  File "/home/peter/.local/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
    return f(*args, **kwargs)
  File "/home/peter/.local/lib/python3.10/site-packages/torch/distributed/run.py", line 794, in main
    run(args)
  File "/home/peter/.local/lib/python3.10/site-packages/torch/distributed/run.py", line 785, in run
    elastic_launch(
  File "/home/peter/.local/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/home/peter/.local/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
finetune.py FAILED
------------------------------------------------------------
Failures:
[1]:
  time      : 2023-09-26_00:04:26
  host      : peter-ubuntu1
  rank      : 1 (local_rank: 1)
  exitcode  : 1 (pid: 107289)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2023-09-26_00:04:26
  host      : peter-ubuntu1
  rank      : 0 (local_rank: 0)
  exitcode  : 1 (pid: 107288)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================

Environment: Ubuntu 2204, nvidia-smi:
nvidia-smi
Tue Sep 26 00:06:56 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.05             Driver Version: 535.104.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3090        On  | 00000000:01:00.0 Off |                  N/A |
| 60%   52C    P8              48W / 370W |    690MiB / 24576MiB |      6%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce RTX 3090        On  | 00000000:05:00.0  On |                  N/A |
|  0%   49C    P8              36W / 370W |    100MiB / 24576MiB |     26%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

My finetune_qlora_ds.sh config:
#!/bin/bash
export CUDA_DEVICE_MAX_CONNECTIONS=1
DIR=`pwd`

GPUS_PER_NODE=2
NNODES=1
NODE_RANK=0
MASTER_ADDR=localhost
MASTER_PORT=6001

MODEL="Qwen/Qwen-14B-Chat-Int4" # Set the path if you do not want to load from huggingface directly
# ATTENTION: specify the path to your training data, which should be a json file consisting of a list of conversations.
# See the section for finetuning in README for more information.

复现方法 | Steps To Reproduce

git clone the repo
run pip install -r requirements.txt
run pip install deepspeed peft wandb
configure finetune/finetune_qlora_ds.sh and run
got the error
run pip install auto-gptq optimum
still got the error

运行环境 | Environment
- OS:Ubuntu 22.04
- Python: 3.10.12
- Transformers:4.32.0
- PyTorch: 2.0.1+cu117
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):11.7

备注 | Anything else?
Google has not similar cases

Same issue as https://github.com/QwenLM/Qwen/issues/345 , closing this one


Paths copied out from a Cairo Context don't have matching elements to the path that was added.

When Cairo adds a path to the cairo context or when you copy a path from the cairo context additional elements are being added. Currently this has only been reproduced with paths that use 'CGPathAddEllipseInRect’ or 'CGPathAddQuadCurveToPoint’. If you examine the original CGPath object after you add it to the context and make a copy from CGContextCopyPath, the original object does not have the extra element that the copy has. The CGPath will be correct before it enters the cairo context but incorrect when it is copied out from it.
Original Path Elements of GPathAddQuadCurveToPoint Path
kCGPathElementMoveToPoint
( 400.000000, 400.000000 )
kCGPathElementAddQuadCurveToPoint
( 140.000000, 250.000000 )
( 110.000000, 180.000000 )
Elements after copying from Cairo Context
kCGPathElementMoveToPoint
( 400.000000, 400.000000 )
kCGPathElementAddCurveToPoint
( 226.667969, 300.000000 )
( 130.000000, 226.667969 )
( 110.000000, 180.000000 )
Original Path Elements of CGPathAddEllipseInRect Path
kCGPathElementMoveToPoint
( 240.000000, 60.000000 )
kCGPathElementAddCurveToPoint
( 240.000000, 71.045692 )
( 195.228485, 80.000000 )
( 140.000000, 80.000000 )
kCGPathElementAddCurveToPoint
( 84.771523, 80.000000 )
( 40.000000, 71.045692 )
( 40.000000, 60.000000 )
kCGPathElementAddCurveToPoint
( 40.000000, 48.954304 )
( 84.771523, 40.000000 )
( 140.000000, 40.000000 )
kCGPathElementAddCurveToPoint
( 195.228485, 40.000000 )
( 240.000000, 48.954304 )
( 240.000000, 60.000000 )
kCGPathElementCloseSubpath
Elements after copying from Cairo Context
kCGPathElementMoveToPoint
( 240.000000, 60.000000 )
kCGPathElementAddCurveToPoint
( 240.000000, 71.046875 )
( 195.226563, 80.000000 )
( 140.000000, 80.000000 )
kCGPathElementAddCurveToPoint
( 84.773438, 80.000000 )
( 40.000000, 71.046875 )
( 40.000000, 60.000000 )
kCGPathElementAddCurveToPoint
( 40.000000, 48.953125 )
( 84.773438, 40.000000 )
( 140.000000, 40.000000 )
kCGPathElementAddCurveToPoint
( 195.226563, 40.000000 )
( 240.000000, 48.953125 )
( 240.000000, 60.000000 )
kCGPathElementCloseSubpath
kCGPathElementMoveToPoint
( 240.000000, 60.000000 )
Related to Pull Request #620

Kicking the can down the road.  When we move CG to D2D, we don't have to rely on Cairo.

With our plan to move Core graphics to D2D, we won't be fixing it.  Our goal would be to match reference platform implementation.


Enable kuttl testing

Related Issue(s)
#546
Description

Initializes kuttl tests with a TestSuite file
Writes the first test starting in the Argo directory

Merging this PR caused rendering to fail due to https://github.com/kyverno/website/issues/822. Sent PR #576 as a temporary fix until a solution can be found.


Deprecation warning on Node 14

When trying to run a dcp-client application on Node.js v14.x, DeprecationWarning: Module.createRequireFromPath() is deprecated. Use Module.createRequire() instead. always appears (Deprecated since v12.2.0), as seen in the stack trace below:
$ node app.js
(node:3770) [DEP0130] DeprecationWarning: Module.createRequireFromPath() is deprecated. Use Module.createRequire() instead.
    at Object.job$$createModuleBundle [as createModuleBundle] (webpack:///./src/dcp-client/job/node-modules.js?:68:44)
    at Job._pack (webpack:///./src/dcp-client/job/index.js?:699:100)
    at Job._publishLocalModules (webpack:///./src/dcp-client/job/index.js?:712:55)
    at Job.[Job.deploy] (webpack:///./src/dcp-client/job/index.js?:1111:42)
    at Job.exec (webpack:///./src/dcp-client/job/index.js?:817:31)
    at async main (/home/foo/bar/app.js:39:17)

It doesn't affect the running of the application it seems, but would it be possible to not have to make me work around suppressing this warning manually, given that it isn't due to my application's code?
Steps to reproduce:

Initialize an empty npm project with npm init
Install dcp-client: npm i dcp-client
Call an init method in the app:// In app.js
require('dcp-client').initSync();

Run the application: node app.js
Receive the warning.

Package version<EMAIL_ADDRESS>OS: Ubuntu 20.04.3 LTS
Node version: v14.18.1

After revisiting the issue, it doesn't seem to occur after updating to<EMAIL_ADDRESS>for Node 14 or 16.


Strawberry Shake Readme is Missing

The Strawberry Shake readme linked from the main readme at line 48 is empty. This makes it difficult to know how to get started.
To Reproduce
Steps to reproduce the behavior:

Click the 'Readme' hyperlink
Observe that there's nothing there

Expected behavior
Expected to find a readme with content
Desktop (please complete the following information):

OS: All
Current

The docs link on the homepage seem to be broken too.

Thanks for reporting this.

Till the issue is resolved the following links to the blog entries regarding Strawberry Shake might be helpful:

Building a real-time .NET GraphQL Client API [.md]
Building a .NET GraphQL Client API [.md]


Feature request: allow offline mode

Allow to log time while offline (and cache it locally) and then send the time log automatically once online.
Users might be on train/plane etc with limited internet connection. Currently the tool is not usable then.
Priority 2 would be to also allow to create tasks, comments while offline. But I guess this is quite a lot of effort, and is not that important as time logging.

+1 for that functionality. It could be implemented as a Service Worker, possibly with Background Sync or a custom queue of requests to perform when online.

+1
That would be great. It happened several times to me today that my time was not logged, because the connection was pretty bad.

Thank you for the proposal, definitely, we will implement it

Might be related, or maybe a new feature request. But when the timer is running and you close the application (windows update in my case) the time is lost.
Since the offline time logging is part of this request, I think it makes sense to store the running timer in some "persistent" storage (local storage?) and continue on next start, maybe immediately triggering the away dialog?


"editor variable unset" error for variables containing spaces

Version
pacaur -v
pacaur 4.7.0

Description
I'm getting a "editor variable unset" error when attempting to use pacaur, even though it is set. EDITOR and VISUAL are set to subl3 --wait. It works when simply setting those to subl3 instead, however that is not what I want. You can probably fix this by only running command -v on the first part before a whitespace character to check if a valid editor variable is set.
Output
pacaur --Syu
:: editor variable unset

Debug output
bash -x pacaur --Syu
+ version=4.7.0
+ unset aur cleancache devel edit info installpkg foreign needed noconfirm nodeps noedit
+ unset operation pac pacQ pacS quiet rebuild refresh repo search selective upgrade
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/cryzed/.config/pacaur
+ userpacmandir=/home/cryzed/.config/pacman
+ usercachedir=/home/cryzed/.cache/pacaur
+ [[ -r '' ]]
+ source /etc/makepkg.conf
++ DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'rsync::/usr/bin/rsync --no-motd -z %u %o' 'scp::/usr/bin/scp -C %u %o')
++ VCSCLIENTS=('bzr::bzr' 'git::git' 'hg::mercurial' 'svn::subversion')
++ CARCH=x86_64
++ CHOST=x86_64-pc-linux-gnu
++ CPPFLAGS=-D_FORTIFY_SOURCE=2
++ CFLAGS='-march=native -O2 -pipe -fstack-protector-strong'
++ CXXFLAGS='-march=native -O2 -pipe -fstack-protector-strong'
++ LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
+++ nproc
+++ nproc
+++ nproc
++ MAKEFLAGS=-j4
++ DEBUG_CFLAGS='-g -fvar-tracking-assignments'
++ DEBUG_CXXFLAGS='-g -fvar-tracking-assignments'
++ BUILDENV=(!distcc color !ccache check !sign)
++ OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
++ INTEGRITY_CHECK=(md5)
++ STRIP_BINARIES=--strip-all
++ STRIP_SHARED=--strip-unneeded
++ STRIP_STATIC=--strip-debug
++ MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
++ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
++ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
++ PKGDEST=/mnt/sdb1/makepkg
++ COMPRESSGZ=(gzip -c -f -n)
++ COMPRESSBZ2=(bzip2 -c -f)
++ COMPRESSXZ=(xz -c -z -)
++ COMPRESSLRZ=(lrzip -q)
++ COMPRESSLZO=(lzop -q)
++ COMPRESSZ=(compress -c -f)
++ PKGEXT=.pkg.tar.xz
++ SRCEXT=.src.tar.gz
+ [[ -r /home/cryzed/.config/pacman/makepkg.conf ]]
+ [[ -r /home/cryzed/.makepkg.conf ]]
+ editor='subl3 --wait'
+ displaybuildfiles=diff
+ fallback=true
+ silent=false
+ sortby=popularity
+ sortorder=descending
+ sudoloop=true
+ pacmanbin=pacman
+ clonedir=/home/cryzed/.cache/pacaur
+ aururl=aur.archlinux.org
+ aurrpc='/rpc.php?type=info&v=5'
+ source /etc/xdg/pacaur/config
+ [[ -r /home/cryzed/.config/pacaur/config ]]
+ [[ ! -d /home/cryzed/.cache/pacaur ]]
+ declare -A jsoncache
+ trap Cancel INT
+ args=($@)
+ for i in "${args[@]}"
+ [[ --Syu =~ ^-[a-zA-Z0-9] ]]
+ count=0
+ [[ -n --Syu ]]
+ getopts sidmykufecqrahvxVDFQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ case "$OPTARG" in
+ pacopts+=("--$OPTARG")
+ getopts sidmykufecqrahvxVDFQRSTUbglnoptw-: OPT
+ [[ -z '' ]]
+ break
++ grep '^Color' /etc/pacman.conf
+ [[ -n Color ]]
+ [[ '' != \n\e\v\e\r ]]
+ [[ '' = \a\l\w\a\y\s ]]
+ coweropts+=("--color=auto")
+ reset='\e[0m'
+ colorR='\e[1;31m'
+ colorG='\e[1;32m'
+ colorY='\e[1;33m'
+ colorB='\e[1;34m'
+ colorM='\e[1;35m'
+ colorC='\e[1;36m'
+ colorW='\e[1;39m'
+ pacmanarg=(${pacmanarg[@]/--/})
+ pacmanarg=(${pacmanarg[@]/-r/})
+ pacmanarg=(${pacmanarg[@]/-a/})
+ [[ '' = sync ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ command -v 'subl3 --wait'
+ [[ ! -n '' ]]
+ Note e '\e[1;39meditor\e[0m variable unset'
+ case "$1" in
+ echo -e '\e[1;31m::\e[0m \e[1;39meditor\e[0m variable unset'
:: editor variable unset
+ exit 1

Should be fixed in 3c53c43eee17446e2c9c31571b4b706e26daceff.

This also happens now, if the $EDITOR variable doesn't exist. I never had an $EDITOR variable, but after upgrading to 4.7.0 just now, I also get this error.

Have you tried the latest code with pacaur-git?
If editor isn't set in the config file, pacaur looks for $VISUAL, then $EDITOR, and eventually uses vi as fallback.

I simply edited the PKGBUILD to point to the archive file of the latest commit, the issue seems to be resolved. Are you talking about /etc/xdg/pacaur/config? I never modified that backup file, hence I don't have any .pacnew/.pacsave files that I can find.

I've upgraded to pacaur <IP_ADDRESS>.g3c53c43. The problem still remains. It doesn't fallback to vi anymore, if neither $VISUAL nor $EDITOR are set.
My config is mint. Everything is commented out to default values.

I didn't test for the fallback specifically, since I've always had $VISUAL and/or $EDITOR set.

@cryzed Sorry for hijacking your issue. I just thought it fitted in here very well. Your problem with the spaces is resolved with the latest commit. This is just about the fallback not working anymore.

@xelra I cannot reproduce. Do you actually have vi present on the system? It's default on a new Arch install, but chance are that you got rid of it and replaced it with vim.
@cryzed Thanks for your feedback!

@rmarquis You're right. I didn't have vi installed, only vim. It's still odd. It worked (probably with vim), without any problem before I upgraded to 4.7.0.

I confirm the bug
$ export VISUAL='kate -b'
$ pacaur -Syu
:: editor variable unset
$ export VISUAL='kate'
$ pacaur -Syu
:: Synchronizing package databases...

I also confirm that it's fixed in pacaur-git. Please make a release soon 👍

Version 4.7.1 released.

I might have done something wrong here, but I've removed the package (pacman -Rns pacaur), removed the archives, git pulled the update in the ~/.cache/pacaur/pacaur directory and did makepkg -si. This successfully installs the new 4.7.1 version on my system, but I still get the error :: editor variable unset.

The fix doesn't work with my EDITOR="emacsclient --alternate-editor emacs", here's the relevant output:
...
+ editor='emacsclient --alternate-editor emacs'
...
++ command -v 'emacsclient --alternate-editor'
+ [[ ! -n '' ]]
+ Note e '\e[1;39meditor\e[0m variable unset'
+ case "$1" in
+ echo -e '\e[1;31m::\e[0m \e[1;39meditor\e[0m variable unset'
:: editor variable unset
+ exit 1

In the linked commit (3c53c43eee17446e2c9c31571b4b706e26daceff), should "${editor% *}" be "${editor%% *}"?

Indeed (032fe0595fb103738fe01128f97494c04cd800a8). I'm not going to make a new release before a few days, please use pacaur-git in the meantime.

This editor check is breaking arch-travis (https://github.com/mikkeloscar/arch-travis/issues/21).  We can work around (either in arch-travis or client projects) it by setting EDITOR=false.
Do you think this should be considered a bug in pacaur?

@corngood: Not a bug in pacaur.

@rmarquis I've using pacaur 4.7.3, and still getting this error. What else I have to do to fix this issue?

You need to put the export EDITOR statement into you shell initialization file (e.g. bashrc).

Exporting EDITOR did not work for me, had to export VISUAL to get the error to stop, which is a bit confusing due to what it says...

I'm using pacaur 4.7.6 and still having this problem.

You need to export the EDITOR or VISUAL variable. If non of these variables are present, pacaur falls back to vi. If you not set any of theses variables, how pacaur should know what editor it should use for editing PKGBUILD files?
So, there are two ways for fixing this problem:

Install vi and leave the variables unset or
Set one of theses variables inside you're shell initialization script

This bug is still present in the latest git release:
nelthorim@maxwell ~ λ echo $EDITOR
emacsclient -t
nelthorim@maxwell ~ λ echo $VISUAL
emacsclient -t -a emacs
nelthorim@maxwell ~ λ pacaur -Syua
:: $VISUAL and $EDITOR environment variables not set or defined editor not found

Same problem here:
$ echo $EDITOR
emacsclient.emacs --socket-name /tmp/emacs1000/server -t -a emacs -nw

$ echo $VISUAL
emacsclient.emacs --socket-name /tmp/emacs1000/server -c -a emacs

$ LANG=en_US.utf-8 pacaur -Ss samba
:: editor variable unset

$ zsh --version
zsh 5.4.2 (x86_64-unknown-linux-gnu)

$ pacaur --version
pacaur 4.7.10

$

When I use the pacaur-git package, the error message changes to
:: $VISUAL and $EDITOR environment variables not set or defined editor not found

But $VISUAL and $EDITOR are defined ...

How did you define the variable?

 Copied the file from another machine ...
So I can confirm that with the pacaur-git package, it works as advertised.
Sorry for the noise!


Contracts rename v9 to v09

This helps order import, and should remove some PR conflicts for future updates

couldn't change the base branch recreated the PR here https://github.com/paritytech/substrate/pull/14533


Ensure "News" tab links properly

Please do work for this task in a branch called "issue-028".
Should show news and events, similar to the actual IT site.

Want to create a new page that will display a table of planned outages. Similar to the actual IT site.

The link for the tab to go to: https://www.hawaii.edu/its/category/news/
Currently unable to click the tab, but able to right-click and open in new tab.


Added new domain

@WieDuWillst First stage of verification passed, official domain is georg-buechner.schule as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@WieDuWillst Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Add Aditya Kamble to Contributors list

@adityakamble49, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I merged it?

@Roshanjossey It made me happy too, I used lot of open source project but more fun is to be a part of it and to contribute to open source community. Your article pushed me to make my contribution. Thanks for the motivation.

@adityakamble49, I’d urge you to continue contributing to other open source projects.
We also have a slack team to help/mentor people trying to contribute to open source projects.
You can join the team by going to https://firstcontributions.herokuapp.com


Only build pushes to master

Just testing the behavior first

would this stop CI on our individual feature branches? Do we want that?
On Thu, Aug 4, 2016 at 4:26 PM, Etan Shaul<EMAIL_ADDRESS>wrote:

Just testing the behavior first
You can view, comment on, or merge this pull request online at:
https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/810
Commit Summary

Only build pushes to master

File Changes

M .travis.yml
https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/810/files#diff-0
(3)

Patch Links:

https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/810.patch
https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/810.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/810, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHf5HT_IpDINg1BiFz-1oBXnFKPFR6Ofks5qckr9gaJpZM4JdFtV
.

The hope is that all PRs (for any branch) will still have CI. But only pushes to master will be built. This avoid the duplicate building for PRs (once for the PR and again for the push).
I'm assuming here that the feature branches you are referring to will be part of a PR intended to eventually be merged to master.


incorrect set of white space characters

The JSON format specification
https://tools.ietf.org/html/rfc7159
talks about these white space characters:
  ws = *(
          %x20 /              ; Space
          %x09 /              ; Horizontal tab
          %x0A /              ; Line feed or New line
          %x0D )              ; Carriage return

It seems to me that yajl also allows for \v (vertical tab) and \f (form feed).
$ grep '\\v' yajl/src/yajl_lex.c
            case '\t': case '\n': case '\v': case '\f': case '\r': case ' ':
$
$ od -c /tmp/aa.txt
0000000  \v  \f       [      \v  \f           1       ]  \n
0000015
$ cat /tmp/aa.txt|json_verify
JSON is valid
$

It looks like a bug to me.

Looking in
https://tools.ietf.org/html/rfc7159
I was surprised to see:
"A JSON parser MAY accept non-JSON forms or extensions"
Anyway, I think it it still better to fail on non-JSON input than to silently accept the input.

I'd prefer that the extended set of white space be a feature and be
documented rather than breaking on Windows created/edited files. I have no
love of the carriage return plus line feed standard but it annoyingly
produces inputs to my programs.
An alternative is a strict mode.
-Jason
604.644.8611
On Dec 13, 2015 6:53 AM, "Erik Sjölund"<EMAIL_ADDRESS>wrote:

Looking in
https://tools.ietf.org/html/rfc7159
I was surprised to see:
"A JSON parser MAY accept non-JSON forms or extensions"
Anyway, I think it it still better to fail on non-JSON input than to
silently accept the input.
—
Reply to this email directly or view it on GitHub
https://github.com/lloyd/yajl/issues/180#issuecomment-164266433.

Carriage return (\r) and line feed (\n) are allowed white space characters according to the RFC7159. I was referring to formfeed (\f) and vertical tab (\v). I don't know how common they are and for what they are normally used.

strict mode would be fine, but ideally not by default.  since json is commonly used in network APIs, "Be conservative in what you send, be liberal in what you accept" should be the default behavior.