text:
Build failed Cordova Android@11.0

Bug report

CHECKLIST

[x] I have read the issue reporting guidelines

[x] I confirm this is a suspected bug or issue that will affect other users

[x] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.

[x] I have read the documentation thoroughly and it does not help solve my issue.

[x] I have checked that no similar issues (open or closed) already exist.

Current behavior:
Application build fails
Expected behavior:
The application must build correctly, without errors
Steps to reproduce:

Create new Cordova project cordova create sample
Add Firebasex plugin cordova plugin add cordova-plugin-firebasex
Add platform Android@11.0 cordova platform add android@11.0
Run build cordova build android

Environment information

Cordova CLI version

11

Cordova platform version

Android 11

Plugins & versions installed in project (including this plugin)

cordova-android-firebase-gradle-release 4.0.0 "cordova-android-firebase-gradle-release"
cordova-android-play-services-gradle-release 4.0.0 "cordova-android-play-services-gradle-release"
cordova-open-native-settings 1.5.5 "Native settings"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-androidx 3.0.0 "cordova-plugin-androidx"
cordova-plugin-apprate 1.7.2 "AppRate"
cordova-plugin-device 2.1.0 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-email-composer 0.10.1 "EmailComposer"
cordova-plugin-file 7.0.0 "File"
cordova-plugin-firebasex 16.0.0 "Google Firebase Plugin"
cordova-plugin-geolocation 4.1.0 "Geolocation"
cordova-plugin-inappbrowser 5.0.0 "InAppBrowser"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-phone-call 1.1.3 "PhoneCall"
cordova-plugin-sim 1.3.3 "SIM"
cordova-plugin-speech-recognition-feat-siri 3.0.0 "Speech Recognition feat. Siri"
cordova-plugin-sslcertificatechecker 6.0.0 "SSL Certificate Checker"
cordova-plugin-wkwebview-engine 1.2.2 "Cordova WKWebView Engine"
cordova-plugin-wkwebview-file-xhr 3.1.0 "Cordova WKWebView File XHR Plugin"
cordova-plugin-x-socialsharing 6.0.4 "SocialSharing"
cordova-sms-plugin 1.0.2 "Cordova SMS Plugin"
cordova-sqlite-ext 6.0.0 "Cordova sqlite storage plugin - (...) with extra features"
cordova-support-android-plugin 2.0.4 "cordova-support-android-plugin"
cordova.plugins.diagnostic 7.1.1 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"

Dev machine OS and version, e.g.

OSX

MacOS 12.6 build 21G115

Android build issue:

Node JS version

14.21.1

Gradle version

7.4.2

Target Android SDK version

32

Android SDK details

Android 12.0 (S)
Android 11.0 (R)
Android SDK Build-Tools: 30.0.0; 30.0.3; 31.0.0; 32.0.0

Console output

