markNeedsBuild fails assertion with conditional Drawer

I have a Drawer that is only enabled on the root page, using this code:
drawer: Navigator.of(context).canPop() ? null : Drawer(child: SettingsDrawer()),

When I modify a "dark mode" setting in the drawer that causes a rebuild, I get the following error:
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
setState() or markNeedsBuild() called when widget tree was locked.

This Scaffold widget cannot be marked as needing to build because the framework is locked.
The widget on which setState() or markNeedsBuild() was called was: Scaffold
    dependencies: [_InheritedTheme, MediaQuery, _LocalizationsScope-[GlobalKey#a243d], Directionality]
    state: ScaffoldState#e99f6(tickers: tracking 2 tickers)
When the exception was thrown, this was the stack
#0      Element.markNeedsBuild.<anonymous closure>
package:flutter/…/widgets/framework.dart:3692
#1      Element.markNeedsBuild
package:flutter/…/widgets/framework.dart:3702
#2      State.setState
package:flutter/…/widgets/framework.dart:1161
#3      ScaffoldState._drawerOpenedCallback
package:flutter/…/material/scaffold.dart:1399
#4      DrawerControllerState.close
package:flutter/…/material/drawer.dart:405
...
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by animation library ═════════════════════════════════
'package:flutter/src/widgets/framework.dart': Failed assertion: line 3658 pos 12: '_debugLifecycleState != _ElementLifecycle.defunct': is not true.
════════════════════════════════════════════════════════════════════════════════

In order to reproduce the issue, open the Drawer and tap the Dark Mode switch with the following (simplified) sample app:
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

void main() => runApp(AppConfig());

class Prefs extends ChangeNotifier {
  bool _darkMode = false;
  bool get darkMode => _darkMode;
  set darkMode(bool newValue) {
    if (newValue == _darkMode) return;
    _darkMode = newValue;
    notifyListeners();
  }
}

class AppConfig extends StatefulWidget {
  _AppConfigState createState() => _AppConfigState();
}

class _AppConfigState extends State<AppConfig> {
  final Prefs prefs = Prefs();

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider<Prefs>.value(value: prefs, child: MyApp());
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final prefs = Provider.of<Prefs>(context);
    return MaterialApp(
      title: 'Test',
      theme: ThemeData(brightness: prefs.darkMode ? Brightness.dark : Brightness.light, primarySwatch: Colors.blue),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("test")),
      drawer: Navigator.of(context).canPop() ? null : Drawer(child: SettingsDrawer()),
      body: Container(),
    );
  }
}

class SettingsDrawer extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final prefs = Provider.of<Prefs>(context);
    return Scaffold(
      body: ListView(
        padding: EdgeInsets.zero,
        children: <Widget>[
          DrawerHeader(
            child: Text('Settings'),
            decoration: BoxDecoration(
              color: Colors.blue,
            ),
          ),
          ListTile(
            leading: Text("Dark Mode"),
            title: Switch(
              value: prefs.darkMode,
              onChanged: (value) => prefs.darkMode = value,
            ),
          ),
        ],
      ),
    );
  }
}

@nbros please provide your flutter doctor -v output.

flutter doctor -v
[√] Flutter (Channel stable, v1.9.1+hotfix.4, on Microsoft Windows [Version 10.0.18362.387], locale fr-FR)
    • Flutter version 1.9.1+hotfix.4 at C:\dev\flutter
    • Framework revision cc949a8e8b (2 weeks ago), 2019-09-27 15:04:59 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\dev\AndroidSDK
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = C:\dev\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[!] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.39.1)
    • VS Code at C:\Users\nbros\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.5.1

[√] Connected device (1 available)
    • ONEPLUS A5000 • dc07fc83 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.

Please note that I also tested with master and I got the same error.

Issue still exist

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0-dev.5.0, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.18.0-dev.5.0 at /Users/taha/Code/flutter_dev
    • Framework revision 7f56b53de4 (4 days ago), 2020-04-12 12:00:01 -0400
    • Engine revision beb8a7ec48
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 89b0f67261)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4, Build version 11E146
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.4 19E287
    • Chrome     • chrome           • web-javascript • Google Chrome
      81.0.4044.113
    • Web Server • web-server       • web-javascript • Flutter Tools
• No issues found!

@nbros
I verified this issue on latest stable and master and can see the assertion failing while switching to dark mode.

 error log
======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
setState() or markNeedsBuild() called when widget tree was locked.

This Scaffold widget cannot be marked as needing to build because the framework is locked.
The widget on which setState() or markNeedsBuild() was called was: Scaffold
  dependencies: [_LocalizationsScope-[GlobalKey#97888], Directionality, _InheritedTheme, _EffectiveTickerMode, MediaQuery]
  state: ScaffoldState#18c09(tickers: tracking 2 tickers)
When the exception was thrown, this was the stack:
#0      Element.markNeedsBuild.<anonymous closure> (package:flutter/src/widgets/framework.dart:4297:9)
#1      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4307:6)
#2      State.setState (package:flutter/src/widgets/framework.dart:1264:14)
#3      ScaffoldState._drawerOpenedCallback (package:flutter/src/material/scaffold.dart:1622:5)
#4      DrawerControllerState.close (package:flutter/src/material/drawer.dart:472:28)
...
====================================================================================================

======== Exception caught by animation library =====================================================
The following assertion was thrown while notifying listeners for AnimationController:
'package:flutter/src/widgets/framework.dart': Failed assertion: line 4263 pos 12: '_debugLifecycleState != _ElementLifecycle.defunct': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4263:12)
#3      State.setState (package:flutter/src/widgets/framework.dart:1264:14)
#4      DrawerControllerState._animationChanged (package:flutter/src/material/drawer.dart:336:5)
#5      AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
#6      AnimationController._tick (package:flutter/src/animation/animation_controller.dart:797:5)
...
The AnimationController notifying listeners was: AnimationController#d79cc(⏮ 0.000; paused)
====================================================================================================
W/libEGL  (27205): EGLNativeWindowType 0xd0cef008 disconnect failed
W/libEGL  (27205): EGLNativeWindowType 0xd435a808 disconnect failed

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.4 19E2269 darwin-x64,
    locale en-IN)
    • Flutter version 1.22.6 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 9b2d32b605 (5 days ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

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

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (2 available)
    • SM A260G (mobile)      • 5200763ebcfa861f • android-arm • Android 8.1.0
      (API 27)
    • emulator-5554 (mobile) • emulator-5554    • android-x86 • Android 4.1.2
      (API 16) (emulator)

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.26.0-13.0.pre.177, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-IN)
    • Flutter version 1.26.0-13.0.pre.177 at
      /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 2eeeba9c09 (29 hours ago), 2021-01-25 20:52:30 -0800
    • Engine revision 6e391c5942
    • Dart version 2.12.0 (build 2.12.0-257.0.dev)

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

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

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

[✓] Connected device (4 available)
    • SM A260G (mobile)      • 5200763ebcfa861f • android-arm    • Android 8.1.0
      (API 27)
    • emulator-5554 (mobile) • emulator-5554    • android-x86    • Android 4.1.2
      (API 16) (emulator)
    • macOS (desktop)        • macos            • darwin-x64     • Mac OS X
      10.15.4 19E2269 darwin-x64
    • Chrome (web)           • chrome           • web-javascript • Google Chrome
      88.0.4324.96

! Doctor found issues in 1 category.

@nbros
I verified this issue on latest stable and master and can see the assertion failing while switching to dark mode.

 error log
======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
setState() or markNeedsBuild() called when widget tree was locked.

This Scaffold widget cannot be marked as needing to build because the framework is locked.
The widget on which setState() or markNeedsBuild() was called was: Scaffold
  dependencies: [_LocalizationsScope-[GlobalKey#97888], Directionality, _InheritedTheme, _EffectiveTickerMode, MediaQuery]
  state: ScaffoldState#18c09(tickers: tracking 2 tickers)
When the exception was thrown, this was the stack:
#0      Element.markNeedsBuild.<anonymous closure> (package:flutter/src/widgets/framework.dart:4297:9)
#1      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4307:6)
#2      State.setState (package:flutter/src/widgets/framework.dart:1264:14)
#3      ScaffoldState._drawerOpenedCallback (package:flutter/src/material/scaffold.dart:1622:5)
#4      DrawerControllerState.close (package:flutter/src/material/drawer.dart:472:28)
...
====================================================================================================

======== Exception caught by animation library =====================================================
The following assertion was thrown while notifying listeners for AnimationController:
'package:flutter/src/widgets/framework.dart': Failed assertion: line 4263 pos 12: '_debugLifecycleState != _ElementLifecycle.defunct': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4263:12)
#3      State.setState (package:flutter/src/widgets/framework.dart:1264:14)
#4      DrawerControllerState._animationChanged (package:flutter/src/material/drawer.dart:336:5)
#5      AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
#6      AnimationController._tick (package:flutter/src/animation/animation_controller.dart:797:5)
...
The AnimationController notifying listeners was: AnimationController#d79cc(⏮ 0.000; paused)
====================================================================================================
W/libEGL  (27205): EGLNativeWindowType 0xd0cef008 disconnect failed
W/libEGL  (27205): EGLNativeWindowType 0xd435a808 disconnect failed

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.4 19E2269 darwin-x64,
    locale en-IN)
    • Flutter version 1.22.6 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 9b2d32b605 (5 days ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

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

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (2 available)
    • SM A260G (mobile)      • 5200763ebcfa861f • android-arm • Android 8.1.0
      (API 27)
    • emulator-5554 (mobile) • emulator-5554    • android-x86 • Android 4.1.2
      (API 16) (emulator)

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.26.0-13.0.pre.177, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-IN)
    • Flutter version 1.26.0-13.0.pre.177 at
      /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 2eeeba9c09 (29 hours ago), 2021-01-25 20:52:30 -0800
    • Engine revision 6e391c5942
    • Dart version 2.12.0 (build 2.12.0-257.0.dev)

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

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

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

