feature request: scorecard result viewer should support a repo name option

So right now the viewer is opened with a link like this:
https://securityscorecards.dev/viewer/?platform=github.com&org=ossf&repo=scorecard
But it may nice to support something like one of these

https://securityscorecards.dev/viewer/github.com/ossf/scorecard
https://securityscorecards.dev/viewer/?uri=github.com/ossf/scorecard

The first option is something that would be done in our router config, but I wasn't able to get this working:
router: {
    extendRoutes(routes, resolve) {
      routes.push({
        path: '/viewer/:platform/:org/:repo',
        redirect: to => {
          return {
            path: '/viewer/',
            query: {
              platform: to.params.platform,
              org: to.params.org,
              repo: to.params.repo
            }
          }
        },
      },)
    }
  }

The second option could be done by modifying the static JS to include something like this somewhere:
[platform, org, repo] = params.uri.split('/')

https://securityscorecards.dev/viewer/?uri=github.com/ossf/scorecard

I'd be happy to take care of this one if you'd like :slightly_smiling_face:

Thanks!


[Monitor] Diagnostic settings commands

Description
Renaming the ServiceDiagnosticSettings operation to DiagnosticSettings operation and adding more functionality.

The new command will be backward compatible with the existing api /diagnosticSettings/service and will also works with /diagnosticSettings/{name}, where a generic name can be passed in.

Renaming ServiceBusRuleId to EventHubAuthorizationRuleId.

Accepting EventHubName to be defined

Adding List operation to diagnostic settings.

Adding operations to list diagnostic settings categories.

https://github.com/Azure/azure-rest-api-specs/pull/1613

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] I have read the contribution guidelines.
[ ] The pull request does not introduce breaking changes.

General Guidelines

[x] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[x] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[x] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[x] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

@shahabhijeet This seems to be a copy of my pull request which has already been merged.  There seems to be verbatim copies of my work with this pull request.


'event emitter' is working strange when build with --prod option.

Versions
Angular CLI: 1.6.2
Node: 8.9.0
OS: darwin x64
Angular: 4.4.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, tsc-wrapped

@angular/cli: 1.6.2
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.2
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.6.2
webpack: 3.10.0

Repro steps
* ng serve --prod OR ng build --prod

Observed behavior

There are 3 @Output.
Excute one of EventEmitter that I want to emit.
It emits other EventEmitter that placed on end of code.
EventEmitter that I want to emit is even not excuted.

child.component.ts
@Output() onSelectItem = new EventEmitter<any>();
@Output() onSelectAll = new EventEmitter<any>();
@Output() onPageChanged = new EventEmitter<any>();

selectItem(item) {
  this.onSelectItem.emit(item);  // emit this event.
}

parent.component.html
<app-child
      (onSelectItem)="onSelectItem($event)"
      (onSelectAll)="selectAllItems($event)"
      (onPageChanged)="listChanged($event)"></app-child>

parent.component.ts
onSelectItem($event) {
  console.log('onSelectItem');
}

selectAllItems($event) {
  console.log('onSelectAll');
}

listChanged($event) {
  console.log('listChanged');
}

result of output
listChanged

Desired behavior
It works well on dev environments.
It works strange only when I build with --prod option.
Mention any other details that might be useful (optional)
Below list are what I tried.

change all default prod options to dev options.
https://github.com/angular/angular-cli/wiki/build#--dev-vs---prod-builds
update UglifyJS version to 3.3.4
make new project with ng new command and to same thing like my project. (It works well.)
change order of event Emitters that I want to emit to end of code. (EventEmitter that placed end of code only works.)

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

I am having the same issue.


Add Slack badge to README

This PR adds the Slackin badge to the readme, which will make it easier to discover for people who want to get involved.

What's that 21/247 mean?

@segiddins means 21 people online out of 247 who are registered in the Slack.

This is good, thanks. @bundlerbot r+


feat: Support deselecting streams by default

Closes #1203

Surprisingly, test coverage didn't drop but I still want to add a few test cases


Missing fields

Some very important fields seem to be missing from the Handlebars templates, such as host and basePath.
Unless this is "a feature not a bug", I will add them and submit a pull request.

You are right. These fields are indeed missing. They weren't really important for my use-cases but they should be in there. PR is welcome. Would be great if a test-case was included.

I am wondering: I just made a commit for #52 and would make a release now. If you tell me that you have it done within the next our, I would defer the release until you are done, so you don't have to rebase everything again.

No, please go ahead. I'm writing a full API specification and I will add all the fields I find missing. PR will be coming in a few days (hopefully)

ok, fine. Thanks for your help.

Pull request https://github.com/bootprint/bootprint-openapi/pull/71 addresses this issue by adding basePath to the generated documentation. Host has been omitted, citing the design of Swagger UI as a design precedent.
If you still think the omission of host requires attention, please open a new issue.


Vanilla Javascript examples

A lightweight dependency injection container for TypeScript/JavaScript for constructor injection.

But I only see typescript examples and no javascript only example. Is it even possible to use it without typescript?

It's possible in JavaScript, but most likely not vanilla JavaScript.
Since decorators aren't part of the official JavaScript spec yet you would need to use something like https://babeljs.io/docs/en/babel-plugin-proposal-decorators.

what about the decorator pattern? you don't necessarily need the decorator notation.

To expand on my previous answer, this is possible in vanilla JS, but likely not worth the effort. Both TypeScript and the babel plugin will generate vanilla JS (which is the proof it's possible in vanilla JS). Manually writing the code to simulate the decorator syntax would add a lot of boilerplate to your project.
I'd love to see an example of what it would look like, but I feel that's beyond the scope of this project.


Display markers in the bucket UI

Is your proposal related to a problem?

There is no way to tell whether a block has been marked for deletion or no-compaction right now.
Describe the solution you'd like

Now the bucket UI displays the meta.json file for each block. Though deletion markers are not part of the meta.json file, we can add some additional information to that block or use even different colors to represent the state?
Thoughts? @onprem
Describe alternatives you've considered

(Write your answer here.)
Additional context

(Write your answer here.)

Yes, this is already planned as part of the LFX project going on.
cc @adzshaf

Still valid

Is this still in the works?


Proposed Marketing Committee meeting agenda for January-10-22

Meeting Details

Date/Time: January 10, 2022 @ 12:00pm PST / 8:00pm GMT
Location: Discord Voice Channel #Meeting-Room
Moderator: TBD
Note Taker: TBD

SIG Updates
Marketing Committee Dashboard added to repo.
Meeting Agenda
Marketing needs for 1/27 point release (21.11.2):

Blog posts
Site updates

o3de.org:

Site support needs (Server-based search, analytics)
Content performance tracking/reporting

Additional topics proposed below...
Outcomes from Discussion topics
TBD
Action Items
TBD
Open Discussion Items
TBD

I would like to discuss the release management process, and present this GHI issue which will be used to track the Marketing-related work.

We would also like to discuss the following:
Addressing social media complaints -
Many users are bringing up two major problems:

The fact the so-called "stable build" is not actually a stable build.
That bugs are being brought up (especially on the Discord) but O3DE isn't finding ways to discuss this or highlight this. The non-acknowledgement isn't helping the situation. It's frustrating and disheartening both current users and potential users alike.  We need a way to turn these lemons into lemonade by finding a constructive way to address these and make this part of a highlighted, collaborative effort as an open source engine.

Language clarity and expansiveness in responding to user questions -
Primarily a Discord observation:

We've observed that, if O3DE cannot currently perform some asked-about function, some leadership/moderator level folks on the Discord are simply answering with, "No." This is a complete sentence that shuts down any further discussion. Great for boundary setting; bad for engaging in open discourse, let alone user retention. "Can O3DE do XYZ yet?" shouldn't be given just a flat no but some sort of expansion answer such as, "No, not yet. But, this is a feature we are working on/will be launched in the future/we are working on an integration for."
-At ICC, we like to refer to this as soup example. "Would you like soup?" can be answered as "no" because

No, I already ate.
No, because my hands are full.
No, but I will later.
No, I don't like this soup.

Meeting occurred, closing as stale issue


release fixes

Reworked overview page
Fixed issue of group and item having the same label (e.g. Electricity the group & Electricity the fuel)
Fixed proportional values in Time Series tab
Tidied About tab

It's looking great! Just one small note: if we need the. navbar-brand-container in the future, we could introduce feature toggles, which allows us to switch features on and off, enabling quick testing of different navigation bar designs without making code changes.

I'm not sure I follow what you mean by this, could you elaborate?

I meant the one in the css file. But looks like it's an additional styling for the page title. Keeping it commented out make sense for future reference.


apktool decode with resources removes/moves files - crashes on runtime

Information

Apktool Version (apktool -version) - 2.3.4
Operating System (Mac, Linux, Windows) - Mac
APK From? (Playstore, ROM, Other) - Playstore

Stacktrace/Logcat
bin>apktool d /Volumes/Public/shaul/playstoreCityVelocity.apk
I: Using Apktool 2.3.4 on playstoreCityVelocity.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/gil/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
bin>apktool b playstoreCityVelocity -o build.apk
I: Using Apktool 2.3.4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Copying libs... (/kotlin)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...

Steps to Reproduce

apktool  d orginal.apk
apktool  b original -o apktooled.apk
Compare the unzipped original apk to the unzipped apktooled apk.
The file 'r' (is a png) doesn't appear. The files 'res/w' and 'res/6' appear under res/fonts/APKTOOL_DUMMYVAL_0x7f030000 and res/fonts/APKTOOL_DUMMYVAL_0x7f030001
Run the app and load the resource (need a username and password to reach the correct screen)

 E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.citi.icg.portal.mobile, PID: 26966
    android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class com.astuetz.PagerSlidingTabStrip
    Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class com.astuetz.PagerSlidingTabStrip
    Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Constructor.newInstance0(Native Method)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
        at android.view.LayoutInflater.createView(LayoutInflater.java:647)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
        at com.velocity.mobile.blotter.OrdersTabbedFragment.onCreateView(:59)
        at android.support.v4.app.Fragment.performCreateView(:2346)
        at android.support.v4.app.FragmentManagerImpl.moveToState(:1428)
        at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(:1759)
        at android.support.v4.app.FragmentManagerImpl.moveToState(:1827)
        at android.support.v4.app.BackStackRecord.executeOps(:797)
        at android.support.v4.app.FragmentManagerImpl.executeOps(:2596)
        at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(:2383)
        at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(:2338)
        at android.support.v4.app.FragmentManagerImpl.execSingleAction(:2215)
        at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(:649)
        at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(:167)
        at android.support.v4.view.ViewPager.populate(:1238)
        at android.support.v4.view.ViewPager.populate(:1086)
        at android.support.v4.view.ViewPager.onMeasure(:1616)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
        at android.view.View.measure(View.java:22071)
        at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
        at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
        at android.view.View.measure(View.java:22071)
        at android.support.v4.widget.DrawerLayout.onMeasure(:1059)
        at android.view.View.measure(View.java:22071)
        at android.support.v4.view.ViewPager.onMeasure(:1632)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:958)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:958)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
        at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
        at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
        at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
        at com.android.internal.policy.DecorView.onMeasure(DecorView.java:724)
        at android.view.View.measure(View.java:22071)
        at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2422)
        at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1504)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1761)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1392)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
        at android.view.Choreographer.doCallbacks(Choreographer.java:723)
        at android.view.Choreographer.doFrame(Choreographer.java:658)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: android.content.res.Resources$NotFoundException: Font resource ID #0x7f030000 could not be retrieved.
        at o.lq.z(:340)
        at o.lq.r(:205)
        at com.astuetz.PagerSlidingTabStrip.<init>(:172)
        at com.astuetz.PagerSlidingTabStrip.<init>(:117)
               ... 92 more

Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)
APK
If this APK can be freely shared, please upload/attach a link to it.
https://www.dropbox.com/s/1tx2uph1nenzkpx/playstoreCityVelocity.apk?dl=0
Questions to ask before submission

