v4 docs: minor rephrasing on layout/overview examples

Found the existing phrasing a little strange and unclear, so here's a minor suggested edit.
Thanks!

Pushed a few more changes to this PR @aliceyoung9. Let me know if any of those sound off to you, please. <3

that looks good to me. thanks!


Error when closing popup in IE 11

I have prepared some demo to reproduce this in:
https://github.com/harouny/xcomponent/tree/feature/bridgeDemo

Clone https://github.com/harouny/xcomponent/
Switch to feature/bridgeDemo
npm install
Based on your enviroment map "localhost.parents.com" and "localhost.children.com" to your localhost. (In Windows using hosts file)
Run "npm run serve-all"
Open IE 11
Navigate to: http://localhost.parents.com:8081/demo/advanced/ie11-cross-domain-popup/index.htm
Click on "Popup Log In" button
Fill log in details in the pop up and click "Log In"
Notice error: "Permission denied Error: Permission denied at sendMessage - promise.js " in parent window console.
Click on "Popup Log In" again
Notice error: "The remote server machine does not exist or is unavailable - bridge.js"
Notice that: filling log in details again then clicking "Log In" will not work.

@bluepnume FYI I'm also trying to know what is happening

Hey @harouny thanks for the detailed steps. Let me try this out tomorrow and get back to you.

@bluepnume Its super difficult to debug this through in IE 11. Any luck finding a clue?

Its super difficult to debug this through in IE 11

Welcome to my world :D
I've pulled your code and I'm seeing the issue anyway. Should be able to figure something out.

OK @harouny can you try the latest build?
Turns out IE was erroring out if you even reference a closed popup window from the bridge. Added a few strategic try/catches and it solved the problem for me. I'm now able to use your example repeatedly with no errors or issues.

@bluepnume Great! It works fine.


How can I train the teacher model ?

If I don't want to use the pretrained teacher model, then I just have to set kd_flag to zero, right? But I ran into an error when I did like that. Or the teacher model just can't be trained?

Hi @xieqi1996, normally, we use the upperbound (holistic view) model as the teacher model. So if you would like to train the upperbound model, you can do so by make train com=upperbound. (and yes, kd_flag is set to 0).
We changed a few APIs of the coperception SDK, so the way I'm referring to above might not align with the version we have in this repo. Please refer to the coperception repository which is continuously maintained.

Closing this issue due to inactivity.


Pulls/1/GitHub client api change

For some reason they decided to break APIs between their last RC (RC4) and the stable (https://github.com/KnpLabs/php-github-api/pull/480)
Also, we really shouldn't be committing a composer.lock because they are ignored for global installs

@tractorcow how do you feel about deleting the composer.lock file?

Yeah that is fine with me. :)

https://github.com/silverstripe/cow/commit/ee62af19c2f0f0c062a40743fce835fa88fafc92

we need it gone from https://github.com/silverstripe/cow/tree/1 as well


[webview_flutter] [android, iOS] flickering background in pageView

Steps to Reproduce

Execute flutter run on the code sample
Then change bottom navigation index.
Before next webView page, It will occur flickering background(initial page's color or black) for a few frames.

Record:

stable 2.10.3
stable 3.0.1

Expected results:
Change pageView without flickering
example repo

Code sample

import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  late final Future _navigateToHome;
  final _navigatorKey = GlobalKey<NavigatorState>();

  NavigatorState get _navigator => _navigatorKey.currentState!;

  @override
  void initState() {
    super.initState();
    _navigateToHome = Future.delayed(
      const Duration(seconds: 2),
      () => _navigator.pushNamedAndRemoveUntil(
        MyHomePage.routeName,
        (route) => false,
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return FutureBuilder(
      future: _navigateToHome,
      builder: (context, snapshot) {
        return MaterialApp(
          initialRoute: SplashPage.routeName,
          navigatorKey: _navigatorKey,
          onGenerateRoute: (settings) {
            switch (settings.name) {
              case SplashPage.routeName:
                return MaterialPageRoute(
                  builder: (_) => const SplashPage(),
                  settings: settings,
                );
              default:
                return MaterialPageRoute(
                  builder: (_) => const MyHomePage(),
                  settings: settings,
                );
            }
          },
        );
      },
    );
  }
}

class SplashPage extends StatelessWidget {
  static const String routeName = '/splash';
  const SplashPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      backgroundColor: Colors.redAccent,
    );
  }
}

class MyHomePage extends StatefulWidget {
  static const String routeName = '/home';
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int currentIndex = 0;
  PageController pageController = PageController();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PageView(
        controller: pageController,
        physics: const NeverScrollableScrollPhysics(),
        children: const [
          WebView(initialUrl: 'https://flutter.dev/'),
          WebView(initialUrl: 'https://flutter.dev/'),
          WebView(initialUrl: 'https://flutter.dev/'),
        ],
      ),
      bottomNavigationBar: BottomNavigationBar(
        onTap: (index) {
          setState(() {
            currentIndex = index;
          });
          pageController.jumpToPage(index);
        },
        currentIndex: currentIndex,
        selectedItemColor: Colors.amber,
        items: const [
          BottomNavigationBarItem(
            icon: Icon(Icons.home),
            label: '1',
            backgroundColor: Colors.blueAccent,
          ),
          BottomNavigationBarItem(
            icon: Icon(Icons.send),
            label: '2',
          ),
          BottomNavigationBarItem(
            icon: Icon(Icons.notifications),
            label: '3',
          ),
        ],
      ),
    );
  }
}

flutter doctor

[✓] Flutter (Channel stable, 2.10.3, on macOS 12.3.1 21E258 darwin-x64, locale ko-KR)
    • Flutter version 2.10.3 at /Users/comento/dev/environment/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (3달 전), 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/comento/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

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

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

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 67.1.2
    • Dart plugin version 212.5744

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

[✓] Connected device (4 available)
    • SM G973N (mobile)            • R39M3096VWN                          • android-arm64  • Android 11 (API 30)
    • sdk gphone64 x86 64 (mobile) • emulator-5554                        • android-x64    • Android 12 (API 31) (emulator)
    • iPhone 13 (mobile)           • 12FC7D8F-9032-40B2-843F-FDB4083FC8F4 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-5
      (simulator)
    • Chrome (web)                 • chrome                               • web-javascript • Google Chrome 102.0.5005.61

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

! Doctor found issues in 1 category.

It may be related to #30111, #27198
It occurs with android OS, both simulator and physical device.
It occurs with flutter version with 2.10.1 and 3.0.1. (but slightly different as recorded above)

Issue is reproducible using the code sample provided above.
The behavior seems to have improved on the master channel, but I can't say for sure whether or not this has been fixed.
Leaving this for further input from the team.

videos

