HOTFIX: skip listOffsets request for newly created changelog topics

This seems to be the final piece in the EosBetaUpgradeTest flakiness puzzle. From time to time the listOffsets request would fail during the initial startup rebalance, causing a probing rebalance to be scheduled for 10 min later (rather than immediately after). The assignor was newly creating the changelogs and then almost immediately calling listOffsets which then failed as the internal topics were not yet ready.
To avoid this race condition, we keep track of which changelogs we just created and skip fetching the end offsets for them. If a changelog did not exist before this moment, we can safely assume that its end offset is zero.

call for review any of @guozhangwang @vvcephei  @cadonna  @mjsax

Retest this please

@mjsax addressed your comments and added a unit test to verify that we don't ask the admin client to request offsets for newly created topics

Retest this please

Retest this please

Retest this please.

Retest this please.

Nooooooo EosBetaUpgradeIntegrationTest.shouldUpgradeFromEosAlphaToEosBeta[true] still had one failure on the Java 8 build 😭
But it failed on a different line which seems more in line with real flakiness. FWIW I ran this locally 40 times without failures (technically 80 in total for both true/false variations) ... I think it's worth still merging this PR and we can continue investigating it from there.
java.lang.AssertionError: Did not receive all 20 records from topic multiPartitionOutputTopic within 60000 ms
Expected: is a value equal to or greater than <20>
     but: <5> was less than <20>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.apache.kafka.streams.integration.utils.IntegrationTestUtils.lambda$waitUntilMinKeyValueRecordsReceived$1(IntegrationTestUtils.java:563)
	at org.apache.kafka.test.TestUtils.retryOnExceptionWithTimeout(TestUtils.java:429)
	at org.apache.kafka.test.TestUtils.retryOnExceptionWithTimeout(TestUtils.java:397)
	at org.apache.kafka.streams.integration.utils.IntegrationTestUtils.waitUntilMinKeyValueRecordsReceived(IntegrationTestUtils.java:559)
	at org.apache.kafka.streams.integration.utils.IntegrationTestUtils.waitUntilMinKeyValueRecordsReceived(IntegrationTestUtils.java:530)
	at org.apache.kafka.streams.integration.EosBetaUpgradeIntegrationTest.readResult(EosBetaUpgradeIntegrationTest.java:973)
	at org.apache.kafka.streams.integration.EosBetaUpgradeIntegrationTest.verifyCommitted(EosBetaUpgradeIntegrationTest.java:961)
	at org.apache.kafka.streams.integration.EosBetaUpgradeIntegrationTest.shouldUpgradeFromEosAlphaToEosBeta(EosBetaUpgradeIntegrationTest.java:427)

Retest this please.

Retest this please.

Java 14 build passed, Java 8 din't build due to
11:29:13 # There is insufficient memory for the Java Runtime Environment to continue.
11:29:13 # Cannot create GC thread. Out of system resources.

Thanks, @ableegoldman !


[BEAM-4536] Remove with_attributes keyword from ReadFromPubSub.

BEAM-4536: with_attributes is broken for Dataflow. This commit removes
the feature for the 2.5.0 release of Beam.

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

R: @chamikaramj

LGTM. Waiting for tests to pass to merge.


fix(scroll): allow feed scrolling from anywhere on the page

Currently you need the cursor on the middle pane, or on the left with a "bumpy" feel, this allows scrolling the feed anywhere on the page
https://user-images.githubusercontent.com/76502841/212569674-a57dabc8-39cb-4b3a-8496-00c9677f731b.mp4

hey there! this is awesome thank you. always wanted to do this but wasn't sure of the best way. would you mind allowing me to edit your branch? the messages page is not displaying correctly with this config and need to fix it.
also we should be able to remove the event listener that is attached to the left drawer now right (in MainLayout.vue)?

Yes of course, edits by maintainers is on you can push changes, I didn't see that event listener there


Not able to find the styles.css

Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/create
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Looks like we are not able to find the styles.css
Windows 10 Enterprise, Microsoft Visual Studio Enterprise 2022

Looks like this might be an issue when having a space in the project name.

Created a new project with no spaces in the project name and it worked as expected.

Thanks for letting us know. We're trying to understand why folks are running into this issue and you might have given us a clue.
?cc @danroth27


chore: add check for allowance and approve transaction for erc20

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Support for API 21 and latest gradle and android gradle plugin

I started small contribution and found that project still use RC for API 2, older gradle and android gradle plugin

You is right, everything goes well if I switch from com.android.support:appcompat-v7:21.+ to com.android.support:appcompat-v7:20.+
Right now gradle build doesn't run if we use appcompat version 21.+ and assertj-android together.

This is fixed.


Bug: Blank Scheduler

Issue https://github.com/emccode/polly/issues/34: If schedulers is nil or initialized of size 0, dont set.

[Current coverage][cc-pull] is 71.90%

