text:
Fix import of private function for flask 2.0.0

Flask commit b146a13f633b0e2e26e3b8383b3db0feb563bc83
moved def _endpoint_from_view_func from src/flask/helpers.py to src/flask/scaffold.py
It looks like this will be released with flask 2.0.0

Why was this issue closed and the PR branch deleted? The patch has not been released.

@rena2damas It has been fixed in PR #915 in a way that does not require importing private flask functions, but it has not been released yet.

@schuderer the merged fix was only added after my comment was made

authors: dougroyal rena2damas schuderer

repo: flask-restful/flask-restful


text:
Quick Setup instructions for Pop_OS are incorrect

As of the Pop_OS 20.04 release, Flathub is setup by default on Pop_OS. No additional setup is required.
For earlier versions, it's recommended to add remotes in --user mode to ensure smooth transition to 20.04 (which uses and adds user-mode remotes by default). Having Flathub added as a system-mode remote means that when a user upgrades to 20.04, they must remove and re-add the remote to allow installation through Pop Shop. This removes any applications the user has installed.
So the command should be:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

I think this was opened against the incorrect repo, and additionally it looks like most of this has been taken care of by https://github.com/flatpak/flatpak.github.io/commit/a7340e5d54c3476c74ffb2911212d51baf75cd55

source: gharchive/issue

repo: flathub/linux-store-frontend

license_type: permissive

license_source: github-api


text:
Unable to verify SourceForge subdomain

Hello.  I attempted to run the verification process on my app.  However, it did not properly recognize the SourceForge subdomain that's the app's main website.
Though I uploaded the token file correctly to [appname].sourceforge.io, the verification process is not using the subdomain as part of the application URL, and is instead checking sourceforge.io directly, thus causing the verification to fail.  Can the verification check be updated to recognize the subdomains in the application URLs?

Same here. I have 4 applications in Flathub hosted by Sourceforge:

https://flathub.org/apps/net.sourceforge.VMPK
https://flathub.org/apps/net.sourceforge.dmidiplayer
https://flathub.org/apps/net.sourceforge.kmetronome
https://flathub.org/apps/net.sourceforge.kmidimon

I am the author of all of them, and I am also the packager. But I can't verify any because in all cases this site requests to  put a file 'https://sourceforge.net/.well-known/org.flathub.VerifiedApps.txt' which I can't. That requires write access to the  root web domain of Sourceforge. I have a subdomain for each application, and I could put the file there, but this is not supported by Flathub:

https://vmpk.sourceforge.net that redirects to https://vmpk.sourceforge.io
https://dmidiplayer.sourceforge.net -> https://dmidiplayer.sourceforge.io
https://kmetronome.sourceforge.net -> https://kmetronome.sourceforge.io
https://kmidimon.sourceforge.net -> https://kmidimon.sourceforge.io

Please, enable a solution. Thanks.

Should start working, as soon as the backend is redeployed

Was able to verify.  Confirmed, thanks.

authors: joeraz pedrolcl razzeee

repo: flathub/website


text:
Azure App Service app settings name can't have a colon

"App setting names can only contain letters, numbers (0-9), periods ("."), and underscores ("_")"

If "Azure App Settings (JSON)" is chosen, then we should pre-select underscore

repo: flcdrg/JsonToEnvironmentConverter


text:
7 hnz clientserver reconnection issues

Closes #7

All commented prints may be uncommented for advanced debugging in case random connection issues are encountered again in the future.

source: gharchive/pull-request

repo: fledge-power/libhnz


text:
Validate template note

I've made a commit and fixed some stuff, can you check it and make sure it's good @gonzalovelasco

Thanks, It is working well.

repo: fleetingnotes/fleeting-notes-obsidian

license: MIT


text:
google_fonts dart package

Please Describe The Problem To Be Solved
I heard that the google_font  dart package is very efficient and useful when working with fonts. Is it possible to have this here?
Let me know what you think..

It's already possible to use Google fonts in Flet!
Browse fonts here: https://fonts.google.com/
Let's say you liked "Dancing script": https://fonts.google.com/specimen/Dancing+Script
Find selected font in this repository: https://github.com/google/fonts/tree/main/ofl/dancingscript
Use it in a Flet app - download or reference raw URL: https://flet.dev/docs/controls/page#fonts
If you see a font with the name like DancingScript[wght].ttf that means it is a variable weight font, i.e. it contains multiple fonts.
You can split fonts like that into multiple .ttf files for every weight using fonttools:
fonttools varLib.mutator ./YourVariableFont-VF.ttf wght=140 wdth=85

To explore available font features (e.g. possible options for wght) use Wakamai Fondue online tool:

I got that.
But I suggested that Google-fonts package because it will permit us the devs test multiple fonts in a very small time lapse, compared to downloading individual fonts before testing.
Have a look at this @FeodorFitsner
https://user-images.githubusercontent.com/6655696/161121395-bbda7d3e-0842-4fe2-b428-9b2f29da8a8f.gif
That will be great in hot reload mode.

authors: FeodorFitsner ndonkoHenri

repo: flet-dev/flet


text:
Bokeh Widget broken

seems to be originated here:
def make_bokeh_widget(plot, **kwargs):       Plot = components = None       exec("from bokeh.models import Plot")  # noqa - dont trigger e.g. PyInstaller       exec("from from bokeh.embed import components")  # noqa - dont trigger e.g. PyInstaller
tried to remove the second "from" but still no luck.
any chance to enable bokeh plot support again?

Fixed, kinda. The layout is a bit iffy still ... could use some help to resolve that; I haven't been using Bokeh in a long time.

authors: almarklein avivazran

repo: flexxui/flexx


text:
Make sidebar configurable regarding which side it is displayed.

The 'sidebar' on the main-keyboard should be configurable to be visible either on the left or right side of the x-board.

The issue is partially fixed. Currently the keyboard view is not updated instantly as soon as the configuration changes. To view the changes, you need to either

switch the phone to landscape mode and back OR
switch to a different keyboard and back.

A different ticket will be raised for the bug, closing this issue.

you should also add a o option to remove it

It serves a lot of essential function and cannot be removed.

The selection can be reached swiping from right to center
Disabling side bar can centralize the center circle and make it more simpl e
Should not be the default but a option

authors: BruceMustache flide


text:
MGMT-18289: Support k8s secrets as a configuration source

K8S secrets are defined as config item in either fleet or device.  Such config item contains the following fields:

name: the secret name
namespace: the secret namespace
mountPoint: the location were the secret(s) should be stored. Every secret has a "data" dictionary.  The data itself is stored as key/value pairs.
The aim is to place the values on the filesystem of a target device. So the mountPath is the parent directory, and each of the keys are the file names in the parent directory.
Every K8S secret contains the values encoded with base64.  When placing in the target device this encoding is removed.
To place the secrets on a target device, ignition is used.  Since kubernetes config item is not in ignition format,
"InlineConfigProviderSpec" is used for that purpose.

Really great first pass!  I noticed two things when quickly reviewing:

We pass the k8s client throughout the worker.  We may support clients to additional k8s clusters in the future, so let's call this one the "local" k8s client, and maybe also instantiate it only in the relevant tasks when needed?
We need to be able to have parameters in the k8s config.  These parameters are replaced in the fleet rollout task.  So, for now, let's not "freeze" the configuration in the templateversion_populate task.  Follow the example of the git config instead.  In templateversion_populate, return an error if there are parameters and simply copy the config to the templateversion as-is.  Then in the device_render task, fetch the contents of the secret and put them in device.spec as inline config (basically move that logic from templateversion_populate to device_render).  Later on we'll implement the logic to properly freeze k8s secrets (we'll need to copy them because there's no versioning) and deal with parameters (we'll need to track secrets per device label value).

We may support clients to additional k8s clusters in the future

Additional clusters will require additional parameter (i.e kubeconfig) so will the secret spec change to contain kubeconfig or anything else? Anyway if kubeconfig is needed maybe we should hold it as a secret by itself?  If this is the case that we might want to separate the secret reference and what it is used for.

We need to be able to have parameters in the k8s config.

What field should be parameterized for secrets ?

We may support clients to additional k8s clusters in the future

Additional clusters will require additional parameter (i.e kubeconfig) so will the secret spec change to contain kubeconfig or anything else? Anyway if kubeconfig is needed maybe we should hold it as a secret by itself? If this is the case that we might want to separate the secret reference and what it is used for.

Let's leave it as is for now and deal with multiple clients if and when we will support it.

We need to be able to have parameters in the k8s config.

What field should be parameterized for secrets ?

Let's check the name and namespace for parameters and return a human-readable error.  Otherwise the code looks great.  We'll need to move things around when we support parameters but the code is correct as is for now.

authors: avishayt ori-amizur

repo: flightctl/flightctl


text:
Update sbt, scripted-plugin to 1.5.2

Updates

org.scala-sbt:sbt
org.scala-sbt:scripted-plugin

from 1.3.13 to 1.5.2.
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!

Files still referring to the old version number
The following files still refer to the old version number (1.3.13).
You might want to review and update them manually.
.travis.yml
build.sbt

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt" } ]

labels: library-update, semver-minor, old-version-remains

Superseded by #82.

repo: flinters/sbt-dao-generator


text:
[Python] allow pydantic < 3.0 in deps

Please, update pydantic version pin in pyproject.toml to < 3.0 instead <2.5.0. Pydantic already has 2.5.2 tag.
I start big migration in my company from Pydantic 1.x to 2.5.2 and it's blocked;(

@FyZzyss I'm a python noob, will this work: https://github.com/flipt-io/flipt-client-sdks/pull/36/files ?

@markphelps Wow! Thank you for such quick response.
Yes, this will work

@markphelps Will you be create a new tag for https://github.com/flipt-io/flipt-python with updated deps? For quick installation from pypi

authors: FyZzyss markphelps

repo: flipt-io/flipt-client-sdks


text:
Payment gateway

Hi, is there any kind of payment gateway to this app?
If not how is it easiest to achieve?
Regards

payment gateway is not implemented yet.
the most easiest way is implement a callback URL with php (or node js), write the deposit of coins to redis, then pass it to apple or google in-app purchase.

Hi,
thanks for your reply..
Could you possible write a kind of example? That would be easier for me since I am still looking through the code to understand how it is working out.l
And also, is it possible to get in touch with you through mail?
I sent you an email about 10 hours ago  but dont know if you still use that mail (I found it on google).
regards

this project is still under development and not fully completed yet. you may need write that part yourself.
using your favorite php or jsp or node js, write data to redis server. user data is stored in a hash map, the key is "user:#", type hgetall in redis-cli to see the fields.

Ok.. thanks..
But is the texas holdem game finished?
I really would like to get in touch with you privately if possible.
Please let me know how I can get in touch with you privately.

the email you sent is correct. but i prefer tracking issue and discuss here, as other people can join discussion too.
only when you wanna discuss something confidential, send me email.

authors: floatinghotpot zilveer

repo: floatinghotpot/casino-server


text:
VS2015 WP8.1 CLI5.4.1 Apache Cordova Project: Error AdMob is undefined

CODE:
    <!-- Cordova reference, this is added to your app when it's built. -->
    <script src="cordova.js"></script>
    <script src="scripts/platformOverrides.js"></script>

    <script src="scripts/index.js"></script>

    <script>
        var admobid = {};
        if (/(android)/i.test(navigator.userAgent)) {
            admobid = { // Para Android
                banner: 'ca-app-pub-6515974849647556/8396742883',
                interstitial: 'ca-app-pub-6515974849647556/1373476081'
            };
        } else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
            admobid = { // para iOS
                banner: 'ca-app-pub-6515974849647556/8936742883',
                interstitial: 'ca-app-pub-6515974849647556/3473476081'
            };
        } else {
            admobid = { // para Windows Phone
                banner: 'ca-app-pub-6515974849647556/8996342883',
                interstitial: 'ca-app-pub-6515974849647556/1472476081'
            };
        }

        function initApp() {
            if (AdMob) AdMob.prepareInterstitial({ adId: admobid.interstitial, autoShow: true });
            if (AdMob) {
                AdMob.createBanner({
                    adId: admobid.banner,
                    position: AdMob.AD_POSITION.BOTTOM_CENTER,
                    autoShow: true
                });
            }
        }

        function onBackKeyDown() {
            if (AdMob) AdMob.prepareInterstitial({ adId: admobid.interstitial, autoShow: true });
        }

        document.addEventListener('deviceready', initApp, false);
        document.addEventListener("backbutton", onBackKeyDown, false);

    </script>