stable-android
master-android
iOS

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3.1 21E258 darwin-arm, locale en-GB)
    • Flutter version 3.0.1 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (3 weeks ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, 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.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

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

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

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 12.3.1 21E258 darwin-arm
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 102.0.5005.61
    ! Error: Nexus is not connected. Xcode will continue when Nexus is connected. (code -13)

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

• No issues found!

[✓] Flutter (Channel master, 3.1.0-0.0.pre.1187, on macOS 12.3.1 21E258 darwin-arm, locale en-GB)
    • Flutter version 3.1.0-0.0.pre.1187 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c951d2d7a0 (2 hours ago), 2022-06-09 07:38:08 +0200
    • Engine revision d5eff9c6a6
    • Dart version 2.18.0 (build 2.18.0-170.0.dev)
    • DevTools version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, 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.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

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

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

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 12.3.1 21E258 darwin-arm
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 102.0.5005.61
    ! Error: Nexus is not connected. Xcode will continue when Nexus is connected. (code -13)

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

• No issues found!

I found exactly same behavior with dark mode applied iOS device(both physical device and simulator)
And it occurs with flutter version with 2.10.1 and 3.0.1.
https://user-images.githubusercontent.com/46276533/172969844-5a7429d6-34b6-40c0-849c-1527e2a7188b.mov

I found exactly same behavior with dark mode applied iOS device(both physical device and simulator) And it occurs with flutter version 2.10.1, 3.0.1 and 3.1.0-0.0.pre.1502 (master)
@danagbemava-nc 3.1.0-0.0.pre.1502 version fixed the above android flickering behavior, but didn't work for iOS dark mode.
video
flutter doctor

Hi when we can expect this on stable branch?

Hi when we can expect this on the stable branch?

Hi @GalacticTitan, there's no ETA on this at the moment.

I found exactly same behavior with dark mode applied iOS device(both physical device and simulator)
And it occurs with flutter version 2.10.1, 3.0.1 and 3.1.0-0.0.pre.1502 (master)

Hi @Heewookji, sorry, this comment somehow got buried in my notifications. Can you check on the latest master if this is still an issue on iOS? If it is, kindly file a new issue so that we can track that separately. This way it's easier for us to know whether or not it has been fixed.


[AzureMonitorExporter] Fix Culture-Specific Formatting of Activity Tags

Fixes #39470

API change check
API changes are not detected in this pull request.

@rajkumar-rangaraj you're getting AutoRest errors in your ci runs.
I was getting these same errors in my PR.
Locally, I pulled latest of main and merged into my branch and that seemes to have resolved the errors.


Allow using hint values in TextBlock

I'd like to be able to refer to hint values inside TextBlock#text property.
TextBlock(text: "%p")

Example use case, display the progress value alongside the progress bar.

This should be pretty easy to add.  The only issue here is that percentage is represented internally as an f32 between 0 and 1, where 1 is 100% and 0 is 0%.
It's probably fine if we just make an assumption that the user wants the percentage in whole numbers between 0 and 100.

Available in master.


added privacy policy page and component

PR Title

The purpose of this Pull Request is to fix #214
Description

I created one page for privacy policy and one component for privacy policy and added it to the page component
How you solved

I followed the conventions used by other pages and designed the policy page by referring to those pages
Screenshots

Checklist

[x] I have Made this contribution as per the CONTRIBUTING guide in this repo
[x] I have tested in local Environment.
[x] I have made the fix as per issue converstaion
[x] I have starred the repository ⭐

@jsvigneshkanna Please let me know if any changes are required.

@SarveshPatil29 add below styling to new component
md:px-40 px-4

And in place of '/" please use '

@SarveshPatil29 add below styling to new component md:px-40 px-4

@jsvigneshkanna it is already present in privacyPolicyComp.js

Great @SarveshPatil29
Iwill resolve the deployment issue, please check other issues/feature

And in place of '/" please use '

@jsvigneshkanna Can you please explain this? I am unable to comprehend.

Great @SarveshPatil29 Iwill resolve the deployment issue, please check other issues/feature

Thanks, @jsvigneshkanna.
Sure I will checkout other issues as well!

@SarveshPatil29 , There was small issue
We shouldnt use ' in div/ p elements, instead we should use ' unicode
Resolved and merging your changes

@SarveshPatil29 , There was small issue
We shouldnt use ' in div/ p elements, instead we should use ' unicode
Resolved and merging your changes

Ohh ohhk👍


Can I use this for Sentence similarity models ?

How can i use this for sentence similarity models ? Lets say i have 2 texts and have a cosine similarity value, Can I see what words contributed and other details ? Thanks in advance.

Hi @Threepointone4 this is something I'd love to figure out but I don't know how feasible it is to do right now. The problem with what you have described above is that the model output's a sentence embedding for each sentence for each input sentence and after the cosine similarity is applied so any similarity being calculated would relate to the positional embeddings and not the words themselves. From what I know it is difficult to relate a specific position in an embedding to a single concept or word. Even creating explanations from the sentence to the embedding is hard as there are usually 768 different positions to provide explanations for.


The default user language should be taken from the system language

I think this is pretty important to get working. Bit of an oversight until now.

I did some work about this several days ago. Things to mention:

The framework sets default locale config to empty string. This sets CurrentCulture to neutral and overrides any user preference.
The game doesn't handle variations of culture. The system default culture is usually with country/region code (en-US, zh-CN etc), but in osu we use non country/region code version (en, zh). It should use culture parent chain instead of string StartsWith, to handle complex scenarions like zh-CN -> zh-Hans -> zh.

If it helps I can provide the fallback logic stable is using for deciding which culture to set. I know it does something similar to what you are proposing here.

Fixed in https://github.com/ppy/osu-framework/pull/5505. But do note that the language is taken from the date and time format, and not the system UI language.


maint: update package dependencies and package definition to support Swift 5.3

Updated the Package.swift specs and all related dependencies to support Swift 5.3.
This PR fixed also an issue, that the result of coherent-swift returns nan% for all cases.

Thanks @AF-cgi! I'll take a look later today.


[Proposal] - Peer Review Process

** I hit submit too early... **
This is a fairly large set of features but could be really interesting for Symposium IMO and would be really useful and would replace Gists for my proposals (which I see as a bad alternative due to not really being able to lock things down).
First the User Stories:

User can invite reviewer by email (maybe add a note?)
Reviewer receives email to review proposal with link (logic tree here)

If email address is already registered then link to review screen
If email is not registered then link to subscribe screen

Reviewer can view current and existing versions
Reviewer can comment on proposal (not sure if this should be a stream that exists across all versions)
Proposal creator can mark comment as addressed?

Like I said, it's alot and a rather big change.
I have been working on a lot of stuff with Lock for Access Controll using Conditions to do advanced permissions without resorting to database based permissions (which get out of sync too easily IMO).
One advantage on my recent projects has been that it has been that they were JS rendered so some of the super stateful UI things required by ACL things like this are really well suited and I haven't tackled these more stateful views on the server side.
Or if it's under a reviews uri then you don't have to worry quite as much, but you loose the sharability having the same URL between everyone.

I think this is a great idea.
I'd trim it down to an MVP, which is:
Allow for sharing a version for review, with access only to the latest revision;
email is sent out with a share link that's unique to this version-sharee pair;
shares must register for an account in order to leave comments;
comments can be left, for now, only on the revision itself, not on a specific spot in the revision;
sharer gets email notified of comments.
Thoughts on that as a simpler MVP @rtablada ? @adamwathan ?

Yeah that sounds cool to me, one question would be is it important that each reviewee is commenting in isolation? Or is it more valuable to allow discussion between the people reviewing?
Is the reason for isolation...

I want to make sure people are giving me feedback based on their own thoughts, and not making comments based on things they didn't notice until reading someone else's comments.
I want to protect my reviewee's privacy (which could mean...)
a. I have two reviewer's who don't get along and it would be awkward for them to be commenting in the same chain
b. Some of the people I've asked to review are shy and won't feel comfortable sharing their criticisms in a place where others can see them.

All of that stuff affects what you'd wanna build to solve the problem in the best possible way.
On top of that, it's important to understand what problem reviews are solving too. It could be a lot of things...

When I've put together a version of my abstract, I want to make sure others think it sounds like something they want to go to, so I know my talk will be worth doing.
When I'm working on my abstract, I want to make sure my language and grammar is clear so the people reviewing the proposals will trust that I'm professional and will do a good job.
When I'm working on my abstract, I want to know how it compares to what an experienced and successful speaker would've written for the same topic, so I can increase the chances of my abstract being accepted by the conference.

To expand a bit on the three potential problems I listed at the bottom...
The first one might be best solved by implementing some sort of anonymous voting system instead of peer review.
The second one might be best solved by letting people submit corrections like pull requests.
The third might be best solved by building something that connects to a HelpMeAbstract API and gets your proposals in front of experienced speakers instead of just your friends.
A general comment system per revision might be an option for solving these problems as well, but it's probably not the best solution for each problem. So let's just make sure we're solving problems, not building features :blush:

Adam, can you just approach every feature request on every project I'm ever
on with this " So let's just make sure we're solving problems, not building
features [image: :blush:]" thing? It makes my brain work so much
differently <3
On Mon, May 11, 2015 at 2:19 PM, Adam Wathan<EMAIL_ADDRESS>wrote:

To expand a bit on the three potential problems I listed at the bottom...
The first one might be best solved by implementing some sort of anonymous
voting system instead of peer review.
The second one might be best solved by letting people submit corrections
like pull requests.
The third might be best solved by building something that connects to a
HelpMeAbstract API and gets your proposals in front of experienced speakers
instead of just your friends.
A general comment system per revision might be an option for solving these
problems as well, but it's probably not the best solution for each problem.
So let's just make sure we're solving problems, not building features [image:
:blush:]
—
Reply to this email directly or view it on GitHub
https://github.com/tightenco/symposium/issues/50#issuecomment-101004953.

--
Matt Stauffer
Partner + Technical Director
Tighten Co.
352-682-2765

I'm pretty booked this week, but do you guys want to set up a hangout some time to discuss more?

I'd totally be down :+1:

Me too
Sent from Outlook
On Mon, May 11, 2015 at 11:58 AM -0700, "Adam Wathan"<EMAIL_ADDRESS>wrote:
I'd totally be down
—
Reply to this email directly or view it on GitHub.

Integrating Symposium with helpmeabstract.com may address some of the concerns outlined here.

@elazar Yah, I think that would be a great idea.


Battery fix

This fixes the issue in issue #151, and also makes the coloring make more sense. Now the color of the text follows the color of the icon, i.e. red text for low battery, yellow for charging, etc.

I don't like removing the ability to have the foreground color be different from the battery indicator, but the fix for the date on linux is good. If you want the behavior of having the time string be the same color as the battery indicator we should add that with an option instead

[[ -z $POWERLEVEL9K_BATTERY_FOREGROUND ]] && local fg_color="" || local fg_color=%F{$POWERLEVEL9K_BATTERY_FOREGROUND}

[[ ! -z $bat_percent ]] && "$1_prompt_segment" "$0" "$DEFAULT_COLOR" "$DEFAULT_COLOR_INVERTED" "%F{$conn}$(print_icon 'BATTERY_ICON')$fg_color $bat_percent%%$remain%f"

as lines 219 and 278 should provide both behaviors should the user want either.

is %f not stacked, i.e. if I do
%F{blue}%F{green}%f

will the color not be blue still? I'm worried that we won't have equal numbers of %f and %F

I don't believe you need a %f for every %F, in it's current state it has two foreground color declarations(one for the battery icon, one for the time remaining string) and only one %f at the end to reset it. When using your example above, the output after %F{blue} but before %F{green} will be blue, anything after %F{green} and before %f will be green, anything after %f will be the default color of the terminal. Basically %F means "start printing this color until I say otherwise" and %f means "stop printing any color"

Alright, then your version makes more sense.

Also I had $conn only be set in the instance of a color being applied to the icon so that it would inherit the specified foreground color instead of using the default. We can add a new line to explicitly set it to the foreground color at the top like the others and remove line 258
[[ -z $POWERLEVEL9K_BATTERY_FOREGROUND ]] && local conn="$DEFAULT_COLOR" || local conn=$POWERLEVEL9K_BATTERY_FOREGROUND

The general thinking behind the way I did it was that unless explicitly set in an option, color should only be there when it's indicating something, and should be as minimal as possible since it's supposed to stand out.

I guess with the new changes we'd want to set conn to DEFAULT_COLOR_INVERTED instead, otherwise it will just be set to the same as the background color by default.

alright, that's been fixed, and the commits squashed together.

It still shows just explicitly setting conn to the default color, could you add the line from above that allows it to be the foreground color by default if one is specified.

You want to overwrite the color of the icon as well?

The way it's written, $conn takes precedence over the foreground color, but if there's no condition to set $conn(it's only set when fully charged, charging or low), it should display the icon with the foreground color. The way it is right now it will display the icon with the default inverted color regardless of any user settings when it's in it's normal operating range and not being charged. $conn was intentionally left empty before if not explicitly set to inherit the foreground color, whatever it happened to be set to. If we want it explicitly set to something it should still maintain the same functionality.

Ok, now it defaults to the foreground color.

Thanks =]

Great PR, @Tritlo! And thanks for providing input, @rjorgenson!


Displaced error cropped boundingbox

Hello eo-learn team,
first of all thank you for your amazing library and your work.
We have made a comparative between the tile downloaded from sentinelhub and the cropped boundingbox and we have seen a displacement in the images in the x and y axes.

We don't know if you are aware of this or is a problem from any of the libraries used in eo-learn.
We are waiting for your response,
thank you very much and regards.

HI @MrMJ06,
Can you please provide a code snippet to reproduce your findings?
More context would be helpful to pinpoint the issue.
Thanks

Closing this since no additional data was provided. Will reopen the issue if @MrMJ06 provides the helpful info to investigate.


functional component example

Hi @surikov - thanks for putting this together.
Is there a simple example getting this to work as a functional component?

No


Immutable zkEVM discovery updates: withdrawal queue activated

Resolves L2B-4366.

sorry for the commit spam in this PR, it is just an exploded Merge branch 'main' into immutable-zkevm-updates (see diff)

Resolves L2B-4395


[WIP] Add tests for git status section

Description

The git status section has a fair bit of complexity and should probably be tested.
In the process of writing these tests, I found a few issues in other existing tests.
Motivation and Context

Improve that test coverage! ⬆
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

[x] I have tested using MacOS
[ ] I have tested using Linux

Checklist:

[x] I have checked that no other PR duplicates mine
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have updated the tests accordingly.

Are you stuck on anything in particular here? :blush:

Thanks for asking. Mostly the tests that I've mentioned in these comments:
https://github.com/matchai/spacefish/blob/792ba48382d2ae7ffc5311ebbd9256f51392185e/tests/__sf_section_git_status.test.fish#L120-L123
I was thinking of doing some work on our mock util to allow for more flexible mocks so that we can properly test these (e.g. specifying the command and argument necessary to trigger a mock).

Oh, heh. It might be better to have a checklist in the PR for to-do lists in the future! 😊
And I'd love such an improvement, would make things much easier!

Gah! After all this work I just realized that we use command git in the git section, so we can't mock it! 😖
@Snuggle Any ideas as to how we can achieve these test states? I'm considering just wrapping it up for now.

I'll just go ahead and merge this in how it is, once I get a review. 😄

Could I ask what this \* syntax does? Is it globbing a bunch of files in a directory or...?
https://github.com/matchai/spacefish/blob/74dec4a89b946ee9aa36beca8ac1650a9e3efe1f/tests/__sf_section_aws.test.fish#L6
I'd also like to note that on this line just, cd, should suffice. It always defaults to home anyways!
https://github.com/matchai/spacefish/blob/74dec4a89b946ee9aa36beca8ac1650a9e3efe1f/tests/__sf_section_dir.test.fish#L31

Be sure to use the handy "No Whitespace" button when reviewing this. The bulk of the diff is really just whitespace changes 😅

I cannot see this button? Are you enrolled in one of the fancy GitHub beta experiments?

Oh haha. I've been using Refined GitHub for so long that I didn't realize that this wasn't a core GitHub feature. 😅
I highly recommend it though!


Update to v2.5

Checklist

[X] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

requirements: run: fido2 == 1.0.0 should not contain a space between relational operator and the version, i.e. fido2 ==1.0.0

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender


Implement vectorized adstock transformations

Follow up to #114
Unlike #114 it doesn't try to respect broadcastable flags as those are in a limbo in PyTensor at the moment (see https://github.com/pymc-devs/pytensor/pull/149) and are not respected anywhere else.
Closes #22
Closes #196

Ok. Can verify this works as (I) expected in https://github.com/pymc-labs/pymc-marketing/issues/196. Will review now!

Thanks @lucianopaz!

@ricardoV94 Didn't this PR change the runtime of the geometric adstock to something slower (from $O(n)$ to $O(n n_\text{lag})$)?
I didn't perform any testing, and maybe on a GPU it doesn't make as much difference, but at least for longer lag times this should be worse?

@ricardoV94 Didn't this PR change the runtime of the geometric adstock to something slower (from O(n) to $O(n n_\text{lag})$)? I didn't perform any testing, and maybe on a GPU it doesn't make as much difference, but at least for longer lag times this should be worse?

Possibly, the concern was vectorization not speed. I didn't write the code, it was actually @lucianopaz, this was a small change from #114

Makes sense. I guess we can just try to remember in case we run into performance issues :-)