Merging [#55][cc-pull] into [master][cc-base-branch] will increase coverage by +<.01%

@@             master        #55   diff @@
==========================================
  Files             6          6
  Lines           483        484     +1
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            347        348     +1
  Misses           89         89
  Partials         47         47

Powered by Codecov. Last updated by [61b3d9b...8aa1b78][cc-compare]
[cc-base-branch]: https://codecov.io/gh/emccode/polly/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/emccode/polly/compare/61b3d9b64409201dba117697da66b7b5732fe2e8...8aa1b78fa93b9f5551c2076d901308591936d7c0
[cc-pull]: https://codecov.io/gh/emccode/polly/pull/55?src=pr


Looking up an exported function by name in CAPI

Hello, I've been going through the C Hello World embed and I've seen that in order to get an exported function from wasm, you get it by an index:
wasm_extern_vec_t externs;
wasm_instance_exports(instance, &externs);
assert(externs.size == 1);
wasm_func_t *run = wasm_extern_as_func(externs.data[0]);

Is there a possibility that I can lookup the function using it's name, run for example?

Currently this can't be directly done with one function, but you can match up the list returned by wasm_module_exports with the list returned by wasm_instance_exports to get the name of each item.

@alexcrichton Thanks for the answer. Would it be possible for you to write an example on the matter please?


Screenshot mode is broken

Using the (new to Quantum, aka 57+) screenshot tool from the awesomebar (icon in the URL bar, or in its overflow menu) causes the page to turn completely black, making precise selection of screenshots impossible.
Selecting the screenshot feature

Black background
(In this screenshot, the grey rectangle is the element which the screenshot would be cropped to.)

Correct implementation
The correct implementation has a greyed out background for the out of bounds area and the selected area shows up without a screen. (I'll have to remove the theme and restart Firefox to get a screenshot of the screenshot tool in action.)

Correct: Hover
When the element is hovered, it is still screened, but not as much as the rest of the background:

Correct: Active
When the element is clicked, it looks like this (fully visible, with handles around it to adjust):

This is because userContent.css overrides Firefox' default page background color:
*|*:root {
	--in-content-page-background: #2e3436 !important;
}

I haven't added a userContent.css file for the light variant yet (it's a bit more tricky since @import doesn't work due to a bug in Electrolysis: https://bugzilla.mozilla.org/show_bug.cgi?id=1416184), so you might as well just delete that file if you're using the light variant. I see the screenshot tool injects a bunch of iframes into the document and they inherit that page background color too. Also I noticed uBlock's element picker has the same problem.
The fix for uBlock is easy, but not for the screenshot tool. I don't see a way to blacklist a specific extension since its ID changes every update and Firefox doesn't support the :has pseudo-class yet, so all I can do is use this regexp: /^moz-extension://.+/blank.html$/ to exclude the screenshot tool's iframe page and hope it doesn't match other extensions.
Anyway, it should be working now. Thanks for reporting this bug and including all those screenshots.


Scalers for Azure Function Apps running under AKS are not really supported - although the documentation make it seem like they

Report
So have a function app and deploy it to aks via .yaml file using the func tooling as follows:
func kubernetes deploy --name processtransaction --registry blah --dry-run >deploy-processtransaction.yaml
Below is an excerpt of the .yaml produced, here are the myriad of problems:

There is no timertrigger scaler support in keda
There is no durable function/orchestration support, and here I'm making some assumptions, if I was designing scaler support for Function apps, it would have to know whether a long-running orchestration has completed or not. i.e. before you can scale down you have to know whether the orchestration has completed or not.
The documentation gives you the impression that Azure function apps are supported: https://learn.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda
The tooling gives you the impression that scaling is supported, i.e. why would the tooling create a timertrigger if it wasn't supported by keda (either by built-in or external scaler)

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: procreqs
  labels: {}
spec:
  scaleTargetRef:
    name: procreqs
  triggers:
  - type: cosmosdbtrigger
    metadata:
      connection: CosmosConnection
      leaseContainerName: leases
      leaseContainerPrefix: '%AZURE_FUNCTIONS_ENVIRONMENT%'
      containerName: ProcessingRequest
      databaseName: FundraisingGateway
      leaseDatabaseName: FundraisingGateway
  - type: timertrigger
    metadata:
      schedule: 0 0 0/1 * * *
  - type: timertrigger
    metadata:
      schedule: 0 10/20 * * * *
---

Expected Behavior

that scaling is supported under aks, and that orchestrations are part of that support. i.e. I would guess that 90% of fn apps use orchestration.

that the documentation is improved and mentions orchestrations and the support (or lack thereof) for orchestrations. Orchestrations to me are a show stopper as basically in my mind scaling doesn't work unless it supports orchestrations.

If you really do not support scaling to not have the tooling generate stuff like timertrigger as I'm sure this has sent many a deleloper like myself down a black hole either thinking that scaling is supported (when its not) or trying to fix (the unfixable). Note that I may not have made the decision to convert my fn app to run under aks without proper scaler support.

Provide a timeline for when scaling will be supported.

Actual Behavior
Scaling doesn't work, like for example the timertrigger mentioned above and orchestrations, meaning that pods don't scale up or down.
Steps to Reproduce the Problem

Run func on a function app with timertrigger kicking off an orchestration. Deploy it to aks.
Watch no scaling will occur, what should happen is that replicas should go to zero, when timer not running, then scale up, then scale down when orchestration completes.

Logs from KEDA operator
example

KEDA Version
2.11.2
Kubernetes Version
1.26
Platform
Microsoft Azure
Scaler Details
timertrigger, cosmostrigger
Anything else?
If nothing else it would be nice to know if my understanding of how things should work are correct and if correct when/if these concerns will be addressed?

Hello @SOFSPEEL ,
Sorry but we don't have any relation with Azure Functions teams, this project is OpenSource and we don't depend on Microsoft, so I don't have any information about why Microsoft docs say that or if they are outdated or not.
I'd suggest opening the issue in their own repository, I think that it's this one.
FYI @tomkerkhove


Configurable key repeat

It would be nice to be able to configure the key repeat rate from within a druid application.

hmm. I would normally expect this to be something that you manage at the OS level? There may be APIs available on the various platforms that let us ask for an override but I'm not really sure. In any case one for the "far future" milestone.

The use case I had in mind was a diagram editor. When you have a thing selected, you want to be able to move them and the default key repeat is obviously going to be terrible for this. But maybe there's something in the animation stuff or i can bodge it with timers

I handle a similar interaction in runebender (and this is common in other drawing applications) by using the shift and meta modifiers to change the adjustment size when moving things with the arrows; shift is ten units, meta is 50, iirc.

I think i'd rather bodge it with timers

I agree with Colin that this is something traditionally handled at the OS layer. Closing the issue.


Firefox hangs with dialog asking to set it as standard browser

Are you requesting a feature or reporting a bug?
Feature
What is the current behavior?
When starting tests with firefox, firefox shows the modal dialog to set itself as standard browser. No matter what is clicked here, the dialog appears every time. No tests are executed as long as the dialog is in place. The user needs to press escape or click a button to make tests run.
Since there's no error about a dialog handler, I guess that it won't help to try to install a dialog handler at that point. Also it's not clear from the documentation what would be the correct way to do this, if any.
What is the expected behavior?
Tests should run without user interaction, i.e. modal dialogs should be dismissed.
How would you reproduce the current behavior (if this is a bug)?
testcafe firefox ...
Specify your

operating system:

NAME="openSUSE Leap"
VERSION="42.2"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.2"
PRETTY_NAME="openSUSE Leap 42.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

testcafe version:
<EMAIL_ADDRESS>node.js version:
v6.11.2
firefox version
Firefox ESR 52.4.0 (64-bit)

Hi @TauPan,
Since the 0.18.0 version TestCafe opens a Firefox instance with a clean profile. We setup settings for Firefox testing profile there: https://github.com/DevExpress/testcafe/blob/master/src/browser/provider/built-in/firefox/runtime-info.js#L18.
It's possible we've missed some flag. @AndreyBelym will investigate it.
As a workaround you can try to run your tests in your current user profile: testcafe firefox:userProfile test.js

As a workaround you can try to run your tests in your current user profile: testcafe firefox:userProfile test.js

Thanks, that helps.

Yes, we should include "browser.usedOnWindows10" flag to generated profile.


Context property

Closes #278

@olzraiti I'm off for 3 weeks, I'll take a look when I'm back.

This looks OK to me, although I don't know the code as well as @n1k0 does.

Maybe a unit test would be good?

While the context name for this prop seems to make a lot of sense, it may induce confusion for seasoned React developers as contexts are a core feature of the lib.
It may be safe to use a more distinct name like formContext. What do you thing?

That's fine by me. Just a minute.

Thanks! Also as @glasserc mentioned, could we have a few tests added as well?

Well, I added few tests. I'm not sure if we should also test if updating formContext propagates the changes to all widgets etc. I tried doing that, but it wasn't very simple and none of the other properties are tested for this.

Thinking out loud here, what would prevent us to carry the formContext in the registry object? I feel like it would avoid passing a new prop around, leveraging this one we already have and which sounds pretty much adequate for what we're trying to do here. Would be matter of destructuring the formContext object from the registry before creating the field/widget components we want to know about this specific prop.
Thoughts?

Yes, that would simplify things a bit. I'll have a look in a few hours.

One thing to notice is that the formContext can be now of any variable type.

This looks excellent. A few last nits to address and I'll land this. Thank you!

Landing! Thanks again for contributing.

Released in v0.40.0.


Update dhall-generic to 0.3.32

Updates us.oyanglul:dhall-generic from 0.3.31 to 0.3.32.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "us.oyanglul", artifactId = "dhall-generic" } ]

labels: library-update, semver-patch

Codecov Report

Merging #82 (9cd3879) into master (5159e44) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #82   +/-   ##
=======================================
  Coverage   98.27%   98.27%
=======================================
  Files           1        1
  Lines          58       58
  Branches        2        2
=======================================
  Hits           57       57
  Misses          1        1

Continue to review full report at Codecov.

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