</body>
</html>

CONFIG.XML:
<plugin
name="cordova-plugin-admobpro"
version="2.11.1"
src="https://github.com/floatinghotpot/cordova-admob-pro" />

RESULT:
SCRIPT5009: Unhandled exception at line 45, column 13 in ms-appx://io.cordova.myapp397d97/www/index.html 0x800a1391 - JavaScript runtime error: 'AdMob' is undefined
Help plx.

I change config.xml to:
plugin name="cordova-plugin-admobpro" version="2.11.1"
I removed src.
Error fixed.
However, no banner is displayed. Have tested this code with the android, it works. The banners are not displayed visual studio. The test is being done directly on a device with windows phone.

It seems VS2015 is not smart enough to handle the plugin dependency, so you need install the dependency plugin by yourself, like this:
  <plugin name="cordova-plugin-admobpro" version="2.11.1" src="https://github.com/floatinghotpot/cordova-admob-pro" />
  <plugin name="cordova-plugin-extension" version="1.2.9" src="https://github.com/floatinghotpot/cordova-extension" />

The error has been corrected. Rebuild the project.
However, no banner is displayed. The same code to run for android.
The test was made on a Nokia Lumia with Windows 8.1
What might be happening?
THX.

I see that you are using same ad unit id for all platforms. It's not correct. Using android ad unit Id for win phone won't work.
In admob portal, you need create ad unit for different platform.

On test. I created an ad for windows phone in admob. Rebuild. Even so, any error appears in the visual studio. However, no banner is displayed at the time of testing.
Thanks for listening.

authors: avalox floatinghotpot

repo: floatinghotpot/cordova-admob-pro

license: mit

license_source: bigquery


text:
CI may have created a flawed image

The file /usr/local/share/acme/deploy/haproxy.sh contains 404: Not Found, causing haproxy to not start.
Tested with ghcr.io/flobernd/haproxy-acme-dns01:latest

Tried 2.9 as well, same issue

Seems like the deploy script got merged to the upstream acme.sh repository. It was previously only available from the haproxy repo and downloaded in the Dockerfile (and I forgot to pass --fail to curl which allowed the build process to continue even tho a 404 was returned).
Removing the download step should fix this problem. I'll take a look.

Should be fixed for 3.0 now. 2.9 is currently being deployed as well.

Confirmed that it works now. Thanks for being so quick to fix this!

authors: flobernd yorickdowne

repo: flobernd/docker-haproxy-acme


text:
GearVR / Google Cardboard Support

Is there any plan to add GearVR or Google Cardboard support?

Not yet, but pull-requests and discussions welcome ;)
I would prefer a solution that supports both the 'Mobile VR' SDKs as well as WebVR, other then that I haven't spent much thought yet how VR support would best be integrated into Oryol. A few question would be (apologies if those don't make sense, I haven't actually looked at the VR SDKs yet):

What would be the required minimal changes to the Gfx module?
What about the position tracking? Better have a new 'input device' in the Input module, or have a separate 'VR' module?
What other features besides rendering and position tracking need to be exposed, and where should they live?

authors: floooh missmah

repo: floooh/oryol


text:
Feature request : compute shaders , implementation tips

Compute shaders are work in progress as a prototype under Oryol (metal in IOS and RenderScript in android , windows is dx12 planned but not considered yet).
Will welcome implementation tips and suggestions.

Hi neshume, apologies for responding late. I haven't thought that much yet about compute support, since WebGL doesn't have support (and probably won't have for a while).
I guess you're feeding platform specific shader code directly without going through the shader code generator? Because before doing considerable work on the shader side I'd like to find a replacement for the current brittle text-translation-based shader 'meta' language.
If you can, put it behind a GfxFeature flag, other then that I don't have a lot of feedback because I haven't looked into computer shaders much yet :)

thx floooh ... there is a lot going on regarding this issue .. I am considering doing the same meta language with compute (metal and renderScript and dx12 compute ... webgl is still an interesting issue) shaders. Or ... maybe implement using GPGPU good old working method.
Updates ahead ;o)

What's going on with oryol compute support?

@neshume Does WebGL2 support for computing?

@floooh  @neshume  GLES2 doesn't support for computing?

There's no support for compute in WebGL, GLES2, WebGL2 or GLES3.0, that's the main reason why it is fairly low priority for me ATM. The WebGL successor will have some sort of compute support, but that's still a bit out.

compute is a very problematic issue. I am doing more GPGPU than pure compute. metal on IOS is ok but since its not cross platform the best way to go for now is GPGPU ..and oryol has a very good spir-v base to do so.

authors: floooh lygstate neshume


text:
It seems host authentication can not work together with the other authentication method!

ES Version: 2.4.0
Search Guard SSL : 2.4.0.16
search Guard 2     : 2.4.0.6
I tested the host authentication method, it seems that it can not work together with the other method!
I configure the SG with internal users first, and it works well. then I tried to enable host authentication with the lower order, then the host authentication take affective, I can access ES form the host , but the internal users can not access ES now. below is the error messages:

[root@tk-mgr-elk224
sgconfig]# curl -u admin:admin http://192.168.7.220:9200/_cat/health?pretty
{
"error" : {
"root_cause" : [ {
"type" : "security_exception",
"reason" : "no permissions for cluster:monitor/health"
} ],
"type" : "security_exception",
"reason" : "no permissions for cluster:monitor/health"
},
"status" : 403
}
After i disable host authentication, all work well agagin.
below is my configuration for host authentication:

authc:
basic_internal_auth_domain:
enabled: true
order: 2
http_authenticator:
type: basic
challenge: true
authentication_backend:
type: intern
host_auth_domain:
enabled: true
order: 1
http_authenticator:
type: host
challenge: false
authentication_backend:
type: noop

Can you please post your sg_roles_mapping.yml file?

below is my sg_roles_mapping.yml

In this file users, backendroles and hosts can be mapped to search guard roles.
What a role is allowed to do you specify in sg_roles.yml
sg_role_starfleet:
backendroles:
- starfleet
- captains
- defectors
- 'cn=ldaprole,ou=groups,dc=example,dc=com'
hosts:
- "*.starfleetintranet.com"
users:
- worf
sg_role_starfleet_captains:
backendroles:
- captains
sg_role_klingons1:
backendroles:
- klingon
hosts:
- "*.klingongov.kli"
users:
- worf
sg_logstash:
users:
- logstash
sg_kibana4_server:
users:
- kibanaserver
sg_kibana4:
users:
- kibanaro
sg_all_access:
hosts:
- 192.168.7.220
users:
- admin
- adm
- jianwu
sg_network:
users:
- test1
sg_sysadm:
users:
- test2
#sg_public:
users:
- '*'
sg_readall:
users:
- readall
- riker
- troid
sg_readonly_dlsfls:
users:
- dlsflsuser
sg_kibana4_testindex:
users:
- test

Below is my sg_roles_mapping.yml

sg_role_starfleet:
backendroles:
- starfleet
- captains
- defectors
- 'cn=ldaprole,ou=groups,dc=example,dc=com'
hosts:
- ".starfleetintranet.com"
users:
- worf
sg_role_starfleet_captains:
backendroles:
- captains
sg_role_klingons1:
backendroles:
- klingon
hosts:
- ".klingongov.kli"
users:
- worf
sg_logstash:
users:
- logstash
sg_kibana4_server:
users:
- kibanaserver
sg_kibana4:
users:
- kibanaro
sg_all_access:
hosts:
- 192.168.7.220
users:
- admin
- adm
- jianwu
sg_network:
users:
- test1
sg_sysadm:
users:
- test2
sg_public:
users:
- '*'
sg_readall:
users:
- readall
- riker
- troid
sg_readonly_dlsfls:
users:
- dlsflsuser
sg_kibana4_testindex:
users:
- test