This came up recently #670

Could we keep both implementations?


Please document HTTP Authorization Bearer method currently used by NSS

currently, the webid-oidc-spec suite documents only the "user logs directly in to a server or application by selecting her OIDC OP and logging in there" case. the specifications currently don't cover the "AJAX or API client request" case where a web application accesses a restricted resource on behalf of its user, particularly on a server that isn't also the user's OP, or where an automatic agent or bot tries to access a restricted resource.
however, on inspection of the source of node-solid-server (and its dependencies solid/oidc-op, solid/oidc-rp), it appears that a solution for this case has been implemented.
this solution should be documented so the community can understand, analyze, comment on, and independently implement it.
from inspection of the source, i believe this is how it currently works:
The Solid reference implementation uses an ad hoc Proof of Possession Token (POPToken) directly as an HTTP Authorization Bearer token. Here, a POPToken is a JWT containing an OIDC id_token (which itself is independently validated and which bears a Proof of Possession key as the cnf claim), an audience binding it to the origin of the resource being accessed, and an issuer being the client to which the id_token was issued. The POPToken is signed with the private keying material associated with the cnf claim.

even if the current POPToken protocol is experimental, it should still be documented.
perhaps a brief (but correct) description could be referenced by the more mature specs as "this is an open area of research. one experimental approach is ..."