[Send Button] Requires review

    print('processSendButton');
    final network =
        _networkCubit.state.testnet ? BBNetwork.Testnet : BBNetwork.Mainnet;
    final (_, addressError) =
        await state.getPaymentNetwork(state.address, network);

    if (addressError != null) {
      emit(state.copyWith(errAddresses: 'Invalid address'));
      return;
    }

    final isOnchainSwap = state.couldBeOnchainSwap();
    final wallet = state.selectedWalletBloc!.state.wallet!;

    if (isOnchainSwap) {
      int sweepAmount = 0;
      final refundAddress = wallet.lastGeneratedAddress?.address;
      if (state.sendAllCoin == true) {
        final feeRate = _networkFeesCubit.state.selectedOrFirst(true);
        final fees = await calculateFeeForSend(
          wallet: wallet,
          address: refundAddress!,
          networkFees: feeRate,
        );

        reset();

        if (wallet.isBitcoin()) {
          // TODO: Absolute fee doesn't work for liquid build Tx now
          updateOnChainAbsFee(fees);
        }

        // sweepAmount = walletBloc.state.wallet!.balance! - fees;
        final int magicNumber = wallet.isBitcoin()
            ? 0 // 30 // Rather abs fee is taken from above dummy drain tx
            : 1500;
        sweepAmount = wallet.balance! - fees - magicNumber; // TODO
      }

      final swapAmount = _currencyCubit.state.amount;

      final liqNetworkurl = _networkCubit.state.getLiquidNetworkUrl();
      final btcNetworkUrl = _networkCubit.state.getNetworkUrl();
      final btcNetworkUrlWithoutSSL = btcNetworkUrl.startsWith('ssl://')
          ? btcNetworkUrl.split('//')[1]
          : btcNetworkUrl;

      _swapCubit.createOnChainSwap(
        wallet: wallet,
        amount: state.sendAllCoin == true ? sweepAmount : swapAmount,
        isTestnet: _networkCubit.state.testnet,
        btcElectrumUrl:
            btcNetworkUrlWithoutSSL, // 'electrum.blockstream.info:60002',
        lbtcElectrumUrl: liqNetworkurl, // 'blockstream.info:465',
        toAddress: state.address, // recipientAddress.address;
        refundAddress: refundAddress!,
        direction: wallet.isBitcoin()
            ? boltz.ChainSwapDirection.btcToLbtc
            : boltz.ChainSwapDirection.lbtcToBtc,
        toWalletId: '',
        onChainSwapType: OnChainSwapType.sendSwap,
      );

      return;
    }

    final isLn = state.isLnInvoice();

    if (!state.signed) {
      if (!isLn) {
        final fees = _networkFeesCubit.state.selectedOrFirst(false);
        baseLayerBuild(networkFees: fees);
        // wait until psbtSigned is not null FIXME!
        while (state.psbtSigned == null) {
          await Future.delayed(100.ms);
        }
        if (state.payjoinEndpoint != null) {
          sendPayjoin(
            networkFees: fees,
            originalPsbt: state.psbtSigned!,
            wallet: wallet,
          );
          return;
        }

      }

// SwapSend logic should not run if the transaction is a baseLayerSend

      // context.read<WalletBloc>().state.wallet;
      final isLiq = wallet.isLiquid();
      final networkurl = !isLiq
          ? _networkCubit.state.getNetworkUrl()
          : _networkCubit.state.getLiquidNetworkUrl();
// this hsould be in an else block?
      _swapCubit.createSubSwapForSend(
        wallet: wallet,
        address: state.address,
        amount: _currencyCubit.state.amount,
        isTestnet: _networkCubit.state.testnet,
        invoice: state.invoice!,
        networkUrl: networkurl,
        label: label,
      );
      return;
    }

    if (!isLn && state.payjoinEndpoint == null) {
      baseLayerSend();
      return;
    }
    sendSwap();
  }

When doing a normal send, _swapCubit.createSubSwapForSend gets called and fails since there is no invoice. The isLn if block should return after handling send for a baseLayerSend

SendSwapTx is called when a payjoin spend is attempted


Incorrect calculation of buffer size

In StReader you have
private const int Megs8 = 1024*1024*4;

but the commit message says "Open StReader.FromFile FileStream with 8MB buffer"

Thanks!  Buffer size looks very large and the buffer will be allocated on the large object heap.

Should probably just leave it to the OS eh? Was experimenting briefly.
Probably shouldn't have committed it. The only use case for the StReader
currently is reading a history pack of around 300MB.

Closed with 436351d
Looking at setting up a Nuget package and getting some kind of proper releasing soon. I'm new to C#/.NET so don't know what's involved yet.


alanning:roles: no such package?

Hi,
I've been trying to add this package to my project but I keep getting the above error. I've noticed there has been some talk about installing manually v2.0 from github so I've been wondering which is currently the best and safest way to install it?
Tnx

I apologize. It seems the problem was with my application folder and probably meteor's version. Tried to install it in another project and it worked flawlessly. I'm closing this.


Use Transport font to mimic the current signage

The current signs use the GOV.UK version of Transport. Also left-aligns the signs to mimic the way the signs currently look at GDS.
Before

After

Thanks for doing this. Could you add a slight left-margin or get a designer to have a look and pitch in?

Unfortunately because of licensing issues, have to close this PR, since transport is only licensed for use on GOV.UK domains.


Add a home page

Is your feature request related to a problem? Please describe.
Today, there are several options for home pages, but non of them include a proper home page. It has to be either the list of petitions for an organization, or an user, or a user page etc.
Describe the solution you'd like
Define a home page and have the option to have it when / is requested.

Done with #110


esbuild-builder: missing files when building basic Ionic app

Command
build
Description
Ionic starter application (template "side-menu") built with esbuild builder seems to be missing files.
The demo app attached to this post.
ionic-test.zip

Minimal Reproduction

Create a basic Ionic Angular application using Ionic cli wizard
Build the application using @angular-devkit/build-angular:browser-esbuild
Try to run the newly built app on your local http server

Result: the app doesn't start because of missing ion-app_8.entry.js file.
Exception or Error
Failed to fetch dynamically loaded module: ion-app_8.entry.js

Your Environment
Angular CLI: 15.2.5
Node: 18.15.0
Package Manager: yarn 1.22.19
OS: win32 x64

Angular: 15.2.6
... common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.5
@angular-devkit/build-angular   15.2.5
@angular-devkit/core            15.2.5
@angular-devkit/schematics      15.2.5
@angular/cli                    15.2.5
@schematics/angular             15.2.5
rxjs                            7.5.7
typescript                      4.8.4

This appears to be an issue with Ionic's Angular support.  Ionic is attempting to dynamically import components via runtime evaluation which is not supported.  The Ionic Angular package may need to be updated to setup in a similar way to the other framework packages which do not appear to rely on the runtime evaluation.

Closing as this is not actionable from our end.


[enhancement] build-status/view page

minor modification if possible :

if logged, add link build detail : /build/view/ID
expose the commit message (they are visible on the build/view)

Great idea! Thanks.

Fixed.


Made it clear that value of WEBSITE_LOAD_CERTIFICATES needs to be an asterisk (*)

It was not visible earlier in the GitHub flavored markdown. See the following image:

This resulted in the app throwing errors such as Value cannot be null. Parameter name: certificate

Hi @vman, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

thx Vardhaman


setTopBarVisible(bool) not working

I am applying setTopBarVisible(false), it does not hide the title of the calendar view.

It works in the sample, please check there if you can reproduce your bug or reopen your issue with more information as to why


LXQt compilersettings don't work for sddm-config-editor

mostly -no-foreach things

Done with latest changes in lxqt-build-tools


[Issue] Support build arguments for the azd deploy section

[ ] Make sure you've installed the latest version using instructions in the wiki

Output from azd version
Run azd version and copy and paste the output here:
azd version 1.8.0 (commit 8246323c2472148288be4b3cbc3c424bd046b985)

Describe the bug
When I deploy certain applications, I need to use my own build command.  The major impetus here is "dotnet build" arguments, where I need to add a /p:IntermediateOutputPath=/tmp/obj/ to the build command to support Dev Containers when using older versions of dotnet.
As an alternative, I should be able to deploy without building (this should allow me to run dotnet publish with the arguments and then run azd deploy --no-build or something similar to avoid the problem).
Without this capability, I must use other methods for doing 'azd deploy'.
Expected behavior
I can run azd deploy to deploy any application, irrespective of the build requirements.
Environment
Information on your environment:
* Language name and version: dotnet core 3.1
* IDE and version : [e.g. Visual Studio 16.3] Visual Studio Code 1.88.1
Additional context
Add any other context about the problem here.