Have you tried apktool d, apktool b without changing anything? yes
If you are trying to install a modified apk, did you resign it? not relevant
Are you using the latest apktool version? yes

Interesting find. Will have just debug and see what is going on with that resource. I've seen strange cases where an asset exists in the structure, but has no mapping in the resource tree. Thus it isn't decoded and instead the suspected resource is found with an ID, but no corresponding resource (thus dummy resource)

Hi, we debugged it a bit and managed to unpack and repack the apk correctly when inserting a small change.
We found that some resources that are supposed to be strings, are assigned the wrong type (e.g. drawable).
We found that when we change files (on the open apk dir) that their names were only comprised of digits without an extension (e.g. 9, 55, etc), to a name that has at least one letter (we renamed all files and references to these files to apktool_9, apktool_55, etc), apktool managed to build the apk correctly.
Hope this helps

There is a scenario that causes a similar error.
When the App you want to disassemble consists of multiple APKs the resources might be split between them.
If you only install the base.apk after reassembly it will not work with this single apk. This is because the App has been deployed as app bundle. I assume. You need to fetch all of the applications apks and install them again with adb install-multiple *.apk  after proper signing.

https://play.google.com/store/apps/details?id=com.frzinapps.smsforward&hl=en&gl=US
I got the following error when changing the  package name,
`android.view.InflateException: Binary XML file line #2 in com.frzinapps.smsforward:layout/preference_widget_switch_compat: Binary XML file line #2 in com.frzinapps.smsforward:layout/preference_widget_switch_compat: Error inflating class androidx.appcompat.widget.SwitchCompat
                                                                                Caused by: android.view.InflateException: Binary XML file line #2 in com.frzinapps.smsforward:layout/preference_widget_switch_compat: Error inflating class androidx.appcompat.widget.SwitchCompat


Issues/#6492 performances

Moved from https://github.com/gravitee-io/gravitee-gateway/tree/issues/%236492-performances
⚠ see with @jhaeyaert. Not rebased because too many changes and therefore a risk of losing important things.
will have to be rebased on master. but be careful  the paths of the sources of the gateway are not the same anymore

Replace by https://github.com/gravitee-io/gravitee-api-management/pull/874


[<Firebase_Auth>] Unhandled Platform Exception Before Able to Catch SignInWithEmailAndPassword FirebaseAuthException

#3341 Relates to this.
Bug Description
I have just upgraded to the new FlutterFire library and am experiencing the above with the new version of firebase_auth (0.18.0+1), which did not occur  in the previous version I used (0.16.1).
Here is a code snippet of my email/password authentication method.
auth.User _user;
          try {
            _user = (await _firebaseAuth.signInWithEmailAndPassword(
              email: email,
              password: password,
            ))
                .user;
          } on auth.FirebaseAuthException catch (e) {
            printMessage("FirebaseAuthException code: ${e.code}",
                isErrorMessage: true);
            _determineErrorCode(e);
            _user = null;
          } on Exception catch (e) {
            printMessage("Exception code: ${e.toString()}",
                isErrorMessage: true);
            _determineErrorCode(e);
            _user = null;
          }

The problem is that a platform exception is being triggered immediately after the call to signInWithEmailAndPassword and before the  on auth.FirebaseAuthException catch (e) { block. The exception stops the code (unless I uncheck breakpoints,  unhandled exceptions in my VSCode debugger - I see from the issue referenced above that it worked in Android Studio but it is not clear if AS was set to trap unhandled errors. I don't know AS that well.)
The exception occurs at line 572 in C:\flutter\packages\flutter\lib\src\services\message_codecs.dart
if (errorCode is String && (errorMessage == null || errorMessage is String) && !buffer.hasRemaining)
line 572 =>      throw PlatformException(code: errorCode, message: errorMessage as String, details: errorDetails);
    else
      throw const FormatException('Invalid envelope');
  }

The error message thrown is:

Exception has occurred.
PlatformException (PlatformException(firebase_auth, com.google.firebase.auth.FirebaseAuthInvalidUserException: There is no
user record corresponding to this identifier. The user may have been deleted., {code: user-not-found, additionalData: {},
message: There is no user record corresponding to this identifier. The user may have been deleted.}))

This is called from line 361 in C:\flutter\packages\flutter\lib\src\services\platform_channel.dart
Future<Map<K, V>> invokeMapMethod<K, V>(String method, [ dynamic arguments ]) async {
line 361=>    final Map<dynamic, dynamic> result = await invokeMethod<Map<dynamic, dynamic>>(method, arguments);
    return result?.cast<K, V>();
  }

If I continue the code run then the FirebaseAuthException block processes the firebase exception correctly. Similarly, if I turn off the unhandled exceptions check, the platform error is not seen and the FirebaseAuthException block shows the correct error message.
Steps to Reproduce
Simply enter an non-existant or badly formatted email address, or an invalid password to an existing address as the parameters to the signInWithEmailAndPassword method and the platform error will occur.
Expected behavior
I would expect the platform error not to occur or to propagate the error correctly ie. to be handled.
Flutter doctor
flutter doctor -v
[√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.20206.1000], locale en-ZA)
• Flutter version 1.20.2 at C:\flutter
• Framework revision bbfbf1770c (3 weeks ago), 2020-08-13 08:33:09 -0700
• Engine revision 9d5b21729f
• Dart version 2.9.1
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at D:\Android\Sdk
• Platform android-30, build-tools 29.0.0
• ANDROID_HOME = D:\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.48.2)
• VS Code at C:\Users\dicki\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.14.0
[√] Connected device (1 available)
• AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!

Hi @GrahamDi,
I tried below code sample on latest dev and was able to see expected FirebaseAuthException, if I put an invalid email or password for signInWithEmailAndPassword() method.
void _signIn() async {
    try {
      User user = (await FirebaseAuth.instance.signInWithEmailAndPassword(
          email: _emailController.text, password: _passController.text)).user;
    }
    on FirebaseAuthException catch (e) {
      if (e.code == 'user-not-found') {
        print('No user found for that email.');
      } else if (e.code == 'wrong-password') {
        print('Wrong password provided for that user.');
      }
    }
  }

I/flutter ( 7067): No user found for that email.
I/flutter ( 7067): No user found for that email.

flutter doctor -v
[✓] Flutter: is fully installed. (Channel dev, 1.22.0-9.0.pre, on Mac OS X 10.15.2 19C57, locale
    en-US)
[!] Android toolchain - develop for Android devices: is partially installed; more components are
    available. (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS: is fully installed. (Xcode 11.6)
[✓] Chrome - develop for the web: is fully installed.
[✓] Android Studio: is fully installed. (version 3.6)
[✓] Connected device: is fully installed. (5 available)

I followed this example.  Can you try same and see if it works for you ?
Thanks.

@darshankawar
Hi,
Did you run this in VSCode in debug mode and was the Uncaught Exceptions box in the Breakpoints section ticked?

@GrahamDi,
You are correct. I tried it on AS, since I don't have VSCode.

@darshankawar
Ok, will someone else be able to check this issue using VSCode?

@GrahamDi,
let me try on VSCode.

@GrahamDi,
On latest master in VSCode, unable to see the exception:

code sample
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter_signin_button/flutter_signin_button.dart';
import './register_page.dart';
import './signin_page.dart';Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: Container(
          child: Text('Hello World'),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () async => _signIn(),
      ),
    );
  }  void _signIn() async {
    try {
      User user = (await FirebaseAuth.instance.signInWithEmailAndPassword(
              email<EMAIL_ADDRESS>password: '123456'))
          .user;
    } on FirebaseAuthException catch (e) {
      if (e.code == 'user-not-found') {
        print('No user found for that email.');
      } else if (e.code == 'wrong-password') {
        print('Wrong password provided for that user.');
      }
    }
  }
}

@darshankawar
That's very strange. I'm still seeing it with Flutter Channel stable, 1.20.3  and Dart 2.9.2
I will try and do some more investigation when I get time. Guess you may as well close this.

@GrahamDi what version of firebase_auth are you on, you skipped a section on the issue template:
### Flutter dependencies

Run `flutter pub deps -- --style=compact` and paste the output below:

<details><summary>Click To Expand</summary>

```
PASTE OUTPUT INSIDE HERE
```

</details>

@Salakar
Hi Mike,
Yeah I did skip that...sorry.
Here is the output:
flutter pub deps -- --style=compact
Dart SDK 2.9.2
Flutter SDK 1.20.3
sailorboy 1.0.0+8

dependencies:
- auto_size_text 2.1.0 [flutter]
- basic_utils 2.6.2 [http logging json_annotation pointycastle asn1lib convert crypto]
- cached_network_image 2.3.1 [flutter flutter_cache_manager octo_image]
- catcher 0.3.19 [flutter flutter_web_plugins fluttertoast device_info package_info mailer dio flutter_mailer logging sentry]
- flutter_geofire 1.0.3 [flutter]
- flutter_localizations 0.0.0 [flutter intl characters collection meta path typed_data vector_math]
- flutter_native_splash 0.1.9 [yaml image color]
- flutter_spinkit 4.1.2+1 [flutter]
- flutter_splash_screen 0.1.0 [flutter]
- flutter_staggered_grid_view 0.3.2 [flutter]
- flutter_typeahead 1.8.8 [flutter flutter_keyboard_visibility]
- fluttertoast 7.0.4 [flutter flutter_web_plugins]
- geocoding 1.0.3 [flutter geocoding_platform_interface url_launcher]
- geolocator 6.0.0+2 [flutter geolocator_platform_interface]
- get_it 4.0.4 [async meta]
- google_sign_in 4.5.3 [google_sign_in_platform_interface flutter meta google_sign_in_web]
- http 0.12.2 [http_parser path pedantic]
- image_downloader 0.20.0 [flutter]
- image_picker 0.6.7+7 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- in_app_purchase 0.3.4+5 [async collection flutter json_annotation meta]
- package_info 0.4.3 [flutter]
- permission_handler 5.0.1+1 [flutter meta permission_handler_platform_interface]
- recase 3.0.0
- rflutter_alert 1.0.3 [flutter]
- rxdart 0.24.1
- scoped_model 1.0.1 [flutter]
- shared_preferences 0.5.10 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web]
- string_validator 0.1.4
- tuple 1.0.3 [quiver]
- url_launcher 5.5.2 [flutter url_launcher_platform_interface url_launcher_web url_launcher_linux url_launcher_macos]
- yaml2podo 0.1.26 [args analyzer build dart_style path yaml]

dev dependencies:
- effective_dart 1.2.4
- flutter_driver 0.0.0 [file json_rpc_2 meta path web_socket_channel vm_service_client webdriver flutter flutter_test fuchsia_remote_debug_protocol archive args async boolean_selector characters charcode clock collection convert crypto fake_async intl matcher platform process pub_semver source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math]
- flutter_launcher_icons 0.7.5 [image args yaml]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
- test 1.15.2 [analyzer async boolean_selector coverage http http_multi_server io js node_preamble package_config path pedantic pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core]

transitive dependencies:
- _fe_analyzer_shared 7.0.0 [meta]
- analyzer 0.39.17 [_fe_analyzer_shared args charcode cli_util collection convert crypto glob html meta package_config path pub_semver source_span watcher yaml]
- archive 2.0.13 [crypto args path]
- args 1.6.0
- asn1lib 0.6.5
- async 2.4.2 [collection]
- boolean_selector 2.0.0 [source_span string_scanner]
- build 1.3.0 [analyzer async convert crypto logging meta path glob]
- characters 1.0.0
- charcode 1.1.3
- cli_util 0.2.0 [path]
- clock 1.0.1 [meta]
- cloud_functions_platform_interface 2.0.0 [flutter meta firebase_core plugin_platform_interface]
- cloud_functions_web 2.0.0 [cloud_functions_platform_interface flutter flutter_web_plugins firebase http_parser meta]
- collection 1.14.13
- color 2.1.1
- connectivity_for_web 0.3.1+2 [connectivity_platform_interface flutter_web_plugins flutter]
- connectivity_macos 0.1.0+4 [flutter]
- connectivity_platform_interface 1.0.6 [flutter meta plugin_platform_interface]
- convert 2.1.1 [charcode typed_data]
- coverage 0.14.0 [args logging package_config path source_maps stack_trace vm_service]
- crypto 2.1.5 [collection convert typed_data]
- csslib 0.16.2 [source_span]
- dart_style 1.3.6 [analyzer args path source_span]
- device_info_platform_interface 1.0.0 [flutter meta plugin_platform_interface]
- dio 3.0.10 [http_parser path]
- fake_async 1.1.0 [clock collection]
- file 5.2.1 [intl meta path]
- firebase 7.3.0 [http http_parser js]
- firebase_analytics_platform_interface 1.0.3 [flutter meta]
- firebase_analytics_web 0.1.1 [flutter flutter_web_plugins firebase firebase_analytics_platform_interface meta]
- firebase_auth_platform_interface 2.0.1 [flutter meta firebase_core plugin_platform_interface]
- firebase_auth_web 0.3.0+1 [flutter flutter_web_plugins firebase meta http_parser intl firebase_core firebase_auth_platform_interface js]
- firebase_core_platform_interface 2.0.0 [flutter meta plugin_platform_interface quiver]
- firebase_core_web 0.2.0 [firebase firebase_core_platform_interface flutter flutter_web_plugins meta js]
- flutter_blurhash 0.5.0 [flutter meta]
- flutter_keyboard_visibility 3.2.2 [flutter]
- flutter_mailer 0.5.1 [flutter]
- flutter_plugin_android_lifecycle 1.0.8 [flutter]
- flutter_web_plugins 0.0.0 [flutter characters collection meta typed_data vector_math]
- fuchsia_remote_debug_protocol 0.0.0 [json_rpc_2 process web_socket_channel flutter_test flutter_driver archive args async boolean_selector charcode clock collection convert crypto fake_async file intl matcher meta path platform pub_semver source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math vm_service_client webdriver]
- geocoding_platform_interface 1.0.0+3 [flutter meta plugin_platform_interface]
- geolocator_platform_interface 1.0.4 [flutter meta plugin_platform_interface vector_math]
- glob 1.2.0 [async collection node_io path pedantic string_scanner]
- google_sign_in_platform_interface 1.1.2 [flutter meta quiver]
- google_sign_in_web 0.9.1+1 [google_sign_in_platform_interface flutter flutter_web_plugins meta js]
- html 0.14.0+3 [csslib source_span]
- http_multi_server 2.2.0 [async]
- http_parser 3.1.4 [charcode collection source_span string_scanner typed_data]
- image 2.1.14 [archive xml]
- image_picker_platform_interface 1.1.0 [flutter meta http plugin_platform_interface]
- intl 0.16.1 [path]
- io 0.3.4 [charcode meta path string_scanner]
- js 0.6.2
- json_annotation 3.0.1
- json_rpc_2 2.2.1 [stack_trace stream_channel]
- logging 0.11.4
- mailer 3.0.4 [async logging intl mime path pedantic]
- matcher 0.12.8 [stack_trace]
- meta 1.1.8
- mime 0.9.7
- node_interop 1.1.1 [js]
- node_io 1.1.1 [node_interop path]
- node_preamble 1.4.12
- octo_image 0.2.1 [flutter flutter_blurhash]
- package_config 1.9.3 [path charcode]
- path 1.7.0
- path_provider 1.6.14 [flutter path_provider_platform_interface path_provider_macos path_provider_linux]
- path_provider_linux 0.0.1+2 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 0.0.4+3 [flutter]
- path_provider_platform_interface 1.0.3 [flutter meta platform plugin_platform_interface]
- pedantic 1.9.0
- permission_handler_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- petitparser 3.0.4 [meta]
- platform 2.2.1
- platform_detect 1.4.0 [meta pub_semver]
- plugin_platform_interface 1.0.2 [meta]
- pointycastle 1.0.2
- pool 1.4.0 [async stack_trace]
- process 3.0.13 [file intl meta path platform]
- pub_semver 1.4.4 [collection]
- quiver 2.1.3 [matcher meta]
- sentry 3.0.1 [http meta stack_trace usage pedantic]
- shared_preferences_linux 0.0.2+2 [file flutter meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 0.0.1+10 [shared_preferences_platform_interface flutter]
- shared_preferences_platform_interface 1.0.4 [meta flutter]
- shared_preferences_web 0.1.2+7 [shared_preferences_platform_interface flutter flutter_web_plugins meta]
- shelf 0.7.9 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 2.0.0 [path shelf shelf_static]
- shelf_static 0.2.8 [convert http_parser mime path shelf]
- shelf_web_socket 0.2.3 [shelf web_socket_channel stream_channel]
- sky_engine 0.0.99
- source_map_stack_trace 2.0.0 [path stack_trace source_maps]
- source_maps 0.10.9 [source_span]
- source_span 1.7.0 [charcode collection meta path term_glyph]
- sqflite 1.3.1+1 [flutter sqflite_common path]
- sqflite_common 1.0.2+1 [synchronized path meta]
- stack_trace 1.9.5 [path]
- stream_channel 2.0.0 [async]
- string_scanner 1.0.5 [charcode meta source_span]
- sync_http 0.2.0
- synchronized 2.2.0+2
- term_glyph 1.1.0
- test_api 0.2.17 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- test_core 0.3.10 [analyzer async args boolean_selector collection coverage glob io meta package_config path pedantic pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml matcher test_api]
- typed_data 1.2.0 [collection]
- url_launcher_linux 0.0.1+1 [flutter]
- url_launcher_macos 0.0.1+7 [flutter]
- url_launcher_platform_interface 1.0.8 [flutter meta plugin_platform_interface]
- url_launcher_web 0.1.3 [url_launcher_platform_interface platform_detect flutter flutter_web_plugins meta]
- usage 3.4.2 [path]
- uuid 2.2.2 [crypto convert]
- vector_math 2.0.8
- vm_service 4.2.0 [meta]
- vm_service_client 0.2.6+2 [async collection json_rpc_2 pub_semver source_span stack_trace stream_channel web_socket_channel]
- watcher 0.9.7+15 [async path pedantic]
- web_socket_channel 1.1.0 [async crypto stream_channel]
- webdriver 2.1.2 [archive matcher path stack_trace sync_http]
- webkit_inspection_protocol 0.7.3 [logging]
- xdg_directories 0.1.0 [path process flutter]
- xml 4.2.0 [collection convert meta petitparser]
- yaml 2.2.1 [charcode collection string_scanner source_span]

Flutter Doctor latest:
flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.20206.1000], locale en-ZA)
• Flutter version 1.20.3 at C:\flutter
• Framework revision 216dee60c0 (6 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at D:\Android\Sdk
• Platform android-30, build-tools 29.0.0
• ANDROID_HOME = D:\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.48.2)
• VS Code at C:\Users\dicki\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.14.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.

i Think I have same issue with this
I use VS Code, but it happen at reauthenticateWithCredential
I did post issue at https://github.com/FirebaseExtended/flutterfire/issues/3488

I just Debug with Android Studio and this issue occur
PlatformException(firebase_auth, com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The password is invalid ..
Message_codecs.dart
if ((errorCode is String) && (errorMessage == null || errorMessage is String) && !buffer.hasRemaining)
throw PlatformException(code: errorCode, message: errorMessage as String, details: errorDetails);
may be your (Firebase Auth) Error Class is not Inherit from Platform Exception so it cant throw Platform Exception or something like that

@jhandaya @Salakar @darshankawar This is the same platform exception at the same place that I am seeing and that stops my code before on FirebaseAuthException traps anything.

Yes - getting the same Platform Exception after updating - I get this error when running flutter pub deps -- --style=compact
flutter pub deps -- --style=compact
Could not find a file named "pubspec.yaml" in "C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.14.0+2".
pub finished with exit code 66

I am able to replicate this issue on latest stable (1.20.3) while debugging signInWithEmailAndPassword() method from firebase_auth's official example in Android Studio on Android device 8.1.0.

Steps to replicate:

Run firebase_auth official example plugin.
Tap on Test SignIn/SignOut.
Put debugger on void _signInWithEmailAndPassword() method and run in debug mode.
Enter valid email and invalid password and hit submit.
Debug the method and observe that it throws PlatformException, as shown in screenshots above.

This is still a major issue - is there any update?

this the problem This problem continues to appear, in the previous version 0.16 there is no problem, in 0.18 it also presents me with this error, the solution in my case was to use version 0.16

this the problem This problem continues to appear, in the previous version 0.16 there is no problem, in 0.18 it also presents me with this error, the solution in my case was to use version 0.16

I have  rolled back to v 0.16 and still face a PlatformException on Flutter 1.20.3 - which version of Flutter are you running?

@darshankawar  As there are no updates on this issue: Is this something that is worked on? Or waiting for more details?
This seems to be a rather major issue because the exception is not catchable and apps are crashing on simple errors (like 'wrong-password')

I'm still having this issue as well. Can't catch any errors around creating and signing in to accounts.

@darshankawar
Would be nice to have an idea of what the likely next steps are and some idea of when. I see no one is assigned to this yet.

So I guess this is an oversight of internally throwing an exception internally, and expecting the error to be caught (handled) in user-land code.
I'll pick this one up next week - it's somehow being classes as unhandled even after being wrapped in a try-catch.
I suspect this comment is the same/similar issue with async/awaits.

Much appreciated. When you sort it out, please would you let us know how it should have been handled in 'userland' ie.why my try/catch, which does have async/await, did not pick it up. Thanks a lot.

This issue is also very relevant: https://github.com/flutter/flutter/issues/33427
TLDR: This is a wider issue than this repo, however there is something which seems to pop up and that's when try/catch is used alongside a Future .catchError. I wonder whether wrapping the method channel calls within a try/catch and throwing will "fix" the issue. I'll have a dig into it and see what I come up with.

Thanks for the other link, I hadn't spotted it. Also, having read through it I am sure I have also experienced 'sporadic' uncaught errors on flutter cached network image, which I see is mentioned, and other things and that I thought I should have trapped. Looks like there is something more fundamental going wrong here. Hope you can find it.

Sorry if this does not go where its supposed to, I'm still new to GitHub. Reading through, I've understood that using firebase_auth 0.16.1 will not end up with this exception going uncaught. Unfortunately, I don't have a week, I'm just a college student and my deadline is 3 days. I just wanted to know if my issue will be fixed if I use the previous version, and if someone has a link to it's documentation, I would be eternally in your favour

Hi,
From what I am seeing, this issue causes a problem when debugging the app
in Android Studio or VSCode and when uncaught exception tracking is turned
on. When I run a release version on my phone the app behaves normally and I
trap eg. a bad password or an invalid email address. So, I assume for your
deadline you will be using a release version? Hence, there should be no
problem.
Hope that helps.
Krgrds, Graham
On Fri, 25 Sep 2020, 20:29 ananth-hegde<EMAIL_ADDRESS>wrote:

Sorry if this does not go where its supposed to, I'm still new to GitHub.
Reading through, I've understood that using firebase_auth 0.16.1 will not
end up with this exception going uncaught. Unfortunately, I don't have a
week, I'm just a college student and my deadline is 3 days. I just wanted
to know if my issue will be fixed if I use the previous version, and if
someone has a link to it's documentation, I would be eternally in your
favour
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FirebaseExtended/flutterfire/issues/3475#issuecomment-699085069,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHVES4ES3OVT74HZ6RRNRGLSHTOPFANCNFSM4Q4OFOMQ
.

Hey,
Thanks a lot. I'll be using a release version, yes. So I'll just need to catch it as a PlatformException or will it be covered under my FirebaseAuthException? Just need to know where the snackbar needs to be displayed.

So, at the moment I am throwing the kitchen sink at it because of the
strange uncaught exception. My try catch has: on PlatformException, on
FirebaseAuthException,
and on Exception / simple catch. I just make sure whichever block triggers,
it provides an error message /code back to my UI so that I can show an
error dialogue.
Krgrds, Graham
On Fri, 25 Sep 2020, 21:17 ananth-hegde<EMAIL_ADDRESS>wrote:

Hey,
Thanks a lot. I'll be using a release version, yes. So I'll just need to
catch it as a PlatformException or will it be covered under my
FirebaseAuthException? Just need to know where the snackbar needs to be
displayed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FirebaseExtended/flutterfire/issues/3475#issuecomment-699108217,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHVES4GJ7Y5OBLWYEUHV3XTSHTUFJANCNFSM4Q4OFOMQ
.

I'll do the same, just put the scaffold in both places and let the flutter gods take the wheel. Thanks a lot for your inputs, I've been grappling with this for the last 2 days and just came to know its not an error on my part.

Glad I could help. Good luck with your deadline and results. Let me know
how it goes....and enjoy Flutter!
Krgrds, Graham
On Fri, 25 Sep 2020, 21:48 ananth-hegde<EMAIL_ADDRESS>wrote:

I'll do the same, just put the scaffold in both places and let the flutter
gods take the wheel. Thanks a lot for your inputs, I've been grappling with
this for the last 2 days and just came to know its not an error on my part.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FirebaseExtended/flutterfire/issues/3475#issuecomment-699121695,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHVES4HWZ6LUYP6AZ3GLRW3SHTXYDANCNFSM4Q4OFOMQ
.

Yeah the issue here is with your IDEs handling exceptions (thinking its uncaught), so will be fine in prod, it's just an annoyance to deal with whilst testing.

I just wanted to know if my issue will be fixed if I use the previous version, and if someone has a link to it's documentation, I would be eternally in your favour

No docs exist before the current version sorry!

Ok managed to replicate and "fix".
https://github.com/flutter/flutter/issues/33427 pretty much sums up the overall issue (news to me!). Basically the .catchError statements within a try/catch aren't seen as a parent exception handler to the IDE so although Dart actually catches the error and deals with it (the reason why using the code without debugging works), the IDE kicks up a fuss.
I just converted everything to try/catch, and explicitly throw an exception.
Need to sort for the other plugins but if anyone can test my PR via pubspec git hash please do!

Thanks, @Ehesp!
I just upgraded to the latest version again and experiencing the bug as well. Now I wanted to test your PR, but I am unsure if I configured the pubspec right for the package:
  #firebase_auth: "0.18.0+1" # Upgrade as soon as this is fixed https://github.com/FirebaseExtended/flutterfire/issues/3475
  firebase_auth:
    git:
      url: git@github.com:FirebaseExtended/flutterfire.git
      ref: fix-3475
      path: 'packages/firebase_auth/firebase_auth'

Is this correct?

I think ref should be 7303514b501809431773cccec7ea0c0ba114529f, not sure if you need path either.

Okay – I set path because if I don't I get the following error
Could not find a file named "pubspec.yaml" in git@github.com:FirebaseExtended/flutterfire.git 7303514b501809431773cccec7ea0c0ba114529f.
pub get failed (1; Could not find a file named "pubspec.yaml" in git@github.com:FirebaseExtended/flutterfire.git

Which I think is correct because the pubspec is in the sub-folder of the package (packages/firebase_auth/firebase_auth)

I still have this issue, did you get it solved?

This is not a problem with the firebaseAuth library but with your editor or IDE

@andresluna17 Not true. Read https://github.com/FirebaseExtended/flutterfire/issues/3475#issuecomment-701233145

any news on this?


Fix unstable functional test, closes #847

/cc @inikulin @georgiy-abbasov
Sometimes the DOMContentLoaded event raises too late, as a result the iframe is empty when we are going to click inside it

@AlexanderMoskovkin Seems like we have opposite results

nope. I've forgotten to update callsites.

FPR

@testcafe-build-bot \retest

FPR

@AlexanderMoskovkin Let's run it one more time, to ensure that it fixes instability
@testcafe-build-bot \retest

@testcafe-build-bot \retest

failed on iOS. Will be investigated

@testcafe-build-bot \retest

@testcafe-build-bot \retest

functional tests are ok (task was failed because of unstable qunit).
The PR is approved by @VasilyStrelyaev
/cc @helen-dikareva @georgiy-abbasov

@AlexanderMoskovkin Can you elaborate please on how it fixes issue with tests? Also, as far as I understand skipScrolling is not a part of public API, but it's in options object that contains only public API options. I believe we should move it to other parameters object

rebase will be required

@inikulin

Can you elaborate please on how it fixes issue with tests?

Oh, yes, I've forgotten to explain this. I've changed the test page markup to fix it. But this helped me to find a new issue (#847). So this pull request contains page markup changing to fix the unstable test and fix for the #847

@AlexanderMoskovkin Can we add code comment that explains why we need to disable scrolling with reference to the issue? Because it's not quite clear from code, so let's take care of future us.

@AlexanderMoskovkin, just rebase on master

/cc @VasilyStrelyaev please, check the comment

FPR

FPR
/cc @georgiy-abbasov


UI - add user menu

UI will display a user that is signed in and a menu with options

Is this done?


Variables cleanup & README colors

a little bit cleaner readme (now with colors!)
removed variables which are defined in vars but used only once or never to increase readability
rename (now empty) files with variables related to specific OS family. Use lowercase naming.

Oh, I forgot, can you update the example playbook to match the new style.


sample data wrong for Ascii85 decode?

I was using your test data for Ascii85Decode to test my Java implementation (I found no other test data).
While the first sample ("Man is distinguished") decoded OK, the second sample ("pleasure.") was decoded as "pleasure-".
Could you please verify that the data is correct? For me "E,9)oF*2M7/d~>" decodes to "pleasure.", but not "E,9)oF*2M7/c~>".

The test cases are actually taken from the wikipedia page on Ascii85.  I believe it's correct.
The second test case has input that is not a multiple of 5, so it's trying to exercise that bit of logic at the ending.  You're supposed to continue to accumulate as if you saw more 'u' characters (value 84) until you get a complete multiple of 5.  Then convert to 4 bytes as you normally would, then remove as many bytes as you had to add padding 'u' on the input.  It sounds like you're close, since you have the correct number of characters in the output.  But perhaps you've got an off-by-one somewhere, since "-" is the character immediately before ".".

I noticed that you seem to use a different algorithm for the last incomplete group-of-4: You seem to fill in ones (b = b*85+84), while the Adobe PDF specs says zeroes are filled in ("If the length of the binary data to be encoded is not a multiple of 4 bytes, the last, partial group of 4 is used to produce a last, partial group of 5 output characters. Given n  (1, 2, or 3) bytes of binary data, the encoder first appends 4−n  zero bytes to make a complete group of 4").
So for my modified example using "E,9)oF*2M7/d~>" the last two characters before the end mark build 1257 (14 * 85 + 67) (0x4e9), and that value multiplied by 85^3 makes 771955125 (0x2e0319b5). So obviously for me, "0x2e" is '.'
With the data from wikipedia the values are (14 * 85 + 66) (0x4e8), and that value multiplied by 85^3 makes 2df9bac8, resulting in a minus ('-'). Where is the mistake?


Mods during/after install/upgrade

Came across a situation today (SanfordLP.DYMOConnect) where the winget install spawned process exits and another process continues the installation making the check for installed application fail.
Same situation/solution as when uninstalling with Winget-Install (add an -installed script after the installation check and wait for the new spawned process in the -install script before the installation check is done)
The same must be done in Winget-Install! https://github.com/Romanitho/Winget-Install/issues/69#issue-1473097408

On it 🤣

Now solved in #232


Ability to specify finetuned model in the Gradio app

Hello,
I've come to this repo recently, so apologies if I've missed something here.
Things sound great, although I'm currently doing some finetuning tests from the original f5tts checkpoint with the gradio finetuning app.
One feature that would be great is an ability to specify a custom checkpoint in the gradio_app.py if possible, maybe in the advanced settings?
That way a finetuned checkpoint can be used more easily.
If this feature is already available, do please let me know and thank you again for your work so far on this.
Thanks in advance.

https://github.com/SWivid/F5-TTS/blob/32c3ee77017d728321ffaa5d10e9f9f6cd44f20d/gradio_app.py#L48
Could temporarily change str(cached_path("hf://SWivid/F5-TTS/F5TTS_Base/model_1200000.safetensors") to `<YOUR_CKPT>.
Maybe someone to add an on-the-fly selection feature to gradio, welcome PR