Completely agree. There were some things in the background that were preventing us from updating the docs, but those all seem to be rectified now. I'll be updating everything to be in-line with the implementation and proposing it to the w3c call next week.


Feature/refactoring

Codecov Report

Merging #76 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #76   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          14     14
  Lines         567    529   -38
=====================================
- Hits          567    529   -38

Impacted Files
Coverage Δ

lineflow/datasets/seq2seq.py
100% <ø> (ø)
:arrow_up:

lineflow/cross_validation.py
100% <100%> (ø)
:arrow_up:

lineflow/core.py
100% <100%> (ø)
:arrow_up:

lineflow/text.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


feat(Comparison): access comparison files through jupyter

closes #54
This pull request adds a new parameter to define a list of paths. On the comparison page, a controller call will get all json files stored in the defined paths and display them on the webapp. The user can either download the files by clicking on the file name or, as shown below, show their content immediately without downloading them on their machine.
Due to the annotation page usage of the same parent component to send a file to the webapp, the new component is also displayed on the annotation page, which prepares the next pull request which will allow the user to do the same with dataset files.

Bravo pour cette pr


text wrap on table

Tables are awesome, however if I have a long line and it exceeds my terminals width, I'd like to be able to wrap based on cellwidth - i used cellwidth but it doesn't seem to have an impact on the table. Here's my code -
err := termui.Init()
	if err != nil {
		panic(err)
	}
	defer termui.Close()
	rows1 := [][]string{
		[]string{"header1", "header2", "header3", "header4"},
		[]string{"你好吗", "Go-lang is so cool", "Im working on Ruby a long sentance Im working on Ruby a long sentance Im working on Ruby a long sentance", "Im working on Ruby a long sentance Im working on Ruby a long sentance Im working on Ruby a long sentance"},
		[]string{"2016", "10", "11", "11"},
	}

	table1 := termui.NewTable()
	table1.Rows = rows1
	table1.FgColor = termui.ColorWhite
	table1.BgColor = termui.ColorDefault
	table1.Y = 0
	table1.X = 0
	table1.Width = 59
	table1.Height = 7
	table1.Analysis()
	table1.SetSize()
	table1.CellWidth = []int{5,5,10, 5}
	termui.Render(table1)

	rows2 := [][]string{
		[]string{"header1", "header2", "header3"},
		[]string{"Foundations", "Go-lang is so cool", "Im working on Ruby"},
		[]string{"2016", "11", "11"},
	}

	table2 := termui.NewTable()
	table2.Rows = rows2
	table2.FgColor = termui.ColorWhite
	table2.BgColor = termui.ColorDefault
	table2.TextAlign = termui.AlignLeft
	table2.Separator = false
	table2.Analysis()
	table2.SetSize()
	table2.BgColors[2] = termui.ColorRed
	table2.Y = 10
	table2.X = 0
	table2.Border = true

	termui.Render(table2)
	termui.Handle("/sys/kbd/q", func(termui.Event) {
		termui.StopLoop()
	})
	termui.Loop()

I want to be able to wrap for example 3rd (or 2nd if you prefer 0 indexing) to next row based on some parameter I desire it to be -- is there anything prebuilt like that?

hello, @gizak can you check my PR for solving this issue ?


Is this possible to write bytes to response?

All I saw is able to use with crow::response::write is a std::string. I would like to be able to write raw bytes to my response. Is this possible? If so, how am I able to do that?

By the way, right now I am trying to work around it by doing this
std::streambuf writer( );

...

std::ostringstream writer_str;
writer_str << writer;