@adrianhall - as a workaround, have you tried using the --from-package flag?  You may be able to use that in a combination with a custom workflow in azure.yaml as a workaround.
--from-package
https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference#options-11
azure.yaml workflows
https://github.com/Azure/azure-dev/pull/3173


Update Queue-Optimized.swift

Checklist

[x] I've looked at the contribution guidelines.
[x] This pull request is complete and ready for review.

Description

Added extension to safely retrieve array element

Cool update! A couple small nits then you're gtg 🙂
Thanks.


Baseline for test for BUG # 1728: wrapping data creates long cells

@doutriaux1 can we fix the template so that texts are not drawn inside the data on the ends?

@aashish24 there is a heck of a lot of magic involved here to place the tick marks correctly in projected space. We could create a template and move the tick a bit more to the right for this example. But to make the default correct it will definitely require a dedicated issue/PR

We could create a template and move the tick a bit more to the right for this example. But to make the default correct it will definitely require a dedicated issue/PR

Roger that. Also, if we decide to move to Context2D stuff, then how we are doing ticks will change as well.


double slabs didnt count the original slab 2 times

this makes double slabs count the original half slab slab 2 times (also this is the first time i finished making something in java and not javascript so sorry if there are any errors)

Did you try to compile the mod? I'm pretty sure that a closing curly bracket is missing as well as a cast to the actual slab type for the if check. I'll look into this later today.

just added the 2nd closing bracket now. i will try to compile it now

it seems to work now.

I don't want to sound rude, but did you actually check the double slab classes and it's methods?
As I said, I'll look into this tomorrow.

i did check the slab classes but for some reason block.isdouble didnt work

i may have found a alternative but i need the blockstate world and position (not sure why it needs the world and position when i am giving it the block state)


Add support for relative paths

Based on a discussion with @hargoniX , we decided it is simpler to manually calculate the offset to the root when generating relative paths. This supersedes #32 , which calculates nesting depth by normalizing paths via unsafePerformIO+realpath.

@hargoniX I request another round of review, as I've updated the PR to the latest version. I rebuilt https://bollu.github.io/lean4_docs/ with the new PR, and nothing seems to be broken :tm: :)

@Kha I'm unsure why that's happening. It seems to work here:
https://bollu.github.io/lean4_docs/Init/Prelude.html#Nat
Let me take a look.

I figured the culprit: If you run this in a local configuration the request for the JSON file we use to figure out the location of stuff is not cached and you will actually see it fail since it's looking up the file in the wrong directory now because the path to it is constructed wrongly. When the request is cached however (like in the case of Github pages) you will instead be provided with an outdated locations file that will then get processed wrong and thus you get redirected in the wrong way.

Hm...now it doesn't occur anymore? Maybe I was seeing some other weird issue then...

So there are actually multiple things with the search wrong here that don't occur on your page:

The thing Kha described
If you visit a subdirectory say this one: https://leanprover-community.github.io/mathlib4_docs/Mathlib/Control/Random.html and try to search it won't find the JSON bmp file anymore because the JS is in fact completely unaware of the relative root stuff and will thus search in the wrong directory

This leads me to believe that your page is not hosting a current build, otherwise the JS should be looking in the same path as here which it is definitely not doing, which would also explain why stuff works on your host and not on the others. The correct solution for this is IMO to teach the JS in every HTML about the correct relative site root relative to the current HTML file so it can find the JSON file correctly in the first place.
The second step would be to change the JSON file generator so that the file always contains absolute instead of relative URLs and then append the current relative site root to the search suggestions that we can get out of it.


[Accessibility]: Allow users to replace default sound file

CC @meganrogge and @isidorn
Happy new year to you all! I really appreciate the dramatic accessibility improvements in VSCode these days. Especially, I really like the growing support for audio cues.
I was wondering if you could allow users to replace the default audio cue files with whatever they prefer.
I think this is already possible in Visual Studio, but not in VSCode.
I suggest this feature because some of the default audio cues are hard to distinguish from one another. Also, some users who are hard of hearing may hear only specific frequencies or sounds within a certain volume range, which needs some sound customization on their ends.
With this feature being added, I think an extention can be developed to provide some different sound scheme presets.

/duplicate #145204


Fix resolving a provider that is injected using forwardRef

Hi @alphamikle,
I found an issue when a service is injected using forwardRef for example @Inject(forwardRef(() => CommonService)), in this case Nest fails to find the service with the eror:

Nest could not find CommonService element (this provider does not exist in the current context)

Based on the Nest module-ref docs, it seems that moduleRef.get(Service) is expecting to be called with the class, rather than it's name.
I have created a PR to fix this (a933f8d42a1b4e49e897f467d1c8e4c9f38c06f2) and included a test in the example folder (eaea4cd595b86366b0f80e9c2fcb8a9168ed3ed9).
npm run test failed for me initially, until I added CacheService to the ExampleAppModule.providers (a3ec991263e350e3cc4571f44fd84f8afa96ab46)
Thanks for providing a great library.

Hi @maxpeterson,
Nice to hear! Thank you for the PR

@alphamikle - can you make this a release, please? It's still in latest release and causes problems


Offline Perception Visualizer in Apollo 3.5

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04): Ubuntu 14.04
Apollo installed from (source or binary): source
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0): 3.5

Steps to reproduce the issue:
I don't find export_pcd_offline tool to generate *.pcd and pose.txt.
There is also no gen_pose_file.py is in Apollo 3.5.
How can I use Offline Perception Visualizer in Apollo 3.5?
Supporting materials (screenshots, command lines, code/script snippets):

@techoe Is there any cyber visualizer tutorial? I want visualize the lidar min box regression result as bounding box

@jinfagang you could refer to this document for cyber tools. Reach out if you have additional questions. Thanks!

Closing this issue as it appears to be resolved. Feel free to reopen if you have additional questions. Thanks!


Implement move_by

This function would move mouse by x, y. Instead of moving mouse absolute it would move relative.

Should be simple enough, subtracting the current position I guess?


Fix HLint nits & typos

Add .editorconfig so my editor knows how much to indent Haskell files in this repository
Fix HLint nits, which were distracting with haskell-language-server
Fix a couple typos
Add documentation for a couple functions/parameters
Add an Outputs type alias to make it clearer what some of the Set Text values represent

Can we add .editorconfig to the .gitignore, so anyone would be able to setup what they want to? I'm not sure about specifics, but that looks like a part of individual workflow configuration and can't be generalized to satisfy everyone.

@s-and-witch Check out https://editorconfig.org/; it's just for the indent size, which is in fact specific to the project and not the workflow.


support for print PDF generation with squib.

closes #9.
Also fixes #2. fixes #1.

p.s. also includes a new version of the RRI cards squib data & files, which I was doing this for.


[Crackle] TypeError: exceptions must derive from BaseException

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.04.07. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2019.04.07

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
E:\Downloads>youtube-dl -v https://www.sonycrackle.com/watch/172
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.sonycrackle.com/watch/172']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.04.07
[debug] Python version 3.7.3 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg 4.1.1, ffprobe 4.1.1
[debug] Proxy map: {}
[Crackle] 172: Downloading media JSON as US
[Crackle] 172: Downloading media JSON as AU
[Crackle] 172: Downloading media JSON as CA
[Crackle] 172: Downloading media JSON as AS
[Crackle] 172: Downloading media JSON as FM
[Crackle] 172: Downloading media JSON as GU
[Crackle] 172: Downloading media JSON as MP
[Crackle] 172: Downloading media JSON as PR
[Crackle] 172: Downloading media JSON as PW
[Crackle] 172: Downloading media JSON as MH
[Crackle] 172: Downloading media JSON as VI
Traceback (most recent call last):
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\my_name\AppData\Local\Programs\Python\Python37-32\Scripts\youtube-dl.exe\__main__.py", line 9, in <module>
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\__init__.py", line 474, in main
    _real_main(argv)
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 2008, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\extractor\common.py", line 529, in extract
    ie_result = self._real_extract(url)
  File "c:\users\my_name\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\extractor\crackle.py", line 200, in _real_extract
    raise last_e