if you configure something like

sg_all_access:
  hosts:
     - 192.168.7.220

you do not need the

http_authenticator:
  type: host

I guess we need to make this more clear in the documentation how the host authentication is supposed to work and when http_authenticator: type: host is really needed.

I did not understand clearly.  I enable host authentication, and remove `http_authenticator: type: host". Then the internal authentication can work, but I can not access ES from 192.168.7.220

we will deprecate http_authenticator: type: host cause its not really needed.
Something like

sg_role1:
  hosts:
     - 192.168.7.220
     - *.example.com
  users:
     - myuser
  backendroles:
     - myrole

will grant sg_role1 for all users who are 'myuser' or have the backendrole 'myrole' or for all other users/roles if the request is originally coming from the ip 192.168.7.220 (or from any host in the domain example.com)

@woodkan will close this issue. If you still have problems pls. open a new issue and reference this one.

authors: floragunncom woodkan

repo: floragunncom/search-guard


text:
Using passwordless in microservices

Can passwordless be used in microservices? Some sort of OPENID or similar model would be useful. What would need to be changed for setting it up?

You can create a microservice for authentication (using passwordless) which returns a JTW-token. Use the token among your other services.

authors: helloravi rvanzon

repo: florianheinemann/passwordless


text:
Assert on predicates that would return nil

FLKAutoLayout supported an interesting feature of Auto Layout that would let you create predicates that would not be applied due to too high of a priority, this breaks all the nullability checks in 1.0 alas, and so is removed via runtime asserts.
Re #49

Great!

authors: gonghao orta

repo: floriankugler/FLKAutoLayout


text:
Multiple Collections in Entity (Nested Documents)

When mapping collection fields of an entity (example below), the DocumentFactory might come to a point where the document's _childDocuments_ field already exists, filled with the child documents of one collection.
Then, if another collection is added to the _childDocuments_, this field is already an array, and the array sent to Document::addField(…) is inserted into the existing array, which results in nested arrays instead of a flat array of child documents.
Example Entity:
/**
 * @ORM\Entity()
 * @Solr\Document()
 */
class Profile
{

    /**
     * @ORM\Id
     * @ORM\Column(type="guid")
     * @ORM\GeneratedValue(strategy="UUID")
     *
     * @Solr\Id
     */
    protected $id;

    /**
     * @ORM\OneToMany(
     *     targetEntity="Entity\Skill",
     *     mappedBy="profileSkill",
     *     cascade={"persist"}
     * )
     *
     * @Solr\Field(nestedClass="Entity\Skill")
     */
    private $skills;

    /**
     * @ORM\OneToMany(
     *     targetEntity="Entity\Experience",
     *     mappedBy="profile",
     *     cascade={"persist"}
     * )
     *
     * @Solr\Field(nestedClass="Entity\Experience")
     */
    private $experiences;

    public function __construct()
    {
        $this->skills = new ArrayCollection();
        $this->experiences = new ArrayCollection();
    }
}

Expected Document Fields:
[
  'id' => '550e8400-e29b-11d4-a716-446655440000',
  '_childDocuments_' => [
    0 => [
      // first document from first collection
    ],
    1 => [
      // second document from first collection
    ],
    2 => [
      // first document from second collection
    ],
    3 => [
      // second document from second collection
    ]
  ]
]

Actual Document Fields:
[
  'id' => '550e8400-e29b-11d4-a716-446655440000',
  '_childDocuments_' => [
    0 => [
      // first document from first collection
    ],
    1 => [
      // second document from first collection
    ],
    2 => [
      0 => [
        // first document from second collection
      ],
      1 => [
        // second document from second collection
      ],
    ]
  ]
]

Since the last child document sent to solr looks like it's field names are the array indices ('0' and '1' in this example), solr sends a 400 error saying "unknown field '0'".
Even though this seems to be a solarium bug, this bundle can easily work around it using the following DocumentFactory::mapCollectionField() function:
    /**
     * @param Field  $field
     * @param string $sourceTargetClass
     *
     * @return array
     *
     * @throws SolrMappingException if no getter method was found
     */
    private function mapCollectionField($document, Field $field, $sourceTargetObject)
    {
        /** @var Collection $collection */
        $collection = $field->getValue();
        $getter = $field->getGetterName();

        if ($getter != '') {
            $collection = $this->callGetterMethod($sourceTargetObject, $getter);

            $collection = array_filter($collection, function ($value) {
                return $value !== null;
            });
        }

        $values = [];
        if (count($collection)) {
            foreach ($collection as $relatedObj) {
                if (is_object($relatedObj)) {
                    $values[] = $this->objectToDocument($relatedObj);
                } else {
                    $values[] = $relatedObj;
                }
            }

            $fields = $document->getFields();
            if (isset($fields['_childDocuments_']) && is_array($fields['_childDocuments_'])) {
                foreach ($values as $value) {
                    $document->addField('_childDocuments_', $value, $field->getBoost());
                }
            } else {
                $document->addField('_childDocuments_', $values, $field->getBoost());
            }
        }

        return $values;
    }

What do you think, should this be fixed/changed on solarium's side? Or should this bundle take care of properly creating a flat child documents array?
I can send a pull request if needed.

I just realised that the same thing happens if the second field is a single child document and not a collection.
In oder to fix this, one would have to apply the same as above to single nested objects in DocumentFactory::createDocument():
[…]
if (is_object($fieldValue) && $field->nestedClass) { // index sinsgle object as nested child-document
    $fields = $document->getFields();
    $value = $this->objectToDocument($fieldValue);
    if (isset($fields['_childDocuments_']) && !is_array($fields['_childDocuments_'])) {
        $value = [$value];
    }

    $document->addField('_childDocuments_', $value, $field->getBoost());
}
[…]

repo: floriansemm/SolrBundle


text:
Revert loading order of environment files

Due to the order of files in https://github.com/flownative/localbeach/blob/27c19379f799449b3ac3038954a961849d743b2b/pkg/beachsandbox/helpers.go#L56 one cannot override a variable from localbeach.dist.env in one of the other files.
Or I am too stupid to see my error…
Should we revert the order, or was this a very conscious choice?

It was a conscious choice back then but it probably does not make any sense.

I can prepare a PR to revert the order, if you like.

authors: kdambekalns robertlemke

repo: flownative/localbeach


text:
Register hook: errors include filenames

Makes syntax errors print out like:

SyntaxError: /path/to/code/somefile_with_typo.js: Unexpected token (4:0)
.... useless bablyon stack trace

instead of like:

SyntaxError: Unexpected token (4:0)
.... useless bablyon stack trace

This makes it obvious which file the parse failed on which is extremely useful if developing across many files.

Nice work

authors: dennisss leebyron

repo: flowtype/flow-remove-types


text:
Firebase: add definition of Cloud Firestore functions.

Firebase libdef in the repository currently doesn't have the definition of Cloud Firestore functions. Please consider adding one.

@AndrewSouthpaw This is a different library that is requested maybe:
import * as functions from "firebase-functions";

This one doesn't seem to be cover yet by flow-typed.

I added a simple definition that supports https triggers at https://github.com/flowtype/flow-typed/pull/2311

authors: peat-psuwit wcandillon

repo: flowtype/flow-typed


text:
Error with mergeToFile()

Getting an error when I user .mergeToFile().

Error: ffmpeg exited with code 1: Argument 'B:\auto.avi' provided as input filename, but 'B:\dyn.avi' was already specified.

When I write my ._inputs property of the ffmpeg object I see:
[ { source: 'B:\\dyn.avi',
    isFile: true,
    isStream: false,
    options:
     { [Function]
       clear: [Function],
       get: [Function],
       find: [Function],
       remove: [Function],
       clone: [Function] } },
  { source: 'B:\\auto.avi',
    isFile: true,
    isStream: false,
    options:
     { [Function]
       clear: [Function],
       get: [Function],
       find: [Function],
       remove: [Function],
       clone: [Function] } },
  { source: 'B:\\easy.avi',
    isFile: true,
    isStream: false,
    options:
     { [Function]
       clear: [Function],
       get: [Function],
       find: [Function],
       remove: [Function],
       clone: [Function] } },
  { source: 'B:\\punc.avi',
    isFile: true,
    isStream: false,
    options:
     { [Function]
       clear: [Function],
       get: [Function],
       find: [Function],
       remove: [Function],
       clone: [Function] } } ]

Why is fluent-ffmpeg throwing that error?  I'm not doing exactly what's in the sample code because I'm using `.mergeAdd(filename) in a loop.  After the loop, I want to do the merge, but it doesn't work.  Any ideas?

Can you please post your code ? And what's passed to the 'start' event ?

ffmpeg              = require('fluent-ffmpeg');
concat_output       = "C:\\test-concat.avi",
ffmpeg_cmd          = ffmpeg();

ffmpeg_cmd.input("C:\\test\\test_FINAL_1080P_goog_dyn.avi");
ffmpeg_cmd.input("C:\\test\\test_FINAL_1080P_goog_auto.avi");;

ffmpeg_cmd.on('start', (command) => {
  console.log('Spawned FFmpeg with command: ' + command);
})

ffmpeg_cmd.on('error', (err) => {
    console.log("FFMPEG ERR: " + err.message);
    console.log(err.stack);
})

ffmpeg_cmd.on('end', (stdout, err) => {
    console.log("Job Finished!");
})

ffmpeg_cmd.videoCodec('libx264').noAudio();

console.log(ffmpeg_cmd._inputs);
ffmpeg_cmd.mergeToFile(concat_output);

Here's the output when I added the 'start' event:
Spawned FFmpeg with command: ffmpeg -i C:\test\test_FINAL_1080P_goog_dyn.avi -i C:\test\test_FINAL_1080P_goog_auto.avi -y -filter_complex concat=n=2:v=1:a=0 -an -vcodec libx264 C:\Arie\test-concat.avi
FFMPEG ERR: ffmpeg exited with code 1: Argument 'C:\test\test_FINAL_1080P_goog_auto.avi' provided as input filename, but 'C:\test\test_FINAL_1080P_goog_dyn.avi' was already specified.