res.end( writer_str.str( ) );``` I will see if it works, but I'd like to get any more feedback.

Can't you just create string from bytes (with constructor)? If you want to send raw bytes, then you should probably use sockets directly.

Can you show example?

Uhh... The best thing I can do is log a Buffer object to console.
console.log(new Buffer("test"));
results in:
<Buffer 74 65 73 74>
I think Python's buffer = bytes() is a good representation too.

So you want to send bytes to socket. I think that you need raw socket to do this (https://www.geeksforgeeks.org/socket-programming-cc/). Or maybe send bytes as hex representation (https://stackoverflow.com/questions/10599068/how-do-i-print-bytes-as-hexadecimal) in HTTP response body and then reinterpret them on other side.

I can't use socket. I need to send response in that format to a HTTP server. Maybe i should just make a char buffer and "write bytes" to it? And In the end construct a string from it and send it back.

But HTTP protocol is a text protocol (as name states). If you need to send bytes to HTTP server then you can send theirs hex representation and then parse it back. Or send text representation of bytes (with std::string constructor).

Yeah, that's what I mean! Send their hexadecimal representation to the server! Is this possible with crow?

As I replied earlier - you have to convert bytes into hex string and then write it to response. I put link on how to perform this conversion in one of the earlier posts.
On 13 June 2018 14:28:50 CEST, czapek<EMAIL_ADDRESS>wrote:

Yeah, that's what I mean! Send their hexadecimal representation to the
server! Is this possible with crow?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipkn/crow/issues/306#issuecomment-396919866


Inline JS minification

This is a bit of an experiment.
It allows us to use the "internal" squeeze to minify the standard and deferred Inline javascript that templates, sources, addons, etc add to the page.  This just adds (really separates and exposes) the code in Combiner that was available to do this.  Also adds a getInstance method to Combiner since we were invoking it a few times.
The plus side is that it will save a 1-2k per page load, the downside is that it will also add a few hundreds of a second to the page creation time.  I considered caching the results, but could not see a suitable "key" since whats often inline is unique to the user, and perhaps unique on each page load.
Also updated to the latest squeeze.

Wouldn't it be much more worthwhile to get rid of the inline stuff and to add it dynamically on DOMContentLoaded or some such? That would surely save at least as much (browser caching!) without any server issues.

I suppose, but I have no real idea how to do that :/ ... You should open a feature request for this or better make a PR, there is a lot of source generated JS that is loaded to the page.   I'll close this one as not needed and await a better way to handle this.

Mostly it's just that I don't see 1-2 kB (is that before or after gzip?) as a worthwhile trade-off for hundreds of a second of extra processing time. But I actually misinterpreted this while I was distracted by the fact that my heater/boiler broke this morning. By default there seems to be about 2 kB of JS which is virtually incompressible through this method in the header and footer (I mean all the stuff like likemsg_are_you_sure = 'You already liked this message, are you sure you want to remove your like?',), while I was actually thinking of stuff that's just echoed and wouldn't be affected. Overall I just don't quite see how you'd get more than a couple hundred bytes out it (mostly by stripping whitespace) that you wouldn't also get with gzip?

Bummer about the heater ... but its summer now, you have months to get that fixed :dancer:
1-2k was a before vs after final page size, I don't recall which pages ATM, so probably more than just white space shrugs  Some pages have quite a bit of JS created in the sources and templates (some of which is erroneously not deferred), addons often add quite a lot.
No idea of the impact in the gzip size of the transport (will vary on several factors anyway such as web server used or php buffer based or none at all), nor cpu / time impact of the zip/unzip for the two base page sizes.

It's the shower that matters. ;)
On May 28, 2016 3:45 PM, "Spuds"<EMAIL_ADDRESS>wrote:

Bummer about the heater ... but its summer now, you have months to get
that fixed 💃
1-2k was a before vs after final page size, I don't recall which pages
ATM, so probably more than just white space shrugs Some pages have
quite a bit of JS created in the sources and templates (some of which is
erroneously not deferred), addons often add quite a lot.
No idea of the impact in the gzip size of the transport (will vary on
several factors anyway such as web server used or php buffer based or none
at all), nor cpu / time impact of the zip/unzip for the two base page sizes.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/elkarte/Elkarte/pull/2556#issuecomment-222309342, or mute
the thread
https://github.com/notifications/unsubscribe/AAMYBcMdQq6hmKxeTlLoItHB7pVG7bfgks5qGEb0gaJpZM4IowAJ
.

Cold shower helps! :P


It would be better to update the description in one soft-deleted folder's undelete dialog to 'For selected deleted folders, their contents will be recovered'

Storage Explorer Version: 1.24.0
Build Number: 20220424.1
Branch: rel/1.24.0
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Monterey 12.3 (Apple M1 Pro)
Architecture ia32\x64
How Found: From running test cases
Regression From: Not a regression
Steps to Reproduce

Expand one ADLS Gen2 storage account -> Blob Containers.
Create a blob container -> Create a folder -> Upload one blob to the folder.
Soft delete the blob -> Soft delete the folder.
Switch to 'Deleted only' context view -> Right click the soft-deleted folder.
Click 'Undelete -> Undelete Selected'.
Observe the description in the popped-up dialog -> Check whether the description is exact.

Expected Experience
It would be better to update the description to 'For selected deleted folders, their contents will be recovered'.
Actual Experience
The description 'For selected deleted folders, their contents will also be undeleted' is not exact.

Additional Context
Refer to the description For selected deleted folders, their contents will also be undeleted., the soft-deleted blobs in the soft-deleted folder will be undeleted if executing 'Undelete Selected' for the soft-deleted folder. while the truth is not.

Verified this issue on the build main 20220505.5. The descriptions have been updated. So, close this issue.


[New API] : Image Processing API

Brief Description 🤓
About the API
This image processing API will help the user in performing basic operations such as: (crop,resize,merge,using pixelation) and many more.
How will you develop it?🤩
Steps for development.

Step 1: Initialise the project using node.
Step 2: Implementing image processing functionalities.
Step 3: Creating the required endpoints.
Step 4: Adding error handling and validation.
Step 5: Documentation

Deployment
No
Select the open source program you are contributing to
Other
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINES of this project.

Greetings @Suyash878🎀 ! , We are excited to have you dive into another issue with us!🚀
Your involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇.  Use command /gssoc24 to self assign the issue.  This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.
We request you to follow CONTRIBUTING GUIDELINES.
Looking for your PR soon!
In case of any issues, you can contact us on Discord.❣

/gssoc24

Hey @Suyash878 ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.
In case of any issues, you can contact us on Discord.
Thank you! ❣
Happy Coding! ✨
Will See you soon❣


ActiveFixture regression after <IP_ADDRESS>

What steps will reproduce the problem?

Upgrade past <IP_ADDRESS>
Attempt a haveFixtures with a non-specified Db on the model being fixture`d.
Crash

What is the expected result?

Not to crash.

What do you get instead?
"Error: Call to a member function getSchema() on null in /code/vendor/yiisoft/yii2/test/ActiveFixture.php:156
Stack trace:
#0 /code/vendor/yiisoft/yii2/test/ActiveFixture.php(131): yii\test\ActiveFixture->getTableSchema()
#1 /code/vendor/yiisoft/yii2/test/ActiveFixture.php(121): yii\test\ActiveFixture->resetTable()
#2 /code/vendor/yiisoft/yii2/test/FixtureTrait.php(121): yii\test\ActiveFixture->unload()
#3 /code/vendor/codeception/module-yii2/src/Codeception/Module/Yii2.php(501): Codeception\Lib\Connector\Yii2\FixturesStore->unloadFixtures()
#4 [internal function]: Codeception\Module\Yii2->haveFixtures(Array)
#5 /code/vendor/codeception/codeception/src/Codeception/Step.php(273): call_user_func_array(Array, Array)
#6 /code/vendor/codeception/codeception/src/Codeception/Scenario.php(75): Codeception\Step->run(Object(Codeception\Lib\ModuleContainer))
#7 /code/tests/Support/_generated/FunctionalTesterActions.php(733): Codeception\Scenario->runStep(Object(Codeception\Step\Action))
#8 /code/tests/Support/Helper/Logi"

I get bisected this and blame was associated with commit. This was fixing models with non-default db connections, however sets it during fixture init regardless from the model. So if the model does not have a specified db, it sets null to that property which is then used instead of the default leading to a null db.
Waiting for someone with more internal knowledge to verify these claims, but I'm figuring it should only overwrite the db property on the active record if its non-null.
Additional info

Q
A

Yii version
<IP_ADDRESS> (after downgrading from <IP_ADDRESS>, during a large upgrade from <IP_ADDRESS>)

PHP version
8.0

Operating system
linux

Going to close this actually. It appears this only affected 1 model in my system and it was a yii2-user model, so I think the root issue was that one.


The query result is empty and no error is reported. Not realized sql.ErrNoRows

Not realized sql.ErrNoRows

import (
	"database/sql"
	"fmt"

	_ "github.com/sijms/go-ora/v2"
)

func main() {
	db, _ := sql.Open("oracle", "oracle://x:x@<IP_ADDRESS>:1521/x")

	rows, _ := db.Query("select * from dual where 1=2")
	defer rows.Close()

	for rows.Next() {
	}
	fmt.Println(rows.Err())
}