@danielw97 check new update in gradio finetune now you can change the model you want https://github.com/SWivid/F5-TTS/discussions/143

will close as solved, feel free to open if further questions

will close as solved, feel free to open if further questions


Randomly assigned

Hi Weilong,
Thanks for putting BSseeker2 up, this is a just wonderful tool!
Comparing the BAM files generated by BSseeker2 starting from paired-end reads, with the ones generated with another program  (methylpy), I see that BSseeker2 manage to map reads to transposons present in several highly similar copies in the genome, whereas methylpy does not.
Since BSseeker2 and methylpy both use bowtie2 to align, and since (if I understand correctly) both programs only work with uniquely-mapped reads by default, I am wondering why I observe such difference.
Could you help?

I did not read the code of methpy.
Do you have simulation data to show which software run with higher accuracy for mapping?
Best,
Weilong

Hi,
No I did not make simulations. I've run both BSseeker2 and methylpy in parallel on the same paired-end data, and I observe mapping differences along transposons that are present in highly similar copies in the genomes. Below is an IGV snapshot centered on such a transposon, the top track is the output of methylpy, bottom track the output of BSseeker2:

If I blast reads that have been mapped by BSseeker2 and not by methylpy, I see that they map identically to several identical transposon copies.
Therefore, I think that BSseeker2 retain (at least some) reads mapping to multiple hits. Maybe those reads are then randomly assigned to the different identical hits.
Is that correct?