[✓] Connected device (4 available)
    • SM A260G (mobile)      • 5200763ebcfa861f • android-arm    • Android 8.1.0
      (API 27)
    • emulator-5554 (mobile) • emulator-5554    • android-x86    • Android 4.1.2
      (API 16) (emulator)
    • macOS (desktop)        • macos            • darwin-x64     • Mac OS X
      10.15.4 19E2269 darwin-x64
    • Chrome (web)           • chrome           • web-javascript • Google Chrome
      88.0.4324.96

! Doctor found issues in 1 category.

The issue is no longer reproducible on stable or the master channel.

code sample
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

void main() => runApp(AppConfig());

class Prefs extends ChangeNotifier {
  bool _darkMode = false;
  bool get darkMode => _darkMode;
  set darkMode(bool newValue) {
    if (newValue == _darkMode) return;
    _darkMode = newValue;
    notifyListeners();
  }
}

class AppConfig extends StatefulWidget {
  _AppConfigState createState() => _AppConfigState();
}

class _AppConfigState extends State<AppConfig> {
  final Prefs prefs = Prefs();

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider<Prefs>.value(value: prefs, child: MyApp());
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final prefs = Provider.of<Prefs>(context);
    return MaterialApp(
      title: 'Test',
      theme: ThemeData(brightness: prefs.darkMode ? Brightness.dark : Brightness.light, primarySwatch: Colors.blue),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("test")),
      drawer: Navigator.of(context).canPop() ? null : Drawer(child: SettingsDrawer()),
      body: Container(),
    );
  }
}

class SettingsDrawer extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final prefs = Provider.of<Prefs>(context);
    return Scaffold(
      body: ListView(
        padding: EdgeInsets.zero,
        children: <Widget>[
          const DrawerHeader(
            decoration: BoxDecoration(
              color: Colors.blue,
            ),
            child: Text('Settings'),
          ),
          ListTile(
            leading: Text("Dark Mode"),
            title: Switch(
              value: prefs.darkMode,
              onChanged: (value) => prefs.darkMode = value,
            ),
          ),
        ],
      ),
    );
  }
}