empty sql will not raise error. only rows.Next() will return false.
this is the default behavior in golang database/sql package that implemented in other databases.


Support requirejs

In underscore.string we use browserify to build a version of it which can be consumed in requireJs or as a standalone script (with a global variable). Checkout https://github.com/epeli/underscore.string/blob/master/gulpfile.js#L22.
Maybe this approach would be a solution for 101 too.

Closing this for now, bc original author is satisfied without this feature. Also, noone else has requested this.


docs: added cupid in tooling.md

Description
Added cupid under documentation generators in pages/docs/community/tooling.md. issue: asyncapi/cupid#77
Related issue(s)
Refer asyncapi/cupid#77

@alequetzalli do you want to check the description?

/rtm


Verify separators in values for argument that expect a path

In com.google.cloud.tools.eclipse.appengine.localserver.ui.ServerFlagSelectionDialog when a user defines an argument that takes a file path as its value, we should verify that the separator character used corresponds to the separator character of the platform.

custom runtime is gone


Comments panel is flaky

I don't really understand when the comments panel is supposed to show comments.
It doesn't show when I open a PR's description, which definitely has comments:

It also doesn't seem to show them when I open a change:

Got it, it showed comments once I checked out the PR...

Correct. It shows the comments on whatever is in your workspace. Need to make this more clear.

Closing out some old issues, I think we are unlikely to change this behavior


How do you clear your manual prompts?

Liking this tool so far, but how do you clear your manual prompts?  I was clicking around testing things and the manual prompts I picked can't be cleared or reset?
When I try to use it, it remembers the past manual prompts, and adds my new selections to the old one.
I'm probably using it wrong, but please help?

Hello, this happens when you refresh the browser page.
Currently the only solution is to restart the console.
In the next version there will be a button to reset everything ;)

You can update to the new version with the reset button


🐛 [cloud_firestore] Very long (10 - 30 seconds) transaction failure timeout while offline

Bug report
Describe the bug
While offline, transactions eventually start taking a very long time to fail: 10s - 30s.
Steps to reproduce

Set up a new Firestore Flutter project
Use the following pubspec deps: cloud_firestore: 2.4.0, firebase_core: 1.4.0, firebase_auth: 3.0.1
Paste below code into main.dart.
Replace the login info in main.dart with real ones.
Build for an Android tablet (the ones I tested on was an Samsung Galaxy Tab A, and a phone: Samsung J5).
Kill the internet for the tablet. It shouldn't matter how you do this.
Press the blue button and wait for the transaction to fail, and note the time it takes. Do this several times.
It should fail quick at first (30ms - 50ms), but after 6ish clicks the time will jump to 10+ seconds. The times will get progressively worse until the tablet has "rested" for a few minutes, after which it returns to failing in milliseconds and the cycle starts over.

Expected behavior
I expect it to fail immediately while offline, consistently.
Sample project
import 'dart:math';

import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Transaction timeout bug demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final _initialization = Firebase.initializeApp();

  @override
  Widget build(BuildContext context) {
    return FutureBuilder(
      future: _initialization,
      builder: (context, snapshot) {
        if (snapshot.hasError) {
          return Container(
            color: Colors.red,
            child: Center(child: Text(snapshot.error.toString())),
          );
        }

        if (snapshot.connectionState != ConnectionState.done) {
          return CircularProgressIndicator();
        }

        return MainApp();
      },
    );
  }
}

class MainApp extends StatefulWidget {
  const MainApp({Key? key}) : super(key: key);

  @override
  _MainAppState createState() => _MainAppState();
}

class _MainAppState extends State<MainApp> {
  var _lastTransactionStart = DateTime.now();
  var _lastTransactionEnd = DateTime.now();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Transaction bug demo'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'The last transaction took this long to fail:',
              style: TextStyle(fontSize: 20),
            ),
            Text(
              _lastTransactionEnd
                      .difference(_lastTransactionStart)
                      .inMilliseconds
                      .toString() +
                  'ms',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          try {
            final fs = FirebaseFirestore.instance;
            _lastTransactionStart = DateTime.now();
            await fs.runTransaction((trx) async {
              // It doesn't appear the transactionHandler is the problem. It fails immediately.

              // Doesn't matter which document, we'll never access it while offline anyway.
              final ref = fs.doc('test/doc');

              print('Getting a lock');
              // Try to get a lock
              await trx.get(ref);
              print('Got lock (will never run)');

              final rng = new Random();
              print('Running update (will never run)');
              trx.update(ref, {'test': rng.nextInt(10000)});
            });
          } catch (err) {
            setState(() => _lastTransactionEnd = DateTime.now());

            print('The last transaction took this long to fail: ' +
                _lastTransactionEnd
                    .difference(_lastTransactionStart)
                    .inMilliseconds
                    .toString() +
                'ms');
            if (!err.toString().contains("transient")) print(err);
          }
        },
        tooltip: 'Run transaction',
        child: Icon(Icons.add),
      ),
    );
  }
}

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 2.2.3, on Mac OS X 10.13.6 17G14042 darwin-x64, locale en-DK)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Xcode - develop for iOS and macOS
    ✗ Xcode 10.1.0 out of date (12.0.1 is recommended).
      Download the latest version or update via the Mac App Store.
    ! CocoaPods 1.9.1 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.58.2)
[✓] Connected device (2 available)

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.13.4
Flutter SDK 2.2.3
trxtest 1.0.0+1

dependencies:
- cloud_firestore 2.4.0 [cloud_firestore_platform_interface cloud_firestore_web firebase_core firebase_core_platform_interface flutter meta]
- cupertino_icons 1.0.3
- firebase_auth 3.0.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.4.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]

dev dependencies:
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- async 2.6.1 [meta collection]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.2.0
- clock 1.1.0
- cloud_firestore_platform_interface 5.3.0 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.3.0 [cloud_firestore_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.15.0
- fake_async 1.2.0 [clock collection]
- firebase_auth_platform_interface 6.0.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.0.0 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.0.1 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.1.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.3
- matcher 0.12.10 [stack_trace]
- meta 1.3.0
- path 1.8.0
- plugin_platform_interface 2.0.1 [meta]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.3.0 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- vector_math 2.1.0

Was able to reproduce this with cloud_firestore: ^2.4.0.

flutter doctor -v
[√] Flutter (Channel master, 2.5.0-2.0.pre.113, on Microsoft Windows [Version 10.0.19041.1110], locale et-EE)
    • Flutter version 2.5.0-2.0.pre.113 at C:\Development\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0abf02f855 (3 days ago), 2021-07-30 17:44:02 -0700
    • Engine revision 29f9df723f
    • Dart version 2.14.0 (build 2.14.0-368.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7583922\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30621.155
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7583922
    • Flutter plugin version 58.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] IntelliJ IDEA Ultimate Edition (version 2021.2)
    • IntelliJ at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\212.4746.92
    • 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 (5 available)
    • SM G950F (mobile)           • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • sdk gphone x86 arm (mobile) • emulator-5554      • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)           • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.1110]
    • Chrome (web)                • chrome             • web-javascript • Google Chrome 92.0.4515.107
    • Edge (web)                  • edge               • web-javascript • Microsoft Edge 92.0.902.55

• No issues found!

This doesn't look like something we would have control over so I suggest also opening this in https://github.com/firebase/firebase-android-sdk/issues

I should mention that I haven't tried this in iOS, so I'm not sure if it's a problem there.

Hey @larssn, I put my device in airplane mode. I got the following exception:
PlatformException(firebase_firestore, UNAVAILABLE: Unable to resolve host firestore.googleapis.com, {code: unavailable, message: The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.}, null)
I got the same exception switching off wifi and mobile data.
Could you be more specific about point number 6 (i.e. "Kill the internet for the tablet. It shouldn't matter how you do this."), please?