Error: ffmpeg exited with code 1: Argument 'C:\test\test_FINAL_1080P_goog_auto.avi' provided as input filename, but 'C:\test\test_FINAL_1080P_goog_dyn.avi' was already specified.

Any ideas what I'm missing?  I thought maybe it was due to a space in a path or something, but alas, even without spaces I'm getting this error.
Thanks for your help.

Also, if I remove one of the inputs so it results in one here are my results:
Spawned FFmpeg with command: ffmpeg -f avi -i C:\test\test_FINAL_1080P_goog_dyn.avi -y -filter_complex
concat=n=1:v=1:a=0 -an -vcodec libx264 -pix_fmt yuv420p C:\test\test-concat.avi

FFMPEG ERR: ffmpeg exited with code 1: Failed to set value '-filter_complex' for option 'y': Option not found

Error: ffmpeg exited with code 1: Failed to set value '-filter_complex' for option 'y': Option not found

    at ChildProcess.<anonymous> (L:\event-scripts\node_modules\fluent-ffmpeg\lib\processor.js:167:22)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Any idea what the issue might be?
Thanks,
Arie

Found the issue.  It was something I totally overlooked.  I decided to use absolute paths to the ffmpeg binaries, so I actually had this at the top of my file:
ffmpeg.setFfmpegPath("C:\\Program Files\\ffmpeg\\bin\\ffmpeg.exe");
ffmpeg.setFfmpegPath("C:\\Program Files\\ffmpeg\\bin\\ffprobe.exe");

Which should have been
ffmpeg.setFfmpegPath("C:\\Program Files\\ffmpeg\\bin\\ffmpeg.exe");
ffmpeg.setFfprobePath("C:\\Program Files\\ffmpeg\\bin\\ffprobe.exe");

Once I changed the method in the second line.  It worked!
Closing the issue.

Oh ! So it was calling ffprobe instead... :)

Thanks @ariestav for giving the solution, i did the same silly mistake. You saved a lot of my time and effort.
Cheers.

Error ffmpeg exited with code 4294967274: frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
Conversion failed!

any help

authors: ariestav muanziri njoyard sohwitt

repo: fluent-ffmpeg/node-fluent-ffmpeg


text:
A detailed document

fluent and anna is  cool ，Is there a detailed document?
It’s hard to learn without documentation.

Hi @yuinm -- thanks for your note. What sort of detailed documents are you looking for? You can find some getting started docs in the repo. If there are other things you'd like more detail on, please let us know, and we'll try to add docs for those things.

Thank you for your reply.
I want to know what the principle is.
And want to know how to compare with tbb.

You can find a more detailed comparison with TBB in this paper. We are working on another paper with the architecture of the system and will post it when we can.

authors: vsreekanti yuinm

repo: fluent-project/fluent


text:
Add Papertrail Support

[X] Add Alpine and Debian images for Papertrail
[X] Add Kubernetes Daemonset example for Papertrail

@ edsiper Could you have a look when time permits ? :)

Until this gets merged - the images is being published at our repo in Quay

Hey @edsiper - let me know if this looks good to you as I would love to have a PaperTrail integration here.
cc'ing @ leecalcote

repo: fluent/fluentd-kubernetes-daemonset


text:
Use rr 3.0 on unit tests for Ruby 3.0 kwargs changes

Which issue(s) this PR fixes:
Related to #3263
What this PR does / why we need it:
Older rr did not support Ruby 3.0. We should upgrade rr to 3.0.
Docs Changes:
No needed.
Release Note:
Same as title.

ref: https://github.com/rr/rr/issues/77

5 tests are still failed on Ruby 3.0. Further work is needed.
https://github.com/fluent/fluentd/pull/3304/checks?check_run_id=2233595843
Failure: test_secondary(FluentOutputTest::BufferedOutputTest):
  On subject #<Fluent::Test::TestLogger:0x0000560ce53c5dc8>,
  unexpected method invocation:
    warn("Use different plugin for secondary. Check the plugin works with primary like secondary_file", primary: "#<Class:0x0000560ce53cc678>", secondary: "Fluent::Plugin::Test2Output")
  expected invocations:
  - warn("Use different plugin for secondary. Check the plugin works with primary like secondary_file", {:primary=>"#<Class:0x0000560ce53cc678>", :secondary=>"Fluent::Plugin::Test2Output"})