flutter doctor -v (mac)
[✓] Flutter (Channel master, 3.7.0-3.0.pre.33, on macOS 12.6 21G115 darwin-arm64, locale en-IN)
    • Flutter version 3.7.0-3.0.pre.33 on channel master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (38 minutes ago), 2022-12-05 18:27:21 -0800
    • Engine revision a309d239c4
    • Dart version 2.19.0 (build 2.19.0-463.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 108.0.5359.94

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-arm, locale en-IN)
    • Flutter version 3.3.9 on channel stable at /Users/mahesh/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (24 hours ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Closing as this seems to be fixed. Incase anyone still encounters the issue. Please feel free to write in the comments and we will reopen it.
Thank you.


HtmlStaplerBundlesManager : usage of DigestEngine

Hi,
i have seen that class jodd.htmlstapler.HtmlStaplerBundlesManager uses direct call to java.security.MessageDigest (see method createDigest).
What about usage of jodd digest engine jodd.util.crypt.DigestEngine ?
Module jodd-htmlstapler has dependencies to jodd-servlet and this module to jodd-core...Threfore no new dependency should be added.
WDYT?
Bye,
Sascha

Something like https://github.com/oblac/jodd/commit/348334f07ba02094ea1c4703cc0f9b4eb2809ef6? :)))
Good catch! DigestEngine was added recently, but not applied elsewhere.

Yes, something like 348334f  :grin:


FetchMultiple issue when using with dynamic

I was facing an issues when using FetchMultiple with dynamic using the same tables or have same column count in Select.
db.FetchMultiple<dynamic, dynamic>("Select * from Table1; Select Table1.* from Table1 inner join Table2 on Table1.Id = Table2.Id");
Thanks,
Mohd Arabi

What is the issue?


[#157470481] Rename service plans according ADR025

What
We want to consolidate the naming convention for all the backing services
we offer, as it is described in ADR025: https://team-manual.cloud.service.gov.uk/architecture_decision_records/ADR025-service-plan-naming-conventions/
We also want to only offer encrypted plans and deprecate the non
encrypted ones. We will not remove them, but make them unavailable
To disable the plans, we add a script in the task that enable the broker to
specifically disable those.
How to review

Code review
Deploy this, let the tests pass
Check the marketplace as a normal (non admin) user:

cf create-user testuser password123
cf set-org-role testuser govuk-paas OrgManager
cf auth testuser password123
cf marketplace
cf marketplace mysql
cf marketplace postgres
cf marketplace redis

Who can review
Anyone but @keymon or @paroxp

You cannot disable access to a service plan for an org if the plan is currently available to all orgs. You must first disable access for all orgs; then you can enable access for a particular org.

I was wondering if we need to revoke access from all orgs first ... but it seems to work as-is, so I guess not.

I do not know, but it seems to work indeed. I can add a temporary line to do it anyway.

I was wondering if we need to revoke access from all orgs first ... but it seems to work as-is, so I guess not.

I think this relates to when you restrict access to a service by org (ie using the -o flag), not when you're restricting which plans are available. I think those 2 things are orthogonal.


parser: Support keyword FIELDS in ALTER TABLE PARTITION BY syntax

What problem does this PR solve?
To #464 , support keyword FIELDS in ALTER TABLE PARTITION BY syntax
What is changed and how it works?

Use FieldsOrColumns instead of COLUMNS in PartitionMethod
Add related tests

Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)

Code changes
N / A
Side effects
N / A
Related changes
N / A

LGTM

please resolve the conflict


Version 2.1 bumped to v2.1.3, CHANGELOG updated

This branch fixes the build issues with tag v2.1.2  for rustc version > 1.75 (which is current).
This branch can't be merged in main since it's new tag and branch is only for review request.
Instead code in this branch is tagged with new tag v2.1.3.
Once new tag is created, iocost-benchmark-ci  CI will use this new tag to build resctl-demo version 2.1
https://github.com/iocost-benchmark/iocost-benchmarks-ci/pull/22/files

@htejun  A new tag v2.1.3 new to be released with this branch. I don't have permission to do that, so your help will be required.

@htejun  this PR should be landed as:

push as new branch.
create new release with tag v2.1.3 from above branch

Published the release: https://github.com/facebookexperimental/resctl-demo/releases/tag/v2.1.3


Misc

Hi @GordyD ! I loved your blog post on the the post on the the 3REE Stack:
I'm just in the process of installing your stack on a Vagrant VirtualBox, and noted the following:

I get a lot of errors and warnings when running npm install. Some of the dependencies seem to be deprecated etc.
For convenience, perhaps consider making a Vagrant provision / box?

Keep up the good work!

Apologies, just saw this. I'm planning some housekeeping tasks on this project today so I'll be sure to check installation and dependencies issues.

I've just updated dependencies, refactored any code due to breaking changes/API changes and tested whilst using Node v6.0.0 with RethinkDB 2.3.1. Hopefully this helps with the issues you were experiencing whilst using Vagrant.

Great! I look forward to giving it a new try!


Ensuring 'Devices: Prevent users from installing printer drivers' is set to enabled via the registry?

Even with the following applied, it is still not being set correctly on our workstations; this must be the wrong key.
MACHINE\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers\AddPrinterDrivers=4,1

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

ID: fac1f46e-dad3-81cb-90ab-837a6dc7c9d0
Version Independent ID: 84d7b3d7-f807-c21f-fd20-9e5cdc0bd296
Content: Devices Prevent users from installing printer drivers (Windows 10)
Content Source: windows/security/threat-protection/security-policy-settings/devices-prevent-users-from-installing-printer-drivers.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@officedocsbot assign @mypil

@Jnchi - Thank you for submitting feedback.
I think the best way forward is if you can open a service ticket so this can get resolved ASAP. Based on outcome, let me know if it is something that can be called out in the docs.
Please follow this link to contact support for Windows 10 products:
https://support.microsoft.com/en-us/hub/4338813/windows-help?os=windows-10
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.

@Jnchi - Thank you for submitting feedback.
I think the best way forward is if you can open a service ticket so this can get resolved ASAP. Based on outcome, let me know if it is something that can be called out in the docs.
Please follow this link to contact support for Windows 10 products:
https://support.microsoft.com/en-us/hub/4338813/windows-help?os=windows-10
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.

@officedocsbot close


Update plugins.json

Added a plugin called "SearchScrapbox".

I created .github/workflows/Publish Release.yml with reference to existing plugins.
Please let me know if there are any mistakes.

Hi, almost there. Could you delete your existing release- 'ver1.0.0', and publish one via the GitHub action workflow (you can manually trigger one from the Actions page). Once done could you update the url download field in this PR please.

Thank you for your detailed instructions.
Has completed. Please confirm it.


Implement mock Provider API server and client

This PR implements mock Provider API server and client.  This can be used by the OCS operator controller for testing.

Is it a standard practice to keep mocks and actual implementations side by side in the same package?

Not sure of this. Quick google search didn't give any good answers.

I am wondering if a separate mock package would be better here. Say services/provider/mock that can then have client.go, server.go and common.go. When consuming this you'd explicitly import the mock package vs importing the package with actual implementation and using mock.
Also, shouldn't mocks be completely independent/de-coupled/external from the real implementation?

If I'm reading it right, I think your first and last statement above could be a bit contradicting. If we decide to move mocks to a different package than actual implementation then it would make more sense to have mocks be completely independent/de-coupled/external from the real implementation.
We have a peculiar situation, where the server mock is a temporary solution (we can discuss this offline), hence server mock and server are using the same interface implementation.
Client mock and client are already different implementations. So having services/provider/client/client.go and services/provider/client/client_mock.go should be fine, I think.


Update to flow-go v0.34.0-crescendo-preview.1

Description
Automatically update to:

onflow/cadence v1.0.0-M7
onflow/flow-go-sdk v1.0.0-M4
onflow/flow-go 6b0ce48
onflow/flow-emulator v1.0.0-M6

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (48af911) 58.62% compared to head (cbd96e9) 58.62%.

Additional details and impacted files
@@                   Coverage Diff                   @@
##           feature/stable-cadence      #16   +/-   ##
=======================================================
  Coverage                   58.62%   58.62%
=======================================================
  Files                          29       29
  Lines                        2202     2202
=======================================================
  Hits                         1291     1291
  Misses                        725      725
  Partials                      186      186

Flag
Coverage Δ

unittests
58.62% <ø> (ø)

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

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


replication changes

replication changes

Can you please add a screenshot in the description which will help in determining these locators correspond to which widgets?

1.Selecting a created table for replication job  and  2.Verifying error in replication logs


Make it possible to read declarative deps

goal:
hdeps .
hdeps .[foo]

(dowsing could power this, but the libcst dep is pretty heavy and if you trust setup.py you could run setup.py egg_info)

Supported in 1.4.0 with the merge of #41


https issue

phuip-fpizdam/requester.go
		cl: &http.Client{
			Transport: &http.Transport{
				DisableCompression: true,      // No "Accept-Encoding"
				TLSNextProto:       nextProto, // No http2
				Proxy:              http.ProxyFromEnvironment,
				TLSClientConfig:    &tls.Config{InsecureSkipVerify: true},
			},
			Timeout:       30 * time.Second,
			CheckRedirect: disableRedirects, // No redirects
		},

maybe you can add TLSClientConfig:    &tls.Config{InsecureSkipVerify: true},
Otherwise, it will appear Q: x509: cannot validate certificate for x.x.x.x because it doesn't contain any IP SANs

Ok, I've added it.
However, I believe that if you want to scan an IP it will be better if you try to extract the actual hostname from the certificate returned. Otherwise you won't get server_name settings matched, at least.
If you're satisfied, close the issue.


Add tests

@aaronsteers @WillDaSilva I really want to add some kind of test here, won't be fun if this doesn't work.
And that's totally possible as taps and targets are used that I can't really pin to a version (in a nice way that also works with the tut).
Any ideas on how to best run 1-2 simple tests here?

@edgarrmondragon Can plugin lockfiles be used here to ensure that the same version of the plugins are used each time?

https://github.com/meltano/meltano-codespace-ready/pull/9

@WillDaSilva that'd probably be #6416


Upgrade compose bom on v.next

upgrade compose bom to 2024.10.00
remove unneeded test code

Related to issue: #631

Description:
Cherry-pick the commit from #631 into v.next which upgrades the compose-bom to 2024.10.00.
Pre-merge Checklist

a vTest Job for this PR has been run

[x] link: https://runtime-kotlin.esri.com/view/all/job/vtest/job/toolkit/168/

Unit and/or integration tests have been added to exercise this PR's logic, and the tests are passing:

[ ] Yes
[ ] No

@kaushikrw, Do samples need to match the Compose BOM version used here? As some samples use toolkit components, and am wondering if it would be a required change.
I believe an Oct Compose release brings major NavGraph changes which may need to be tested with the current sample viewer design.


[OpenAI] Re-implement SSEs

Packages impacted by this PR
@azure/openai
Issues associated with this PR
https://github.com/Azure/azure-sdk-for-js/issues/26376
Describe the problem that is addressed by this PR
The old implementation of SSEs didn't do the right thing with regard to parsing events spanning multiple stream chunks. It converted every chunk to a string first which is not valid.
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
This implementation follows closely the spec in https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation and is largely based on @microsoft/fetch-event-source's. I think we should consider moving the implementation to core to be used to interpret responses with content type value of text/event-stream and I can file an issue after merging this PR.
Are there test cases added in this PR? (If not, why?)
Yes!
Provide a list of related PRs (if any)
N/A
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[x] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[x] Added a changelog (if necessary)

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-openai


README.md Installation Markdown

The HTML Markdown in README.md is a tad broken on Lucord Website!
 Preview

Added markdown.js to apply markdown wherever Jekyll didn't.


downgrade RP to RHEL 7, omazuremds.so doesn't appear to support RHEL 8

fixes https://github.com/Azure/ARO-RP/issues/759
not tested yet

Do we have bugzilla for this or something under these lines?

I have e-mailed the azsecpack folks to ask about it, no reply as yet.


Cluster resize support

Coverage decreased (-3.6%) to 96.401% when pulling 3bbf3f773731f615f3e305c8319ced62aa7282f9 on yuce:cluster-resize-support into 780c6bccb160a4c8f924e17994a3e6651359c212 on pilosa:master.

Closing in favor of https://github.com/pilosa/java-pilosa/pull/87


MAD dataset preprocessing feature requests！！！！ Please

Hello author,
Can you conveniently provide the Google Cloud Disk or Baidu Cloud Disk link for downloading the MAD dataset?
I am unable to download the source MAD data set due to network restrictions.
Could you please send me a copy of the MAD processed feature data set? Thank you very much!!!
 I would be grateful if you could answer promptly and provide a dataset

Hello author, Can you conveniently provide the Google Cloud Disk or Baidu Cloud Disk link for downloading the MAD dataset? I am unable to download the source MAD data set due to network restrictions. Could you please send me a copy of the MAD processed feature data set? Thank you very much!!!
 I would be grateful if you could answer promptly and provide a dataset

Hi, here is the Baidu Cloud Disk link for the MAD features. Note that this is our processed version.


[Bug] JSON-RPC Assumes Consistency

Blockchains in general are at best eventually consistent. That is a client reading from two services could expect that one services is behind the other. This becomes problematic when implementing clients that intentionally or not connect to multiple services. Since a single IP address or URL may refer to a single service or several, clients /must/ be implemented in such a way that read after read consistency is not guaranteed. Specifically, consider a read returns a version:

read(server) => 5
read(server) => 6
read(server) => 5

Is entirely possible in the case where there may be redundancy behind a single domain. And even more likely in our fault tolerance case of n upstreams choose 1. Why?
The primary issue is a race against state synchronization:
Validator_i -> VFN_i -> FN_i
vs
Validator_j -> VFN_j -> FN_j
where the json-rpc service is supported by (FN_i, FN_j). if we assume i != j, then they can take different routes and have different latencies, even temporarily unavailable connections. A client calling into an application load balanced json-rpc service hosted by (FN_i, FN_j) may get different versions in these cases.
Our current json-rpc redundancy approach is to query multiple services, assuming even single homed services, it is possible that our most up to date goes offline causing us to redirect to an older version.
In any case, if we arrive at an older version, we fail. So three ideas:

Require json-rpc clients to specify the minimal version that they want, that way if the upstream is stale, it can either respond back saying try again or hold on to the request while the versions catch up
Make the json-rpc client handle stale responses with retries
Return the stale response but note that it is stale

Does JSON-RPC currently support long poll?

https://github.com/diem/diem/blob/master/json-rpc/docs/client_implementation_guide.md#error-handling
current plan is client implementation should:

Make the json-rpc client handle stale responses with retries, and fail with a stale response error if retries all failed.

https://github.com/diem/diem/blob/master/json-rpc/docs/client_implementation_guide.md#error-handling
current plan is client implementation should:

Make the json-rpc client handle stale responses with retries, and fail with a stale response error if retries all failed.

For the 3 options you listed.
No.2 is chosen because retry is always needed. If client side implements well, the error raised after retry should also contain the stale response for caller to judge whether it wants to propagate the error, or use the staled response.
No.3 is not good, because in most of cases we just want to retry, so return the stale response will cause caller to write retry.
No.1 maybe better for server resource usage, can be an additional option on top of No.2.

For the 3 options you listed.
No.2 is chosen because retry is always needed. If client side implements well, the error raised after retry should also contain the stale response for caller to judge whether it wants to propagate the error, or use the staled response.
No.3 is not good, because in most of cases we just want to retry, so return the stale response will cause caller to write retry.
No.1 maybe better for server resource usage, can be an additional option on top of No.2.

So basically you like 1+2+3!

So basically you like 1+2+3!

So basically you like 1+2+3!

I added details to https://github.com/diem/client-sdks/blob/master/specs/json_rpc_client.md#user-content-retry-stale-response-error.
Current SDK client implementation will need to be improved to include 3.
I figured 1 is conflict with 3; it seems 3 gives more flexibility, I dropped 1 in the above doc.

So basically you like 1+2+3!

I added details to https://github.com/diem/client-sdks/blob/master/specs/json_rpc_client.md#user-content-retry-stale-response-error.
Current SDK client implementation will need to be improved to include 3.
I figured 1 is conflict with 3; it seems 3 gives more flexibility, I dropped 1 in the above doc.


why the .gif image will be without animation

if i use this code: Imagine::open($src_path)->save($des_path);
When i use it so it becomes a static image from gif, but only when it moved with
$file->move(...) so it works fine.
Among other things, using laravel 5.1 and GD and Imagick are current version.

Writing animated gifs is currently not supported.


feat(readonly): implement readonly operator

Description
See  #311 issue.
Checklist for a new method

[x] Create a directory for the new method in the src directory in param-case
[x] Place the source code to src/method-name/index.ts in ESModules export in camelCase named export
[x] Add tests to src/method-name/method-name.test.ts
[ ] Add fork tests to src/method-name/method-name.fork.test.ts
[x] Add type tests to test-typings/method-name.ts

Use // @ts-expect-error to mark expected type error
import { expectType } from 'tsd' to check expected return type

[x] Add documentation in src/method-name/readme.md

Add header Patronum/MethodName
Add section with overloads, if have
Add Motivation, Formulae, Arguments and Return sections for each overload
Add useful examples in Example section for each overload

[x] Add section to README.md in the repository root

Add method to the table of contents into correct category - [MethodName](#methodname) - description.
Add section ## MethodName
Add [Method documentation & API](/src/method-name) into section
Add simple example

Is it necessary to do .map call when unit is already derived? We have is. targetable to detect this case

@zerobias , I've added tests and implementation for derived units in arument


Rebase t5 rz chi2 cut

This is a following PR updating the rz chi2 of T5. PR #234 has some rebase issues since the codes are outdated for a while, and this PR cleans the commits.
Looking at the dxy distribution of Track Candidate, the change has some efficiency lost comparing to master for displaced tracks. Attached is a slide studying this effect. The conclusion is that this issue comes from the r-phi chi2 cut. When removing the r-phi chi2 cut, the efficiency dropping is not obvious.

rebase rz chi2 T5 comparison.pdf

There are 2 more slides explaining the helix formulae in PR #234 and chi2 value. People can find the by expanding the "hidden items" in PR #234

comparison for PU200
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/t5_rebase_check/new_rebase_T5/rzT5_compare_master_PU200_b5dfd9-PU200_1ffa5dD-PU200/

There are 2 more slides explaining the helix formulae in PR #234 and chi2 value. People can find the by expanding the "hidden items" in PR #234

please keep PR documentation self-consistent, without too many redirections. Preferably, describe everything relevant to the code in the initial post ("PR description"). So, that the rest can be left for discussion

Thank you! I updated the PR description

Thanks for the PR, Yanxi! It is indeed a bit complicated but I did my best. Although I must admit I didn't follow all of your computations in full detail but I commented on things that I found weird from a quick look.
A general question I always ask in PRs when things are added to memory: Was nvprof run to verify that the memory allocations and deletions are the same? N.B. that running nvprof is not going to be possible on either phi3 or cgpu-1, so you would have to try it on lnx7188.

Thank you for this suggestion Manos! I did that on the lnx machine and checked, both nvprof and cuda-memcheck gives no errors. The memory allocation and cudaFree are the same numbers

There are 2 more slides explaining the helix formulae in PR #234 . Without letting people redirecting and search for it, I post the slides here again.
helix.approxi.for.T5.chi2.summary.update.add.linear.for.high.pT.part1.pdf
part.2.pdf


Not working in WIN7

Get-StartApps : The term 'Get-StartApps' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Get-WindowsAppId.ps1:5 char:10

    (Get-StartApps -Name 'PowerShell').where({$_.Name -eq 'Window ...

     ~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (Get-StartApps:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException

Unable to find type [Windows.UI.Notifications.ToastNotificationManager,Windows.UI.Notifications,
ContentType=WindowsRuntime].
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Pop-WindowsNotification.ps1:43 char:13

$null = [Windows.UI.Notifications.ToastNotificationManager, Windo ...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (Windows.UI.Noti...=WindowsRuntime:TypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFound

Unable to find type [Windows.Data.Xml.Dom.XmlDocument,Windows.Data.Xml.Dom.XmlDocument, ContentType=WindowsRuntime].
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Pop-WindowsNotification.ps1:44 char:13

$null = [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.X ...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (Windows.Data.Xm...=WindowsRuntime:TypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFound

Unable to find type [Windows.Data.Xml.Dom.XmlDocument].
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Pop-WindowsNotification.ps1:45 char:17

$ToastXml = [Windows.Data.Xml.Dom.XmlDocument]::new()

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (Windows.Data.Xml.Dom.XmlDocument:TypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFound

You cannot call a method on a null-valued expression.
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Pop-WindowsNotification.ps1:46 char:5

$ToastXml.LoadXml($XmlString)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

Unable to find type [Windows.UI.Notifications.ToastNotification].
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Pop-WindowsNotification.ps1:47 char:14

$Toast = [Windows.UI.Notifications.ToastNotification]::new($Toast ...

         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (Windows.UI.Noti...astNotification:TypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFound

Unable to find type [Windows.UI.Notifications.ToastNotificationManager].
At C:\Users\A648920\Documents\WindowsPowerShell\Modules\PoshNotify\0.1.2\Private\Pop-WindowsNotification.ps1:50 char:9

    [Windows.UI.Notifications.ToastNotificationManager]::CreateTo ...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (Windows.UI.Noti...ficationManager:TypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFound

Oh right, we probably should mention that somewhere... this module will only work on Windows 10 (and future releases).

We can add some code to the psm1 that checks to make sure those on Windows are at least on Windows 10:
[System.Environment]::OSVersion.Version.Major -ge 10

That's how I did it on BurntToast, I'll throw it in
On Mon, 18 Feb 2019, 8:32 AM Tyler James Leonhardt, <
<EMAIL_ADDRESS>wrote:

We can add some code to the psm1 that checks to make sure those on
Windows are at least on Windows 10:
[System.Environment]::OSVersion.Version.Major -ge 10
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Windos/PoshNotify/issues/26#issuecomment-464498664,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGojCi8XMO-nVyLqgT9jfX0CEDO1ce_Yks5vOa42gaJpZM4ai_Eu
.

In my case I use Windows 10 Pro and I get the same problem with [Windows.UI.Notifications.ToastNotificationManager].
Couldn't this be solved by using this way of creating notifications for windows?:
Add-Type -AssemblyName System.Windows.Forms
$notif = New-Object System.Windows.Forms.NotifyIcon
$notif.Visible = $true
$notif.BalloonTipTitle = "Title"
$notif.BalloonTipText = "Some text"
$iconPath= (Get-Process -Id $PID).Path
$notif.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($iconPath)
$notif.BalloonTipIcon = [System.Windows.Forms.ToolTipIcon]::Info
$notif.ShowBalloonTip(0)


Create initialis_by_line.py

Wanted to provide an example where it's a bit more flexible rather than putting the whole ascii in a string

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


Jesse ig-en benchmark

On a second thought, is it equivalent to #187? If so, then we can close this PR.


ruby_3_4: 3.4.0.preview2 > 3.4.1

https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/
https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-1-released/

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 368092
x86_64-linux running
x86_64-darwin running

aarch64-darwin

:fast_forward: 2 packages marked as broken and skipped:

rubyPackages_3_4.libv8
rubyPackages_3_4.ovirt-engine-sdk

:x: 1 package failed to build:

rubyPackages_3_4.uuid4r

:white_check_mark: 385 packages built:

rubyPackages_3_4.actioncable
rubyPackages_3_4.actionmailbox
rubyPackages_3_4.actionmailer
rubyPackages_3_4.actionpack
rubyPackages_3_4.actiontext
rubyPackages_3_4.actionview
rubyPackages_3_4.activejob
rubyPackages_3_4.activemodel
rubyPackages_3_4.activerecord
rubyPackages_3_4.activestorage
rubyPackages_3_4.activesupport
rubyPackages_3_4.addressable
rubyPackages_3_4.ansi
rubyPackages_3_4.ast
rubyPackages_3_4.atk
rubyPackages_3_4.awesome_print
rubyPackages_3_4.backport
rubyPackages_3_4.bacon
rubyPackages_3_4.base64
rubyPackages_3_4.benchmark
rubyPackages_3_4.bigdecimal
rubyPackages_3_4.bindata
rubyPackages_3_4.builder
rubyPackages_3_4.byebug
rubyPackages_3_4.cairo
rubyPackages_3_4.cairo-gobject
rubyPackages_3_4.camping
rubyPackages_3_4.certified
rubyPackages_3_4.charlock_holmes
rubyPackages_3_4.claide
rubyPackages_3_4.clamp
rubyPackages_3_4.cld3
rubyPackages_3_4.cocoapods
rubyPackages_3_4.cocoapods-acknowledgements
rubyPackages_3_4.cocoapods-art
rubyPackages_3_4.cocoapods-browser
rubyPackages_3_4.cocoapods-clean
rubyPackages_3_4.cocoapods-clean_build_phases_scripts
rubyPackages_3_4.cocoapods-coverage
rubyPackages_3_4.cocoapods-deintegrate
rubyPackages_3_4.cocoapods-dependencies
rubyPackages_3_4.cocoapods-deploy
rubyPackages_3_4.cocoapods-disable-podfile-validations
rubyPackages_3_4.cocoapods-downloader
rubyPackages_3_4.cocoapods-expert-difficulty
rubyPackages_3_4.standard-performance
rubyPackages_3_4.stringio
rubyPackages_3_4.syntax_tree
rubyPackages_3_4.syntax_tree-haml
rubyPackages_3_4.syntax_tree-rbs
rubyPackages_3_4.taglib-ruby
rubyPackages_3_4.temple
rubyPackages_3_4.terminal-table
rubyPackages_3_4.thor
rubyPackages_3_4.thrift
rubyPackages_3_4.tilt
rubyPackages_3_4.timeout
rubyPackages_3_4.tiny_tds
rubyPackages_3_4.treetop
rubyPackages_3_4.tty-color
rubyPackages_3_4.tty-command
rubyPackages_3_4.tty-option
rubyPackages_3_4.typhoeus
rubyPackages_3_4.tzinfo
rubyPackages_3_4.uglifier
rubyPackages_3_4.unf
rubyPackages_3_4.unf_ext
rubyPackages_3_4.unicode-blocks
rubyPackages_3_4.unicode-display_width
rubyPackages_3_4.unicode-name
rubyPackages_3_4.unicode-scripts
rubyPackages_3_4.unicode-types
rubyPackages_3_4.uri
rubyPackages_3_4.webmention
rubyPackages_3_4.webrick
rubyPackages_3_4.websocket-driver
rubyPackages_3_4.websocket-extensions
rubyPackages_3_4.whois
rubyPackages_3_4.xcodeproj
rubyPackages_3_4.xctasks
rubyPackages_3_4.yard
rubyPackages_3_4.zeitwerk
rubyPackages_3_4.zookeeper
ruby_3_4
ruby_3_4.devdoc

rubyPackages_3_4.uuid4r on aarch64-darwin
building '/nix/store/fkanlgxa5zwzk4kpbfx3w7w4x17dpf2h-ruby-3.4.1.drv'...
error: builder for '/nix/store/qa13gjs8jgfgqvlz50hm6dga9v82kw0v-libossp-uuid-1.6.2.drv' failed with exit code 2;
       last 25 log lines:
       > libtool: compile:  clang -I. -I. -DHAVE_CONFIG_H -O2 -pipe -c uuid_mac.c  -fno-common -DPIC -o .libs/uuid_mac.o
       > libtool: compile:  clang -I. -I. -DHAVE_CONFIG_H -O2 -pipe -c uuid_time.c  -fno-common -DPIC -o .libs/uuid_time.o
       > libtool: compile:  clang -I. -I. -DHAVE_CONFIG_H -O2 -pipe -c uuid_ui64.c  -fno-common -DPIC -o .libs/uuid_ui64.o
       > libtool: compile:  clang -I. -I. -DHAVE_CONFIG_H -O2 -pipe -c uuid_ui128.c  -fno-common -DPIC -o .libs/uuid_ui128.o
       > libtool: compile:  clang -I. -I. -DHAVE_CONFIG_H -O2 -pipe -c uuid_str.c  -fno-common -DPIC -o .libs/uuid_str.o
       > uuid_str.c:699:5: error: call to undeclared function '__VA_COPY_USE_yes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       >   699 |     va_copy(ap_tmp, ap);
       >       |     ^
       > ./config.h:212:23: note: expanded from macro 'va_copy'
       >   212 | #define va_copy(d, s) __VA_COPY_USE(d, s)
       >       |                       ^
       > ./config.h:217:23: note: expanded from macro '__VA_COPY_USE'
       >   217 | #define __VA_COPY_USE __VA_COPY_USE_yes
       >       |                       ^
       > uuid_str.c:738:9: error: call to undeclared function '__VA_COPY_USE_yes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       >   738 |         va_copy(ap_tmp, ap);
       >       |         ^
       > ./config.h:212:23: note: expanded from macro 'va_copy'
       >   212 | #define va_copy(d, s) __VA_COPY_USE(d, s)
       >       |                       ^
       > ./config.h:217:23: note: expanded from macro '__VA_COPY_USE'
       >   217 | #define __VA_COPY_USE __VA_COPY_USE_yes
       >       |                       ^
       > 2 errors generated.
       > make: *** [Makefile:109: uuid_str.lo] Error 1
       For full logs, run 'nix log /nix/store/qa13gjs8jgfgqvlz50hm6dga9v82kw0v-libossp-uuid-1.6.2.drv'.
error: 1 dependencies of derivation '/nix/store/w5lpnjh3v70kcyg1bq7jahrdixqd0i5g-ruby3.4-uuid4r-0.2.0.drv' failed to build

all failures except uuid4r are present for ruby 3_3

@masoo can you please adjust commit message
-> or → are accepted

Commit message has been adjusted.


Change logarithmic height

Use logarithm to calculate the height of the bars. close #27
Changed the way large numbers are displayed.
How to run it locally has been added.

Thank you @yoshi389111. I think a version bump/new release tag is needed.

Version 0.5.0 has been released!


translation-text live tests pipeline failing

Example build: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3409749&view=logs&j=df6af2db-ebdd-54b9-e787-ddc3f39ac765&t=84caa1ff-da0a-50a9-d8c4-3b778f66f78a&l=11192
Until this PR, translation-text was unintentionally excluded from running live tests. Now that it is enabled, the tests need to be properly configured to run. This will likely just involve setting up the environment variables correctly in the test-resources.json, but reach out if you need help.
Here's some documentation on setting up live tests: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/tests.md#write-or-run-tests

passing now: https://dev.azure.com/azure-sdk/internal/_build?definitionId=2519


configcat-feature-flag-sync 0.0.5

What to do if the build fails?
At the moment contributors do not have access to the CI workflow triggered by StepLib PRs. In case of a failed build, we ask for your patience. Maintainers of Bitrise Steplib will sort it out for you or inform you if any further action is needed.
New Pull Request Checklist
Please mark the points which you did / accept.

[x] I will not move an already shared step version's tag to another commit
[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

Can I do anything else to help the approving flow?


Feature request - Veterans

@jimstorch:

One feature I was kicking around came from listening to Role Playing Public Radio who were using the pregens for some of their DG sessions. The players were failing a lot of rolls as their skills were based on freshly-minted characters, but a one-shot may call for more veteran agents, so have an option to have age affect the character;
skill_bonus = randint( (0, (character_age - 21 ) * 4)) # Add to a learned skill (assuming four skill-ups per year) age_penalty = randint(0, (character_age - 21)) # Deduct from physical skills
The numbers would be re-rolled for each application. Something like that. It would need tweaking.

So, are we saying here that for every non-zero skill, we'd add randint((0, (character_age - 21 ) * 4)), and for each physical skill, we'd also subtract randint(0, (character_age - 21))?
I'm assuming a flag to turn this behavior on?

Yes, but the age effect really needs to be much less linear than my one-liner.  Twenty-one to 30 is not comparable with 61 to 70.  I went looking for something in the standard library for a hockey-stick shaped distribution but no luck yet.  Maybe start at 41 with some kind of multiplier to ramp it up.
IMHO, as DGGEN is a tool for one-shots the behavior could always be in effect.

I may at least allow an option to turn it off - some people might prefer RAW characters.

Perhaps random.weibullvariate() looks promising? (See Weibull distribution).

I've been playing with something simpler - halving the skill bonus each decade or so:
def max_skill_earned_at_age(age, earned_at_start=4, start_age=25, halve_rate=10):
    return earned_at_start * (1 / 2 ** ((age - start_age) / halve_rate))

print("age  max this year  cumulative max  average boost")
for age in range(25, 76):
    at_age = max_skill_earned_at_age(age)
    max = sum(max_skill_earned_at_age(y) for y in range(25, age + 1))
    print (f"{age}      {at_age:5.2f}          {max:5.2f}            {max/2:5.2f}")

We can play with the parameters of course. What do you think, @jimstorch?

I've tried this out in #26 - feels a little OP to me as it is.

Changed so that instead of just picking a random skill boost between zero and the max, instead we grant that many skill improvement checks as per the Agent's Handbook pages 29-30. That means higher skills are less likely to improve, and we are unlikely to end up with many skills boosted to 100% or over.
This feels better in terms of the size of the skill boost, but it does feel like boosting every non-zero skill is a bit much. Maybe we should boost only some skills - say, 75% of professional skills, 50% of bonus skills and 25% of default skills? That would avoid every veteran ending up with a high Ride skills, for example.
Then, I need to think of the down side. Is it the physical skills which should decrease, or is it the physical stats? Feels like the latter to me, but by how much and starting at what age I don't know.
If these are intended to be veteran DG agents, there ought to be other changes - one or two of the Damaged Veteran options from the Agent's Handbook page 38.

CoC 7th edition has some rules for losing stats for age - I'll adapt those.

OK, done. Let me know if you approve of the changes, @jimstorch.

Always happy to revisit and improve, but closing for now.


Wrong GDE profile link

Describe the bug
Currently, codewithahsan.dev/gde ends up in this link, whereas it should point to https://g.dev/ahsanayaz
To Reproduce
Steps to reproduce the behavior:

Go to the website
Click on 'Google Developers Expert in Angular' link

Expected behavior
It should redirect to https://g.dev/ahsanayaz

I'm picking it

Please assign it to me

this issue is resolved here #93

Closed by #93


Release v1.0.0

First release

Changes Unknown when pulling 21d8badb331f0436d6456b02200347f13e16a637 on release-v1.0.0 into ** on master**.

Changes Unknown when pulling 4a6a21200400d744dcd6979c314da700207e04cf on release-v1.0.0 into ** on master**.

Changes Unknown when pulling 2fbe1b7b9eaed36db4b585033094f95255d44f1e on release-v1.0.0 into ** on master**.

Changes Unknown when pulling 2fbe1b7b9eaed36db4b585033094f95255d44f1e on release-v1.0.0 into ** on master**.


Inconsistent battery charging behavior

Inverter model is PV18-5248 Pro.
When configuring the inverter with a Li (or USE) battery type, the charging behavior does not follow the expected absorption and float pattern. Instead, the inverter cycles between bulk and float voltage, resulting in frequent micro-cycling.
I'm using utility as the primary charging source, the inverter stays at or returns to bulk voltage, not dropping to the intended resting float level.
I don't have solar panels for now, so I can't confirm this behavior in the PV mode, but as users report on the forums, there is no issue in the PV mode.
Also tried to connect/disconnect the battery CAN communication cable, it doesn't have an effect.
Inverter settings:
14 Battery type - Li (also tried USE)
17 Absorb voltage - 57.2 V
18 Float voltage - 53.8 V
37 BMS control method - VOL

More details and comments here:
https://powerforum.co.za/topic/19603-must-inverter-settings/?do=findComment&comment=179012

can't open image when click on it

Inverter PV18-3224 (24 V model)
Have set
(14) Bat type - USE
(17) Bulk voltage - 28 V
(18) Float voltage - 27 V
As I could understand different MUST model - different behaviour
Inverter charge battery to Bulk voltage and then stop charging.
Battery voltage drop to float voltage and inverter start to maintain this voltage.


Fix Sonos model bug

Sonos core.py was not using the right models. Fixes https://github.com/SoCo/SoCo/issues/633

I need this too to support Playbar.  Thanks for the patch.

Home Assistant bug waiting on this PR being merged: https://github.com/home-assistant/home-assistant/issues/16661

I'm using basically your patch, but also filed #637 in case support was needed for the old naming convention (which seems to have been PLAYBAR). I'm happy with either solution and am just hoping that some fix is merged and released soon.

This is probably getting superseded by #637, but this would need a style fix to appease pylint:
soco/core.py:791:80: E501 line too long (100 > 79 characters)
soco/core.py:811:80: E501 line too long (100 > 79 characters)
soco/core.py:829:80: E501 line too long (100 > 79 characters)
soco/core.py:849:80: E501 line too long (100 > 79 characters)

Closing it in favor of #637


Simplify release pipeline: Remove usage of release-docker-build-steps.yml

Why is this template being removed? Is it just an improvement or the pipeline is handling those steps different?

It was made as a template because it was referenced multiple times in this root yaml. Now, with the usage of parameters.buildTargets there is only one reference, so we can simplify by having all the build steps in the root yaml itself.


Save experiment outputs + counters as environment variables

Add environment variables of experiment output paths, and run counters so they can be easily accessed via user-scripts.
Currently have added PAYU_CURRENT_RUN, PAYU_ARCHIVE_DIR, PAYU_CURRENT_OUTPUT_DIR and PAYU_CURRENT_RESTART_DIR.
Closes #443

Thanks for the review @blimlim! I've added in the code suggestions, so it's good for another review


Uncaught ReferenceError: PushNotification is not defined

I am getting Uncaught ReferenceError: PushNotification is not defined whenever i run the example..
If i install this plugin
cordova plugin add phonegap-plugin-push
or
cordova plugin add https://github.com/phonegap/phonegap-plugin-push
I can't able to run the app itself
This is the line i am getting error
var push = PushNotification.init({
What is the problem and how can i fix this ?

Here is the error i got in the command prompt
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'android'.

Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find any version that matches com.android.support:support-v13:23+
.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-me
tadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2
repository/com/android/support/support-v13/maven-metadata.xml
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2r
epository/com/android/support/support-v13/maven-metadata.xml
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2r
epository/com/android/support/support-v13/
Required by:
:android:unspecified

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED
Total time: 6.053 secs
C:\Users\anas\newpush\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\anas\newpush\platforms
android\gradlew cdvBuildDebug -b C:\Users\anas\newpush\platforms\android\build.g
radle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true"
ERROR running one or more of the platforms: Error: cmd: Command failed with exit
code 1
You may not have the required environment or OS to run this project

I encountered this on a computer of one of my colleagues just yesterday,
and it turned out not all dependencies as mentioned in the docs
https://github.com/phonegap/phonegap-plugin-push#compiling were installed.
It says to install:

Android Support Library version 23 or greater
Android Support Repository version 20 or greater
Google Play Services version 27 or greater
Google Repository version 22 or greater

On Wed, Oct 28, 2015 at 12:52 PM Sulthan Allaudeen<EMAIL_ADDRESS>wrote:

Here is the error i got in the command prompt
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find any version that matches
com.android.support:support-v13:23+
.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-me
tadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2
repository/com/android/support/support-v13/maven-metadata.xml
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2r
epository/com/android/support/support-v13/maven-metadata.xml
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2r
epository/com/android/support/support-v13/
Required by:
:android:unspecified

Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug
option to get more log output.
BUILD FAILED
Total time: 6.053 secs
C:\Users\anas\newpush\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c
"C:\Users\anas\newpush\platforms
android\gradlew cdvBuildDebug -b
C:\Users\anas\newpush\platforms\android\build.g
radle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true"
ERROR running one or more of the platforms: Error: cmd: Command failed
with exit
code 1
You may not have the required environment or OS to run this project
—
Reply to this email directly or view it on GitHub
https://github.com/phonegap/phonegap-plugin-push/issues/271#issuecomment-151818522
.

--
Met vriendelijke groet,
Ben Sedee
06-20883935

So, i want to install all these ?

Android Support Library version 23 or greater

Android Support Repository version 20 or greater
Google Play Services version 27 or greater
Google Repository version 22 or greater

@bmwsedee It worked after installing all those packages ?

@sulthanallaudeen yes, those packages are necessary for this plugin to function properly. Once you install them and re-test please close this issue if it is resolved.

@macdonst Ok thanks, i will update and re-test, and will do it accordingly

To solve the problem you have simpy to put the code into
$ionicPlatform.ready(function() {
var push = PushNotification.init({
});
it's right? :)

@ste5787 well yeah, if the user is not waiting for $ionicPlatform.ready() or the deviceready event than none of this stuff will work.

@ste5787 @macdonst
Thanks, I have updated the given packages in Android Studio
And i noted that the function is already inside the onDeviceReady
Still i am facing the error.. What could be the issue ?
onDeviceReady: function() {
alert('started');
var push = PushNotification.init({
"android": {
"senderID": "762187383962"
},
"ios": {"alert": "true", "badge": "true", "sound": "true"},
"windows": {}
});
....
I did the again did the fresh install of project and installed the phonegap-plugin-push by
cordova plugin add phonegap-plugin-push
Then when i try to run
I am still getting the error
Here is the Error Trace
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'android'.

Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find any version that matches com.android.support:support-v13:23+
.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-me
tadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2
repository/com/android/support/support-v13/maven-metadata.xml
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2r
epository/com/android/support/support-v13/maven-metadata.xml
file:/E:/dummy/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2r
epository/com/android/support/support-v13/
Required by:
:android:unspecified

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED
Total time: 6.228 secs
C:\Users\anas\newpush\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\anas\newpush\platforms
android\gradlew cdvBuildDebug -b C:\Users\anas\newpush\platforms\android\build.g
radle -PcdvBuildArch=arm -Dorg.gradle.daemon=true"
ERROR running one or more of the platforms: Error: cmd: Command failed with exit
code 1
You may not have the required environment or OS to run this project
What should i do now ?

@sulthanallaudeen Just to be sure, but did you install the necessary components in the Android SDK Manager?
Also, does the project compile without the plugin, or do you also get errors when you remove it?

@bmwsedee  Yes i have install the necessary components in the Android SDK Manager..
If i remove the plugin and run  the project.. the app is getting installed in the Device but I am getting PushNotification is not defined still (I found the error in the chrome::/inspect )

Please try this: whit inspector  opened write "PushNotification" in the console and than press enter key. What happen?

@sulthanallaudeen What version of the plugin are you using? Maybe downgrading to 1.3.0 helps (as suggested in #273) or maybe #179 gives any hints?
The error in the console is not surprise really if you remove the plugin, that was just to make sure the error only occurs when including the plugin.

@sulthanallaudeen you have to resolve the problem where the dependency com.android.support:support-v13:23+ cannot be resolved. Something is not setup correctly in your android environment.
Make sure your $ANDROID_HOME environment variable is set correctly.
Try opening the project in Android Studio (the platforms/android directory) to see if Android Studio can compile the project. That'll let you know if you've actually got all the dependencies downloaded.

@macdonst  The $A\NDROID_HOME is set correctly.
@bmwsedee @ste5787 Can you tell me whether i am doing correctly.

I created a empty cordova project

Downloaded the .zip of https://github.com/phonegap/phonegap-plugin-push

and navigated to example->www-> and copied the files
and pasted the www content to the project's www location
and i am trying the above steps..
Is that correct way ?
Or should i do something else ?

@ste5787 Now i can't even run the cordova project due to the build error . But can you pls say me whether the steps i followed above was correct ?

@bmwsedee May i know how to downgrade ? Can you tel me whether the steps i used to do is correct ? Or should i achieve in it some other steps ?

@sulthanallaudeen Downgrading can be done by removing the existing plugin (phonegap plugin remove phonegap-plugin-push) and installing the plugin with a specific version (phonegap plugin add phonegap-plugin-push@1.3.0).
I do however think that @macdonst suggestion of opening the project in Android Studio and see if it compiles there will help you the most; your problem seems to be dependency-related.

@bmwsedee  Thanks, i will follow it..
Can you tel me whether the steps i am doing is correct ?

I created a empty cordova project

Downloaded the .zip of https://github.com/phonegap/phonegap-plugin-push

and navigated to example->www-> and copied the files

and pasted the www content to the project's www location

Tying to built

Is that correct way ?

@sulthanallaudeen If you want a default implementation for handling notifications you will need steps 2-4, if you just want to know whether you can install the plugin and build your project you will only need to do steps 1 and 5 (supposing step 1 includes the installation of the plugin)

Yes, I tried 2, 4 .. just wanted to implement the default handling of notifications.
I tried that only .

@bmwsedee
Yes, I tried 2, 4 .. just wanted to implement the default handling of notifications.
I tried that only .

@sulthanallaudeen oh no, that is not the way you install a plugin into a project. This is what you should be doing:

Create an empty cordova project
Add the platform you require, for example phonegap platform add android
Add the plugin to your project. phonegap plugin add phonegap-plugin-push
Navigate to example->www-> and copied the files
Paste the www content to the project's www location
Build

@macdonst  Hey, thanks
I followed the steps provided by you and it is working good
[I can't able to run in my device directly from my pc, i genereated apk then i installed in mobile and run it, however it is ok for me ]
But the app is displaying only the gcm id and i can't able to find the messages to triiger messages.
What should i do to see it ?

@macdonst @bmwsedee
Thanks for the help..
I can able to run, get the gcm id and alert it.
When i try to display the GCM. I tried to send push notification like regular android push notification..
Like this
$PushMessage = 'test';
SendNotification($_POST['gcmId'],$PushMessage);

function SendNotification($DevideId,$Message)
{
$PushNotification = new GCM();
$DevideId = array($DevideId);
$Message_Decode = $Message;
$problem = urldecode($Message_Decode);
$Message = array("price"=>$problem);
$result = $PushNotification->send_notification($DevideId, $Message);
}
class GCM {
public function send_notification($DevideId, $Message) {
$url = 'https://android.googleapis.com/gcm/send';
$fields = array(
'registration_ids' => $DevideId,
'data' => $Message
);
$headers = array(
'Authorization: key =myapikey',
'Content-Type: application/json'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));
$result = curl_exec($ch);
if ($result === FALSE) {
die('Curl failed: ' . curl_error($ch));
}
curl_close($ch);
}
}
Also changed the
"senderID": "myprojectnumber"
in the index.js
When i run the app, and send push notification from server side. i am not getting any notification..
What should i do to show the push messages in the app in mobile ?

@macdonst
My device is android, So should i do like this ?
"ios": {"alert": "true", "badge": "true", "sound": "true"}, "windows": {"alert": "true", "badge": "true", "sound": "true"}

@macdonst  Thanks, i followed your instruction and now i can able to run the application and get gcm id.  So, i am closing this one.
Thanks for the support guys :+1:

Guys, I still get the same error. although I installed the android SDK components, and follow all the above steps. but nothing has worked for me. PLEASE HELP

What error you getting ?

Thank you sulthan, I fixed my problem by adding this code to my config.xml:

also, I was debugging in ripple, which will now work unless you debug it on real device.
Thank you so much.

@nadeemkhoury  can you share which code you added to your config.xml? I'm still having the same problem

this one my friend.

<platform name="android">
    <preference name="android-minSdkVersion" value="15"/>
 </platform>

this code my friend.

@nadeemkhoury  do you have the crosswalk plugin installed on your project? The solution proposed by you doesn't make sense unless you do, as that's a pretty common  crosswalk issue.

hey bro @fredgalvao, No I don't have crosswalk plugin. I think the main problem was debugging using ripple, when I test it on device it works smoothly. but also the code that I had has a role in fixing my issue.

@nadeemkhoury  it worked, thanks!

Make Sure that you include right cordova.js and cordova_plugins.js file.

Remove ng-app in index.html and put this http://stackoverflow.com/questions/21556090/cordova-angularjs-device-ready.
your app controller/factory/service will run after device ready and PushNotification will be available

Hello everyone:
I tried to install fresh copy of push notification. Previously I installed deprecated version from here  , then I found phonegap-push-plugin from here
I followed instructions and I genereate a template with push.js file
`/* global cordova:false /
/ globals window */
/*!

Module dependencies.
*/

var exec = cordova.require('cordova/exec');
/**

PushNotification constructor.

@param {Object} options to initiate Push Notifications.
@return {PushNotification} instance that can be monitored and cancelled.
*/

var PushNotification = function(options) {
this._handlers = {
'registration': [],
'notification': [],
'error': []
};
// require options parameter
if (typeof options === 'undefined') {
    throw new Error('The options argument is required.');
}

// store the options to this object instance
this.options = options;

// triggered on registration and notification
var that = this;
var success = function(result) {
    if (result && typeof result.registrationId !== 'undefined') {
        that.emit('registration', result);
    } else if (result && result.additionalData && typeof result.additionalData.actionCallback !== 'undefined') {
        var executeFunctionByName = function(functionName, context /*, args */) {
            var args = Array.prototype.slice.call(arguments, 2);
            var namespaces = functionName.split('.');
            var func = namespaces.pop();
            for (var i = 0; i < namespaces.length; i++) {
                context = context[namespaces[i]];
            }
            return context[func].apply(context, args);
        };

        executeFunctionByName(result.additionalData.actionCallback, window, result);
    } else if (result) {
        that.emit('notification', result);
    }
};

// triggered on error
var fail = function(msg) {
    var e = (typeof msg === 'string') ? new Error(msg) : msg;
    that.emit('error', e);
};

// wait at least one process tick to allow event subscriptions
setTimeout(function() {
    exec(success, fail, 'PushNotification', 'init', [options]);
}, 10);

};
/**

Unregister from push notifications
*/

PushNotification.prototype.unregister = function(successCallback, errorCallback, options) {
if (!errorCallback) { errorCallback = function() {}; }
if (typeof errorCallback !== 'function')  {
    console.log('PushNotification.unregister failure: failure parameter not a function');
    return;
}

if (typeof successCallback !== 'function') {
    console.log('PushNotification.unregister failure: success callback parameter must be a function');
    return;
}

var that = this;
var cleanHandlersAndPassThrough = function() {
    if (!options) {
        that._handlers = {
            'registration': [],
            'notification': [],
            'error': []
        };
    }
    successCallback();
};

exec(cleanHandlersAndPassThrough, errorCallback, 'PushNotification', 'unregister', [options]);

};
/**

Call this to set the application icon badge
*/

PushNotification.prototype.setApplicationIconBadgeNumber = function(successCallback, errorCallback, badge) {
if (!errorCallback) { errorCallback = function() {}; }
if (typeof errorCallback !== 'function')  {
    console.log('PushNotification.setApplicationIconBadgeNumber failure: failure parameter not a function');
    return;
}

if (typeof successCallback !== 'function') {
    console.log('PushNotification.setApplicationIconBadgeNumber failure: success callback parameter must be a function');
    return;
}

exec(successCallback, errorCallback, 'PushNotification', 'setApplicationIconBadgeNumber', [{badge: badge}]);

};
/**

Get the application icon badge
*/

PushNotification.prototype.getApplicationIconBadgeNumber = function(successCallback, errorCallback) {
if (!errorCallback) { errorCallback = function() {}; }
if (typeof errorCallback !== 'function')  {
    console.log('PushNotification.getApplicationIconBadgeNumber failure: failure parameter not a function');
    return;
}

if (typeof successCallback !== 'function') {
    console.log('PushNotification.getApplicationIconBadgeNumber failure: success callback parameter must be a function');
    return;
}

exec(successCallback, errorCallback, 'PushNotification', 'getApplicationIconBadgeNumber', []);

};
/**

Get the application icon badge
*/

PushNotification.prototype.clearAllNotifications = function(successCallback, errorCallback) {
if (!successCallback) { successCallback = function() {}; }
if (!errorCallback) { errorCallback = function() {}; }
if (typeof errorCallback !== 'function')  {
    console.log('PushNotification.clearAllNotifications failure: failure parameter not a function');
    return;
}

if (typeof successCallback !== 'function') {
    console.log('PushNotification.clearAllNotifications failure: success callback parameter must be a function');
    return;
}

exec(successCallback, errorCallback, 'PushNotification', 'clearAllNotifications', []);

};
/**

Listen for an event.

The following events are supported:

registration

notification

error

@param {String} eventName to subscribe to.
@param {Function} callback triggered on the event.
*/

PushNotification.prototype.on = function(eventName, callback) {
if (this._handlers.hasOwnProperty(eventName)) {
this._handlers[eventName].push(callback);
}
};
/**

Remove event listener.

@param {String} eventName to match subscription.
@param {Function} handle function associated with event.
*/

PushNotification.prototype.off = function (eventName, handle) {
if (this._handlers.hasOwnProperty(eventName)) {
var handleIndex = this._handlers[eventName].indexOf(handle);
if (handleIndex >= 0) {
this._handlers[eventName].splice(handleIndex, 1);
}
}
};
/**

Emit an event.

This is intended for internal use only.

@param {String} eventName is the event to trigger.
@param {*} all arguments are passed to the event listeners.

@return {Boolean} is true when the event is triggered otherwise false.
*/

PushNotification.prototype.emit = function() {
var args = Array.prototype.slice.call(arguments);
var eventName = args.shift();
if (!this._handlers.hasOwnProperty(eventName)) {
    return false;
}

for (var i = 0, length = this._handlers[eventName].length; i < length; i++) {
    var callback = this._handlers[eventName][i];
    if (typeof callback === 'function') {
        callback.apply(undefined,args);
    } else {
        console.log('event handler: ' + eventName + ' must be a function');
    }
}

return true;

};
PushNotification.prototype.finish = function(successCallback, errorCallback, id) {
if (!successCallback) { successCallback = function() {}; }
if (!errorCallback) { errorCallback = function() {}; }
if (!id) { id = 'handler'; }
if (typeof successCallback !== 'function') {
    console.log('finish failure: success callback parameter must be a function');
    return;
}

if (typeof errorCallback !== 'function')  {
    console.log('finish failure: failure parameter not a function');
    return;
}

exec(successCallback, errorCallback, 'PushNotification', 'finish', [id]);

};
/*!

Push Notification Plugin.
*/

module.exports = {
/**
 * Register for Push Notifications.
 *
 * This method will instantiate a new copy of the PushNotification object
 * and start the registration process.
 *
 * @param {Object} options
 * @return {PushNotification} instance
 */

init: function(options) {
    return new PushNotification(options);
},

hasPermission: function(successCallback, errorCallback) {
    exec(successCallback, errorCallback, 'PushNotification', 'hasPermission', []);
},

/**
 * PushNotification Object.
 *
 * Expose the PushNotification object for direct use
 * and testing. Typically, you should use the
 * .init helper method.
 */

PushNotification: PushNotification

};
`
but it give me module is not defined .. I tried putting 		if (typeof module != 'undefined' && module.exports) { 			module.exports = PushNotification; 		}
but it didn't work
=====================
PS: code is working and generating device token , but I want to know what is the effect of "is not a module error "!??

I'm using Angular 2 and trying to get this to work.
    this.renderer.listen('document', 'deviceready', () => {

      const push = PushNotification.init({
        android: {
          senderID: '1008311315007'
        },
        ios: {

        }
      });

      push.on('registration', (data) => {
        // data.registrationId
        console.log(data);
      });

      push.on('notification', (data) => {
        // data.message,
        // data.title,
        // data.count,
        // data.sound,
        // data.image,
        // data.additionalData
      });

      push.on('error', (e) => {
        // e.message
        console.log(e)
      });
    });

But even if I wait for deviceready it still says that it's not defined. I've installed all necessary SDK tools etc. but still can't get it to work. Please help.

+1 for me in ionic 2 push plugin v 2.1.3


Copy_To equivalent

Hello,
How can i use copy to field like elastic.
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html#copy-to

来信已收到，请等待回复


Add a way to ship 2.0 storage blocks elsewhere

I wanted to write a tool that ships the 2.0 blocks to a remote storage, but looks like there is interest from the others as well. Especially as it allows for bulk insert which is much more efficient.
The plan currently for me is: Make a tool (promtool subcommand) which actually ships the block off to the remote-storage and mark it experimental and iterate on the fields and format of the API and once we have a couple of users, fold it into Prometheus.
@tomwilkie @pauldix Do you guys think this makes sense? Or do we want to ship the chunks instead of the block?
Shipping the block actually makes it really hard to write the integration in a language other than Go and will heavily depend on the structure of TSDB.

I'm not sure if the format should be tied to chunks or blocks. Although if you just send blocks it'll be more efficient since you're just copying over the underlying datastructures untouched. Although it looks like tombstones might cause a problem with this since they'll have to be shipped too?
Overall I think the real goal would be to have a bulk read/write API. I think from the read perspective it would take a start and end time and include data from all series in that range. And the write would take some contiguous block of time to write all in one go. If you think it makes sense to use blocks then I'm +1. We can work with the actual prometheus/tsdb structures or some other intermediate format. Either way we'll have to do a conversions to/from the internal InfluxDB format.

I think 2.0 blocks is what we should use here, and keep this coupled with Prometheus. I think an API for bulk read would be a bad idea, as the response size would be massive and we already have one of those in the form of the query endpoint.
Bulk write is a separate topic.

@brian-brazil fair enough. If the write API sends blocks, we'll be able to work with it.

@fabxc With your recent change over in TSDB don't we just need to add a paramater to the snapshot API to make this practical?

And that API is now there, so I'm calling this done.


Tutorial doesn't work

Have you experienced this bug with the latest version of the template?
Yes
Steps to Reproduce
Tried to do remix tutorial at https://remix.run/docs/en/v1/tutorials/blog
when I run the command it fails to complete. npx create-remix@latest --template remix-run/indie-stack blog-tutorial
Expected Behavior
Create a remix tutorial
Actual Behavior
Running seed command node --require tsconfig-paths/register prisma/seed.js ...
TypeError: Cannot read properties of undefined (reading 'hash')
at seed (E:\blog-tutorial\prisma\seed.js:15:39)
An error occured while running the seed command:
Error: Command failed with exit code 1: node --require tsconfig-paths/register prisma/seed.js
🚨 Oops, remix.init failed
Command failed: npm run setup

Duplicate of #164


perf: return early in get() if path does not exists

If a path doesn't exists get returns early, so that we can avoid waiting for network requests that we know would fails to complete.
closes #13

Merged and published<EMAIL_ADDRESS>