@russellwheatley You're supposed to get that exception, thats fine. But the amount of time it takes for the exception to show up is what is relevant here.
On my tablet I tried two approaches to turning off the internet: Set an invalid gateway IP. The other was simply turning off wifi. Both yielded the same results, so I don't think it matters.

So they've confirmed it's a problem in the Android SDK: https://github.com/firebase/firebase-android-sdk/issues/2877#issuecomment-892934745

My bad, I should've mentioned I was receiving the error immediately.

So they've confirmed it's a problem in the Android SDK: firebase/firebase-android-sdk#2877 (comment)
Feel free to close this thread, if you think it holds no relevance. 👍🏻

Ok, thanks for the update 👍. As there is nothing to action here, people can follow the ticket on the firebase-android-sdk repo.


getEntriesByName is not supported in some versions of Opera

Hi there,
We noticed that upgrading from v1.1.1 to v1.1.2 broke our application for our users on data saving mode in the Opera Mini browser.
We believe it was caused by this change https://github.com/GoogleChrome/web-vitals/commit/4dfde193e0c7f7d1dbb002a33c92128fa6ad54c1
It seems that performance.getEntriesByName is not supported in some version of Opera.
So that we can upgrade the web-vitals package in our application, would you recommend we look for a polyfill for performance.getEntriesByName or should we contribute a fix?
Thanks

The fix for this was released in v2.0.1, so you'll have to do a major version update to get it, but hopefully that's not a problem?
There was minimal breaking changes in the v2 update, mostly just the change to how CLS is calculated which you'll probably want to update to get anyway.

Thanks for your help, @philipwalton. Yeh I don't think upgrading to v2 will be an issue 🙂


Add Github Testing Workflow

LGTM, but the tests are currently failing...

The test started to fail after I changed the trigger conditions as @andreibancioiu proposed – for some weird reason.
The reason was the way Carbon instances get serialized in GH Actions env where certain extensions are present, so I changed the serialization method for snapshots to json.
Should all be good now.


kextunload issue in digital-power-station

General troubleshooting steps

[X] I have checked the instructions for reporting bugs (or making requests) before opening the issue.

[X] None of the templates was appropriate for my issue, or I’m not sure.

[X] I ran brew update-reset && brew update and retried my command.
[X] I ran brew doctor, fixed as many issues as possible and retried my command.
[X] I understand that if I ignore these instructions, my issue may be closed without review.

Description of issue
Looks like kextunload might not be waiting for the kext to exit before trying to remove it but not sure. The first execution of the uninstall for digital-power-station fails with kext is in use or retained as an error. Running the uninstall again works fine so that's why I concluded that it's not waiting for an exit. Happy to troubleshoot here, just let me know how to proceed.
Output of your command with --verbose --debug
$ brew cask uninstall digital-power-station --verbose --debug
==> Uninstalling Cask digital-power-station
==> Hbc::Installer#uninstall
==> Un-installing artifacts
==> Determining which artifacts are present in Cask digital-power-station
==> 2 artifact/s defined
#<Hbc::Artifact::Uninstall:0x007fe8149d3380>
#<Hbc::Artifact::Pkg:0x007fe8149d33f8>
==> Un-installing artifact of class Hbc::Artifact::Uninstall
==> Running uninstall process for digital-power-station; your password may be necessary
==> Unloading kernel extension com.bongiovi.DPSReflector
==> Executing: ["/usr/bin/sudo", "-E", "--", "/usr/sbin/kextstat", "-l", "-b", "com.bongiovi.DPSReflector"]
==> Executing: ["/usr/bin/sudo", "-E", "--", "/sbin/kextunload", "-b", "com.bongiovi.DPSReflector"]
==> (kernel) Can't unload kext com.bongiovi.DPSReflector; classes have instances:
==> (kernel)     Kext com.bongiovi.DPSReflector class com_bongiovi_DPSReflectorDevice has 1 instance.
==> (kernel)     Kext com.bongiovi.DPSReflector class DPSReflectorEngine has 1 instance.
==> Failed to unload com.bongiovi.DPSReflector - (libkern/kext) kext is in use or retained (cannot unload).
Error: Command failed to execute!

==> Failed command:
/usr/bin/sudo -E -- /sbin/kextunload -b com.bongiovi.DPSReflector

==> Standard Output of failed command:

==> Standard Error of failed command:
(kernel) Can't unload kext com.bongiovi.DPSReflector; classes have instances:
(kernel)     Kext com.bongiovi.DPSReflector class com_bongiovi_DPSReflectorDevice has 1 instance.
(kernel)     Kext com.bongiovi.DPSReflector class DPSReflectorEngine has 1 instance.
Failed to unload com.bongiovi.DPSReflector - (libkern/kext) kext is in use or retained (cannot unload).

==> Exit status of failed command:
#<Process::Status: pid 13543 exit 3>
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/system_command.rb:65:in `assert_success'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/system_command.rb:36:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/system_command.rb:14:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/system_command.rb:18:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:152:in `block in uninstall_kext'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:148:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:148:in `uninstall_kext'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:34:in `block (2 levels) in dispatch_uninstall_directives'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:32:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:32:in `block in dispatch_uninstall_directives'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:31:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb:31:in `dispatch_uninstall_directives'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/uninstall.rb:7:in `uninstall_phase'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:330:in `block in uninstall_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:327:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:327:in `uninstall_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:312:in `uninstall'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb:26:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb:9:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb:9:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:115:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:158:in `process'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:163:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:163:in `rescue in process'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:149:in `process'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>'