Hi @olmath ,
Thanks for your reports.
Actually, BS-Seeker2 is strict in choosing best unique hits. You can read our paper (BMC Genomics, 2013) and found that we report at least 2 best hits from two strands alignment, and then calculate the best unique hits finally. From our simulation data, the mapping accuracy is as high as >99%. Thus, I don't think there are randomly assigned reads in BS-Seeker2 pipeline.
Actually, I have done lots of REPEATS regions study in human and mouse (http://www.nature.com/articles/srep32207)[http://www.nature.com/articles/srep32207], where the TE regions also have lots of well-mapped reads.
For the other software you mentioned, I have never use it, and would not make any comment on it. Maybe an advantage of BS-Seeker2 is that its mappability is higher.
Best,
Weilong


Decide on git requirement

Since I've already hit some git compatibility issues during development, it would be good to:

Decide the minimum version of Git that gg requires
Run tests on the old version and a modern version

I decided on 2.7.4 because it was the version available in Xenial, Ubuntu's latest LTS.  Seems awfully old, though (2016-03-17).


Remove unecessary clientParams type

the type ClientParams was used nowhere and added a useless complexity to the types.
paginationTotalHits is not added in the SearchContext as it is added in, and used from the PaginationContext
Types are also re-ordered in order to get the mandatory fields at the top and the optional after them

bors merge


test: Migrate Vault Tests to Jest

Instructions

PR target branch should be against development
PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

Migrate Vault Tests to Jest

Testing Plan

[ ] Was this tested locally? If not, explain why.
N/A - This is only a migration of tests

Reference Issue (For mParticle employees only.  Ignore if you are an outside contributor)

Closes https://go.mparticle.com/work/SQDSDKS-5331

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Use correct syntax for comparing numbers

I noticed that some of the chapters didn't have the links to the next chapter. I analyzed the chapters that did versus the chapters that didn't and came across the annoying thing about some number sorting operations. For example, 10 is greater than 1 but also greater than 2 because the system is first comparing the first numbers and then the second.
One way to override this is to add 0 before 1, 2, 3, etc. but that's not really reader-friendly. However, I did find a way to do it (thanks Stackflow). Bash script documentation says that the operators -gt and -lt are preferred to > and < unless you're using parentheses instead of brackets and some other blah blah blah stuff.
Anyway, I fixed it on my side so I thought it wouldn't hurt to send a pull request to help anyone else who came across that issue.

Thanks you for contributing!


SpriteAnimationWidget bug with cleared cache

Current bug behavior
When you have a SpriteAnimationWidget (which loads a sprite from the assets/images) and call Flame.images.clearCache();, it throws an error in the new page
The following assertion was thrown during paint():
'dart:ui/painting.dart': Failed assertion: line 6011 pos 12: '<optimized out>': is not true.

Expected behavior
I expect it to cache the image again (when it doesn't exist in the cache)
Steps to reproduce

Create two separate pages
Add SpriteAnimationWidget which loads a specific sprite from assets/images in both pages
Call Flame.images.clearCache(); in the page1.onDispose();
Add a button in page1 which opens page2
Click on the button in page1 to go to the page2
You will see the exception in our logs

Check this reproducible code in zapp
Flutter doctor output
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64, locale en-US)
    • Flutter version 3.13.9 on channel stable at /Users/neo/Dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (11 days ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/neo/Library/Android/sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = /Users/neo/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

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

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

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/neo/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.10406996/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /Users/neo/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Community Edition (version 2023.1.4)
    • IntelliJ at /Users/neo/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/231.9225.16/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Community Edition (version 2023.2)
    • IntelliJ at /Users/neo/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/232.8660.185/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.4)
    • IntelliJ at /Users/neo/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9225.16/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /Users/neo/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/232.8660.185/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.105

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

• No issues found!

More environment information
* Flame version: 1.10.1
* Platform tested: macos, iPhone

Log information
======== Exception caught by rendering library =====================================================
The following assertion was thrown during paint():
'dart:ui/painting.dart': Failed assertion: line 6011 pos 12: '<optimized out>': is not true.

The relevant error-causing widget was:
  SpriteAnimationWidget SpriteAnimationWidget:file:///Users/neo/IdeaProjects/flame_sprite_animation_widget_bug/lib/main.dart:97:44
When the exception was thrown, this was the stack:
#2      _NativeCanvas.drawImageRect (dart:ui/painting.dart:6011:12)
#3      Sprite.render (package:flame/src/sprite.dart:121:12)
#4      SpritePainter.paint (package:flame/src/widgets/sprite_painter.dart:36:15)
#5      RenderCustomPaint._paintWithPainter (package:flutter/src/rendering/custom_paint.dart:573:13)
#6      RenderCustomPaint.paint (package:flutter/src/rendering/custom_paint.dart:615:7)
#7      RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#8      PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#9      RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:13)
#10     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#11     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#12     RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2875:15)
#13     RenderFlex.paint (package:flutter/src/rendering/flex.dart:1040:7)
#14     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#15     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#16     RenderShiftedBox.paint (package:flutter/src/rendering/shifted_box.dart:74:15)
#17     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#18     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#19     RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2875:15)
#20     RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:410:5)
#21     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#22     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#23     RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:13)
#24     _RenderInkFeatures.paint (package:flutter/src/material/material.dart:664:11)
#25     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#26     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#27     RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:13)
#28     RenderPhysicalModel.paint.<anonymous closure> (package:flutter/src/rendering/proxy_box.dart:2049:15)
#29     PaintingContext.pushClipRRect (package:flutter/src/rendering/object.dart:561:14)
#30     RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:2036:21)
#31     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#32     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#33     RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:13)
#34     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#35     PaintingContext.paintChild (package:flutter/src/rendering/object.dart:252:13)
#36     RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:13)
#37     RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3155:7)
#38     PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:168:11)
#39     PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:111:5)
#40     PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:1144:31)
#41     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:496:19)
#42     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:918:13)
#43     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:360:5)
#44     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1297:15)
#45     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1227:9)
#46     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1085:5)
#47     _invoke (dart:ui/hooks.dart:170:13)
#48     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:401:5)
#49     _drawFrame (dart:ui/hooks.dart:140:31)
(elided 2 frames from class _AssertionError)
The following RenderObject was being processed when the exception was fired: RenderCustomPaint#87fbd
...  parentData: <none> (can use size)
...  constraints: BoxConstraints(w=32.0, h=32.0)
...  size: Size(32.0, 32.0)
...  painter: SpritePainter#f7a3e()
RenderObject: RenderCustomPaint#87fbd
  parentData: <none> (can use size)
  constraints: BoxConstraints(w=32.0, h=32.0)
  size: Size(32.0, 32.0)
  painter: SpritePainter#f7a3e()
====================================================================================================

Could you share a link to a repository with the code instead?
Zapp doesn't support the version of Flutter that Flame requires.

Sure!
This is the repository.

Ah right, this is not Flame's fault, this is just how the lifecycle of the widgets work:
https://stackoverflow.com/questions/67741637/how-to-ensure-dispose-will-be-called-before-new-widgets-initstate

A work-around could be to cache the image in the state instead of in the global image cache.

Oh, you're right.
So I will close this issue.
Thanks for your hint!


great idea for the warning!

This few lines here:
if (process.env.NODE_ENV !== "production") {
                const check = mapStateRef.current(state);
                if (!is(check, res)) {
                    console.warn(
                        "useMapState returns new identity on every run. This causes the component to render on every Redux state change. Consider use using useSelect().",
                        res,
                    );
                }
            }

this is so so excellent. You have saved me so much time. It cought every single place I mistankely was returning new identities and/or in general misconfiguring stuff. I know you are sort of using this as a prototyping for official redux hooks, so I just want to encourage you that this sort of warning is also included there.

Thanks! Appreciate the feedback. Need to add this for useSelect too.
And add component stack traces once React.warn() ships: https://github.com/facebook/react/pull/15170

Oh, just be clear I'm not an author of react-redux. I've contributed to it few times but I have no direct influence on its API design.
But feedback like this can of course influence @markerikson and other authors indirectly.
The hooks api discussion is over here https://github.com/reduxjs/react-redux/issues/1179


FYI: Also Conflicts with BuildingMoreDense by jinxOAO

I suppose any mod that modifies the hitboxes would cause issues with this mod.
This mod completely disables your mod.

fixed in 1.0.4. thanks.


Datagrid: sticky column placement issue

What package(s) are you using?

[X] Carbon for IBM Products (or Carbon for IBM Cloud & Cognitive)
[ ] Legacy/CDAI
[ ] Legacy/Security

Detailed description

Describe in detail the issue you're having.

In the Row action button story, there is a slight layout issue with the left positioning of the sticky column.

Is this issue related to a specific component?

Datagrid

What did you expect to happen? What happened instead? What would you like to
see changed?

The left value of the sticky column when it does not have a checkbox/radio button in the row should be 0.

What browser are you working in?

Chrome

What version of the @carbon/ibm-products (or @carbon/ibm-cloud-cognitive)
package are you using?

Latest

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

N/A
Steps to reproduce the issue

See storybook
Scroll horizontally and see the sticky column placement is not correct

Additional information
Issue is within useStickyColumn.js

Complete


Breaks over 800 Songs

Thumbnail Manager seems to be unable to handle over 800 songs.

Were you able to catch any errors/stack traces?


format_value: catch BaseException

Ref: https://github.com/Qix-/better-exceptions/issues/85#issuecomment-489930136

OTOH this would also swallow KeyboardInterrupt then.. which might be problematic if there's some infinite loop in multiple repr's - not sure if this is good.

OTOH this would also swallow KeyboardInterrupt then.. which might be problematic if there's some infinite loop in multiple repr's - not sure if this is good.

This is indeed problematic. Wouldn't it be okay to check if it's a KeyboardInterrupt exception?

Ok, we could change it to raise KeyboardInterrupt still - is that what you mean?

Yeah, I think something like this should work:
# ....
except KeyboardInterrupt:
    raise

Cool, amended.

Yeah I think this looks okay. @Delgan any objections?

@Qix- Yeah, this looks fine. :)
The standard library doesn't even bother with KeyboardInterupt, but do catch BaseException, so this is a welcome improvement.