TypeError: exceptions must derive from BaseException
...
<end of log>

Description of your issue, suggested solution and other information
Trying to download Groundhog Day from sonycrackle.com. Am using Windows 10 Education Edition, with Python 3.7.3. Replaced all instances of my name with my_name, for privacy reasons.

bump
youtube-dl.exe https://www.crackle.com/watch/3543
[Crackle] 3543: Downloading media JSON as US
[Crackle] 3543: Downloading media JSON as AU
[Crackle] 3543: Downloading media JSON as CA
[Crackle] 3543: Downloading media JSON as AS
[Crackle] 3543: Downloading media JSON as FM
[Crackle] 3543: Downloading media JSON as GU
[Crackle] 3543: Downloading media JSON as MP
[Crackle] 3543: Downloading media JSON as PR
[Crackle] 3543: Downloading media JSON as PW
[Crackle] 3543: Downloading media JSON as MH
[Crackle] 3543: Downloading media JSON as VI
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", li
ne 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", li
ne 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\Scripts\youtube-dl.exe\__main__.py", line 7, in <module>
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\site-packages\youtube_dl\__init__.py", line 474, in main
    _real_main(argv)
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\site-packages\youtube_dl\__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\site-packages\youtube_dl\YoutubeDL.py", line 2018, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\site-packages\youtube_dl\YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\site-packages\youtube_dl\extractor\common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\ComputerName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python37\site-packages\youtube_dl\extractor\crackle.py", line 200, in _real_extract
    raise last_e
TypeError: exceptions must derive from BaseException

I am pretty sure this is a duplicate of issue #11775 .  The workaround is to use something like mitmproxy to get the right URL (which should contain "Service.svc/details/media" to pass to youtube-dl.  As this issue has been in place since 2017 I don't expect that it will be fixed anytime soon.

@nl555 The error traces are very different. And url structure different. I am not in a georestricted zone. I doubt it's a duplicate issue.

@kaovilai I wouldn't be so sure of that.  I get the same error with movies and the solution is the same, use mitmproxy to sniff the connection and get the correct URL to put in.  And it is definitely not a georestriction issue since it works just fine in the browser.

Just ran into this as well.


Show standard output.

gtest_gui, make be able to show standard output and error while test running.

Update gtest_gui committed by The commit.


[Feature Request] Multiple mode routes with its default data source

What feature or change would you like to see made?
Allow users to define multiple routes per mode and a default data source per route.
Related IDC issues: #3569 #3361
Example 1:
function modeFactory() {
  let _activatePanelTriggersSubscriptions = [];
  return {
    // TODO: We're using this as a route segment
    // We should not be.
    id,
    routeNames: [
      /** Default route */
      'longitudinal',
      /** GCP route */
      'projects/:project/locations/:location/datasets/:dataset/dicomStores/:dicomStore/study/:StudyInstanceUIDs',
      /** Invoke Image Display e.g. /study?requestType=STUDY&studyUID=123 */
      '/study'
    ]

Example 2:
routeNames: [
  {
      url: '/viewer',
      defaultDataSource: 'dicomweb'
  },
    {
      url: 'projects/:project/locations/:location/datasets/:dataset/dicomStores/:dicomStore/study/:StudyInstanceUIDs',
      defaultDataSource: 'gcp'
  }
]

Why should we prioritize this feature?
This allows accessing the same mode using different URLs with different default data sources e.g. open longitudinal mode with a GCP route with a gcp dicomweb as a default data source or an invoke image display route with the default dicomweb datasource or just using the default /longitudinal route with the global default data source.
This way the user doesn't need to create copies of the same longitudinal mode just to allow access to that mode using different routes.

@sedghi what do you think?

@wayfarer3130

@wayfarer3130

@wayfarer3130 @sedghi The ideal scenario would be something like this:
routeNames: [
  {
      url: '/viewer',
      defaultDataSource: 'dicomweb'
  },
    {
      url: 'projects/:project/locations/:location/datasets/:dataset/dicomStores/:dicomStore/study/:StudyInstanceUIDs',
      defaultDataSource: 'gcp'
  }
]

This way we can use the longitudinal mode with different routes and I can define a default data source per route. That is quite useful if I want to use a GCP URL to open the longitudinal mode with the GCP data source. I think it is also useful for invoke image display.

@igoroctaviano @fedorov Do you want to pursue this?

@igoroctaviano @fedorov Do you want to pursue this?

@sedghi For now we got around this by creating multiple copies of the same mode so it's accessible by different URLs. Feel free to close the ticket if there's not much value in having multiple routes per mode.


DropdownMenuItem width is affected by selectedItemBuilder width

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

I am trying to have a DropdownMenuItem with DropdownButton but when i try to have selectedItemBuilder because i want a different widget to show rather than the whole value when i apply that it affect the DropdownMenuItem  about the width

Even if i apply the same widget of the DropdownMenuItem in the selectedItemBuilder the widget will change which i have to adjusted until it will match the one in the DropdownMenuItem you can bellow code example to understand more of the problem.

Just in case you want the selectedItemBuilder result here it is:

Expected results
I am expecting this from the DropdownMenuItem this is without the selectedItemBuilder

Actual results
But i get this if i have selectedItemBuilder

If i have expanded on the text i get this

Code sample
Code sample
                           TextField(
                            decoration: InputDecoration(
                             prefixIcon: Padding(
                                padding:
                                    const EdgeInsets.symmetric(horizontal: 20),
                                child: DropdownButton(
                                  value: selectedCurrency,
                                  selectedItemBuilder: (BuildContext context) {
                                    return currency.map((items) {
                                      return SizedBox(
                                        width: 30,
                                        child: FittedBox(
                                          fit: BoxFit.contain,
                                          child: CircleAvatar(
                                            backgroundImage:
                                                AssetImage(items['imagePath']),
                                          ),
                                        ),
                                      );
                                    }).toList();
                                  },
                                  underline: const SizedBox(),
                                  icon: const Icon(
                                    Icons.keyboard_arrow_down_rounded,
                                    color: Colors.black,
                                  ),
                                  items: currency.map((items) {
                                    return DropdownMenuItem(
                                      alignment: Alignment.centerLeft,
                                      value: items['Text'],
                                      child: Row(
                                        children: [
                                          CircleAvatar(
                                            radius: 13,
                                            backgroundImage:
                                                AssetImage(items['imagePath']),
                                          ),
                                          sizedBoxWidth(5),
                                          Expanded(
                                            child: Text(
                                              items['Text'],
                                              style: const TextStyle(
                                                  fontWeight: FontWeight.bold),
                                            ),
                                          ),
                                        ],
                                      ),
                                    );
                                  }).toList(),
                                  onChanged: (value) {
                                    setState(() {
                                      selectedCurrency = value as String;
                                    });
                                  },
                                ),
                              ),
                             ),
                            ),

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
Reloaded 1 of 1098 libraries in 711ms (compile: 44 ms, reload: 199 ms, reassemble: 291 ms).
D/EGL_emulation(10611): app_time_stats: avg=1116.81ms min=2.03ms max=14462.71ms count=13
D/EGL_emulation(10611): app_time_stats: avg=6354.91ms min=6354.91ms max=6354.91ms count=1

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during layout:

A RenderFlex overflowed by 3.0 pixels on the right.

The relevant error-causing widget was
Row
donationPage.dart:276
You can inspect this widget using the 'Inspect Widget' button in the VS Code notification.
The overflowing RenderFlex has an orientation of Axis.horizontal.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.

The specific RenderFlex in question is: RenderFlex#10c67 relayoutBoundary=up1 OVERFLOWING

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.13.0, on Microsoft Windows [Version 10.0.22621.2134], locale en-US)
    • Flutter version 3.13.0 on channel stable at E:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision efbf63d9c6 (9 days ago), 2023-08-15 21:05:06 -0500
    • Engine revision 1ac611c64e
    • Dart version 3.1.0
    • DevTools version 2.25.0

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

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\Zheer\AppData\Local\Android\sdk
    • Platform android-33-ext4, build-tools 33.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

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

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.5.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.5.33414.496
    • Windows 10 SDK version 10.0.22000.0

[✓] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[✓] VS Code (version 1.81.1)
    • VS Code at C:\Users\Zheer\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.46.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5556 • android-x64    • Android 12 (API 32) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.2134]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 116.0.5845.98
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 114.0.1823.67

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