Output of brew cask doctor
$ brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.1.13
caskroom/homebrew-cask (git revision 07376; last commit 2017-04-21)
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (47 files, 3.6GB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3638 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core (0 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin16
/Library/Ruby/Site/2.0.0/universal-darwin16
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"

@colindunn I'm afraid I cannot reproduce this from a clean install in a VM.
brew cask uninstall digital-power-station --verbose --debug
==> Uninstalling Cask digital-power-station
==> Hbc::Installer#uninstall
==> Un-installing artifacts
==> Determining which artifacts are present in Cask digital-power-station
==> 2 artifact/s defined
#<Hbc::Artifact::Uninstall:0x007f8e27335d58>
#<Hbc::Artifact::Pkg:0x007f8e27335dd0>
==> Un-installing artifact of class Hbc::Artifact::Uninstall
==> Running uninstall process for digital-power-station; your password may be necessary
==> Unloading kernel extension com.bongiovi.DPSReflector
==> Executing: ["/usr/bin/sudo", "-E", "--", "/usr/sbin/kextstat", "-l", "-b", "com.bongiovi.DPSReflector"]
Password:
==> Executing: ["/usr/bin/sudo", "-E", "--", "/sbin/kextunload", "-b", "com.bongiovi.DPSReflector"]
==> Executing: ["/usr/bin/sudo", "-E", "--", "/usr/sbin/kextfind", "-b", "com.bongiovi.DPSReflector"]
==> Removing kernel extension /Library/Extensions/DPSReflector.kext
==> Executing: ["/usr/bin/sudo", "-E", "--", "/bin/rm", "-rf", "/Library/Extensions/DPSReflector.kext"]
==> Uninstalling packages:
==> Executing: ["/usr/sbin/pkgutil", "--pkgs=com.bongiovi.pkg.BongioviDPS.*"]
com.bongiovi.pkg.BongioviDPS.Applications.pkg
==> Executing: ["/usr/sbin/pkgutil", "--export-plist", "com.bongiovi.pkg.BongioviDPS.Applications.pkg"]
==> Deleting pkg files

I updated the uninstall yesterday in https://github.com/caskroom/homebrew-cask/pull/32617. I was just testing to see if the .app bundle was removed. Taking another look at this it seems to need an uninstall quit: 'com.bongiovi.DPS20' if the app is running but I can't get the kext to error with or without the uninstall quit.

Thanks @commitray.
This is in a clean VM, vagrant via VirtualBox. What are you using out of interest?

What are you using out of interest?

Fusion Pro 8.5.6

This is in a clean VM

Is there any particular settings you have enabled in the app or MacOS that I can try to see if I can reproduce this?

Not that I can see.
Trying the install directly on my machine to test.

Works fine on my actual machine rather than VM, so definitely a VM issue.
Found this problem while doing an updated, so will continue the update after #32727 gets merged.


Add ycmd version function

This patch add the function ycmd-version to get the emacs-ycmd package version. Add also more system information to ycmd-show-debug-info.
Since we get many tickets with outdated emacs-ycmd package. This could help to track them down more easily.
Also change package version to a common pattern among emacs packages. Using the suffix -cvs for snapshot versions and removing suffix when releasing a version. We should change the version more often, basically after each bugfix or new feature. This could also help to track down issues more quickly.
This PR is based on the changes of #381 and once #381 is merged I will rebase onto master again.

Is this marked "blocked" because of #381?

@abingham Yes, but I rebased already :smile:

Awesome, thanks!


Validate the return type of the callback in compute() function

I'm suggesting a better error message for the issue with compute().
I ran into the same issue as described in https://github.com/flutter/flutter/issues/63664 and I figured out my problem.
In my case, I was passing in a function that returns a Future.
Future<List<String>> _loadData(String arg) async {
  final dataFromFile = await readFile(arg);
  // Heavy compute
  parseFile(dataFromFile);
}

@override
void initState() {
  super.initState();

  myData = compute(_loadData, 'arg');
}

This throws an exception. Then I changed the code to use compute inside _loadData;
Future<List<String>> _loadData(String arg) async {
  final dataFromFile = await readFile(arg);
  // Heavy compute
  return compute(parseFile, dataFromFile);
}

Then it worked.
So the problem was that we cannot use a async function as the callback in compute;

Hello @gavinhub. Using the code sample below, I was not able to reproduce this issue. The compute function takes a ComputeCallback, whose signature accepts a FutureOr Function. Therefore, futures are supported. If you are able to produce a minimal, reproducible example, please do post it here

Code sample
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String? _data;

  Future<String> _initData(String message) async {
    await Future.delayed(const Duration(seconds: 2));
    return 'Data loaded: $message';
  }

  @override
  void initState() {
    super.initState();
    compute(_initData, 'from compute').then((String data) {
      setState(() {
        _data = data;
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Text(_data ?? 'Loading...'),
      ),
    );
  }
}

flutter doctor -v (Stable)
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.0.5 at /Users/nabeelparkar/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

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

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

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

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

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 69.0.4
    • Dart plugin version 221.5921.27

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

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

• No issues found!

flutter doctor -v (Master)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.2055, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.1.0-0.0.pre.2055 on channel master at /Users/nabeelparkar/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b4673a2c1f (2 hours ago), 2022-08-03 00:51:16 -0400
    • Engine revision 6cd744bb97
    • Dart version 2.19.0 (build 2.19.0-58.0.dev)
    • DevTools version 2.16.0

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

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

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

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

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 69.0.4
    • Dart plugin version 221.5921.27

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

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

• No issues found!

Hi @exaby73. Thanks for replying. I tried your code example and it works. Then I changed the code closer to what I had when I see the problem. Basically, I ran compute while pushing in a new page. And I read from assets in the compute function. Here is how I reproduce.
Please ensure you have the assets added in pubspec.yaml.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show rootBundle;

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialRoute: '/',
      routes: {
        '/': (context) => const MyHomePage(),
        '/compute': (context) => const ComputePage(),
      },
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => Scaffold(
      appBar: AppBar(
        title: const Text('Home'),
      ),
      body: Center(
        child: TextButton(
          onPressed: () {
            Navigator.pushNamed(context, '/compute');
          },
          child: const Text('Compute'),
        ),
      ));
}

class ComputePage extends StatefulWidget {
  const ComputePage({Key? key}) : super(key: key);

  @override
  State<ComputePage> createState() => _ComputePageState();
}

Future<String> loadAsset(String filename) async {
  return await rootBundle.loadString(filename);
}

Future<String> _initData(String filename) async {
  final content = await loadAsset(filename);
  return 'Data loaded: $content';
}

class _ComputePageState extends State<ComputePage> {
  String? _data;

  @override
  void initState() {
    super.initState();
    compute(_initData, 'assets/text_file.txt').then((String data) {
      setState(() {
        _data = data;
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Compute'),
      ),
      body: Center(
        child: Text(_data ?? 'Loading...'),
      ),
    );
  }
}

I do not think you can read from assets in the compute function since it's running on a separate thread/isolate.
Basically Flutter needs WidgetsFlutterBinding.ensureInitialized() to be called in order for you to access assets. But it's only supported from the root isolate AKA the UI thread. So you need to read the data and pass it to the callback in the compute function. You shouldn't have problems with performance of your UI since it is an asynchronous call.
Since this is how it's expected to work, I am closing this issue. Feel free to comment if you disagree and we can reopen it. Thank you


Support README.txt and README.rst etc

💡 Feature description
Add support for various kinds of README files, not hard-coding only README.md. Right now we will only copy README.md into the package, not any other kind of README file. We can iterate over the files in the crate directory, find all files whose name (without extension) is "README" and copy those over.
💻 Basic example

README.rst -- restructured text
README.txt -- plain text
README.html -- html
README -- plain text with no extension
etc...

Are we sure we want to do this? npm doesn't support these so I'm not sure it makes sense for us to support them.

i think we have decided we are only going to support README.md for now. willing to revisit later.


Windows: Block ReFS file systems

Signed-off-by: John Howard<EMAIL_ADDRESS>Fixes #23079. This blocks the Windows daemon from starting if the graph directory is on an ReFS volume as the platform doesn't support it. Stops getting an error on docker pull (after waiting for it to download the base layer, extract it and then fail...)

Should filesystem detection be done in https://github.com/docker/docker/blob/7311d687e032b63715da74e327dfc06d3dba3b42/daemon/graphdriver/driver_windows.go#L11, as on Linux?

Urm - there's no checks in the equivalent driver_linux.go code. But this is in the right place - where the filter driver loads. You never know - in the future we may have additional drivers.

LGTM

LGTM

@jhowardmsft I marked this PR with "docs/revisit"; wondering if we document anywhere what underlying filesystems are supported on Windows, and if we should have a section on Window's storage driver in https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/

@patricklang - Can you make sure this is documented on MSDN. I'll put a PR into the docker docs when I get a chance.


Fix Json Encoding for AstArray

Fix JsonEncoder so that AstArray elems are given commas separating them.
Old output excerpt (not valid JSON):
{
        "type": "AstExprFunction",
        "location": "0,611 - 0,786",
        "generics": [],
        "genericPacks": [],
        "args": [
            "p1"
            "s1"
            "B1"
        ],

New output excerpt (valid JSON):
{
        "type": "AstExprFunction",
        "location": "0,611 - 0,786",
        "generics": [],
        "genericPacks": [],
        "args": [
            "p1",
            "s1",
            "B1"
        ],

Gladius on top as always 💪
a dude known as a top exploit dev helping luaU devs themselves LMAO


updated docs

Summary of Changes

Added site wide configuration options
Clarified use of #hide_output and the notebook extension
Added #hide_output to the example notebook

/preview