console output
> Task :app:compileDebugJavaWithJavac FAILED
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:31: error: cannot find symbol
import com.google.firebase.auth.FirebaseAuthMultiFactorException;
                               ^
  symbol:   class FirebaseAuthMultiFactorException
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:33: error: cannot find symbol
import com.google.firebase.auth.MultiFactorAssertion;
                               ^
  symbol:   class MultiFactorAssertion
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:34: error: cannot find symbol
import com.google.firebase.auth.MultiFactorInfo;
                               ^
  symbol:   class MultiFactorInfo
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:35: error: cannot find symbol
import com.google.firebase.auth.MultiFactorResolver;
                               ^
  symbol:   class MultiFactorResolver
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:36: error: cannot find symbol
import com.google.firebase.auth.MultiFactorSession;
                               ^
  symbol:   class MultiFactorSession
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:37: error: cannot find symbol
import com.google.firebase.auth.PhoneAuthOptions;
                               ^
  symbol:   class PhoneAuthOptions
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:38: error: cannot find symbol
import com.google.firebase.auth.PhoneMultiFactorGenerator;
                               ^
  symbol:   class PhoneMultiFactorGenerator
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:39: error: cannot find symbol
import com.google.firebase.auth.PhoneMultiFactorInfo;
                               ^
  symbol:   class PhoneMultiFactorInfo
  location: package com.google.firebase.auth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:178: error: cannot find symbol
    private MultiFactorResolver multiFactorResolver = null;
            ^
  symbol:   class MultiFactorResolver
  location: class FirebasePlugin
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2079: error: cannot find symbol
    private JSONArray parseEnrolledSecondFactorsToJson(List<MultiFactorInfo> multiFactorInfoList) throws JSONException {
                                                            ^
  symbol:   class MultiFactorInfo
  location: class FirebasePlugin
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:41: error: cannot access zzc
public class FirebasePluginMessagingService extends FirebaseMessagingService {
       ^
  class file for com.google.firebase.iid.zzc not found
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:543: error: cannot find symbol
                    FirebaseMessaging.getInstance().getToken().addOnCompleteListener(new OnCompleteListener<String>() {
                                                   ^
  symbol:   method getToken()
  location: class FirebaseMessaging
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:642: error: cannot find symbol
                    FirebaseMessaging.getInstance().getToken().addOnCompleteListener(new OnCompleteListener<String>() {
                                                   ^
  symbol:   method getToken()
  location: class FirebaseMessaging
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:737: error: cannot find symbol
                    handleTaskOutcome(FirebaseMessaging.getInstance().deleteToken(), callbackContext);
                                                                     ^
  symbol:   method deleteToken()
  location: class FirebaseMessaging
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:947: error: cannot find symbol
                    bundle.putString(FirebaseAnalytics.Param.SCREEN_NAME, name);
                                                            ^
  symbol:   variable SCREEN_NAME
  location: class Param
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:948: error: cannot find symbol
                    mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SCREEN_VIEW, bundle);
                                                                       ^
  symbol:   variable SCREEN_VIEW
  location: class Event
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1390: error: cannot find symbol
                    handleTaskOutcome(user.verifyBeforeUpdateEmail(email), callbackContext);
                                          ^
  symbol:   method verifyBeforeUpdateEmail(String)
  location: variable user of type FirebaseUser
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1656: error: cannot find symbol
                    PhoneAuthOptions phoneAuthOptions =
                    ^
  symbol: class PhoneAuthOptions
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1657: error: cannot find symbol
                            PhoneAuthOptions.newBuilder()
                            ^
  symbol: variable PhoneAuthOptions
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1727: error: cannot find symbol
                            MultiFactorAssertion multiFactorAssertion = PhoneMultiFactorGenerator.getAssertion(credential);
                            ^
  symbol: class MultiFactorAssertion
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1727: error: cannot find symbol
                            MultiFactorAssertion multiFactorAssertion = PhoneMultiFactorGenerator.getAssertion(credential);
                                                                        ^
  symbol: variable PhoneMultiFactorGenerator
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1728: error: cannot find symbol
                            user.getMultiFactor()
                                ^
  symbol:   method getMultiFactor()
  location: variable user of type FirebaseUser
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1824: error: cannot find symbol
                    user.getMultiFactor().getSession().addOnCompleteListener(
                        ^
  symbol:   method getMultiFactor()
  location: variable user of type FirebaseUser
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1828: error: cannot find symbol
                                    MultiFactorSession multiFactorSession = task.getResult();
                                    ^
  symbol: class MultiFactorSession
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1835: error: cannot find symbol
                                    PhoneAuthOptions phoneAuthOptions =
                                    ^
  symbol: class PhoneAuthOptions
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1836: error: cannot find symbol
                                            PhoneAuthOptions.newBuilder()
                                            ^
  symbol: variable PhoneAuthOptions
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1933: error: cannot find symbol
                            MultiFactorAssertion multiFactorAssertion = PhoneMultiFactorGenerator.getAssertion(credential);
                            ^
  symbol: class MultiFactorAssertion
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:1933: error: cannot find symbol
                            MultiFactorAssertion multiFactorAssertion = PhoneMultiFactorGenerator.getAssertion(credential);
                                                                        ^
  symbol: variable PhoneMultiFactorGenerator
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2040: error: cannot find symbol
                    PhoneMultiFactorInfo selectedHint = (PhoneMultiFactorInfo) multiFactorResolver.getHints().get(finalSelectedIndex);
                    ^
  symbol: class PhoneMultiFactorInfo
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2040: error: cannot find symbol
                    PhoneMultiFactorInfo selectedHint = (PhoneMultiFactorInfo) multiFactorResolver.getHints().get(finalSelectedIndex);
                                                         ^
  symbol: class PhoneMultiFactorInfo
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2042: error: cannot find symbol
                    PhoneAuthOptions phoneAuthOptions =
                    ^
  symbol: class PhoneAuthOptions
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2043: error: cannot find symbol
                            PhoneAuthOptions.newBuilder()
                            ^
  symbol: variable PhoneAuthOptions
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2070: error: cannot find symbol
                    JSONArray secondFactors = parseEnrolledSecondFactorsToJson(user.getMultiFactor().getEnrolledFactors());
                                                                                ^
  symbol:   method getMultiFactor()
  location: variable user of type FirebaseUser
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2085: error: cannot find symbol
            PhoneMultiFactorInfo phoneMultiFactorInfo = (PhoneMultiFactorInfo) multiFactorInfoList.get(i);
            ^
  symbol:   class PhoneMultiFactorInfo
  location: class FirebasePlugin
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2085: error: cannot find symbol
            PhoneMultiFactorInfo phoneMultiFactorInfo = (PhoneMultiFactorInfo) multiFactorInfoList.get(i);
                                                         ^
  symbol:   class PhoneMultiFactorInfo
  location: class FirebasePlugin
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2114: error: cannot find symbol
                    List<MultiFactorInfo> multiFactorInfos = user.getMultiFactor().getEnrolledFactors();
                         ^
  symbol: class MultiFactorInfo
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2114: error: cannot find symbol
                    List<MultiFactorInfo> multiFactorInfos = user.getMultiFactor().getEnrolledFactors();
                                                                 ^
  symbol:   method getMultiFactor()
  location: variable user of type FirebaseUser
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2120: error: cannot find symbol
                    user.getMultiFactor().unenroll(multiFactorInfos.get(selectedIndex)).addOnCompleteListener(task -> {
                        ^
  symbol:   method getMultiFactor()
  location: variable user of type FirebaseUser
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:2385: error: cannot find symbol
                    FirebaseAuth.getInstance().useEmulator(host, port);
                                              ^
  symbol:   method useEmulator(String,Integer)
  location: class FirebaseAuth
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:3699: error: cannot find symbol
                }else if (task.getException() instanceof FirebaseAuthMultiFactorException) {
                                                         ^
  symbol:   class FirebaseAuthMultiFactorException
  location: class FirebasePlugin
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:3701: error: cannot find symbol
                    multiFactorResolver = ((FirebaseAuthMultiFactorException) task.getException()).getResolver();
                                            ^
  symbol:   class FirebaseAuthMultiFactorException
  location: class FirebasePlugin
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:114: error: cannot find symbol
                FirebasePlugin.applicationContext = this.getApplicationContext();
                                                        ^
  symbol: method getApplicationContext()
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:164: error: cannot find symbol
                    int titleId = getResources().getIdentifier(titleLocKey, "string", getPackageName());
                                  ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:164: error: cannot find symbol
                    int titleId = getResources().getIdentifier(titleLocKey, "string", getPackageName());
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:165: error: cannot find symbol
                    title = String.format(getResources().getString(titleId), (Object[])titleLocArgs);
                                          ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:168: error: cannot find symbol
                    int bodyId = getResources().getIdentifier(bodyLocKey, "string", getPackageName());
                                 ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:168: error: cannot find symbol
                    int bodyId = getResources().getIdentifier(bodyLocKey, "string", getPackageName());
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:169: error: cannot find symbol
                    body = String.format(getResources().getString(bodyId), (Object[])bodyLocArgs);
                                         ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:261: error: cannot find symbol
            if(getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.S && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
               ^
  symbol:   method getApplicationInfo()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:262: error: no suitable constructor found for Intent(FirebasePluginMessagingService,Class<OnNotificationReceiverActivity>)
                intent = new Intent(this, OnNotificationReceiverActivity.class);
                         ^
    constructor Intent.Intent(String,Uri) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to String)
    constructor Intent.Intent(Context,Class<?>) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to Context)
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:264: error: incompatible types: FirebasePluginMessagingService cannot be converted to Context
                pendingIntent = PendingIntent.getActivity(this, id.hashCode(), intent, flag);
                                                          ^
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:266: error: no suitable constructor found for Intent(FirebasePluginMessagingService,Class<OnNotificationOpenReceiver>)
                intent = new Intent(this, OnNotificationOpenReceiver.class);
                         ^
    constructor Intent.Intent(String,Uri) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to String)
    constructor Intent.Intent(Context,Class<?>) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to Context)
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:268: error: incompatible types: FirebasePluginMessagingService cannot be converted to Context
                pendingIntent = PendingIntent.getBroadcast(this, id.hashCode(), intent, flag);
                                                           ^
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:281: error: no suitable constructor found for Builder(FirebasePluginMessagingService,String)
            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
                                                             ^
    constructor Builder.Builder(Context,Notification) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to Context)
    constructor Builder.Builder(Context,String) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to Context)
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:307: error: cannot find symbol
                    Uri soundPath = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getPackageName() + "/raw/" + sound);
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:347: error: cannot find symbol
            int defaultSmallIconResID = getResources().getIdentifier(defaultSmallIconName, "drawable", getPackageName());
                                        ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:347: error: cannot find symbol
            int defaultSmallIconResID = getResources().getIdentifier(defaultSmallIconName, "drawable", getPackageName());
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:350: error: cannot find symbol
                customSmallIconResID = getResources().getIdentifier(icon, "drawable", getPackageName());
                                       ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:350: error: cannot find symbol
                customSmallIconResID = getResources().getIdentifier(icon, "drawable", getPackageName());
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:361: error: cannot find symbol
                notificationBuilder.setSmallIcon(getApplicationInfo().icon);
                                                 ^
  symbol:   method getApplicationInfo()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:365: error: cannot find symbol
                int defaultLargeIconResID = getResources().getIdentifier(defaultLargeIconName, "drawable", getPackageName());
                                            ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:365: error: cannot find symbol
                int defaultLargeIconResID = getResources().getIdentifier(defaultLargeIconName, "drawable", getPackageName());
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:368: error: cannot find symbol
                    customLargeIconResID = getResources().getIdentifier(icon+"_large", "drawable", getPackageName());
                                           ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:368: error: cannot find symbol
                    customLargeIconResID = getResources().getIdentifier(icon+"_large", "drawable", getPackageName());
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:380: error: cannot find symbol
                    notificationBuilder.setLargeIcon(BitmapFactory.decodeResource(getApplicationContext().getResources(), largeIconResID));
                                                                                ^
  symbol:   method getApplicationContext()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:401: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                   ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:401: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                                           ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:401: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:431: error: cannot find symbol
            NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                                                                            ^
  symbol:   method getSystemService(String)
  location: class FirebasePluginMessagingService
/Users/sergeybarahtenko/Desktop/sample/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePluginMessagingService.java:436: error: cannot find symbol
        FirebasePlugin.sendMessage(bundle, this.getApplicationContext());
                                               ^
  symbol: method getApplicationContext()
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
70 errors

FAILURE: Build failed with an exception.

Other information:
openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment Temurin-16.0.2+7 (build 16.0.2+7)
OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (build 16.0.2+7, mixed mode, sharing)
Added 13.12.2022
Before publishing this issue, the test was done on a pure cordova application, installing the plugin one by one and building the application. After uninstalling the Fairbase plugin, removing/adding the Android@11 platform, the build of the application completed successfully

Same issue here.
It appears that the required libs are not being downloaded (I think).
Found this article about upgrading to Cordova Android 11:
https://ionic.zendesk.com/hc/en-us/articles/7891143965975-Migrating-to-Cordova-Android-11
I'm not using Ionic (which is built on top of Cordova), but the issue (Android11) is the same, and has a bunch of gotchas.
Given that everyone will have to upgrade to Android11 soon to be allowed in the Play store, this is an issue that isn't going away.

Merry Christmas Dave!

is this issue still happening?

same issue here
Cordova platform version
Android 11
same console output

Hi How did you solve this issue?

same issue here Cordova platform version Android 11 same console output
EDIT: Solved in reading https://github.com/dpa99c/cordova-android-firebase-gradle-release#component-versions

hi samwelll, can you give some more details about that. We're just nibbling around a lot and can't really find the solution in our project. How did you solve that for yourself? THANK YOU at this point.

Try building the example project as a known working reference since it is pinned to cordova-android@11
In your own project, I recommend removing any plugin variables which specify component versions for this plugin from package.json and plugins/fetch.json then remove and re-add this plugin which will set the component version defaults.
If you have other plugins in your project which share dependencies with this one, you'll need to align the versions using plugin variables.

authors: Barahten codexsysin dpa99c engineeringchatat grumpygary joergHX277 samwelll


text:
[SDPA-4546] add content type and grant status

Motivation and Context

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-4546
https://digital-engagement.atlassian.net/browse/SDPA-4708
Changed

Added content-type to mark the component if it's internal link and among the valid content-types.
Added showTopic flag so it will display the value from the Topic field when this flag is true.

Screenshots

How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Improvement/refactoring (non-breaking change that doesn't add any features but makes things better)

Checklist

[ ] I've added relevant changes to the documentation.
[x] I have added tests to cover my changes (if not applicable, please state why)
[ ] My change requires a template update for create-ripple-app.
[ ] I have added template update script for next release.

This PR is just not sending updates to PR env. I'll close this and rename branch so it builds a new one.

This PR is just not sending updates to PR env. I'll close this and rename branch so it builds a new one.

source: gharchive/pull-request

repo: dpc-sdp/ripple

license_type: permissive

license_source: github-api


text:
CSS

#CSS
User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

added css

source: gharchive/issue

license: MIT


text:
Change API key email

Use a dedicated variable for the email address of API key notification messages.

This looks good to me.  Still working on it, or ready to merge?

Should be ready. Thanks!

authors: AudreyAltman markbreedlove

repo: dpla/automation

license: mit

license_source: bigquery


text:
⚠ 366.ru has degraded performance

In 3b1f13e, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 7055 ms

Resolved: 366.ru performance has improved in 25161c2.


text:
update package.json

Refer to issue #6. Incorrect Atom Engine reported in package.json.

Great!

repo: dracula/atom-ui


text:
bump scikit-learn version ceiling to 0.20.1?

Hi! dragnet currently requires scikit-learn<=0.19.2, which prevents users from developing alongside the final Py2/3 compatible release of 0.20.1 (see here). Would you be able to bump the version ceiling and publish a new release? Assuming no version-driven incompatibilities, I think this shouldn't be too much work; you don't have to train new, version-specific models, right?

I don't expect any issues with that, and tests are passing on Py2/3 with scikit-learn 0.20.0.
I'll poke around and spot check things sometime in the next week or so on 0.20.0 just to be sure, but that seems like an easy change (and yeah, there shouldn't need to be any new models trained).

Alright, I got a little busy, but I finally had the chance to look at this again today. Looks like the accuracy and throughput for both pre-trained and newly-trained models are unaffected by using sklearn 0.20. Opening a PR to bump the ceiling now

authors: bdewilde pakelley

repo: dragnet-org/dragnet


text:
test: add unit test case for func NewHTTPError

Signed-off-by: Hu Shuai hus.fnst@cn.fujitsu.com

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #1382 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1382      +/-   ##
==========================================
+ Coverage   51.26%   51.30%   +0.03%
==========================================
  Files         135      135
  Lines        8908     8908
==========================================
+ Hits         4567     4570       +3
+ Misses       3964     3960       -4
- Partials      377      378       +1

Impacted Files
Coverage Δ

supernode/daemon/mgr/scheduler/manager.go
21.91% <0.00%> (-0.69%)
:arrow_down:

pkg/errortypes/errortypes.go
82.85% <0.00%> (+11.42%)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM

authors: codecov-commenter hs0210 wangforthinker

repo: dragonflyoss/Dragonfly


text:
Recommendation: Have the Data Receiver register its JWKS URL with the Data Submitter to secure the data download

We have feedback on how HRSA server retrieve / download the ndjson files.
It is our recommendation for HRSA to register its JWKS url and query for token each time a ndjson file needs to be download just like vendors / Health Center systems are querying for tokens when submitting the manifest file or check processing status.
Passing access token in the manifest file is not secure.

I agree with your proposed approach.  This seems related to a similar issue I submitted: https://github.com/drajer-health/uds-plus/issues/11.

Currently we are not looking at registering the HRSA client with any EHR. The connection is a TLS connection similar to all FHIR transactions and is neither more or less secure from a connection standpoint. The information transmitted through this session is expected to be secure similar to all other FHIR transactions where data is retrieved.
In terms of the access token itself and requiring more security around the access tokens other approaches such as whitelisting the HRSA servers along with making the links themselves secure using other technologies could be all considered to ensure you are protecting the health center data appropriately.
The server is similar to a confidential client and is capable of storing the secrets/access tokens securely for subsequent access.

authors: cooperthompson mshgithub nbashyam

repo: drajer-health/uds-plus


text:
Never re-raise NameError and always default to CollectionDecorator

Description
This pull request makes it so that NameError is never re-raised when calling collection_decorator_class. This makes it so that it always defaults to Draper::CollectionDecorator. The NameError that we would be silencing would have been caused by us to begin with. See the original pull request for full detail:
minor fix to error raising on collection decoration.
Testing
See the original pull request comments.
To-Dos
None
References

GitHub Issue 773
GitHub Pull Request 765

LGTM 👍

authors: codebycliff syguer

repo: drapergem/draper


text:
Add :namespace option to decorate

This PR is a rebase on master branch of @ivan-denysov work. It also contains some fixes to finalize the implementation. See https://github.com/drapergem/draper/pull/835#issuecomment-571708445
ping @codebycliff
it closes

https://github.com/drapergem/draper/pull/835
https://github.com/drapergem/draper/issues/809

@n-rodriguez huge respect for the work you've put into this, it looks like you've done a great job.  I was just struggling with decorating a namespaced model for a while and came across this PR.
I wanted to comment because ended up solving my problem a very simple way: by namespacing the decorator the same way as the model.  In my case, app/decorators/help/article_decorator.rb defines class Help::ArticleDecorator < Draper::Decorator.  Given that this works, I wonder if it's the best solution because 1) it already exists, 2) it relies on convention over configuration, and 3) it plays nice with Rails autoloaders (both classic and zeitwerk both complain if the file namespace doesn't match the class namespace - "expected {FILE} to define constant {CLASS}").  But I realize your code may have benefits I'm not aware of.  What do you think?
I just pushed a PR with a namespace example.  (I don't believe it conflicts with this PR in any way.)  Would love to hear your comments on it because you know so much about this area 🙂

@n-rodriguez huge respect for the work you've put into this, it looks like you've done a great job.  I was just struggling with decorating a namespaced model for a while and came across this PR.
I wanted to comment because ended up solving my problem a very simple way: by namespacing the decorator the same way as the model.  In my case, app/decorators/help/article_decorator.rb defines class Help::ArticleDecorator < Draper::Decorator.  Given that this works, I wonder if it's the best solution because 1) it already exists, 2) it relies on convention over configuration, and 3) it plays nice with Rails autoloaders (both classic and zeitwerk both complain if the file namespace doesn't match the class namespace - "expected {FILE} to define constant {CLASS}").  But I realize your code may have benefits I'm not aware of.  What do you think?
I just pushed a PR with a namespace example.  (I don't believe it conflicts with this PR in any way.)  Would love to hear your comments on it because you know so much about this area 🙂

by namespacing the decorator the same way as the model.
But I realize your code may have benefits I'm not aware of. What do you think?

It is indeed a solution. But you may not want to do that (namespacing the decorator the same way as the model) but instead use more "conceptual" namespaces.
For instance, my Rails app is splited into 3 different websites (1 Rails app with 2 engines) sharing the same database. So there are 3 decorators namespaces : one for each websites and those namespaces are not bound to a specific model.
It looks like :
module BackOffice
  # resides in Rails app : rails_root/app/decorators/back_office/application_decorator.rb
  class ApplicationDecorator < Draper::Decorator
  end

  class UserDecorator < ApplicationDecorator
  end
end

module FrenchSite
  # resides in engine : engine/french_site/app/decorators/french_site/application_decorator.rb
  class ApplicationDecorator < Draper::Decorator
  end

  class FooDecorator < ApplicationDecorator
  end
end

module SpanishSite
  # resides in engine : engine/spanish_site/app/decorators/spanish_site/application_decorator.rb
  class ApplicationDecorator < Draper::Decorator
  end

  class BarDecorator < ApplicationDecorator
  end
end

You can only do that with this PR.

by namespacing the decorator the same way as the model.
But I realize your code may have benefits I'm not aware of. What do you think?

It is indeed a solution. But you may not want to do that (namespacing the decorator the same way as the model) but instead use more "conceptual" namespaces.
For instance, my Rails app is splited into 3 different websites (1 Rails app with 2 engines) sharing the same database. So there are 3 decorators namespaces : one for each websites and those namespaces are not bound to a specific model.
It looks like :
module BackOffice
  # resides in Rails app : rails_root/app/decorators/back_office/application_decorator.rb
  class ApplicationDecorator < Draper::Decorator
  end

  class UserDecorator < ApplicationDecorator
  end
end

module FrenchSite
  # resides in engine : engine/french_site/app/decorators/french_site/application_decorator.rb
  class ApplicationDecorator < Draper::Decorator
  end

  class FooDecorator < ApplicationDecorator
  end
end

module SpanishSite
  # resides in engine : engine/spanish_site/app/decorators/spanish_site/application_decorator.rb
  class ApplicationDecorator < Draper::Decorator
  end

  class BarDecorator < ApplicationDecorator
  end
end

You can only do that with this PR.

Ping @codebycliff

Hi there! Any news?

Ping @codebycliff. It would be nice to have some news...
I hope I've not worked for nothing....

ping @codebycliff

ping @codebycliff

is it possible to have some fucking news?

@n-rodriguez While I understand your frustration and apologize for the delay, I don't appreciate the language and don't really think anyone in the industry would either. We are all volunteers here – where we are in fact working for nothing. The reason for my delay is two fold:
The first being I simply don't have the time to maintain this gem anymore. My work and personal responsibilities have changed significantly since I took on the maintenance of this gem and I don't have the same amount of free time that I once did.
The second reason is the nature of this change. This pull request is adding more functionality around inference, which is the largest headache of this gem. When I originally took over maintenance of this gem, the original author (@jcasimir) really wanted me to remove the inference entirely per this issue. While I never was able to lead up that effort, I'm hesitant to introduce more functionality around the #decorate method. I alluded to this hesitancy in the original issue that was opened. The direction the original author wanted to go was adding functionality like this through a contrib package that adds the functionality. I'd recommend this approach if you need to get this functionality out into the wild quickly. Otherwise, the little time I have to dedicate to this gem will be focused on bug fixes and releasing new versions.
If you (or anyone else) would like to volunteer to helping maintain the repository going forward, that is something we can discuss. I just don't want to merge new features and not be around to support them. Let me know your thoughts. Again, I apologize for the delay.

From the sidelines, a few observations:

I totally understand the frustration @n-rodriguez expressed (3.5 months is a long time), and while I agree with @codebycliff that the language used in the comment was inappropriate, I can also understand where it comes from.
I totally understand how life can take over and make it hard to find time for even short efforts.  I don't know what's going on in @codebycliff's life, but things changed dramatically for me when I started having kids.  If I can't work on something during paid time, it's a struggle to decide between scratching a personal itch and spending time with my kids so that they can do things we love to do (skiing, mountain biking, etc.).
Hopefully @codebycliff's measured response will lead to a de-escalation and attract some new blood into helming the project so that @codebycliff can share the reins with someone who has the time to shepherd the project.  That would be an awesome outcome for those of us who rely upon draper, but definitely don't have the time or skills to manage it.

blabla

FYI I've made a fork that implements this feature : https://github.com/jbox-web/draper

A longer history of the subject: #373 → #480 → #494 → #499.

authors: Alexander-Senko codebycliff dan-jensen n-rodriguez tovodeverett


text:
Slim trajectories

A bit of a cleanup PR, removing redundant storage items, add to the readme, introduce a trial map as new output data column in the ntuple to code for logical volume names containing the vertex coordinates as unique integers, lookup is in the readme as are now the output column descriptions.

Found the paper from the Biasing mechanism authors on arXiv (there is a NIM reference too) and noted that the main step in biasing XS is missing in this code - no application of the weight factor. This is however necessary in order for the biasing to work correctly. My excuse is that they don't use it either in their example GB01 but I should have considered this earlier.
The technique to get the correct weight factor is fortunately very simple - the G4Track collects the accumulated weight, i.e. taking account of any XS biasing in a process agnostic way, i.e. we don't have to worry about biasing two processes which might take place several times in any event.
I should therefore add an additional primitive scorer which records the G4Track->GetWeight() for every hit in the sensitive detector. That should allow to check swiftly whether the output makes sense and allows to have biased hit counting as well the weight correction available for analysis post-processing.
The plan is submit this new feature in this PR, as a replacement for the removed ParentID scorer.

With the new weight scorer it also becomes clear that we can't arbitrarily ramp up the bias factors. A scoring with factor 100 on one process and 1000 on the other already results in extremely low weights. Leaving n,gamma as is, with the hard-coded 68% increase, and boosting muNuclear reactions by 100 however, gives reasonable weights in the percent level on small sample tests.

As the next branch I would like to move to the production version, i.e. change the hit creation to Ge77 production only, removing the neutrons scoring in germanium.
Can you think of any reason not to take that step yet? Did I forget anything?

Bumping this up for review @drbenmorgan

repo: drbenmorgan/warwick-legend


text:
chore: improve workflow stdout comments

see this PR comment (this PR superseeds to avoid confusion)
nice lil workflow improvement for better visibility and debugging

learning about workflows from you man <3

right backatcha brother on everything else much cooler than workflows 🔥 😂

repo: dreadnode/robopages


text:
COM port lock under windows - alternating

I'm now trying another daly-BMS, which is a 5s -12 V 40A unit and I have managed to get the script to run under windows 10 using ipython, simply running "daly-bms-cli -d COM3 --all". It outputs everything expected, but interestingly it only works every second run. That is if I run the script once and get the results, if I run it again -- say 30 sec later - I get an error message that:
SerialException could not open port 'COM3' access is denied.
But if I rerun the script it now runs. This cycle seems consistent - run once, fail, run once fail etc. It seems that the COM port gets locked and it takes another run to unlock it. It doesn't seem to make any difference how long I wait between runs.
It's not a serious problem as I'm just using windows while I have the batteryy pack on my desk - I'll go back to linux once the power supply is finished.

Hi,
I didn't have the chance to test it on Windows yet, but I've added a small change that might solve your issue. Please get the latest code from Github and try it again.

Hi
I'm not familiar with windows and couldn't install the new scripts using python3 setup.py install - kept getting permission errors even though I was running as administrator.
So I manually copied all the new files over the top of the existing ones. But now a new error - even though the script runs every second time as before - AttributeError: 'DalyBMS' object has no attribute 'disconnect':
In [105]: run daly-bms-cli  -d COM3 --all
{
  "soc": {
    "total_voltage": 12.1,
    "current": 0.0,
    "soc_percent": 99.0
  },
  "cell_voltage_range": {
    "highest_voltage": 2.475,
    "highest_cell": 3,
    "lowest_voltage": 2.411,
    "lowest_cell": 1
  },
  "temperature_range": {
    "highest_temperature": 22,
    "highest_sensor": 1,
    "lowest_temperature": 22,
    "lowest_sensor": 1
  },
  "mosfet_status": {
    "mode": "stationary",
    "charging_mosfet": true,
    "discharging_mosfet": true,
    "capacity_ah": 39.6
  },
  "status": {
    "cells": 5,
    "temperature_sensors": 1,
    "charger_running": false,
    "load_running": false,
    "states": {
      "DI1": false
    },
    "cycles": 0
  },
  "cell_voltages": {
    "1": 2.411,
    "2": 2.463,
    "3": 2.475,
    "4": 2.418,
    "5": 2.424
  },
  "temperatures": {
    "1": 22
  },
  "balancing_status": {
    "error": "not implemented"
  },
  "errors": []
}
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts\daly-bms-cli:221, in <module>
    218 if mqtt_client:
    219     mqtt_client.disconnect()
--> 221 bms.disconnect()
    223 if not result:
    224     sys.exit(1)

AttributeError: 'DalyBMS' object has no attribute 'disconnect'

Copying the daly-bms-cli file is not enough, you need to install the new version the same way as the old one. Currently the installed module is still older than the CLI tool, so they are not compatible. Investigate why you get permission errors when running the setup.py.

Thank you - I did a reinstall using pip (after flushing the cache), but it still has the same issue when using ipython. However when using python3 it runs properly everytime. I suspect it is my installation as I am not a windows user and had a great deal of trouble installing python and ipython. (trouble with powershell etc).
But for now I will use it as it was supposed to be used! Many thanks.

authors: dreadnought icenov

repo: dreadnought/python-daly-bms


text:
fix(docs): no need to add cursor when select multi text ranges

close https://github.com/dream-num/univer-pro/issues/2764

Pull Request Checklist

[ ] Related tickets or issues have been linked in the PR description (or missing issue).
[ ] Naming convention is followed (do please check it especially when you created new plugins, commands and resources).
[ ] Unit tests have been added for the changes (if applicable).
[ ] Breaking changes have been documented (or no breaking changes introduced in this PR).

长按ctrl键在页面间快速进行点击，还是会出现多个光标
2024_10_10 17_08_47 video.webm
https://github.com/dream-num/univer/pull/3691

长按ctrl选中多选区再使用backspace/delete删除选区时，无法删除所有选中的区域
2024_10_10 17_14_24 video.webm

长按ctrl选中多选区再使用backspace/delete删除选区时，无法删除所有选中的区域 2024_10_10 17_14_24 video.webm

word 好像也不能都删除

authors: Jocs oumomomo

repo: dream-num/univer


text:
[Feature] Please support Cloudflare Zero Trust - Access

请描述您的 Feature
能够更好的支持 Cloudflare Zero Trust - Access的保护功能
目前采用Pages代理Worker流量部署项目，前置增加Cloudflare Zero Trust保护。
如果初次登录网站（获取清理浏览器该网站数据）能正常先跳转到Zero Trust的登录页。
但是如果Zero Trust登录过期后访问网站，会有报错页面提示Network Error，抓包里面显示部分请求会403。
描述您想要的解决方案
个人猜测可能为浏览器缓存导致的问题，浏览器直接从缓存获取到网站页面，所以在Zero Trust过期的时候还是能访问到页面。
希望能解决Zero Trust的跳转问题。
描述您考虑过的替代方案
附加上下文

感谢反馈，应该是是缓存的问题，我考虑做个是否启用缓存的开关

有空尝试下 https://github.com/dreamhunter2333/cloudflare_temp_email/pull/477 这个分支，我测试没问题

好的，这么快就搞定了，我这几天有空试试
顺便问一下如果关闭缓存，是不是对页面加载有影响？

好的，这么快就搞定了，我这几天有空试试
顺便问一下如果关闭缓存，是不是对页面加载有影响？

就不使用浏览器缓存了，会慢一点点，不过比起来后台 api 的速度，九牛一毛了

我测试了，没问题，感谢支持这个Feature


text:
Use light-mode for header into the docs

Description
Clearly and concisely explain the problem.
You can mention unclear or missing information, typos, grammatical mistakes, etc.
Any contributions and suggestions are welcome!
Use light-mode for header into the docs, until we have a proper working dark mode for that part too
At a first impression the contrast looks too stark and we may want to avoid it
Scott, Evert and others agreed on this, Evert suggested to use the light mode we have for the landing footer instead
Luke suggested to do A/B testing, even tho I don't think we'll have time to do it 😅
Website Section URL
Website live preview, paste the page URL or section name (eg. Docs, if it happens on all docs page) below.
Docs

Screens:
Not so good:

Better:

Scott

authors: IlCallo smolinari

repo: dreamonkey/quasar


text:
there are many more url schemes than mailto and tel

Since we distribute over adhoc, if an update is available i redirected to the users to
itms-services://?action=download-manifest&url=https://domain.com/manifest.plist

Then it downloaded the new app. Since WKWebview this isn't working anymore. In Safari debugger, when clicking on this link an error appears saying unsupported url.

Just noticed This also doesn't work for:

maps://
comgooglemaps://
sms:

and so on.

ok in file CDVWKWebViewEngine.m you will find:
    if (shouldAllowRequest) {
        NSString *scheme = url.scheme;
        if ([scheme isEqualToString:@"tel"] || [scheme isEqualToString:@"mailto"] || [scheme isEqualToString:@"maps"] || [scheme isEqualToString:@"itms-services"]) {
            [[UIApplication sharedApplication] openURL:url];
            decisionHandler(WKNavigationActionPolicyCancel);
        } else {
            decisionHandler(WKNavigationActionPolicyAllow);
        }
    } else {
        decisionHandler(WKNavigationActionPolicyCancel);
    }

and you can add more url schemes to it. I could make a PR with all missing schemes, but shouldn't it be declared in config.xml which schemes to allow?
Or should i go with a PR hardcoding all known schemes?

Thanks for merging.


text:
Sass firefox fix

Fixes Firefox input styling issues mentioned in issue #880

Is this still an issue?

This is still an issue on the version that is currently live, yes. See issue #880 for clarification.

Thanks, this PR doesn't match the new site structure, but I've made the changes in a new commit a6cfe3e89e309f5b230e00bb361ebfc890fc57d5

authors: jiricrispeyn perrygovier

repo: driftyco/ionic-site


text:
Back gesture (Two-finger scrub) not functioning

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
[x] 3.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
If you enable VoiceOver on iOS you can use the Two-finger scrub gesture to go back hierarchical.
Going back while navigating with the NavController doesn't work.
Expected behavior:
Navigate back hierarchical
Steps to reproduce:
This has to be executed on an iOS device itself

Create a project with simple NavController based navigation
Enable VoiceOver (Settings -> General -> Accessibility -> VoiceOver)
navController.push() at least one time
Two-finger scrub

Other information:
https://developer.apple.com/library/content/technotes/TestingAccessibilityOfiOSApps/TestAccessibilityonYourDevicewithVoiceOver/TestAccessibilityonYourDevicewithVoiceOver.html
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
    @ionic/cli-utils : 1.0.0-rc.2
    Cordova CLI      : 6.5.0
    Ionic CLI        : 3.0.0-rc.2

local packages:

    @ionic/app-scripts              : 1.3.4
    @ionic/cli-plugin-cordova       : 1.0.0-rc.2
    @ionic/cli-plugin-ionic-angular : 1.0.0-rc.2
    Ionic Framework                 : ionic-angular 3.1.0

System:

    Node       : v6.10.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002
    ios-deploy : 1.9.1
    ios-sim    : not installed

I've looked into this as well for #11386 and I haven't been able to figure out what the actual signal is the device sends to the app, but it would be very nice to have this functionality for dismissing overlays as well (the gesture is supposed to go back / cancel / close pop-up)

Thanks for opening an issue with us, we will look into this.

Hi, is there any solution to this gesture?
Thanks!

authors: ShayShaked janrg jgw96 trytuna

repo: driftyco/ionic


text:
bug: blackberry tabs list detail will not transition

Type: bug
Platform: mobile webview
Running the default starter tabs app on a blackberry emulator, list item detail transitions do not work (i.e., clicking on a list item does not present the corresponding item's detail screen).  It looks like the href for detail items, i.e., something like tabs/chat/:chatId is not functioning correctly, since click events are registered.
Note, this is only for blackberry, as far as I know.  I don't have a physical device to test on currently, so this could also just be an emulator problem?
Steps to reproduce for blackberry emulator:

run ionic start bb_tabs_test tabs
cd bb_tabs_test; ionic platform add blackberry10; ionic build;
run on emulator
Clicking on a "chat" or "friend" does not cause the transition to chat detail or friend detail; however, click events are registered, it just seems the href is not being respected

Details
osx version: 10.10
ionic version: 1.2.13
cordova version: 4.1.2
vmware fusion version: 7.1.0

Greetings @m4b!
My sensors indicate that I require more information in order to assist you.

Can you provide a detailed description of this issue?
How would a robot go about replicating this issue?
On which platform does this happen occur? (iOS, Android, all, etc.)
On which platform versions does this occur? (Android 4.2, iOS 8, all, etc.)
Is this an issue with the Ionic Framework or Ionic CLI?

Additionally, providing a codepen that replicates the issue is extremely helpful.
If you wish to get help using the framework itself, I recommended visiting the forum, where many humans will be able to offer wisdom and advice.
Thank you for allowing me to assist you.

Not sure why this was closed?
I've just re-verified the same problem on both the emulator in addition to a physical device (a blackberry Z30), taking the same steps outlined above: list items do not transition to list details in a starter tabs project.
Again, tap events are registered on the individual list items.
I don't think this is an issue of a lack of transition animation, since the screen doesn't change at any point to the detail page state, and alert code monitoring for taps on the list items still runs on different list item taps (hence it hasn't secretly transitioned to the list detail state, otherwise that code wouldn't run).
Not sure what other details to give?  Just follow the steps above with a physical blackberry device or blackberry emulator to reproduce the bug.

Cool, thanks for the extra info. Will leave this open look into down the road

update:
A colleague helped determine that on blackberry, href links in anchors, et. al., need to be whitelisted in order to be accessed (and hence allow the transition).
In particular, this line should be added in the config function of app.js:
  $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|local):/);

The local exception is of particular importance, since internally, the app is using local html references to the app structure, and by default, these types of references are not allowed on the blackberry platform.
I've tested on a blackberry z30 and this solves the list transition problems for the tabs starter app, the side menu starter app, in addition to some custom code relying on href transitions.
If it's alright with you, I suggest the issue be closed, given the above caveat.

Thanks, this has been added as well (bottom of ionicConfig.js)

authors: Ionitron m4b mhartington perrygovier


text:
Custom close button in Ionic popup

I create a custom ionic popup for photo upload. My problem that I am not able to close that popup by using a corner close button. Please help me.
Which look like :

Here my code:
`            $scope.uploadPhoto = function () {
var confirmPopup = $ionicPopup.show({
title: 'Upload Photo' + '',
scope: $scope,
buttons: [
{
text: '',
type: 'button-positive',
onTap: function () {
$scope.takePicture();
}
},
{
text: 'Gallery',
type: 'button-positive',
onTap: function () {
$scope.galleryPicture();
}
},
]
});
$scope.closePopup = function () {
confirmPopup.close();
};
};
`
when I inspect code I found that  it remove  ng-click="closePopup() from code. I am bit of confuse why it happen.

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum (forum.ionicframework.com). There are alot of awesome devs on there that will be able to help you! Thanks for using Ionic!


text:
swipeBackEnabled="true" opens menu and pops a page simultaneously

Short description of the problem:
Not exactly sure if this is intended or not, but I looked through the open and closed issues and I didn't find anything that came close...
Problem
When swipeBackEnabled="true" on <ion-nav>,
swiping back goes back one page, and opens the sidemenu.
(Happens in both iOS and Android)
What behavior are you expecting?
I would expect that either:

if there are pages on the nav stack, that it goes back one page (equivalent of nav.pop()). If there are no pages (e.g. on root page) the sidemenu would open; or
regardless of the amount of pages on the stack, it would open the sidemenu.

However, I think that the intended design is not for both to happen at the same time!!
Steps to reproduce:

ionic start test sidemenu --ts --v2
cd test && ionic serve --lab
change swipeBackEnabled="false" to swipeBackEnabled="true" in app.html
go to the list page, put more than one page on the stack (clicking on items), and then attempt to swipe back one page.

Here's the Plunker
http://plnkr.co/edit/LZ8z52vixMr5lIDbPLg6?p=preview
This Plunker demonstrates an Android (Material Design) template, I would recommend looking at iOS as well as the issue it much easier to see with iOS's swipe back animation.
Which Ionic Version?  2.x
Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.3
Xcode version: Xcode 7.3.1 Build version 7D1014

Duplicate of #5575

Thanks @Manduro. Closing as a duplicate of #5575, but thanks for the issue @callodacity!

authors: Manduro brandyscarney callodacity


text:
RC0 iOS 10 Select Bug

Short description of the problem:
On iOS 10 when buttons on a select are pressed the click is propagated to inputs behind the select. This causes the keyboard to appear right after the select is dismissed.
It only seems to happen when these config options for scrollAssist & autoFocusAssist are in place:
    IonicModule.forRoot(MyApp, {
      scrollAssist: false,
      autoFocusAssist: false
    }),

What behavior are you expecting?
The click would not be registered on inputs behind the select button.
Steps to reproduce:
Step 1:

Step 2:

RC0
Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a

Hello all! Because i cannot reproduce this issue anymore in the latest version of Ionic, I am going to close this issue for now. Thanks for using Ionic and feel free to comment if you are still having this issue on the latest version of Ionic.


text:
Ionic2 issue closing popover with event in beta11

Short description of the problem:
When I open a popover positioned relative to the element clicked, it can't be closed.
Note: I haven't seen any change regarding this in the changelog, so I guess it is happening too in the RC0.
What behavior are you expecting?
The popover should close.
Steps to reproduce:

Create popover
Present popover relative to the button clicked
Try to dismiss the popover. It won't close

Note: If we don't pass the event and the popover is displayed in the middle of the screen, it can be dismissed.
All this done as in the documentation: http://ionicframework.com/docs/v2/api/components/popover/PopoverController/
**Which Ionic Version? 2, beta 11
Run ionic info from terminal/cmd prompt:
Cordova CLI: 6.3.1
Gulp version:  CLI version 1.2.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
OS: Windows 8.1
Node Version: v5.2.0

Can't reproduce this, please try to make a plunker template.

Hello @PabloFNK , unfortunately I cannot reproduce this issue. Would you mind posting a repo that i can use to reproduce this issue?

Thanks @nikoTM and @jgw96 ,
I don't know why the other day it wasn't displayed any error in console but today it is doing it, and it seems to be related with this bug:
https://github.com/driftyco/ionic/issues/6918
So, I guess this one can be closes. We'll have a look again once we update to the RC0.
Thanks!

authors: PabloFNK jgw96 nikoTM


text:
added lockout_key to interface functions

I am expecting that this pull request won't get accepted. I am missing some features and I haven't tested this yet. But I'm going to ask for a pull request anyway to get feedback.
update and add/remove sections as needed
New Features
Allows the python interface to recognize the lockout key.
Fixes
I added recognition of the lockout key to the functions inside of interface.py
Related to this issue: https://github.com/driplineorg/dripline-python/issues/120
Testing
I tested locally that the error catching probably works. I have not really tested this. There's a subtlety with type uuid_t that I am not equipped to handle right now. Noah said that Ben probably has to look into it.
Prior to merging for releases:

[ ] update the project's version in the top-level CMakeLists.txt file
[ ] update the appVersion to be the new container image tag version in chart/Chart.yaml

These changes have been adopted into another branch, which is aimed at the next major release of dl-py, so I'm closing this PR.

authors: nsoblath raphaelcervantes

repo: driplineorg/dripline-python


text:
Added adoption of printable protocol. Now you can call .description on...

... any XMLElement or on any XMLIndexer. You can grab description at any level.
References: https://github.com/drmohundro/SWXMLHash/issues/20

This also allows you to write XML, which existed already because your .text is a var. So now you can do something like:
xml["catalog"]["book"][0]["author"].element?.text = "New Person"

Then get the xml.description and write it to file.

This looks good - would you have a chance to add any tests for this feature? If not, no big deal, I can add them afterwards.

@drmohundro Nice. I haven't had a ton of experience with Swift and tests yet.

authors: drmohundro skipallmighty

repo: drmohundro/SWXMLHash


text:
Duplicated observations in net to gross ratios

There are multiple entrires for each combination of orispl.code, cems.unit.id, and Month in the net to gross ratios file.

Two underlying issued caused the problem: There was a change in the behvior of nesting() with complete(). I've switched to using group_by(). Second the ratios were joined with a crosswalk back to CEMS unit IDs. The crosswalk is annual, but year was not included as a relationship variable. Both have been fixed and the net-to-gross mapping is now unique on ORIS, Unit ID, and Month.

repo: drofphilosophe/USElecData


text:
registerHandler - how to "catch" any path/catch all?

Hello,
When using the app().registerHandler() call how can I catch any kind of path passed through the HTTP request?
Example:
drogon::app().registerHandler("/hello",[](const HttpRequestPtr &req,std::function<void(const HttpResponsePtr &)> &&callback)
{
...
},{Get});
This example catches /hello paths in the HTTP request. How can I catch
/abc
/xpto/a/b/c/d/y
/aaa
Is there any pattern to pass to the registerHandler function in order to catch "all" and then get the complete path passed by client side?
Thnak you.
Alex

You could use the registerHandlerViaRegex method or the registerPreRoutingAdvice method to approach your aims.

Got it!
Thank you.

repo: drogonframework/drogon


text:
Fix GameBoy and SNES 2bpp ordering

Bitplanes 0 and 1 are swapped.
(I may have written my viewing utilities 20 years ago, but I still remember the SNES tile format very well :b.)

Yup, that's a goof. Thanks!

authors: drojaazu fdwr

repo: drojaazu/chrgfx


text:
basic springmvc support

这个PR仅仅把common模块和core模块的springboot依赖给去掉了，后续还需要更改所有adapter模块以适配springmvc。
另外在springmvc环境下，此PR并未实现PropertiesBinder接口，也未配置DtpProperties Bean。

该pr需要仔细看看，DtpProperties是个普通bean了，没有了动态能力，其他注入这个bean的类里的动态能力也就没了

了解，我先把确定没问题的地方提上来。

repo: dromara/dynamic-tp


text:
Replace all Chinese comments

closes https://github.com/dromara/soul/issues/596

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #700 (0987305) into master (bd3a1de) will increase coverage by 0.98%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master     #700      +/-   ##
============================================
+ Coverage     52.39%   53.37%   +0.98%
- Complexity      939      966      +27
============================================
  Files           237      237
  Lines          5459     5459
  Branches        604      604
============================================
+ Hits           2860     2914      +54
+ Misses         2336     2282      -54
  Partials        263      263

Impacted Files
Coverage Δ
Complexity Δ

.../dromara/soul/admin/config/HttpSyncProperties.java
100.00% <ø> (ø)
1.00 <0.00> (ø)

.../dromara/soul/admin/config/NacosConfiguration.java
50.00% <ø> (ø)
2.00 <0.00> (ø)

...romara/soul/admin/exception/ExceptionHandlers.java
18.18% <0.00%> (ø)
2.00 <0.00> (ø)

...admin/listener/zookeeper/HttpServiceDiscovery.java
10.25% <ø> (ø)
2.00 <0.00> (ø)

...ra/soul/admin/service/impl/AppAuthServiceImpl.java
81.86% <ø> (ø)
33.00 <0.00> (ø)

...a/soul/admin/service/impl/SelectorServiceImpl.java
8.88% <ø> (ø)
1.00 <0.00> (ø)

...in/service/impl/SoulClientRegisterServiceImpl.java
33.00% <ø> (ø)
14.00 <0.00> (ø)

.../soul/admin/service/impl/UpstreamCheckService.java
22.64% <ø> (ø)
4.00 <0.00> (ø)

...g/dromara/soul/common/constant/AdminConstants.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

.../dromara/soul/common/utils/UpstreamCheckUtils.java
34.78% <ø> (ø)
5.00 <0.00> (ø)

... and 19 more

Continue to review full report at Codecov.

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

authors: codecov-io dengliming

repo: dromara/soul


text:
Bitbucket Repository not found for repo names with uppercases

Hello,
Tried to activate Bitbucket repo via freshly installed drone with no luck. Getting error:

Unable to activate this repository. You must have administrative access to this repository. Also, please check the third-party application access policy to ensure Drone is approved. Repository username/my_repo_name not found

docker logs drone:

[GIN] 2015/11/05 - 09:54:54 | 404 |  666.327173ms | 93.170.111.32:2829 |   GET     /repos/username/my_repo_name
time="2015-11-05T09:55:00Z" level=error msg="unable to create hook http://myhost.com:8000/hook?access_token=someaccesstoken. Repository username/My_RePo_Name not found"
[GIN] 2015/11/05 - 09:55:00 | 500 |  3.812021783s | 93.170.111.32:2829 |   POST    /api/repos/username/my_repo_name

I have administrative access to the repository and drone consumer permissions are:
Account:Email, Read
Team Membership:Read
Repositories:Read
Webhooks:Read and Write
My repo name has underscores and uppercases and looks like "My_RePo_Name". So I tried to activate another repo with name like "MyRepo" (without underscores) - no luck. And after that I was able to activate repo with name like "myrepo" (without underscores and uppercases). So looks like drone unable to activate BitBucket repos with uppercase letters. Is there a solution or workaround for that issue?
Thanks!

tracking #761

authors: bradrydzewski nickalie

repo: drone/drone


text:
Create Appropriate DNS URL/redirects for Dronecode SDK

DroneCore has two entry points:

http://dronecore.io/ (website)
https://docs.dronecore.io (docs)

The website should be found at dronecode.org/sdk

Is the plan to move this inside the dronecode site (abandon the old site?). In this case the actions are:

merge the dronecore.io page into dronecode site
create a redirect from dronecore.io to the new page on dronecode site
@mrpollo can you confirm the above? If that is correct I will start creating a new page in dronecode.org/sdk. You would sort out the redirect.

For the docs, I presume we just need new URL and redirect of old URL to that new URL. Not sure what was agreed - sdkdocs.dronecode.org? docs.dronecode.org? docs.dronecode.org/sdk?

FYI, according to @mrpollo

the dronecore page should be updated to "sdk" and embedded into the dronecode site at /sdk
docs are to be moved to docs.droncode.org (This may also include the camera manager docs).

Agreed, this includes the camera docs

Who owns dronecore.io? @LorenzMeier was that you?

Docs URL: docs.dronecode.org
Marketing SDK: dronecode.org/sdk
Marketing Camera: dronecode.org/camera-manager (or whatever name it gets)

What is the status here?

Currently @mrpollo is waiting on Linux Foundation to create the new URLs for camera manager and dronecode sdk. He has pinged them several times.
Originally we were after docs.dronecode.org for combined camera manager and SDK docs. However that won't work because dronecore has versioning, and we can't support different versioning within the one docs package. I can't remember exactly the what the final urls Ramon asked for, but I think it was sdk.dronecode.org and camera-manager.dronecode.org.
@mrpollo Can you go bollock LF again? Can we escalate - this is silly.

Yes will do. Thanks for the update team.

Only thing left to do is to redirect dronecore.io to dronecode.org/sdk I don't own the dronecore.io domain I think that got purchased by @LorenzMeier

@LorenzMeier has done the redirects, closing.

authors: hamishwillee julianoes mrpollo

repo: dronecore/DroneCore


text:
Is readtehdocs site down?

Hi yesterday I was looking for some info in your documentation at http://dronekit-python.readthedocs.io, and today I got a 404 error saying that the main url does not exists.
Any thought about when it will gets back?

@peterbarker you know anything about this? I'm only very rarely looking at DK-Python so not on top of what people might be doing.

still 404 error...

https://dronekit.netlify.app/

It's still down.

authors: DamienBelga angel-ayala hamishwillee hhackbarth sudo-Mystic

repo: dronekit/dronekit-python


text:
Update requirements.txt

update pymavlink

https://github.com/dronekit/dronekit-python/pull/728 :-)

Didn't check open pr's... sorry for duplication
Regards,
James

On 11 Jul 2017, at 08:35, Hamish Willee notifications@github.com wrote:
#728 :-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

No worries at all. I'd hoped from a review from @peterbarker so this was a timely reminder. Decided we need it so pushed in.

authors: auturgy hamishwillee


text:
JBPM-4900 - Enhance TaskList Search capability - query service based …

…on dashbuilder data sets
depends on https://github.com/droolsjbpm/jbpm/pull/390
back port from master
(cherry picked from commit 09509eb593e7288c34a18d11f5c7fa4a75850f20)

merged into 6.4.x

repo: droolsjbpm/droolsjbpm-integration


text:
[JBPM-5220] kie-server: implement filtering for listContainers()

filtering is (currently) possible based on releaseId (and
its individual parts) and status

There are still few things I am not sure about:

is the package *.model OK for the filter classes? Or should they go into own package (e.g. model.filter)?

I added method listContainers(kieContainerFilter). Should we also have methods like listContainers(ReleaseId) or listContainers(Status). I am not sure since this can easily explode into quite a few new methods.

there is no isDeployed() functionality implemented. It is I believe  equal to status=STARTED, so not sure it is worth adding new param just as an alias to existing one.

I added toString(), equals() and hashcode to few *.model classes. I believe we could do that for all the classes? (unless there is good reason not to do so, which I am not currently aware of)

@mswiderski please take a look.

nice work @psiroky ! just one minor comment that is up to you if it makes sense to change or not

The tests are in jbpm-simulation module, so not related to these changes. Of course, we need to fix them. Looks like some change in upstream repos (drools, jbpm) caused this.

+1 to merge, jbpm simulation failures should already be fixed on master

@psiroky could you please prepare pr for backport to 6.5?

@mswiderski yes, will do that today.

authors: mswiderski psiroky


text:
docs: Fix a few typos

There are small typos in:

README.md
pyxl/codec/pytokenize.py
tests/test_whitespace_11.py

Fixes:

Should read parentheses rather than paretheses.
Should read input rather than intput.
Should read hyphen rather than hypen.
Should read argument rather than argment.

Semi-automated pull request generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

 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.

repo: dropbox/pyxl


text:
Is this still mantained?

I've noticed the last commit was in May. Is this because this code is not being maintained that well or because there hasn't been much need for updates?

Hi @anik786, still maintained!
Summer travel + zxcvbn-related research  has kept me busy since May, but the library is stable. That said I'll be working through bugs and pull requests soon now that the conference is over.

Great!

It's now been a year and half since any commits to the code:

Where is the active work going these days? Is it Dropbox-internal now, or are there newer libraries where work is being done?

@konklone I am still maintaining / improving https://github.com/GoSimpleLLC/nbvcxz
It is not intended as a drop in replacement for zxcvbn, but used the ideas as a basis to build from and improve on.
Considering the popularity of zxcvbn, it is sad that it isn't being actively improved though.

authors: Tostino anik786 konklone lowe

repo: dropbox/zxcvbn


text:
Documentation updates to address #468, #704, #743

The Problem/Issue/Bug:
Features in Milestone v0.16.0 required documentation.
How this PR Solves The Problem:
The three issues were related as it pertains to the timing and mechanism by which DB settings files were generated. This attempts to address these deficiencies.
Related Issue Link(s):

User documentation/support: settings.php/settings.local.php support
import-db fails when unable to manage settings files, should warn instead
Document settings file creation and what it means to users #743

Added @rfay for review for the v0.16.0 milestone release

repo: drud/ddev


text:
Trimming out outside of given interval

Fix for #2659

👍

authors: fjy navis

repo: druid-io/druid


text:
Added lightningUpdate condition to post install

I missed adding the lightningUpdate condition to the post-install-site-install.yaml file, while I was adding it to post-upgrade-reconfigure.yaml

This makes sense to me :D thanks so much!

authors: sylus vitaliss

repo: drupalwxt/helm-drupal


text:
Unable to declare attribute with name matching constant name outside struct class

Example:
class Article
end

class ArticleForm < ::Dry::Struct
  module Types
    include ::Dry::Types.module
  end

  attribute :article do
    attribute :title, Types::Coercible::String.meta(omittable: true)
  end
end

ArticleForm.const_defined?("Article") #=> true
Object.const_defined?("Article") #=> true

ArticleForm.const_defined?("ArticleForm::Article") #=> false
Object.const_defined?("ArticleForm::Article") #=> false

defined?(Article) #=> "constant"
defined?(ArticleForm::Article) #=> nil

We should only care about the existence of ArticleForm::Article but not ::Article
However Object.const_defined? is used in
https://github.com/dry-rb/dry-struct/blob/v0.5.0/lib/dry/struct/struct_builder.rb#L63
According to description for const_defined?
It also finds constant in ancestors (mainly Object), which makes the search also catches ::Article unexpectedly
So I guess we should be using full namespace like ArticleForm::Article
# Continue from last example
ArticleForm.const_set(:"Article", Class.new(Object))

Article == ArticleForm::Article #=> false

ArticleForm.const_defined?("Article") #=> true
Object.const_defined?("Article") #=> true

ArticleForm.const_defined?("ArticleForm::Article") #=> true
Object.const_defined?("ArticleForm::Article") #=> true

defined?(Article) #=> "constant"
defined?(ArticleForm::Article) #=> "constant"

Fixed by https://github.com/dry-rb/dry-struct/pull/94

authors: PikachuEXE flash-gordon

repo: dry-rb/dry-struct


text:
CLOUDSTACK-9050 - Match IP address only.

Virtual router was NATing IP addresses to the wrong interface if the IP address was a substring of the broadcast address on another interface.
Solved by adding the -w switch to the grep command.

No longer needed; concerns scripts that were replaced in Cloudstack 4.6.0

repo: dsclose/cloudstack


text:
Update Sponsors section

A new design has been created for the sponsors' section.

Implement the design using css-grids.
Make sure the entire section is responsive and the order of sponsors as per the design.
Abstract the section as much as possible so that it is not bound to a particular layout and is easily responsive.
size of the logos starts decreasing from the top.
Maintain the ratio for boxes of gamma and delta sponsors.
instead of just 2 in a row for delta, possibly have 3. the gamma box should be flexible and the number of sponsors in a row should adjust as per the width.
For mobile view, it should be one below the other.

Interested.

repo: dscnitrourkela/project-oregano


text:
Wake Word Training Environment Error

Good afternoon
When running specifying a wake word and then pressing the play button next to the code, I receive the following error:
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
[<ipython-input-14-1721e0af17a7>](https://localhost:8080/#) in <cell line: 45>()
     43                 )
     44
---> 45 text_to_speech(target_word)
     46 Audio("test_generation.wav", autoplay=True)

[<ipython-input-14-1721e0af17a7>](https://localhost:8080/#) in text_to_speech(text)
     35
     36 def text_to_speech(text):
---> 37     generate_samples(text = text,
     38                 max_samples=1,
     39                 length_scales=[1.1],

NameError: name 'generate_samples' is not defined

Attempted to reproduce the issue just now, but it seems to be working correctly.
Try restarting the Colab runtime and refreshing the page, and then try running the cell again.

Going to 'Edit' and clicking 'Clear All Outputs' fixed this issue.

repo: dscripka/openWakeWord


text:
Fixed list bug when displaying notifyOnSuccessFlag

Sorry missed updating the list format, didn't add an extra \t%v

Thanks, but I already fixed this!

repo: dshearer/jobber


text:
aggiornamenti-vari

Ho provato a portare avanti un po' tutti i progetti che stiamo seguendo.
Per lo più mi sto dedicando a seguire tutorial di Processing e a fare delle prove per utilizzare una world map al suo interno, con ancora scarsi risultati.
Fra oggi e domani continuo; in caso di sviluppi significativi farò una nuova pull request.
A domani!

@davideonestini prova a guardarti per bene questo video di shiffman (p5 non processing) https://www.youtube.com/watch?v=ZiYdOwOrGyc

authors: Fupete davideonestini


text:
Data point markers on maps should change color on score

Currently they're all set to always be green. They should determine their score based off the range in the legend and show the correct color.

This was fixed in PR #82


text:
Export TLB is drilling too deep in Assembly.

If you have a .NET COM library that references an COM Interop assembly, and try to export the TLB of your library, the exporter tries to export the interop assembly into the TLB.
For example, I have a .NET COM library that makes reference to an Interop with Excel and the TLB export fails because it tries to export the Excel interop and some GUID in the interop are the same, then it fails when trying to assign the GUID to a member or class.

Hi,
I'll try to take a closer look at your issue later, but it's likely that I will be a few days before I can get back to you because I have a some very busy days in the next days.
Maybe someone of the others here can help you faster.

Thanks for the reply.
If you guys need the assembly I'm working with, let me know.

You could try to generate the tlb with the option "--createmissingdependenttlbs false".
In this case dscom will not create any dependent tlb's.
dscom tlbexport yourassembly.dll --createmissingdependenttlbs false

@PaulStSmith
Does this help you and can we close the issue?

authors: PaulStSmith SOsterbrink marklechtermann

repo: dspace-group/dscom


text:
ckjm/wmc calculates method count, not weighted method count

Running ckjm for org.jfree.data.general.DatasetUtils (or any other class, https://github.com/jfree/jfreechart/blob/master/src/main/java/org/jfree/data/general/DatasetUtils.java)  it returns wmc=58, but running https://github.com/mauricioaniche/ck on source code, I get wmc=336 and it looks indeed more like complexity-weighted method count.
I can see cm.incWmc in https://github.com/jazzmuesli/ckjm/blob/master/src/gr/spinellis/ckjm/ClassVisitor.java  is called before visiting every method, but it doesn't do any complexity-counting.
Are there any plans to fix it - or is it by design?
Thanks for the tool!

WMC is calculated according to the Chidamber and Kemerer's assumption "If all method complexities are considered to be unity, then WMC = n, the number of methods."

authors: dspinellis jazzmuesli

repo: dspinellis/ckjm


text:
join ignores non-string delimiter

Example:
_.join([0,0], 0) == "000"
Lazy([0,0]).join(0) == "0,0"
In this example I would say that Lazy is silently "overruling" my request of using a non-string delimiter -- which I think is bad.
Also, I assume that it is preferable in general that Lazy behaves equivalently to lodash when the function names are equal, which is not the case here.

Without having looked at the code, my suspicion is this could be a bug with treating a falsey value as non-existent. What if you specify 1 as the delimiter instead of 0?

Yes that seems possible from my example.
But:
Lazy([0,0]).join(1); // 0,0
Lazy([1,2]).join(true); // 1,2

Good find!

authors: dtao excessivelyrigorous


text:
Issues while upgrading the package for Angular 6++?

Hi,
It's work perfect under v.6. But after moment update to latest version of Angular, issues happen with fs, crypto, stream and Buffer ... seems from Node libraries.
Does anyone have same issues and already solve it, please?
Thanks in advance.

Solved by using /browser instead of /lib ...
But need to be confirmed if its right.
Thanks.

It happens JQc is not defined
any ideas please ?

I am also struggling with that and looking for solutions.

I have some progress and I am working on a PR, but I am having issues.
Meanwhile here is what I found and the current status:

Angular 6 as described in https://github.com/angular/angular-cli/issues/9827#issuecomment-369578814 and the PR is https://github.com/angular/angular-cli/pull/9812 now requires browser specific builds of npm packages - so that they don't use nodejs specifics e.g. fs, net, etc. - this is why we need to use the browser/xlsx-populate* built files
there is a proper way using https://docs.npmjs.com/files/package.json#browser to point out the browser specialized built of the package, however due to https://github.com/browserify/browserify/issues/1746#issuecomment-389134320 I am having issues building the package
in addition the JQc is not defined is caused as pointed here https://github.com/dtjohnson/xlsx-populate/issues/124 by bug https://github.com/mishoo/UglifyJS2/issues/2783 and the browser/xlsx-populate* need to be rebuild with the new version of uglify-js - once done this would solve at least 2-3 opened issues here

Please try with v1.17.0. There is also a non-minified version available now.

I confirm the JQc is not defined problem is fixed with the new version, however I still had to point to the specific version of xlsx-populate that I wanted to use in my tsconfig.app.json like so:
{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "baseUrl": "./",
    "module": "es2015",
    "types": [],
    "paths": {
      "xlsx-populate": [
        "../node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.min.js"
      ]
    }
  },
  "angularCompilerOptions": {
    "preserveWhitespaces": true
  },
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ]
}

@trtin

Solved by using /browser instead of /lib

I am using angular 8. After add "../node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.min.js" to tsconfig.app.json, still same error:
ERROR in ./node_modules/xlsx-populate/lib/Workbook.js
Module not found: Error: Can't resolve 'fs' in '/Users/sonic/Documents/admin/node_modules/xlsx-populate/lib'
Thanks.

@smoke It solved the problem with angular not compiling, but it did mess up my type declarations :/

authors: Akxe dtjohnson smoke sonicwong tintran253 trtin

repo: dtjohnson/xlsx-populate


text:
Problem with implementing trait for async fns

I'm trying to implement trait with async fn for all async fns. Simplified example:
#[async_trait]
trait Trait {
    async fn run(&self);
}

#[async_trait]
impl<F, Fut> Trait for F
where
    F: Fn() -> Fut + Sync,
    Fut: Future<Output = ()> + Send,
{
    async fn run(&self) {
        self().await
    }
}

simplified `cargo expand`
trait Trait {
    fn run<'s, 'async_trait>(&'s self) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        's: 'async_trait,
        Self: 'async_trait;
}

impl<F, Fut> Trait for F
where
    F: Fn() -> Fut + Sync,
    Fut: Future<Output = ()> + Send,
{
    fn run<'s, 'async_trait>(&'s self) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        's: 'async_trait,
        Self: 'async_trait,
    {
        #[allow(clippy::used_underscore_binding)]
        async fn __run<F, Fut>(_self: &F)
        where
            F: Fn() -> Fut + Sync,
            Fut: Future<Output = ()> + Send,
        {
            _self().await
        }
        Box::pin(__run::<F, Fut>(self))
    }
}

But sadly, this doesn't work:
error[E0309]: the parameter type `Fut` may not live long enough
  --> src/lib.rs:16:1
   |
16 | #[async_trait]
   | ^^^^^^^^^^^^^^
17 | impl<F, Fut> Trait for F
   |         --- help: consider adding an explicit lifetime bound `Fut: 'async_trait`...
   |
note: ...so that the type `impl std::future::Future` will meet its required lifetime bounds
  --> src/lib.rs:16:1
   |
16 | #[async_trait]
   | ^^^^^^^^^^^^^^

error: aborting due to previous error

(adding Fut: 'async_trait is impossible because it leads to impl has stricter requirements than trait errors)
But with by-hand desugaring this implementation is possible:
impl<F, Fut> Trait for F
where
    F: Fn() -> Fut + Sync,
    Fut: Future<Output = ()> + Send,
{
    fn run<'s, 'async_trait>(&'s self) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        's: 'async_trait,
        Self: 'async_trait,
    {
        Box::pin(async move { self().await })
    }
}

#[test]
fn test() {
    let closure = || async { () };
    Trait::run(&closure);
}

So, my questions are:

Why the first implementation doesn't work, but the second does?
Is it possible to remove async move {} from the last example? (Box::pin(self()) leads to the same error the parameter type Fut may not live long enough)
Is it possible to write implementation like this, but without so much boilerplate?
Can async_trait to accept implementations like in the first example? (after some changes in how macro works)

This is a compiler limitation with how Output associated types of Fn-family traits are specified. One way to work around this it is to avoid Fn by using an equivalent blanket implemented trait that avoids the special Fn trait syntax.
use async_trait::async_trait;
use std::future::Future;

trait AnyFn {
    type Output;
    fn call(&self) -> Self::Output;
}

impl<F, T> AnyFn for F
where
    F: Fn() -> T,
{
    type Output = T;
    fn call(&self) -> Self::Output {
        self()
    }
}

#[async_trait]
trait Trait {
    async fn run(&self);
}

#[async_trait]
impl<F> Trait for F
where
    F: AnyFn + Sync,
    F::Output: Future<Output = ()> + Send,
{
    async fn run(&self) {
        self.call().await
    }
}

Thanks!
It's also worth noticing that this can be done throw #![feature(unboxed_closures)] and Fn<()>:
#![feature(unboxed_closures)]

#[async_trait]
trait Trait {
    async fn run(&self);
}

#[async_trait]
impl<F> Trait for F
where
    F: Fn<()> + Sync,
    F::Output: Future<Output = ()> + Send,
{
    async fn run(&self) {
        self().await
    }
}

I've just found out that in my code this doesn't work :(
Because

I have param in both Trait and F
I have a struct that also implements Trait

So my code produce the following error:
error[E0119]: conflicting implementations of trait `Trait<_>` for type `Run`:
  --> src/lib.rs:34:1
   |
22 | / impl<A, F> Trait<A> for F
23 | | where
24 | |     F: StableFn<A>,
25 | |     F::Output: Future<Output = ()>,
...  |
29 | |     }
30 | | }
   | |_- first implementation here
...
34 |   impl<A> Trait<A> for Run {
   |   ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Run`
   |
   = note: downstream crates may implement trait `StableFn<_>` for type `Run`

example on playground
However, unboxed Fn trait works (example on playground)
See also https://github.com/rust-lang/rust/issues/48869 and https://github.com/rust-lang/rust/issues/50238

= note: downstream crates may implement trait `StableFn<_>` for type `Run`

That's so crazy. :(

I'm having trouble making this solution work when using a borrowed argument as with:
[#async_trait]
trait Hello {
  async fn say_hi(&self, to_whom: &'_ str);
}

It seems no matter what I try I run into lifetime issues associated with to_whom that I can't satisfy.  This appears to be due to the fact that I'm needing to specify a constraint that to_whom must be bound to lifetime of the the returned Future but there's no syntax I can find to achieve this.  See my playground attempt here:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e77117e78782e90097105a9a943188f7
This rustc issue I filed may also be relevant: https://github.com/rust-lang/rust/issues/95182 as this is what's required to make it work without traits despite bizarre rustc error messages.

Closing as this is not going to be actionable in async-trait.

I'm having trouble making this solution work when using a borrowed argument as with:
[#async_trait]
trait Hello {
  async fn say_hi(&self, to_whom: &'_ str);
}

@jasta, it's more than a year later but I was also having trouble with this. It seems like it's possible if you make the AnyFn trait generic over the lifetime so you can ensure the lifetime of the input parameter and the lifetime of the resulting future the same.
Playground link of your code modified to compile.

authors: WaffleLapkin dtolnay jasta samvrlewis

repo: dtolnay/async-trait