/home/runner/work/fluentd/fluentd/lib/fluent/plugin/output.rb:391:in `configure'
/home/runner/work/fluentd/fluentd/lib/fluent/plugin_helper/inject.rb:104:in `configure'
/home/runner/work/fluentd/fluentd/lib/fluent/plugin_helper/event_emitter.rb:73:in `configure'
/home/runner/work/fluentd/fluentd/lib/fluent/compat/output.rb:285:in `configure'
/home/runner/work/fluentd/fluentd/lib/fluent/test/base.rb:60:in `configure'
/home/runner/work/fluentd/fluentd/test/test_output.rb:121:in `test_secondary'
     118:
     119:       mock(d.instance.log).warn("Use different plugin for secondary. Check the plugin works with primary like secondary_file",
     120:                                 { primary: d.instance.class.to_s, secondary: "Fluent::Plugin::Test2Output" })
  => 121:       d.configure(CONFIG + %[
     122:         <secondary>
     123:           type test2
     124:           name c0

Failure: test: Create connection per send_data(ForwardOutputTest::keepalive::with require_ack_response):
  socket_create_tcp("127.0.0.1", 46049, anything)
  Called 0 times.
  Expected 2 times.
/home/runner/work/fluentd/fluentd/test/plugin/test_out_forward.rb:1299:in `block (3 levels) in <class:ForwardOutputTest>'
     1296:
     1297:         begin
     1298:           chunk = Fluent::Plugin::Buffer::MemoryChunk.new(Fluent::Plugin::Buffer::Metadata.new(nil, nil, nil))
  => 1299:           mock.proxy(d.instance).socket_create_tcp(TARGET_HOST, TARGET_PORT, anything) { |sock| mock(sock).close.once; sock }.twice
     1300:
     1301:           target_input_driver.run(timeout: 15) do
     1302:             d.run(shutdown: false) do

Failure: test: must be called #start and #stop(HttpHelperTest::Create a HTTP server):
  On subject Fluent::PluginHelper::HttpServer::Server,
  unexpected method invocation:
    new(addr: "127.0.0.1", port: 39171, logger: #<Logger:0x0000560ce391be28 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000560ce391be00 @datetime_format=nil>, @formatter=nil, @logdev=nil>, default_app: nil)
  expected invocations:
  - new(anything)
/home/runner/work/fluentd/fluentd/lib/fluent/plugin_helper/http_server.rb:69:in `http_server_create_http_server'
/home/runner/work/fluentd/fluentd/test/plugin_helper/test_http_server_helper.rb:358:in `block (3 levels) in <class:HttpHelperTest>'
     355:         end
     356:
     357:         stub(Fluent::PluginHelper::HttpServer::Server).new(anything) { server }
  => 358:         driver.http_server_create_http_server(:http_server_helper_test, addr: '127.0.0.1', port: PORT, logger: NULL_LOGGER) do
     359:           # nothing
     360:         end
     361:         driver.stop
/home/runner/work/fluentd/fluentd/test/plugin_helper/test_http_server_helper.rb:29:in `on_driver'
/home/runner/work/fluentd/fluentd/test/plugin_helper/test_http_server_helper.rb:349:in `block (2 levels) in <class:HttpHelperTest>'

Failure: test: Warn if primary type is different from secondary type and either primary or secondary has custom_format(OutputTest::basic output feature::configure secondary):
  On subject #<Fluent::Log:0x0000560ce5e6d280>,
  unexpected method invocation:
    warn("Use different plugin for secondary. Check the plugin works with primary like secondary_file", primary: "FluentPluginOutputTest::DummyAsyncOutput", secondary: "Fluent::Plugin::TestOutput")
  expected invocations:
  - warn("Use different plugin for secondary. Check the plugin works with primary like secondary_file", {:primary=>"FluentPluginOutputTest::DummyAsyncOutput", :secondary=>"Fluent::Plugin::TestOutput"})
/home/runner/work/fluentd/fluentd/lib/fluent/plugin/output.rb:391:in `configure'
/home/runner/work/fluentd/fluentd/test/plugin/test_output.rb:873:in `block (3 levels) in <class:OutputTest>'
     870:         mock(o.log).warn("Use different plugin for secondary. Check the plugin works with primary like secondary_file",
     871:                          { primary: o.class.to_s, secondary: "Fluent::Plugin::TestOutput" })
     872:
  => 873:         o.configure(config_element('ROOT','',{},[config_element('secondary','',{'@type'=>'test', 'name' => "cool"})]))
     874:         assert_not_nil o.instance_variable_get(:@secondary)
     875:       end
     876:

Failure: test: if new service added and deleted(TestServiceDiscoveryManager::#run_once):
  On subject Fluent::Plugin,
  unexpected method invocation:
    new_sd(:sd_test, parent: nil)
  expected invocations:
  - new_sd(:sd_test, anything)
/home/runner/work/fluentd/fluentd/lib/fluent/plugin_helper/service_discovery/manager.rb:37:in `block in configure'
/home/runner/work/fluentd/fluentd/lib/fluent/plugin_helper/service_discovery/manager.rb:36:in `each'
/home/runner/work/fluentd/fluentd/lib/fluent/plugin_helper/service_discovery/manager.rb:36:in `configure'
/home/runner/work/fluentd/fluentd/test/plugin_helper/service_discovery/test_manager.rb:75:in `block (2 levels) in <class:TestServiceDiscoveryManager>'
     72:       sdm = Fluent::PluginHelper::ServiceDiscovery::Manager.new(log: $log)
     73:       t = TestSdPlugin.new
     74:       mock(Fluent::Plugin).new_sd(:sd_test, anything) { t }
  => 75:       sdm.configure([{ type: :sd_test, conf: config_element('service_discovery', '', {})}])
     76:       sdm.start
     77:
     78:       assert_equal 0, sdm.services.size

5 tests are still failed on Ruby 3.0. Further work is needed.

Failed testcases are green now. :muscle:

repo: fluent/fluentd


text:
[BUG] 使用Fluid加速主机目录时无法启动对应的master和woker, 也没有生成对应的pv,pvc

What is your environment(Kubernetes version, Fluid version, etc.)
~/ai/opea/chatqna# kubectl get node
NAME               STATUS   ROLES           AGE    VERSION
icelake-server-2   Ready    control-plane   19d    v1.29.9
opea-dev10         Ready    <none>          5d2h   v1.29.9
~/ai/opea/chatqna# kubectl version
Client Version: v1.29.9
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.9
~/ai/opea/chatqna# helm list
NAME 	NAMESPACE	REVISION	UPDATED                                	STATUS  	CHART      	APP VERSION
fluid	default  	1       	2024-11-15 13:53:02.904415378 +0800 CST	deployed	fluid-1.0.3	1.0.3-ccdf3a9
root@icelake-server-2:~/ai/opea/chatqna# cat fluid_opea_local.yaml
---
# dateset
apiVersion: data.fluid.io/v1alpha1
kind: Dataset
metadata:
  name: local-models
spec:
  mounts:
    - mountPoint: local:///mnt/opea-models/models--BAAI--bge-base-en-v1.5
      name: models--BAAI--bge-base-en-v1.5
   - mountPoint: local:///mnt/opea-models/models--BAAI--bge-reranker-base
     name: models--BAAI--bge-reranker-base
   - mountPoint: local:///mnt/opea-models/models--Intel--neural-chat-7b-v3-3
     name: models--Intel--neural-chat-7b-v3-3
---

---
# runtime
apiVersion: data.fluid.io/v1alpha1
kind: AlluxioRuntime
metadata:
  name: local-models
spec:
  replicas: 1
  tieredstore:
    levels:
      - mediumtype: MEM
        path: /dev/shm
        quota: 50Gi
        high: "0.95"
        low: "0.7"
---

Describe the bug
无法启动对应的master和woker, 也没有生成对应的pv,pvc
What you expect to happen:
启动对应的master和woker, 生成对应的pv,pvc
How to reproduce it
kubectl apply -f fluid_opea_local.yaml always failed in my machine.
Additional Information

Could you use this tool to collect the info? https://github.com/fluid-cloudnative/fluid/blob/master/docs/zh/userguide/troubleshooting.md. And upload this so we can analyze the root cause.

diagnose_fluid_1734508670.tar.gz
Hi @cheyang  This is diagnose log. Thanks.

authors: cheyang hualongfeng

repo: fluid-cloudnative/fluid


text:
standardized comment on LoadMetaData function

Ⅰ. Standardized comment on LoadMetaData function
Ⅱ. fix #304
Ⅲ. No tests are needed since it's merely a modification of comment
Ⅳ. Please review it by godoc to verify it has fit the standardization requirement.
Ⅴ. No special notes

Could you open an issue on it and relate it to the PR. Thanks.

Could you open an issue on it and relate it to the PR. Thanks.

Have I done it right now? Thanks for you time.

Thanks.

authors: Kuripika cheyang


text:
FLUID-5249: New documentation covering framework reorganisation under FLUID-5249

and other JIRAs. Documentation for new features for ContextAwareness (FLUID-5264) and Priority (FLUID-5506) features

General comment relevant to every file: code styling in headers breaks internal links to those headers. Please don't use it. I know it looks better, but it breaks links.

On 14/08/2015 17:11, Anastasia Cheetham wrote:

General comment relevant to every file: code styling in headers breaks internal links to those headers.
Please don't use it. I know it looks better, but it breaks links.
—
Reply to this email directly or view it on GitHub
https://github.com/fluid-project/infusion-docs/pull/63#issuecomment-131165179.

Removing code styling won't fix this issue. gh markdown and docpad markdown in rendering anchor ids differ
in many ways - for example, gh eliminates period characters and docpad doesn't. The code styling issue is
only relevant when the first word in a title is code-styled, in which case docpad inserts an extra leading
"-". I'll take care to fix up all our links to conform to the docpad rules.

@colinbdclark , @acheetham  - ready for another look. I've also made some fixes to styling, global structure and the docpad scripts.

The file Events.md doesn't really seem to serve much purpose. Could we get rid of it?

There are some problems with the UIO integration. It works and all, but a) the button is about one pixel high; b) when the panel opens and the page slides down, the ToC doesn’t also slide down.

I like the separate scrolling for the ToC and the content, but on pages that are very short, the footer is floating  up in the middle of the page. We should try to have the minimum height of the page be the window height.

There's supposed to be a gap between the main header of the page and the upper black nav bar, but that seems to be gone now, and it looks rather crowded.

The ToC link to APIChangesFrom1_5to2_0.html doesn't actually contain any text; can't tell why. The link is there in the generated html, but without any text in it.

Addressed most of the recent comments - UIO is working again, but I didn't have much luck with the footer - I don't think this can be tackled without changing the containment structure of the markup significantly (I already moved up the footer several levels in the document to prevent it bashing into the "position:fixed" TOC at the left). Perhaps @jhung has some ideas - Cheers

The link at the bottom of the "getting started" tutorial's Model Components page still points to the now non-existent Evented Components page

The paragraph at the top of the "getting started" tutorial's View Components page still refers to little and evented components.

The "Defining components" link at the top of the "Using String Templates" tutorial still links to the little components page

The "getting started" tutorial's Renderer Components page still has a link to the Evented Components page

The Event Injection and Boiling page has a link with link text "eventedComponent" – should probably just be "comonent"?

The link to the "API Changes from 1.5 to 2.0" page is still broken in the ToC

"API Changes from 1.5 to 2.0" works for me - what do you observe when operating the link? Does the URL look correct? Does a file like the one it is pointing to exist in the "out" directory?

Ready for further further review

repo: fluid-project/infusion-docs


text:
Provide Streams for FormBuilderState

Environment
Package version: 7.7.0
Description
What you'd like to happen:
For example, the package connectivity_plus has a onConnectivityChange stream. When you subscribe to it, you get the changes in real time.
_formKey.currentState!.onChange.listen((Map<String, FormBuilderFieldState<FormBuilderField, dynamic>> values) {
  // do what you want to do with fields
});

This is especially useful in state managers, specifically Bloc. Here, from Flutterly's Bloc tutorial from 8:34, you can see how streams can be utilized in Bloc.

This will be a nice feature. Things to consider:

This onChange should be apply only entire form, for single fields or for both?
The strem should send the instantValue or savedValues? I think that should be instantValues
Idea to implement: can be create a streamController on FormBuilder or FormBuilderField and send event each time that call onChange (on setInternalFieldValue or didChange). Is importante dispose this stream when dispose widget or remove field.

This onChange should be apply only entire form, for single fields or for both?

I think the entire form would be better. Implementing each field a stream would be a-okay, but also an overkill. Streaming the change of entire form would also cover the individual fields. So, anyone interested in subscribing the event change on one field might as well subscribe to the entire form stream and get its value.

The strem should send the instantValue or savedValues? I think that should be instantValues

I'm not quite much familiar with the underlying concept of this project. So I have one question: Can we save an invalid form? I ask this because there is a saveAndValidate method, which implies that it is actually saving even though the form is invalid. So:

if the answer is yes, we can save invalid forms, then the stream should send saved values, not instant ones. Since FormBuilderState.fields is type of Map<String, FormBuilderFieldState> and FormBuilderFieldState has many methods to check errors such as hasError and errorText, any dev can actually extract the errors with simple where on the Map.
if the answer is no, we can't save invalid forms (which doesn't look so): then the stream should send instant ones or there should be two different streams for instant and saved values, like onInstantChanged ond onSaveChanged.

Yes, can save invalid value

+1 for this request

need this too

This would be a useful feature

It's been a couple of months since I started working on this feature but the current API is so focal on event-driven approach[^1] that trying to implement stream-driven approach is such an undertake and I don't have time to take it on unfortunately. I've initially tried this on #1162, which is pretty much abandoned.
If the requesters are in a dire need, they can check out streaming_forms, a project that I started. It relies on stream-driven approach and raw material components. It is still in alpha phase, but can work on it in small steps if it shows further interest.
[^1]: It is not a terrible decision per se. It is a quite mature project. Async streams were not a thing in Dart back in the day, so the decision is sensible in its own regard.

authors: deandreamatias erayerdin ozz-rjq sharpsan wildsurfer


text:
flutter_chips_input dependency isn't compatible with Flutter 3.7

Environment
Package version:

Flutter doctor

[✓] Flutter (Channel stable, 3.7.1, on macOS 13.1 22C65 darwin-arm64, locale en-UA)
    • Flutter version 3.7.1 on channel stable at /Users/kuzma/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7048ed95a5 (7 days ago), 2023-02-01 09:07:31 -0800
    • Engine revision 800594f1f4
    • Dart version 2.19.1
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/kuzma/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Users/kuzma/Library/Java/JavaVirtualMachines/azul-13.0.12/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Zulu13.50+15-CA (build 13.0.12+4-MTS)
    • All Android licenses accepted.

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

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

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 72.0.4
    • Dart plugin version 223.8214.16

[✓] Connected device (2 available)
    • iPhone 14 Pro (mobile) • 444F9FE3-EACA-4A0C-9EEA-86DD6F4063E3 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 109.0.5414.119

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

Description
Expected behavior:
Should work when upgraded from Flutter 3.3 to 3.7.
Current behavior:
I'm getting this error when try to build my app after upgrading from Flutter 3.3 to 3.7
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_chips_input-2.0.0/lib/src/chips_input.dart:87:7: Error: The non-abstract class 'ChipsInputState' is missing implementations for these members:

This is because flutter_input_chips isn't compatible with Flutter 3.7. Possible solution is here: https://github.com/danvick/flutter_chips_input/issues/136
Steps to reproduce

Create new flutter app with Flutter 3.7
Try to use any field that is dependant on flutter_chips_input package
Try to build app for ios with flutter build ios command

same here

@onnedaay, if you need quick workaround just add this to your pubspec.yaml:
dependency_overrides:
  flutter_chips_input:
    git: https://github.com/bradintheusa/flutter_chips_input

authors: onnedaay wildsurfer


text:
[onTapOutside]: Please add onTapOutside function to make keyboard dismiss if click outside

Is there an existing issue for this?

[X] I have searched the existing issues

Package/Plugin version
9.0.0
What you'd like to happen
I want to implement the onTapOutside callback to dismiss keyboard when click outside the textField

Alternatives you've considered
No response
Aditional information
No response

This is a feature for FormBuilderTextField?

yes, please


text:
[Android] App doesn't render properly, the button does not display text

跳转到此页面就出现了这个问题，目前发现这个型号的手机出现的频率比较高。
Translated via Google translate
Jump to this page and this problem occurs. At present, it is found that the frequency of this model of mobile phone is relatively high.

Hi @wu-liu-7, Thanks for filing the issue. In order to investigate this issue further we would need a minimal and complete sample code along with the output of fluttter doctor -v. Does the issue occur in debug/release/profile or all modes?

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class PreSalePayPage extends StatelessWidget {
final double paddingHorizontal = 15.0;
final double bottomActionBarHeight = 50.0;
final TextStyle itemKeyTextStyle = TextStyle(fontSize: 14, color: Colors.black45);
final TextStyle itemValueTextStyle = TextStyle(fontSize: 14, color: Colors.black45);
final TextStyle itemHintTextStyle = TextStyle(fontSize: 14, color: Colors.black45);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("去结算"),
),
body: _pageBody(context),
backgroundColor: Colors.white,
);
}
Widget _divider() {
return Divider(height: 0.5, color: Colors.black38);
}
Widget _divider10() {
return Divider(height: 10, thickness: 10, color: Colors.black12);
}
Widget _pageBody(BuildContext context) {
return Stack(
children: [
SingleChildScrollView(
padding: EdgeInsets.only(bottom: bottomActionBarHeight),
child: Column(
children: [
_userAndAddressModule(), //用户和地址
_divider10(),
_goodsModule(), //商品
_divider10(),
_useScore(), // 积分支付
_expressType(context), // 配送方式
_coupon(context), // 优惠券
Padding(
padding: EdgeInsets.only(left: paddingHorizontal, right: paddingHorizontal, top: 10),
child: _divider(),
),
_remarks(), // 备注
_divider10(),
_amount(), // 金额
_preferential(), // 其他优惠
_couponDiscount(), // 优惠券折扣
_integralDiscount(), // 积分优惠
_freight(), // 配送运费
_divider10(),
],
),
),
Align(alignment: Alignment.bottomCenter, child: _bottomActionBar(context)),
],
);
}
/// 用户和地址
Widget _userAndAddressModule() {
return InkWell(
onTap: () {},
child: Container(
// height: 74,
padding: EdgeInsets.symmetric(horizontal: paddingHorizontal, vertical: 12),
child: Row(
children: [
Container(
width: 32,
height: 32,
decoration: BoxDecoration(color: Colors.red, borderRadius: BorderRadius.all(Radius.circular(16))),
child: Icon(Icons.location_on, color: Colors.white),
),
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisSize: MainAxisSize.min,
children: [
Flexible(
child: Text(
"张三   12345678909",
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 16, color: Color(0xcc000000), fontWeight: FontWeight.w500)),
),
Visibility(
visible: true,
child: Container(
width: 32,
alignment: Alignment.center,
margin: EdgeInsets.only(left: 5),
decoration: BoxDecoration(
color: Colors.red, borderRadius: BorderRadius.all(Radius.circular(2))),
child: Text(
'默认',
style: TextStyle(fontSize: 9, color: Colors.white),
),
),
),
],
),
Text(
"任务分工一个非常关停",
style: TextStyle(fontSize: 14, color: Colors.black),
),
],
)
)),
Text('修改', style: TextStyle(fontSize: 14, color: Colors.red)),
],
),
),
);
}
/// 店铺名
Widget _shopName() {
return SizedBox(
height: 40,
child: Row(
children: [
Icon(Icons.forward),
Text(
"乌黑的",
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontSize: 14, color: Colors.black),
)
],
));
}
Widget _goods() {
return InkWell(
onTap: () {},
child: SizedBox(
height: 96,
child: Row(
children: [
Expanded(
child: ListView.separated(
shrinkWrap: true,
scrollDirection: Axis.horizontal,
padding: EdgeInsets.symmetric(vertical: 16),
itemCount: 3,
itemBuilder: (context, index) {
return ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(2)),
child: Image.network(
"https://avatars.githubusercontent.com/u/74497359?s=88&v=4",
width: 64,
height: 64,
fit: BoxFit.fill,
),
);
},
separatorBuilder: (context, index) {
return SizedBox(width: 8);
},
)),
SizedBox(width: 8),
Text('共 3 件', style: TextStyle(fontSize: 12, color: Colors.black)),
Icon(Icons.keyboard_arrow_right, size: 12, color: Colors.black),
],
),
),
);
}
/// 店铺名 & 商品
Widget _shopAndGoods() {
return Padding(
padding: EdgeInsets.symmetric(horizontal: paddingHorizontal),
child: Column(
children: [
_shopName(),
_divider(),
_goods(),
],
),
);
}
Widget _goodsModule() {
return Column(
children: [
_shopAndGoods()
],
);
}
/// 积分支付
Widget _useScore() {
return Visibility(
visible: true,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: paddingHorizontal),
child: Row(
children: [
Expanded(child: Text('是否使用积分支付', style: itemKeyTextStyle)),
Switch(
value: true,
activeColor: Colors.blue,
onChanged: (_bool) {}),
],
),
),
);
}
Widget _itemKV(String title, {String? value, double paddingTop = 0, double paddingBottom = 0}) {
TextStyle valueTextStyle = itemValueTextStyle;
valueTextStyle = TextStyle(fontSize: 14, color: Colors.black);
return Padding(
padding:
EdgeInsets.only(left: paddingHorizontal, right: paddingHorizontal, top: paddingTop, bottom: paddingBottom),
child: Row(
children: [
Expanded(child: Text(title, style: itemKeyTextStyle)),
SizedBox(width: 15),
Expanded(child: Text(value ?? '', style: valueTextStyle, textAlign: TextAlign.right)),
],
),
);
}
Widget _itemKvArrow(
String title, {
String hint = '',
String value = '',
required GestureTapCallback onTap,
double paddingTop = 10,
}) {
String v = hint;
TextStyle vts = itemHintTextStyle;
if (value != null) {
v = value;
vts = itemValueTextStyle;
}
return InkWell(
  onTap: onTap,
  child: Padding(
    padding: EdgeInsets.only(left: paddingHorizontal, right: paddingHorizontal, top: paddingTop),
    child: Row(
      crossAxisAlignment: CrossAxisAlignment.end,
      children: [
        Expanded(child: Text(title, style: itemKeyTextStyle)),
        SizedBox(width: 15),
        Expanded(child: Text(v, style: vts, textAlign: TextAlign.right)),
        Icon(Icons.keyboard_arrow_right, size: 20, color: Colors.black45),
      ],
    ),
  ),
);

}
/// 配送方式
Widget _expressType(BuildContext context) {
return Container(
child: Padding(
padding: EdgeInsets.only(left: paddingHorizontal, right: paddingHorizontal, top: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text('配送类型',style: itemKeyTextStyle,),
Text('预售-预约发货',style: itemHintTextStyle),
],
),
),
);

}
/// 优惠券
Widget _coupon(BuildContext context) {
return Text("优惠");
}
/// 备注
Widget _remarks() {
return Padding(
padding: EdgeInsets.only(left: paddingHorizontal, right: paddingHorizontal, top: 20, bottom: 16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('备注信息', style: itemKeyTextStyle),
Container(
margin: EdgeInsets.only(top: 15),
padding: EdgeInsets.symmetric(horizontal: 8),
decoration: BoxDecoration(color: Colors.black12, borderRadius: BorderRadius.all(Radius.circular(4))),
child: TextField(
decoration: InputDecoration(
hintText: '请输入备注信息',
hintStyle: itemHintTextStyle,
border: InputBorder.none,
),
style: itemValueTextStyle,
minLines: 4,
maxLines: 4,
),
),
],
),
);
}
/// 金额
Widget _amount() {
return _itemKV('商品金额', value: '1000', paddingTop: 20);
}
/// 其他优惠
Widget _preferential() {
return _itemKV('其他优惠', value: '12', paddingTop: 20);
}
/// 优惠券抵扣
Widget _couponDiscount() {
return _itemKV('优惠券抵扣', value: '12', paddingTop: 20);
}
/// 积分优惠
Widget _integralDiscount() {
return Visibility(child: _itemKV('积分优惠', value: '111', paddingTop: 20));
}
/// 配送运费
Widget _freight() {
return _itemKV('配送运费', value: '12', paddingTop: 20, paddingBottom: 20);
}
Widget _bottomActionBar(BuildContext context) {
return SizedBox(
  width: double.infinity,
  height: bottomActionBarHeight,
  child: Card(
    margin: EdgeInsets.zero,
    child: Padding(
      padding: EdgeInsets.symmetric(horizontal: paddingHorizontal),
      child: Row(
        children: [
          Padding(
            padding: const EdgeInsets.only(right: 10),
            child: Text('¥111111',
                style: TextStyle(fontSize: 16, color: Colors.red, fontWeight: FontWeight.w500)),
          ),
          Expanded(
              child: Text('优惠 ¥123', style: TextStyle(fontSize: 12, color: Colors.black))),
          Padding(
            padding: const EdgeInsets.symmetric(horizontal: 8),
            child: _button('支付订金', Color(0xffFAAB0F), () {
            }),
          ),
          _button('全款结算', Color(0xffEA5504), () {

          }),
        ],
      ),
    ),
  ),
);

}
Widget _button(String text, Color color, GestureTapCallback callback) {
return InkWell(
onTap: callback,
child: Container(
width: 84,
height: 32,
alignment: Alignment.center,
decoration: BoxDecoration(color: color, borderRadius: BorderRadius.all(Radius.circular(16))),
child: Text(text, style: TextStyle(fontSize: 13, color: Colors.white)),
),
);
}
}
以上是代码
flutter doctor -v
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.1526], locale zh-CN)
• Flutter version 2.2.0 at E:\flutter_2.2.0\flutter
• Framework revision b22742018b (10 months ago), 2021-05-14 19:12:57 -0700
• Engine revision a9d88a4d18
• Dart version 2.13.0
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at D:\AndroidStudio\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: D:\jdk\bin\java
• Java version Java(TM) SE Runtime Environment (build 13.0.1+9)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[!] Android Studio (version 4.1.0)
• Android Studio at D:\AndroidStudio\tool
• 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
X Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[√] IntelliJ IDEA Ultimate Edition (version 2018.3)
• IntelliJ at D:\idea\IntelliJ IDEA 2018.3
• 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
[√] Connected device (3 available)
• DLT A0 (mobile) • emulator-5554 • android-x86    • Android 7.1.2 (API 25)
• Chrome (web)    • chrome        • web-javascript • Google Chrome 99.0.4844.74
• Edge (web)      • edge          • web-javascript • Microsoft Edge 99.0.1150.39
! Device 127.0.0.1:5555 is offline.
! Doctor found issues in 1 category.

Thanks for the info @wu-liu-7, I ran your code sample on the latest stable 2.10.3 and I see the UI renders properly, Also, You seem to be on the older version of flutter. I would advise you to try upgrading to latest stable version of flutter by running  flutter upgrade.

flutter doctor -v (mac)
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.10.3 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (20 hours ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

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

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

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • 192.168.1.5:5555 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 99.0.4844.51

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

• No issues found!

@wu-liu-7  is this solved?

没有，在特定的机型上面偶尔还会出现

If you encounter this issue again on the latest stable channel and have a more info for us feel free to comment on this issue or file a new issue.
使用谷歌翻译进行翻译
如果您在最新的稳定频道上再次遇到此问题并有更多信息给我们，请随时评论此问题或提交新问题。

repo: flutter/flutter


text:
When setting the color of ProgressBar, the animation of ProgressBar will not work properly.

Wrap the native android code with Fultter. When we set the inderterminateTint in the progressbar component, android:indeterminateTint="#F84D5F", the animation will not work properly.
    <ProgressBar
        android:layout_width="32dp"
        android:layout_height="32dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:indeterminate="true"
        android:indeterminateTint="#F84D5F"
        android:id="@+id/progress_bar"
        android:visibility="visible"
        />

You will globally set the progress bar in theme data.  Please checkout this code.
 theme: ThemeData(
        progressIndicatorTheme: ProgressIndicatorThemeData(color: Colors.green),)

Hi @Waylon-Firework, please provide a minimal, reproducible example and the output of flutter doctor -v as well as flutter run -v.

authors: AscEmon Waylon-Firework exaby73


text:
VSCode debugger cannot load call stack / dart source during exception handling on macOS with Flutter 3.3.x

Steps to Reproduce

Create a new flutter project using version 3.3.x
Run & debug it in VSCode
Throw an exception somewhere during execution
Try to use the vscode dubugger to step within the stack trace

Observe that the source is not available:
Could not load source 'dart:ui/hooks.dart': <source not available>.
Could not load source 'dart:isolate-patch/isolate_patch.dart': <source not available>.
Conditions necessary to reproduce:

Flutter version at or above 3.3.x
Build app for macOS

Making any of these changes will not reproduce the issue:

Downgrade flutter to 3.0.5
Build for iOS or Android instead of macOS
Create a pure dart project with the same dart sdk version (2.18.2)

I found these related issues but could not find a solution among them:
https://github.com/flutter/flutter/issues/24912
https://github.com/Dart-Code/Dart-Code/issues/2519
https://github.com/dart-lang/sdk/issues/19227
https://github.com/dart-lang/sdk/issues/35820
https://stackoverflow.com/questions/54390922/could-not-load-source-dartcore-runtime-libobject-patch-dart-source-not-avai
https://stackoverflow.com/questions/72385991/could-not-load-source-dartcore-patch-errors-patch-dart-source-not-available
Output of flutter doctor:
flutter doctor -v
[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-arm, locale
    en-US)
    • Flutter version 3.3.4 on channel stable at
      /Users/andrew/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eb6d86ee27 (2 weeks ago), 2022-10-04 22:31:45 -0700
    • Engine revision c08d7d5efc
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/user/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

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

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

[✓] Android Studio (version 2021.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
      11.0.13+0-b1751.21-8125866)

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.6 21G115 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 106.0.5249.119

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

• No issues found!

This may be a duplicate of https://github.com/flutter/flutter/issues/111189
Does this still happen on the current Flutter master branch?

@point-source
Please confirm if same happens on latest master or not.
flutter channel master
flutter upgrade

Sure enough, appears to be fixed on master branch. I'll hold out for the next stable release. Thanks

Thanks for the update. Closing based on above comment.

authors: darshankawar jason-simmons point-source


text:
TextEditingController should explain its expected lifetime

I've seen multiple individuals be confused by TextEditingController and end up re-creating one every time build() is called.  The API docs could explain its expected lifetime (e.g. be held off a State, living as long as the TextInput).

Eric, if I may, I would suggest you update the documentation to explain that the Controller should actually 'outlive' the TextInput/TextField, instead of 'living as long as the TextInput'.
E.g. the controller instance could live in the State associated with a Page that builds the Form/TextFields.
The reason being that more often than not, a form's elements will be children of some sort of Scrollable, and will likely get scrolled off screen as the user interacts with the form.
Coming from Android, it never occurred to me that a widget (along with its state) would be disposed of just because it was (temporarily) scrolled off screen. I consider this a very important (&unintuitive) piece of info I had to learn from the source code the hard way.
I would recommend pointing this out in multiple places in the docs. There are several bugreports and SO entries related to this already. Your own Gallery Demo ('Text Fields') has this 'error' as well: try filling out the Name field, then select another field, scroll down, then scroll back up to see the previously entered value in Name gone.
Being a Flutter noob, it is also possible I have misunderstood something, in which case apologies for the comment...

Much appreciated, thank you for your feedback @cohortor

Very helpful advise

E.g. the controller instance could live in the State associated with a Page that builds the Form/TextFields.

@cohortor just to be clear, the best way to use a TextFieldController is to initialize it in initState()?

Hi @eseidelGoogle is this issue still meant to be open?

@cohortor只是要清楚一点，使用a的最佳方法TextFieldController是在中初始化它initState()？

谢谢，解决了我的一个问题【A TextEditingController was used after being disposed.】

authors: 18487115313 cohortor eseidelGoogle feinstein iapicca yathit


text:
Add option to expand SliverAppBar when status bar or the app bar is tapped

Many iOS apps now will expand a hidden/collapsed SliverAppBar when the status bar is tapped (before scrolling to the top) or at least expand when a collapsed sliver app bar is tapped.
Would be a useful feature to add, on an optional basis ideally

Hi @mark8044
I'm not entirely sure I can understand this proposal. Will it be conflicted with scrolling to the top? Can you provide a visual sample (maybe a video) for this?

Hi @mark8044
I'm not entirely sure I can understand this proposal. Will it be conflicted with scrolling to the top? Can you provide a visual sample (maybe a video) for this?

It could be seen as conflicting with scroll-to-top, but in my mind would be ideally controlled with a flag.
I think the best example of this behavior that I can think of from the top of my head is the twitter app

@mark8044
Please see if this open issue is similar to your case. If so, you can follow-up in it.
Also, check this SO link for your reference.

@mark8044 Please see if this open issue is similar to your case. If so, you can follow-up in it.
Also, check this SO link for your reference.

Those links reference moving a listview to the top to force the sliver app bar to open, but what I am referring to is tapping the app bar or status bar to open the sliverappbar, without having the listview move.
We have no way of programmatically detecting a tap to the status bar on iOS, and multiple previous proposals and PRs have been shot down.  So since we have no access to listen to taps to the status bar, then hopefully we could get a way to at least open the sliver app bar based on a tap to the status bar.
It is becoming more commonly seen practice on iOS app, as mentioned the official twitter app uses this functionality and is probably the most widely visible app to demonstrate it, but it is seen on many apps.

authors: darshankawar huycozy mark8044


text:
Flutter integration test not working when build for testlab (iOS with schema)

How are you? I’m trying to configure Testlab for ios, but I’m having problems with the configuration.
https://github.com/flutter/flutter/tree/main/packages/integration_test#ios-device-testing
When following the documentation recommended by Firebase when executing the xcodebuild build-for-testing command (Only difference with documentation is schema),  code breaks because it does not find some frameworks.
Script
output="../build/ios_integ"
product="build/ios_integ/Build/Products"

Pass --simulator if building for the simulator.
flutter build ios integration_test/authentication/test/sign_in_co_test.dart --flavor qa --dart-define=flavor=qa --release

pushd ios
xcodebuild build-for-testing \
  -workspace Runner.xcworkspace \
  -scheme qa \
  -xcconfig Flutter/Release.xcconfig \
  -configuration Release \
  -derivedDataPath \
  $output -sdk iphoneos

xcodebuild test-without-building \
  -xctestrun "../build/ios_integ/Build/Products/qa_iphoneos16.2-arm64.xctestrun" \
  -destination id=<device-id>
popd

To give a momentary solution to this, I copy the modules manually and there it allows me to execute the code correctly. However, later I try to run the test build locally and the test fails with the following error.

Thanks a lot for read and try to help me . :pray:
run flutter test on testlab (ios with schema).
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.7, on macOS 13.1 22C65 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.76.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

Hi @rbargux
In order to address the issue properly, please provide Steps to reproduce in detail, along with a completed and minimal reproducible code sample so that we may verify this.
Also, please provide the information (error log, exception, crash, etc) in text format instead of a screenshot for better readability and investigation. You may want to refer to writing and formatting syntax for beautifully formatted issue description. Thank you!

Thanks for answer. I attach the step by step.
1. Open ios/Runner.xcworkspace in Xcode. Create a test target if you do not already have one via File > New > Target... and select Unit Testing Bundle. Change the Product Name to RunnerTests. Make sure Target to be Tested is set to Runner and language is set to Objective-C. Select Finish. Make sure that the iOS Deployment Target of RunnerTests within the Build Settings section is the same as Runner.
Add the new test target to ios/Podfile by embedding in the existing Runner target.
target 'Runner' do
  # Do not change existing lines.
  ...

  target 'RunnerTests' do
    inherit! :search_paths
  end
end

2. In Xcode, add a test file called RunnerTests.m (or any name of your choice) to the new target and replace the file:
@import XCTest;
@import integration_test;

INTEGRATION_TEST_IOS_RUNNER(RunnerTests)

3. create build
flutter build ios integration_test/authentication/test/sign_in_co_test.dart --flavor qa --dart-define=flavor=qa --release
4. build for testing
xcodebuild build-for-testing \
  -workspace Runner.xcworkspace \
  -scheme qa \
  -xcconfig Flutter/Release.xcconfig \
  -configuration Release \
  -derivedDataPath \
  $output -sdk iphoneos

At this point the execution throws me the following error.
... -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/ios/Pods/MLKitXenoCommon/Frameworks -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/ios/Pods/UXCam -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Products/Release-prd-iphoneos/XCFrameworkIntermediates/AppsFlyerFramework/Main -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Products/Release-prd-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Products/Release-prd-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Products/Release-prd-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Products/Release-prd-iphoneos/XCFrameworkIntermediates/UXCam -F/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/ios/Pods/UXCam -MMD -MT dependencies -MF /Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Intermediates.noindex/Runner.build/Release-prd-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.d --serialize-diagnostics /Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Intermediates.noindex/Runner.build/Release-prd-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.dia -c /Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/ios/Runner/GeneratedPluginRegistrant.m -o /Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/build/ios_integ/Build/Intermediates.noindex/Runner.build/Release-prd-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o
/Users/ricardobejarano/Documents/monorepos/tyba-client/packages/apps/tyba-app/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'advance_pdf_viewer' not found
@import advance_pdf_viewer;
1 error generated.
5. In order to get around this error what I do is copy the frameworks from the Release-iphoneos folder to Release-prd-iphoneos

6. At this point repeat point 4 and it now compiles correctly.
7. Run locally to check that everything is ok.
xcodebuild test-without-building \
  -xctestrun "../build/ios_integ/Build/Products/qa_iphoneos16.2-arm64.xctestrun" \
  -destination id=<device-id>

and finally throw this error
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Testing started
2023-03-17 09:31:19.217 xcodebuild[12647:65810] [MT] IDETestOperationsObserverDebug: 61.966 elapsed -- Testing started completed.
2023-03-17 09:31:19.217 xcodebuild[12647:65810] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2023-03-17 09:31:19.217 xcodebuild[12647:65810] [MT] IDETestOperationsObserverDebug: 61.966 sec, +61.966 sec -- end
Test session results, code coverage, and logs:
/Users/ricardobejarano/Library/Developer/Xcode/DerivedData/Runner-gajhxufifczcccbjttsahdghxweq/Logs/Test/Test-qa-2023.03.17_09-30-16--0500.xcresult
Testing failed:
Runner (11596) encountered an error (Exception raised during test suite construction: NSInvalidArgumentException: -[__NSDictionaryM isEqualToString:]: unrecognized selector sent to instance 0x280cdf8c0
Exception callstack: (
0   CoreFoundation                      0x00000001afa68e44 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 40516
1   libobjc.A.dylib                     0x00000001a8bff8d8 objc_exception_throw + 60
2   CoreFoundation                      0x00000001afbdd81c 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 1566748
3   CoreFoundation                      0x00000001afa7ef50 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 130896
4   CoreFoundation                      0x00000001afae7320 _CF_forwarding_prep_0 + 96
5   integration_test                    0x00000001143e99a4 __59-[FLTIntegrationTestRunner testIntegrationTestWithResults:]_block_invoke + 240
6   CoreFoundation                      0x00000001afa72538 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 79160
7   CoreFoundation                      0x00000001afafcb90 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 646032
8   integration_test                    0x00000001143e9864 -[FLTIntegrationTestRunner testIntegrationTestWithResults:] + 552
9   RunnerTests                         0x00000001268b3c04 +[RunnerTests testInvocations] + 132
10  XCTestCore                          0x0000000114e5d020 +[XCTestCase _testInvocationDescriptors] + 76
11  XCTestCore                          0x0000000114e4383c +[XCTestSuite testSuiteForTestCaseClass:] + 316
12  XCTestCore                          0x0000000114e4304c +[XCTestSuite suitesForBundlesIncludingEmptySuites:] + 332
13  XCTestCore                          0x0000000114e45860 -[XCTestSuite _initWithTestConfiguration:] + 328
14  XCTestCore                          0x0000000114e45e24 +[XCTestSuite testSuiteForTestConfiguration:] + 52
15  XCTestCore                          0x0000000114e147d0 __53-[XCTTestRunSession initWithTestConfiguration:error:]_block_invoke_2 + 68
16  XCTestCore                          0x0000000114e42348 +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 180
17  XCTestCore                          0x0000000114e4225c +[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 144
18  XCTestCore                          0x0000000114e14774 __53-[XCTTestRunSession initWithTestConfiguration:error:]_block_invoke + 124
19  XCTestCore                          0x0000000114e14474 +[XCTTestRunSession performTestSuiteConstructionInBlock:] + 60
20  XCTestCore                          0x0000000114e14630 -[XCTTestRunSession initWithTestConfiguration:error:] + 216
21  XCTestCore                          0x0000000114e15464 -[XCTTestRunSessionProvider executionExtensionWithTestConfiguration:reportingSession:completion:] + 84
22  XCTestCore                          0x0000000114e19670 __128+[XCTExtensionProvider(XCTExecutionExtension_Internal) allExecutionExtensionsWithTestConfiguration:reportingSession:completion:]_block_invoke + 148
23  XCTestCore                          0x0000000114e532bc __69-[NSArray(XCTestAdditions) xct_arrayByApplyingAsyncBlock:completion:]_block_invoke + 188
24  XCTestCore                          0x0000000114e53450 __XCTAsyncEnumerate_block_invoke.27 + 64
25  XCTestCore                          0x0000000114e530d8 -[NSArray(XCTestAdditions) xct_arrayByApplyingAsyncBlock:completion:] + 756
26  XCTestCore                          0x0000000114e19544 +[XCTExtensionProvider allExecutionExtensionsWithTestConfiguration:reportingSession:completion:] + 356
27  XCTestCore                          0x0000000114e3efcc -[XCTestDriver _runTests] + 616
28  XCTestCore                          0x0000000114e139bc _XCTestMain + 88
29  libXCTestBundleInject.dylib         0x000000011325f56c __copy_helper_block_e8_32s + 0
30  CoreFoundation                      0x00000001afaa2514 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 275732
31  CoreFoundation                      0x00000001afb0ad6c 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 703852
32  CoreFoundation                      0x00000001afadab90 42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B + 506768
33  CoreFoundation                      0x00000001afadfeb0 CFRunLoopRunSpecific + 612
34  GraphicsServices                    0x00000001e9cd5368 GSEventRunModal + 164
35  UIKitCore                           0x00000001b1fd5668 CF21AD9C-EFBF-3961-A7C0-54BD30CEFEA9 + 3806824
36  UIKitCore                           0x00000001b1fd52cc UIApplicationMain + 340
37  Runner                              0x00000001042bc69c main + 64
38  dyld                                0x00000001ce3d8960 4B042F28-0D14-30EC-A1DE-3DBB10866AD7 + 88416
). If you believe this error represents a bug, please attach the result bundle at /Users/ricardobejarano/Library/Developer/Xcode/DerivedData/Runner-gajhxufifczcccbjttsahdghxweq/Logs/Test/Test-qa-2023.03.17_09-30-16--0500.xcresult)
** TEST EXECUTE FAILED **
Please, if you need any other type of information to help me, let me know and I'll share it with you.
Reference Doc https://github.com/flutter/flutter/tree/main/packages/integration_test#ios-device-testing

Thanks for your response. As far as I can see from your log and the command, the test was failed by advance_pdf_viewer plugin. And you also ran the test in QA flavor. Does the issue happen without using advance_pdf_viewer or a specific flavor?
Also, it would be appreciated if you could provide a sample code on a GitHub repository so that may verify the issue. Thanks!

authors: huycozy rbargux


text:
[tool_crash] FileSystemException: Creation failed, OS Error: No such file or directory, errno = 2

Command
flutter doctor

Steps to Reproduce
1.flutter upgrade
2. flutter doctor
Logs
FileSystemException: Creation failed, OS Error: No such file or directory, errno = 2
#0      _Directory.createSync (dart:io/directory_impl.dart:129:7)
#1      ForwardingDirectory.createSync (package:file/src/forwarding/forwarding_directory.dart:20:16)
#2      ErrorHandlingDirectory.createSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:428:22)
#3      _runSync (package:flutter_tools/src/base/error_handling_io.dart:590:14)
#4      ErrorHandlingDirectory.createSync (package:flutter_tools/src/base/error_handling_io.dart:427:12)
#5      EngineCachedArtifact.updateInner (package:flutter_tools/src/cache.dart:916:19)
<asynchronous suspension>
#6      CachedArtifact.update (package:flutter_tools/src/cache.dart:810:5)
<asynchronous suspension>
#7      Cache.updateAll (package:flutter_tools/src/cache.dart:677:9)
<asynchronous suspension>
#8      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1518:7)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1336:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:296:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:244:5)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.10.0, on macOS 13.3.1 22E261 darwin-arm64, locale
    en-CN)
    • Flutter version 3.10.0 on channel stable at /Users/zachary/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (3 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version
    33.0.0-rc1)
    • Android SDK at /Users/zachary/Library/Android/Sdk
    • Platform android-33, build-tools 33.0.0-rc1
    • ANDROID_HOME = /Users/zachary/Library/Android/Sdk
    • ANDROID_SDK_ROOT = /Users/Zachary/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.1)
    • Xcode a

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

authors: danagbemava-nc zcoderr