• No issues found!

Hi @Zheer09
I can see this issue with the minimal sample code below. In this case, the item's width in selectedItemBuilder is smaller than item in items. It causes the overflow error.

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

/// Flutter code sample for [DropdownButton].

const List<String> list = <String>['One ABCDEF', 'Two ABCDEF', 'Three ABCDEF', 'Four ABCDEF'];

void main() => runApp(const DropdownButtonApp());

class DropdownButtonApp extends StatelessWidget {
  const DropdownButtonApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('DropdownButton Sample')),
        body: const Center(
          child: DropdownButtonExample(),
        ),
      ),
    );
  }
}

class DropdownButtonExample extends StatefulWidget {
  const DropdownButtonExample({super.key});

  @override
  State<DropdownButtonExample> createState() => _DropdownButtonExampleState();
}

class _DropdownButtonExampleState extends State<DropdownButtonExample> {
  String dropdownValue = list.first;

  @override
  Widget build(BuildContext context) {
    return DropdownButton<String>(
      value: dropdownValue,
      onChanged: (String? value) {
        setState(() {
          dropdownValue = value!;
        });
      },
      items: list.map<DropdownMenuItem<String>>((String value) {
        return DropdownMenuItem<String>(
          value: value,
          child: Row(
            children: [
              const FlutterLogo(size: 24.0),
              Text(value),
            ],
          ),
        );
      }).toList(),
      selectedItemBuilder: (BuildContext context) {
        return list.map<Widget>((String item) {
          return Container(
            alignment: AlignmentDirectional.centerStart,
            child: const FlutterLogo(size: 24.0),
          );
        }).toList();
      },
    );
  }
}

Demo issue
https://github.com/flutter/flutter/assets/104349824/50cf56a4-79b6-495a-a404-02832bfcb0a3

I was thinking of using isExpanded: true to DropdownButton but it should come with a pre-defined width for DropdownButton; otherwise, it will have full width as it can. And it doesn't seem to be applicable in your case above.
Reproduced this issue on latest Flutter stable/master channels.

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.13.1, on macOS 13.5 22G74 darwin-x64, locale en-VN)
    • Flutter version 3.13.1 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e1e47221e8 (23 hours ago), 2023-08-22 21:43:18 -0700
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/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.6b802.4-9586694)
    • All Android licenses accepted.

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

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

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

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

[✓] Connected device (3 available)
    • iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.2 19H218
    • macOS (desktop) • macos                                    • darwin-x64     • macOS 13.5 22G74 darwin-x64
    • Chrome (web)    • chrome                                   • web-javascript • Google Chrome 116.0.5845.96

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

• No issues found!

[!] Flutter (Channel master, 3.14.0-9.0.pre.86, on macOS 13.5 22G74 darwin-x64, locale en-VN)
    • Flutter version 3.14.0-9.0.pre.86 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 22a61b947f (4 minutes ago), 2023-08-24 21:26:56 -0700
    • Engine revision 1382d6d794
    • Dart version 3.2.0 (build 3.2.0-97.0.dev)
    • DevTools version 2.26.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/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.6b802.4-9586694)
    • All Android licenses accepted.

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

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

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

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.5 22G74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 116.0.5845.110

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

! Doctor found issues in 1 category.

Hello @huycozy
Thanks for the reply
Yes as you mentioned it is not applicable in my case because adding isExpanded: true will take the full length of my TextField.
There is option of itemHeight in the DropdownButton widget it will be perfect if we have itemWidth or anything that you can suggest better.

Hi @Zheer09! Thanks for filing this issue. Could you have a try if using MenuAnchor will solve your problem? MenuAnchor is a new component which has M3 style. And I think the menu width can be expanded automatically based on the content.
Here's a code sample to compare DropdownButton and MenuAnchor. I tried to create a similar example as yours but the avatar images are replaced with hard-corded numbers:)

import 'package:flutter/material.dart';

void main() {
  runApp(const MenuAnchorExample());
}

class MenuAnchorExample extends StatefulWidget {
  const MenuAnchorExample({super.key});

  @override
  State<MenuAnchorExample> createState() => _DropdownMenuExampleState();
}

class _DropdownMenuExampleState extends State<MenuAnchorExample> {
  List<int> currency = <int>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
  int selectedCurrency = 0;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        useMaterial3: true,
        colorSchemeSeed: Colors.green,
      ),
      home: Scaffold(
        body: SafeArea(
          child: Column(
            children: <Widget>[
              const Text('DropdownButton'),
              DropdownButton<int>(
                value: 0,
                selectedItemBuilder: (BuildContext context) {
                  return currency.map((int items) {
                    return SizedBox(
                      width: 30,
                      child: FittedBox(
                        child: CircleAvatar(
                          child: Text('$items'),
                        ),
                      ),
                    );
                  }).toList();
                },
                underline: const SizedBox(),
                icon: const Icon(
                  Icons.keyboard_arrow_down_rounded,
                  color: Colors.black,
                ),
                items: currency.map((int items) {
                  return DropdownMenuItem<int>(
                    alignment: Alignment.centerLeft,
                    value: items,
                    child: Row(
                      children: <Widget>[
                        CircleAvatar(
                          radius: 13,
                          child: Text('$items'),
                        ),
                        const SizedBox(width: 5),
                        Expanded(
                          child: Text(
                            'Item $items',
                            style: const TextStyle(
                                fontWeight: FontWeight.bold),
                          ),
                        ),
                      ],
                    ),
                  );
                }).toList(),
                onChanged: (int? value) {
                  setState(() {
                    selectedCurrency = value!;
                  });
                },
              ),
              const SizedBox(height: 20,),
              const Text('MenuAnchor'),
              MenuAnchor(
                alignmentOffset: const Offset(0, -48), // Commented this line if we don't want the menu to cover the selected item.
                builder: (BuildContext context, MenuController controller, Widget? child) {
                  return IconButton(
                    onPressed: () {
                      controller.open();
                    },
                    icon: Row(
                      mainAxisSize: MainAxisSize.min,
                      children: <Widget>[
                        SizedBox(
                          width: 30,
                          child: FittedBox(
                            child: CircleAvatar(
                              child: Text('$selectedCurrency'),
                            ),
                          ),
                        ),
                        const Icon(Icons.keyboard_arrow_down_rounded)
                      ],
                    ),
                  );
                },
                menuChildren: currency.map((int items) {
                  return MenuItemButton(
                    onPressed: () {
                      setState(() {
                        selectedCurrency = items;
                      });
                    },
                    child: Row(
                      children: <Widget>[
                        CircleAvatar(
                          radius: 13,
                          child: Text('$items'),
                        ),
                        const SizedBox(width: 5),
                        Text(
                          'Item $items',
                          style: const TextStyle(
                              fontWeight: FontWeight.bold),
                        ),
                      ],
                    ),
                  );
                }).toList()
              )
            ],
          ),
        ),
      ),
    );
  }
}

https://github.com/flutter/flutter/assets/36861262/b4796935-f62a-486d-8e9c-175e0afc3ab5