Great :)


url_launcher does not work for flutter web

I was working on a package
https://pub.dev/packages/oauth2
This oauth2 package is marked web on pub.dev
However, this package uses url_launcher, and url_launcher does not work with web
If you look at the oauth2 package and attempt to run the example via
flutter run -d chrome,
You'll see that the code hangs in the canLaunch(url) code in lib/oauth.dart
    if (await canLaunch(url)) {
      await launch(url);
    } else {
      throw 'Could not launch $url';
    }
  }

The function never returns.

Not sure if this is https://github.com/flutter/flutter/issues/33126 since that has like no information about what "can't use" means.

Thanks @jmagman.  Yes this issue definitely seems related. I'm more concerned that the oauth2 package is tagged with web on pub.dev and it simply won't work without modifications to it.  I was able to make the oauth2 package work by not using url_launcher package in the code that I pointed out above.

To follow up, I am experiencing this issue too with the latest version of the plugin (v5.2.5). The plugin works with v5.2.4 for me. Possibly related to https://github.com/flutter/plugins/pull/2232
Error:
Overflow on channel: flutter/platform.  Messages on this channel are being discarded in FIFO fashion.  The engine may not be running or you need to adjust the buffer size if of the channel

Uncaught MissingPluginException(No implementation found for method launch on channel plugins.flutter.io/url_launcher)
    at Object.c (https://flutter-dashboard.appspot.com/v2/main.dart.js:1690:3)
    at https://flutter-dashboard.appspot.com/v2/main.dart.js:34043:20
    at SC.a (https://flutter-dashboard.appspot.com/v2/main.dart.js:2561:71)
    at SC.$2 (https://flutter-dashboard.appspot.com/v2/main.dart.js:18702:23)
    at S0.$1 (https://flutter-dashboard.appspot.com/v2/main.dart.js:18694:30)
    at Qt.tj (https://flutter-dashboard.appspot.com/v2/main.dart.js:19646:40)
    at Qt.ja (https://flutter-dashboard.appspot.com/v2/main.dart.js:19648:30)
    at OE.$0 (https://flutter-dashboard.appspot.com/v2/main.dart.js:19049:13)
    at Object.jy (https://flutter-dashboard.appspot.com/v2/main.dart.js:2678:41)
    at N.jz (https://flutter-dashboard.appspot.com/v2/main.dart.js:18965:3)

/cc @hterkelsen @gaaclarke

@c-p-i-o Try the instructions here to enable url_launcher for the web: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_web

Thanks @hterkelsen for the suggestion.
I don't directly use url_launcher.  I was hoping to use oauth2 package - which in turn uses url_launcher.  I attempted to do the following by adding a direct url_launcher_web dependency in my pubspec.yaml but it didn't work:
  oauth2: ^1.4.0
  url_launcher: ^5.2.5
  url_launcher_web:
    git:
      url: git://github.com/flutter/plugins.git
      path: packages/url_launcher/url_launcher_web

Perhaps I'm doing something wrong?  I'll keep on trying to see if I can get this to work.

Closing as a duplicate of https://github.com/flutter/flutter/issues/33126


Refine route rule sorting

Solve Question mentioned in Issue: #8 #7

@iyangsj Please review the codes.


Handles virtualenv of not installed, self-compiled Python versions

What does this PR do?
This PR allows Nuitka to work with virtualenvs created from not-installed, self-compiled Python version on Unix systems (tested and works on macOS).
Why was it initiated? Any relevant Issues?
This PR is related to issue #2611.
PR Checklist

[x] Correct base branch selected? Should be develop branch.
[x] Enabled commit hook or executed ./bin/autoformat-nuitka-source.
[x] All tests still pass. Check the Developer Manual about Running the Tests. There are GitHub
Actions tests that cover the most important things however, and you are welcome to rely on those,
but they might not cover enough.
[ ] Ideally new features or fixed regressions ought to be covered via new tests.
[ ] Ideally new or changed features have documentation updates.

NOTE: I successfully ran all the tests on Linux. On macOS they fail (either on my branch and on develop):
+Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

One merged, I will retry with Windows and see how that helps. The detection of the PythonXY.LIB file kind of does similar things, but probably can be made into redundant code with a correct Python prefix. We might be able to drop the os.name exclusion, but I like it for now until it's also attempted.

Looks like it can be 1.9 material to me right now, going to merge it to stable.

I updated as requested :)

Good job, I will actually benefit from this, since so far, when I (very rarely) did try to debug things by changing Python source code, I had to do an install step, that made things more clumsy, but now I expect it to work well.
I am however sceptical that your macOS build will work well for loading extension modules with Nuitka compiled binaries. I have seen problems with that, and mean to extract from somewhere what the proper way is. Ideally on macOS, and I do not know if it's possible, also it would be good to avoid "Python" as a DLL for macOS, for smaller deployments, and just generally because there is no real need for it, at least on Linux that works very well. I know on Windows DLL is required there, but I would assume that is not the case on macOS or is it.
Anyway, I will try it on Linux, and probably even merge to the next hotfix, as it seems very harmless, even if not super urgent stuff.


Update cpp-and-python.md

These were two minor changes to the code required to compile the examples.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/python/cpp-and-python.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks!


Clean outdated files

Clean all outdated files

delete all outdated files. e.g., Extended ... files. Only one file is maintained (i.e., KeyFieldIterator)
update several functionalities: cohort selection, cohort analysis, funnel analysis, and so on
temporarily disable queryserver module.
find one error in the code. Please check issue https://github.com/COOL-cohort/COOL/issues/119
add two attributes (i.e., queryName and inputCohort) into the file.
cohort results are stored in the folder named by the queryName
add two more queries to test the inputCohort
small modifications on other files.

Attention: query server has been temporality disabled for further development.

Tag the old version.


Reasoning behind using the '_' character as a prefix for Better Enum functions

Why is Better Enums using the underscore character '_' as a prefix for all functions? It is forbid in the global namespace by the C++ standard only and I think Better Enums only uses this in the better_enum namespace, so it should be no problem. Nonetheless I ask myself what the intention behind that naming convention is.
Isn't Channel::from_string("Blue") more readable than Channel::_from_string("Blue")?

MSDN:

The first character of an identifier must be an alphabetic character, either uppercase or lowercase, or an underscore ( _ ). Because C++ identifiers are case sensitive, fileName is different from FileName.

Additional resource: https://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

Doh, I did not see http://aantron.github.io/better-enums/DesignDecisionsFAQ.html, so nevermind. Your library is awesome.


Export IDE auxiliary files to WebChucK format

Include all auxiliary files (.csv, .wav, .ck) from IDE to WebChucK as a .zip
Files will be preloaded into the filenamesToPreload array
feature request from @cchafe

This feature has been implemented on the dev branch, looking to release it in the next IDE release


incorrect selection displayed when use as data range for one datepicker

--- Steps to Reproduce: ---
use date picker as "Data range for one datepicker", see examples on reactdatepicker.com
select range from Nov. 1st to Nov. 10th
--- Actual Result: ---
date range from 1/11 to 10/11 is selected
plus
in any other month the last day of the data range (10th)
--- Expected Result: ---
only range from 1/11 to 10/11 should be selected
--- Workaround: ---
n.a.
--- Performance Impact: ---
just a display issue, startDate and endDate are set correctly
--- Environment Details: ---
react-datepicker 3.30

Hi @Mattervispa,
I have the same issue. Did you find a solution?
Thanks!

This dirty CSS quick fix solved it for me:
.react-datepicker__month-container
.react-datepicker__day--range-end.react-datepicker__day--keyboard-selected {
background-color: #216ba5;
color: #fff;
}
.react-datepicker__month-container .react-datepicker__day--keyboard-selected {
background-color: white;
color: #000;
}
.react-datepicker__month-container .react-datepicker__day--keyboard-selected:focus {
background-color: #216ba5;
color: #fff;
}
.react-datepicker__month-container .react-datepicker__day--keyboard-selected:hover {
background-color: #f0f0f0;
}

Hi @kenobivan
Thank you for publishing the fix. The selectors are working fine for me. At the end I just use these ones:
.react-datepicker__month-container .react-datepicker__day--keyboard-selected {
  background-color: white;
  color: #000;
}
.react-datepicker__month-container .react-datepicker__day--keyboard-selected:hover {
  background-color: #f0f0f0;
  color: #000;
}

still not fixed in 4.7.0, see https://reactdatepicker.com/#example-date-range-for-one-datepicker

You have to see highlight for .react-datepicker__day--keyboard-selected.
as workaround - you can disable keyboard navigation by adding prop


Why the input dimension of D is 100?

in the code we have "d_input_size = 100", which is very strange, the input dimension of the discriminator should be same as the output dimension of the generator, which is 1

Take a look at these comments on the blog post:
https://medium.com/@JordanEvanCampbell/hi-thanks-for-the-great-intro-2cbafeb27e6a
https://medium.com/@devnag/its-actually-not-quite-vanilla-gan-because-of-the-batching-d-input-size-100-that-allows-d-to-4f0a2199b17b

I see, thanks~


Issue upgrading

I'm getting the error:
Failed to find dependencies: JSON::Fast:ver<0.19>:auth<cpan:TIMOTIMO>
when trying:
zef upgrade App::Rak
Doing:
zef search JSON::Fast
Doesn't show a version 0.19 of JSON::Fast
rak --version
rak - provided by App::Rak 0.2.17, running Raku 6.d with Rakudo 2022.12

https://raku.land/cpan:TIMOTIMO/JSON::Fast shows JSON::Fast to be at 0.19 ?

Must be an issue with my setup. Will have to have a deeper look - just goes to 0.17 in my zef search

What does zef install --verbose 'JSON::Fast:auth<cpan:TIMOTIMO>:ver<0.19>' say?

Also perhaps: zef uninstall JSON::Fast and then try installing it again?

No candidates found matching identity: JSON::Fast:ver<0.19>:auth<cpan:TIMOTIMO>
And it's installing 0.17 again. Must be an issue at my end.

This is an issue with something else and not sure what, so closing this issue. I downloaded JSON::Fast directly from https://raku.land/cpan:TIMOTIMO/JSON::Fast and installed from the download and the upgrade went fine.


[Question] round time down using snapToTime

Good morning, I am working with the "day" view on Vuecal, with :time-step = "15" :snap-to-time = "15" and @cell-click to create the event. The problem I am having is example:
When I click inside a cell for example between 10:00 and 10:15. If I click before arriving at 10:15 it rounds me up to 10:15 when I would need to continue taking the 10:00. Is there any way that I can adjust this so that if I click anywhere in the cell I get the time the cell starts?
I hope the query is understood and thank you

I use this to achieve the same on method:

    const minutes = date.formatDate(event.start, 'mm')
    let roundedMinutes = (Math.round(minutes / 15) * 15) % 60
    roundedMinutes = minutes < 8 ? '0' : roundedMinutes
    const roundedStart = date.adjustDate(event.start, { minutes: roundedMinutes })

I am using Quasar utils to format dates but it should be clear even if you are not familiar with it.

Thanks for the information! I'm going to try it!!

@juanmarinelli And please close the issue if this was resolved by the suggestion.

Closing due to inactivity. please reopen if not solved.


Bump yarn for client

@HerringtonDarkholme So the right way to publish it is to publish server as npm module, and update client dependency and publish it...Right?

@octref  Exactly.
I'll try to write it in an npm script.


[Snyk] Security upgrade node from 18.15-bullseye-slim to 18.16.1-bullseye-slim

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile

We recommend upgrading to node:18.16.1-bullseye-slim, as this image has only 50 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

514
Denial of Service (DoS) SNYK-UPSTREAM-NODE-5741792
No Known Exploit

621
HTTP Request Smuggling SNYK-UPSTREAM-NODE-5741793
Proof of Concept

614
Prototype Pollution SNYK-UPSTREAM-NODE-5741794
No Known Exploit

514
Inconsistency Between Implementation and Documented Design SNYK-UPSTREAM-NODE-5741796
No Known Exploit

614
Denial of Service (DoS) SNYK-UPSTREAM-NODE-5741889
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Prototype Pollution
🦉 Denial of Service (DoS)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
101

Relevant Lines:
101

💛  - Coveralls


build: upgrade akka

Thanks for the review. Yes, I would like to try to upgrade to Scala 2.13.2 in another PR.


Why not Svelte?

🚀 Feature request
Vue, React, Solid, why not Svelte?

Hi @frederikhors,
The only thing holding us back from support Svelte is https://github.com/sveltejs/svelte/issues/5112
An important aspect of Zag is that we manage the event handlers internally and provide a way for users to simply spread it unto the elements. Svelte doesn't support events in spread props just yet.
When it does, we'll add support for it.

Can we leave this open?

Can we leave this open?

Yeah sure

Nope


Error generate by run.py

I want to Retrain the YOLO model for vehicle detection(car,bus,truck.motorcycle)
When I run the train.py it genrate error
Error
python3 train.py
Using TensorFlow backend.
2018-10-03 14:01:38.993405: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: FMA
Create YOLOv3 model with 9 anchors and 20 classes.
Traceback (most recent call last):
File "train.py", line 190, in
_main()
File "train.py", line 33, in _main
freeze_body=2, weights_path='model_data/yolo_weights.h5') # make sure you know what you freeze
File "train.py", line 120, in create_model
model_body.load_weights(weights_path, by_name=True, skip_mismatch=True)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/network.py", line 1152, in load_weights
with h5py.File(filepath, mode='r') as f:
File "/usr/local/lib/python3.5/dist-packages/h5py/_hl/files.py", line 312, in init
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "/usr/local/lib/python3.5/dist-packages/h5py/_hl/files.py", line 142, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 78, in h5py.h5f.open
OSError: Unable to open file (unable to open file: name = 'model_data/yolo_weights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

I have the same problem did you fix it?

your convert file is named 'yolo.h5 '.So change the filename.


Apple Watch is Supported

Just thought I should let you know, I'm using this library for a WatchKit app and it works fantastically. Close this as you wish :P

congrats you made it to the testimonials :) https://github.com/nst/STTwitter/blob/master/README.md#testimonials


⚠ Mobitopup has degraded performance

In 76d6ce4, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3023 ms

Resolved: Mobitopup performance has improved in f98a114 after 55 minutes.


[BUG] WhenNavigatedFrom not being called

Describe the bug

WhenNavigatedFrom does not get called.  It was reported by @albilaga on slack.  The transcript is below.
https://reactivex.slack.com/archives/CSBSJK50W/p1593198000000900
Steps To Reproduce

Inherit from INavigable
Implement WhenNavigatedFrom
Navigate from that page.

Expected behavior

WhenNavigatedFrom is called.
Screenshots

Environment

OS:       iOS
Device:   iPhoneSimulator 11 Pro Max
Version:   13.5
Working Version:

Additional context

So it seems explicitly calling the ParameterViewStackService will surface the WhenNavigatedFrom correctly.  The problem comes in where the Platform back button is pressed.  It doesn't call the navigation service and we respond to it in the ViewStackServiceBase.


useTransition is ignoring trail property for enter

🐛 Bug Report
When using using useTransition the trail parameter is being ignored in the enter animation. Is only being applied on leave or update. I believe this has to do with a line of code in the diff props function that subtract the trail value from itself making it equal to 0, look here: https://github.com/react-spring/react-spring/blob/master/src/useTransition.js#L200.
To Reproduce
Create any transition using useTransition and apply a visually significant trail, 5000ms for example.
Expected behavior
The expected behavior according the docs is that trails should be added to enter, leave and update properties.
Link to repro (highly encouraged)
https://codesandbox.io/s/messagehub-6n9bc
Environment

react-spring v8.05 and greater
react v16.3.1

The trail property of useTransition only affects items that were added in the same render.


x/sys/unix: Missing constants for fadvise() for Linux/arm

This is a followup-issue for #15114, which added constants for the Fadvise() syscall for amd64 and 386 on Linux. I discovered that the constants are also missing for Linux/arm. For all the other architectures they are there, only arm is missing.
I've tried running mkall.sh but this fails:
$ GOOS=linux GOARCH=arm ./mkall.sh
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?
fork/exec /tmp/go-build154582490/command-line-arguments/_obj/exe/mkpost: exec format error

Is mkall.sh supposed to be run on the target architecture?
I propose adding the constants FADV_* manually to ztypes_linux_arm.go, the constants are the same: https://github.com/thorvalds/linux/blob/master/include/uapi/linux/fadvise.h
Would a CL which adds the constants manually be accepted?
Could you please advise me how to add the constants for Linux on arm?

Would a CL which adds the constants manually be accepted?

That adds maintenance pain for everybody in the future when your manual edits would keep getting auto-removed, and people would have to keep manually adding them back.
Related: #15282
/cc @ianlancetaylor

Ok, I understand. If there is anything I can do to help (at least anything that's not "refactor this all"), please let me know.

Actually, let's just separate out the hand-written files. As long as you don't manually touch the machine-generated ones we should be fine.
Feel free to send CLs adding to or creating syscall_linux_arm64.go or whatever the manual files are.

That would work for now, adding the constants manually to a new file types_linux_arm.go. But since types_linux.go contains the FADV_* constants, the next time mkall.sh is run for/on Linux/arm, they will also be written to ztypes_linux_arm.go and the code won't compile any more.
In order to mitigate this, the constants need to be removed from types_linux.go (the "template") and ztypes_*.go.
I'd really like to solve my problem here, but I don't that this is a good idea.
How is mkall.sh supposed to work? Is it required to execute it on the target platform?

You shouldn't need to change types_linux.go or add types_linux_arm.go.  Just run mkall.sh on a ARM GNU/Linux system.  Then manually revert the unrelated changes.

Ok, I'll see if I can get access to some box on ARM.

Submitted as https://go-review.googlesource.com/31641