Hello @QuncCccccc  I was testing this menu anchor well actually it does the job but i have onChanged and i using this MenuItemButton on a stateless page and i am passing the Function(dynamic) to update the selected item but with onPressed this can't be happened what to do this situation?

Hello @QuncCccccc , Thanks for the response and details , I was testing this menu anchor well actually it does the job but i have onChanged and i using this MenuItemButton on a stateless page and i am passing the Function(dynamic) to update the selected item but with onPressed this can't be happened what to do this situation?

Oh for the onChanged callback, probably we can only handle that change in MenuItemButton.onPressed in MenuAnchor.menuChildren.

hmm, So it is not applicable for my case is it possible to have any update for dropdownbutton for this width issue or any kind of other solutions/suggestions?

Any news please?


fixed radio button bug

fixed checked radio button value on condition

I ran into the same bug, saw the issue and was about to submit a pull request and then found this. Should of checked pull requests first :) I have exactly the same solution. Very clean and simple.
Although this is the correct functionality I wonder if it could break things for some people if they actually somehow had something that worked the current way.
I don't think its worth worrying about though as if that was the case that code wouldn't make sense. I guess it could break things that are checking if any radio in a group is checked by going [name=radio-name] == true. Anyone that does this would have to refactor there code to work in the same way you would do this for a text input.


[WIP] Add support for sbroker

Work in progress :).
Can we drop stop/1? It is awkward because it does not work in a supervision tree and as #706 shows we didn't test (or use?) it. I have removed it in a separate commit for now.
Todo:

[x] Replace use of Connection with GenServer so not to add an extra dep, was useful to get started though.
[ ] Publish the version of :sbroker used and update dep/mix.lock

Yes, let's remove stop/1.

I've rebased this and:

Made break/3 a cast for sbroker (blocking not required as worker checks in)
Refactored the worker to a GenServer to remove the Connection dependency

@fishcakez this looks great to me. Let's just release a new sbroker and get going? I want to clean up the pool structure and tests, but I will do that in another PR. :)

ugh, we need to make this lazy, otherwise we hit the same issue as the sandbox. I'll do this after lunch.

I added lazy connect and tests. Implementation is clean if only the first connect is lazy - which is all we need.


Replace original bedrockrs_nbt with mirai-nbt

This is quite a big PR but luckily most of it is a direct copy from the original Mirai code. I've made several changes to the original version from Mirai:

All references to the anyhow crate have been replaced with a new NbtError type.
The BinaryRead and BinaryWrite traits that this crate relies on have been copy-pasted straight into the read.rs and write.rs files respectively. The use of anyhow here has been replaced with a new StreamError type. Depending on what we end up doing this code should probably be moved to the bedrockrs_shared crate or replaced with the existing binary read/write implementation. Additionally some Mirai-specific types such as Vector and BlockPosition have been removed.

Documentation for the NBT crate can be found at https://teampathfinders.github.io/mirai/mirai_nbt/index.html (or in the code of course). Although the new error type is not documented here. The BinaryRead and BinaryWrite traits are documented at https://teampathfinders.github.io/mirai/mirai_util/index.html.
Some code has not properly been ported yet such as the NBT palette deserialization in the paletted_storage crate. I still need to look into how I can use your Cursor method with my NBT lib. I made sure the project compiles but will wait until we decide on what to do with the world format library before making more changes.
Another small issue I found is that ProtoCodecError implements clone, requiring NbtError to also implement it. In StreamError I store the original error types for errors such as Utf8Error and io::Error, the latter does not implement clone though so I instead opted to convert it to a string. It is probably useful to keep the IO error so any idea what we should do with this?

Seems like the modifications to the paletted_storage crate weren't included in this PR?

I do think that you could even seperate the nbt library into its own repository. NBTs are used quite often... hence why a standalone library would be helpful.

Also.. how would one handle serializing a given blob of NBT data with a different endianess, I quite loved our
// IIRC it looked about like that...
bedrockrs_nbt::serialize::<NbtLittleEndianNetwork>(&nbt)

Also.. how would one handle serializing a given blob of NBT data with a different endianess, I quite loved our
// IIRC it looked about like that...
bedrockrs_nbt::serialize::<NbtLittleEndianNetwork>(&nbt)

With my lib your example would look like
bedrockrs_nbt::to_var_bytes(&nbt)

Each version also has a function that is suffixed with _in, such as to_var_bytes_in. These functions will serialize into an existing buffer rather than creating their own. You can also serialize using a generic type like you did. That can be done like this:
let mut ser = bedrockrs_nbt::Serializer::new(&mut buffer);
ser.serialize::<_, BigEndian>(&nbt).unwrap();

I guess I should probably expose a new function that wraps this, allowing you to do it like this:
bedrockrs_nbt::to_bytes::<BigEndian>(&nbt).unwrap();
bedrockrs_nbt::to_bytes_in::<BigEndian>(&mut writer, &nbt).unwrap();

to match your original NBT lib.
I think I might close this PR and move the NBT library to a new repository (should I call it bedrockrs_nbt?) Then I'll create a new PR that ports bedrockrs to it. I think if I were to continue inside of this PR it would get quite messy.

Also.. how would one handle serializing a given blob of NBT data with a different endianess, I quite loved our
// IIRC it looked about like that...
bedrockrs_nbt::serialize::<NbtLittleEndianNetwork>(&nbt)

With my lib your example would look like
bedrockrs_nbt::to_var_bytes(&nbt)

Each version also has a function that is suffixed with _in, such as to_var_bytes_in. These functions will serialize into an existing buffer rather than creating their own. You can also serialize using a generic type like you did. That can be done like this:
let mut ser = bedrockrs_nbt::Serializer::new(&mut buffer);
ser.serialize::<_, BigEndian>(&nbt).unwrap();

I guess I should probably expose a new function that wraps this, allowing you to do it like this:
bedrockrs_nbt::to_bytes::<BigEndian>(&nbt).unwrap();
bedrockrs_nbt::to_bytes_in::<BigEndian>(&mut writer, &nbt).unwrap();

to match your original NBT lib.
I think I might close this PR and move the NBT library to a new repository (should I call it bedrockrs_nbt?) Then I'll create a new PR that ports bedrockrs to it. I think if I were to continue inside of this PR it would get quite messy.

Calling it bedrockrs_nbt is fine
Also I think that the way you are doing it with extra functions is completely fine, it quite reminds me of serde_json.


Is there some way to print val loss in train process？I want calculate my val loss rather than print val AP .

https://github.com/open-mmlab/mmdetection/issues/7316#issuecomment-1059918465


Dynamic graphs broken due to ansys-tools-visualization-interface

We are having issues in our dev docs due to the ansys-tools-visualization-interface package. Something is wrong with the dynamic plotting...

See https://geometry.docs.pyansys.com/version/stable/examples/03_modeling/scale_map_mirror_bodies.html for example


taskGiver does not timeout tasks with no solver selected

taskGiver.js currently does not call a timeout for the case where a task's solver is never selected.
This needs to be implemented to ensure that a users funds do not get stuck and that they can use their resources somewhere else if the task is not attractive to solvers.

Considering that a task submission is probably done by a different app in most cases this isn't as needed.


Typescript typings support

Typescript support
Typing can help developers know what shape their objects will be this, may be particularly useful for being aware of context in the wrapped responses.
Description

Typescript support for the packages.

Of course this can be done by a third party and put into the @types package, but it might be good to own the file if any future changes are made.

Are there any examples of other projects that have created definition files for @dazn/lambda-powertools-* ?

There wasn't any examples from me looking around. @rforsyth but I've done a pull request to show putting types for logger. If this goes well I may start adding types for the other packages. Or at least the ones i'm constantly using


Notebooks adam mllib

@andypetrella you have the latest version of the Bias - Variance notebook, to be merged in this PR!

:trophy: !


Display video title with comment notification

It would be nice to know which videos a comment are associated with.

The plan is to implement a database to cache information about the videos (and the comments). This feature will get added then.


Nested []any should be addressable

Discussed in https://github.com/dop251/goja/discussions/618

Originally posted by pgundlach October  8, 2024
The following code prints []. How can I add the word "Hello" to the slice? The slice is a []any slice.
I can of course add a "addToSlice" method, but I'expect a .push() to work.
package main

import (
	"fmt"
	"os"

	"github.com/dop251/goja"
)

type document struct {
	Items []any
}

func (d *document) Check() {
	fmt.Println(d.Items)
}

func main() {
	runtime := goja.New()
	runtime.Set("newdoc", func() *document { return &document{} })

	_, err := runtime.RunString(`
var d = newdoc();
d.Items.push("Hello");
d.Check();
`)
	if err != nil {
		fmt.Println(err)
		os.Exit(-1)
	}

}

This is actually a bug. The field should be addressable, but it doesn't work for 'simple' slices (i.e. []any). If you change it to []string it will work, so this needs to be fixed.

Thank you very much, it works nicely in my real-world use case.


Showing how to use huggingface models with PR-Agent

Hi @mrT23 @okotek,
This builds on https://github.com/Codium-ai/pr-agent/pull/276
Adding documentation to show how to call huggingface models on PR-Agent (e.g. Llama2, wizardcoder, etc.)

Sounds good - what is the best way to proceed?
Re: litedebugger - it feels like people didn't want the logs on db version, so what we'll work on is maybe a way of writing the api calls to a local json / yaml file?

@krrishdholakia we tried litellm debug today and we liked it.
for example, its a good way to properly collect and document an issue to report a problem when using pr-agent.
but it's your call if to delete it or not from pr-agent.
(also see for example: https://github.com/Codium-ai/pr-agent/issues/281. can it be relevant there ?)
question: does it work only with a public address, available to anyone who has it ?
can there be a different option, where the logs are only accessible when login with a password, given when registering to litellm ?

for example its a good way to properly collect and document an issue to report a problem when using pr-agent.

Do you need a UI for this? Or would a local log (e.g. a .json file where API calls are written to) work for this?

for example its a good way to properly collect and document an issue to report a problem when using pr-agent.

Do you need a UI for this? Or would a local log (e.g. a .json file where API calls are written to) work for this?

When working from CLI, you can write and access a local log.
However, when working from github app, github action, ..., there is really an option for 'local' log.
PR-agent operated from a pod, hosted by the user or codium.
The pod is not easily accessible, and is not suitable for hosting logs.


Clarification suggestion around "Be sure to create the workspace in the same subscription that the AKS container is deployed to."

In the section around adding monitoring to existing cluster it highlights that this requires the Log Analytics Workspace to be in the same subscription as the cluster, which is true for adding to existing cluster today, BUT if you're creating a new cluster the Log Analytics Workspace can be elsewhere.
I've seen some concern / ambiguity arise from this that LA Workspaces should be in the same subscription as the AKS Cluster, but have confirmed this is not the case. Might be good to call this out in the doco somehow?

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

ID: b8ad8413-d018-cf3f-a373-f9f287d2486a
Version Independent ID: 3f0ebc1d-7986-778d-e41b-61b1f3552923
Content: How to onboard Azure Monitor for containers
Content Source: articles/azure-monitor/insights/container-insights-onboard.md
Service: azure-monitor
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@mattquinn Thanks for the feedback! We are currently investigating and will update you shortly.

Engaging @keikhara from the PG to confirm this recommendation is no longer necessary or if there is a reason why we need to continue suggesting this implementation approach.

Also why it's saying that you need to create log analytics workspace manually? ARM template can be used to deploy workspace as well.

@mattquinn & @artisticcheese - Thanks for your feedback. I'm working on a number of changes to the onboarding article in preparation for new changes being introduced to the solution, and addressing the ambiguity regarding LA workspace requirements between new/existing AKS cluster.  The point about creating the workspace manually under the existing section using ARM template is intended to make the point that you need to create the workspace as a step in the process before enabling monitoring using ARM template method.  I'll tweak the wording to have it come across better to the reader.  #in-progress

@MicahMcKittrick-MSFT - The onboarding article was updated last week or week prior and should address this feedback appropriately.  #please-close


Uncaught TypeError: Cannot read properties of null (reading 'toString')     at SingleEntryBrowserHistory.onPopState$1

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
I am using single-spa and embedded the Flutter application. On the initial load, it throws the error message. After closing the error the application works normally.
Expected results
The page should load normally without errors.
Actual results
The page loaded with an error message from main.dart.js.
Code sample
Code sample

function loader({entrypointUrl}) {
    // Embed flutter into div#flutter_target
    let target = document.querySelector("#flutter_target");
    _flutter.loader.loadEntrypoint({
        entrypointUrl,
      onEntrypointLoaded: async function (engineInitializer) {
        let appRunner = await engineInitializer.initializeEngine({
          hostElement: target,
          assetBase: "http://localhost:9999/"
        });
        await appRunner.runApp();
      },
    });
  }

  var app = {
    // Optional
    async bootstrap(props) {
      console.log("App is initializing!", props);
    },
    // Required
    async mount(props) {
      console.log("App is mounting", props);
      loader({entrypointUrl: "http://localhost:9999/main.dart.js"})
    //   window.entrypointUrl =  "http://localhost:9999/main.dart.js";
    },
    // Required
    async unmount(props) {
      console.log("App is unmounting", props);
      const flutterElement = document.querySelector("#flutter_target")
      flutterElement.innerHTML= ""
    },
  };

  window.app = app;

Screenshots or Video

Screenshots / Video demonstration

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.7, on Ubuntu 22.04.3 LTS 6.2.0-34-generic,
    locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.83.0)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

The build was done with compiler optimization. flutter build web --dart2js-optimization O1

Hi @jehuamanna. Thanks for filing this. Can you please provide more information on this?

Does this error message cause a crash?
Also, can you share the full logs you are getting on first run?

Moreover, please could you also provide the information indicated below:

A completed and minimal reproducible code sample, usually a single main.dart file but you could share a sample repo in this case.
Reproduction steps

Thank you!

The app does and does not crash. I don't know when it depends. But after clicking the close button, it continues functioning.
In this example, the app does not crash.
Sample app : Sample App

Hi @jehuamanna. Thanks for your response. I cloned the repo you shared and ran the sample code on my end but I can't seem to reproduce this on my end even on the first run. On the first run, I have this:

Are there any steps I might be missing out on?

When the app is embedded in another application, the error occurs. This is a micro frontend PoC using a single-SPA
I have written steps on how to run the Microfrontend in  README

Hi @jehuamanna. Thanks for filing this, could you try this with a newly created flutter project? Also, I see a similar issue solved by https://github.com/flutter/flutter/issues/94553#issuecomment-985978074, could you try this out to see if it works in your case?

@dam-ease I created a new Flutter project application. The issue still remains the same. This is the (updated project)[git@github.com:jehuamanna/github_triage_microfrontend.git]
I am not loading main.dart.js as script from index.html. Infact the index.html looks like (this).[https://github.com/jehuamanna/github_triage_microfrontend/blob/master/es5/index.html]

This is most likely due to 2 competing apps (the host app and the embedded flutter app) modifying the browser history.
When the flutter app is embedded, we should NOT touch the browser history by default. There's already a Github issue for doing this: https://github.com/flutter/flutter/issues/118219.
@jehuamanna if you are feeling adventurous, you could try copying our TestUrlStrategy which is basically an in-memory history that doesn't mess with the browser history. Then you can use it like this:
import 'package:flutter/material.dart';
import 'package:flutter_web_plugins/url_strategy.dart';

void main() {
  setUrlStrategy(TestUrlStrategy());
  runApp(MyApp());
}

For now, I'm closing this as a duplicate of https://github.com/flutter/flutter/issues/118219