Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update code sample cookbook background parsing #5798

Closed
wants to merge 7 commits into from
Closed

update code sample cookbook background parsing #5798

wants to merge 7 commits into from

Conversation

iapicca
Copy link

@iapicca iapicca commented May 16, 2021

fix #6768

updating the current coda sample with the following

new code sample
import 'dart:async';
import 'dart:convert';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

Future<List<Photo>> fetchPhotos(http.Client client) async {
  final uri = Uri.parse('https://jsonplaceholder.typicode.com/photos');
  final response = await client.get(uri);

  // Use the compute function to run parsePhotos in a separate isolate.
  return compute(parsePhotos, response.body);
}

// A function that converts a response body into a List<Photo>.
List<Photo> parsePhotos(String responseBody) {
  final parsed = jsonDecode(responseBody) as List;
  return [for (final json in parsed) Photo.fromJson(json)];
}

@immutable
class Photo {
  final int albumId, id;
  final String title, url, thumbnailUrl;

  const Photo({
    required this.albumId,
    required this.id,
    required this.title,
    required this.url,
    required this.thumbnailUrl,
  });

  factory Photo.fromJson(Map<String, Object?> json) {
    return Photo(
      albumId: json['albumId'] as int,
      id: json['id'] as int,
      title: json['title'] as String,
      url: json['url'] as String,
      thumbnailUrl: json['thumbnailUrl'] as String,
    );
  }
}

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  static const _appTitle = 'Isolate Demo';

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: _appTitle,
      home: MyHomePage(title: _appTitle),
    );
  }
}

class MyHomePage extends StatelessWidget {
  final String title;

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: FutureBuilder<List<Photo>>(
        future: fetchPhotos(http.Client()),
        builder: (context, snapshot) {
          if (snapshot.hasError) {
            print(snapshot.error);
            return const Center(child: Icon(Icons.error));
          }
          return snapshot.hasData
              ? PhotosList(photos: snapshot.data!)
              : const Center(child: CircularProgressIndicator());
        },
      ),
    );
  }
}

class PhotosList extends StatelessWidget {
  final List<Photo> photos;

  const PhotosList({Key? key, required this.photos}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GridView.builder(
      gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
        crossAxisCount: 2,
      ),
      itemCount: photos.length,
      itemBuilder: (context, index) {
        return Image.network(photos[index].thumbnailUrl);
      },
    );
  }
}

testing the code above with the latest master on android physical device

doctor
[✓] Flutter (Channel master, 2.3.0-2.0.pre.234, on Ubuntu 21.04 5.11.0-17-generic, locale en_US.UTF-8)
    • Flutter version 2.3.0-2.0.pre.234 at /home/yakforward/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 89442b495e (33 hours ago), 2021-05-14 21:34:02 -0700
    • Engine revision 3c1d96f0b8
    • Dart version 2.14.0 (build 2.14.0-edge.a527411e5100a0a4f48c4009087a1b988aa784af)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/yakforward/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /snap/android-studio/101/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-1ubuntu1
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 4.1)
    • Android Studio at /snap/android-studio/101/android-studio
    • Flutter plugin version 55.1.1
    • Dart plugin version 201.9335
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (3 available)
    • Pixel 3a (mobile) • 965AY0WP5C • android-arm64  • Android 11 (API 30)
    • Linux (desktop)   • linux      • linux-x64      • Ubuntu 21.04 5.11.0-17-generic
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 90.0.4430.212

• No issues found!

everything seems to work as intended

logs
[  +66 ms] executing: uname -m
[  +32 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +6 ms] executing: [/home/yakforward/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +8 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 89442b495e5a3537d53247f49d7ac32bf3784af8
[   +1 ms] executing: [/home/yakforward/development/flutter/] git tag --points-at 89442b495e5a3537d53247f49d7ac32bf3784af8
[  +12 ms] Exit code 0 from: git tag --points-at 89442b495e5a3537d53247f49d7ac32bf3784af8
[   +1 ms] executing: [/home/yakforward/development/flutter/] git describe --match *.*.* --long --tags 89442b495e5a3537d53247f49d7ac32bf3784af8
[  +35 ms] Exit code 0 from: git describe --match *.*.* --long --tags 89442b495e5a3537d53247f49d7ac32bf3784af8
[        ] 2.3.0-1.0.pre-234-g89442b495e
[   +8 ms] executing: [/home/yakforward/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/yakforward/development/flutter/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +80 ms] executing: [/home/yakforward/development/flutter/] git rev-parse --abbrev-ref HEAD
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +83 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +90 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb devices -l
[  +43 ms] List of devices attached
           965AY0WP5C             device usb:1-2 product:sargo model:Pixel_3a device:sargo transport_id:4
[   +6 ms] /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell getprop
[ +113 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +85 ms] Skipping pub get: version match.
[ +138 ms] Generating /home/yakforward/projects/issue/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +62 ms] ro.hardware = sargo
[        ] ro.build.characteristics = nosdcard
[  +49 ms] Initializing file store
[  +11 ms] Skipping target: gen_localizations
[   +7 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[   +2 ms] complete
[   +6 ms] Launching lib/main.dart on Pixel 3a in debug mode...
[   +5 ms] /home/yakforward/development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/yakforward/development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot
--sdk-root /home/yakforward/development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.KLIXAG/flutter_tool.DHLLHJ/app.dill --packages /home/yakforward/projects/issue/.dart_tool/package_config.json -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/f245b0b7cc30f460f818fcec6bcf01fb.cache.dill.track.dill
--flutter-widget-cache --enable-experiment=alternative-invalidation-strategy
[  +14 ms] executing: /home/yakforward/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/yakforward/projects/issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +4 ms] Exit code 0 from: /home/yakforward/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/yakforward/projects/issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.issue" (Raw: "com.example.issue")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="issue" (Raw: "issue")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.issue.MainActivity" (Raw: "com.example.issue.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +9 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell -x logcat -v time -t 1
[  +17 ms] <- compile package:issue/main.dart
[  +87 ms] --------- beginning of main
           05-16 16:29:28.658 D/VSC     ( 1045): @ 101113.842: [WO] rejected by isOrientationAngleAcceptable
[  +11 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb version
[   +8 ms] Android Debug Bridge version 1.0.41
           Version 31.0.2-7242960
           Installed as /home/yakforward/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb start-server
[  +12 ms] Building APK
[  +27 ms] Running Gradle task 'assembleDebug'...
[   +5 ms] Using gradle from /home/yakforward/projects/issue/android/gradlew.
[  +20 ms] executing: /snap/android-studio/101/android-studio/jre/bin/java -version
[  +51 ms] Exit code 0 from: /snap/android-studio/101/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
           OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
[   +2 ms] executing: [/home/yakforward/projects/issue/android/] /home/yakforward/projects/issue/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=/home/yakforward/projects/issue/lib/main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3745 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +75 ms] executing: uname -m
[        ] [  +34 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +9 ms] executing: [/home/yakforward/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +6 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 89442b495e5a3537d53247f49d7ac32bf3784af8
[        ] [        ] executing: [/home/yakforward/development/flutter/] git tag --points-at 89442b495e5a3537d53247f49d7ac32bf3784af8
[        ] [  +32 ms] Exit code 0 from: git tag --points-at 89442b495e5a3537d53247f49d7ac32bf3784af8
[        ] [   +1 ms] executing: [/home/yakforward/development/flutter/] git describe --match *.*.* --long --tags 89442b495e5a3537d53247f49d7ac32bf3784af8
[        ] [  +59 ms] Exit code 0 from: git describe --match *.*.* --long --tags 89442b495e5a3537d53247f49d7ac32bf3784af8
[        ] [        ] 2.3.0-1.0.pre-234-g89442b495e
[        ] [   +6 ms] executing: [/home/yakforward/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/master
[        ] [        ] executing: [/home/yakforward/development/flutter/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +88 ms] executing: [/home/yakforward/development/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] master
[        ] [  +62 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +15 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +97 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[   +3 ms] [  +34 ms] Initializing file store
[        ] [  +10 ms] Done initializing file store
[        ] [  +57 ms] Skipping target: gen_localizations
[        ] [  +14 ms] Skipping target: gen_dart_plugin_registrant
[ +221 ms] [ +708 ms] kernel_snapshot: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/yakforward/projects/issue/lib/main.dart}
[        ] [  +10 ms] /home/yakforward/development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/yakforward/development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/yakforward/development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages /home/yakforward/projects/issue/.dart_tool/package_config.json --output-dill
/home/yakforward/projects/issue/.dart_tool/flutter_build/1cb2f074a2fd0df3ae6b269ef04a7afb/app.dill --depfile
/home/yakforward/projects/issue/.dart_tool/flutter_build/1cb2f074a2fd0df3ae6b269ef04a7afb/kernel_snapshot.d package:issue/main.dart
[+14599 ms] [+14646 ms] kernel_snapshot: Complete
[ +800 ms] [ +785 ms] debug_android_application: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
/home/yakforward/projects/issue/.dart_tool/flutter_build/1cb2f074a2fd0df3ae6b269ef04a7afb/app.dill}
[ +299 ms] [ +264 ms] debug_android_application: Complete
[ +300 ms] [ +374 ms] Persisting file store
[        ] [   +8 ms] Done persisting file store
[ +100 ms] [  +14 ms] build succeeded.
[        ] [  +15 ms] "flutter assemble" took 17,069ms.
[ +198 ms] [ +224 ms] ensureAnalyticsSent: 209ms
[        ] [   +5 ms] Running shutdown hooks
[        ] [   +1 ms] Shutdown hooks complete
[        ] [   +2 ms] exiting with code 0
[ +199 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +98 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[  +98 ms] > Task :app:mergeDebugAssets
[ +300 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[  +97 ms] > Task :app:processDebugResources UP-TO-DATE
[ +100 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[  +98 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[  +99 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[  +99 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[ +599 ms] > Task :app:compressDebugAssets
[+1000 ms] > Task :app:packageDebug
[ +199 ms] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 23s
[        ] 32 actionable tasks: 7 executed, 25 up-to-date
[ +372 ms] Running Gradle task 'assembleDebug'... (completed in 23.7s)
[  +85 ms] calculateSha: LocalDirectory: '/home/yakforward/projects/issue/build/app/outputs/flutter-apk'/app.apk
[ +921 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +2 ms] executing: /home/yakforward/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/yakforward/projects/issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +20 ms] Exit code 0 from: /home/yakforward/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/yakforward/projects/issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.issue" (Raw: "com.example.issue")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="issue" (Raw: "issue")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.issue.MainActivity" (Raw: "com.example.issue.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +2 ms] Stopping app 'app.apk' on Pixel 3a.
[   +1 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell am force-stop com.example.issue
[ +120 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell pm list packages com.example.issue
[ +129 ms] package:com.example.issue
[   +5 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell cat /data/local/tmp/sky.com.example.issue.sha1
[  +87 ms] 1a796b783c0c1b6bf3c4720e44a5b922ecb7715d
[   +1 ms] Installing APK.
[   +3 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C install -t -r /home/yakforward/projects/issue/build/app/outputs/flutter-apk/app.apk
[+3879 ms] Performing Streamed Install
                    Success
[        ] Installing build/app/outputs/flutter-apk/app.apk... (completed in 3.9s)
[   +1 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell echo -n 99c87c2100011e414fdcb48cf57118abf110588a > /data/local/tmp/sky.com.example.issue.sha1
[  +20 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell -x logcat -v time -t 1
[  +55 ms] --------- beginning of main
           05-16 16:29:59.666 I/InputReader( 1663): Reconfiguring input devices, changes=KEYBOARD_LAYOUTS |
[  +37 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez
enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.issue/com.example.issue.MainActivity
[  +99 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.issue/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+1081 ms] Observatory URL on device: http://127.0.0.1:39973/0AiW-OHFrps=/
[   +1 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C forward tcp:0 tcp:39973
[   +7 ms] 33163
[        ] Forwarded host port 33163 to device port 39973 for Observatory
[   +6 ms] Caching compiled dill
[  +48 ms] Connecting to service protocol: http://127.0.0.1:33163/0AiW-OHFrps=/
[ +453 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:33163/0AiW-OHFrps=/.
[ +297 ms] DDS is listening at http://127.0.0.1:41515/hBzZJ6TP7NA=/.
[  +63 ms] Successfully connected to service protocol: http://127.0.0.1:33163/0AiW-OHFrps=/
[  +28 ms] DevFS: Creating new filesystem on the device (null)
[  +42 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.issue/code_cache/issueGQBFDL/issue/)
[   +9 ms] Updating assets
[  +76 ms] Syncing files to device Pixel 3a...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:issue/main.dart 5faeeabb-7d7f-4696-8834-08a797559c9c
[        ] <- 5faeeabb-7d7f-4696-8834-08a797559c9c
[ +117 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Pixel 3a... (completed in 121ms)
[        ] Synced 0.0MB.
[        ] <- accept
[  +23 ms] Connected to _flutterView/0x7066741870.
[   +4 ms] Flutter run key commands.
[   +3 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on Pixel 3a is available at: http://127.0.0.1:41515/hBzZJ6TP7NA=/
[+1115 ms] DevTools activation throttled until 2021-05-17 04:11:36.938971.
[ +624 ms] The Flutter DevTools debugger and profiler on Pixel 3a is available at: http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A41515%2FhBzZJ6TP7NA%3D%2F
[+13891 ms] Skipping target: gen_localizations
[   +1 ms] Skipping target: gen_dart_plugin_registrant
[   +2 ms] Skipping target: _composite
[        ] complete
[   +6 ms] Performing hot restart...
[  +14 ms] Scanned through 517 files in 9ms
[        ] Syncing files to device Pixel 3a...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:issue/main.dart a0a8873e-906b-4f41-b84a-4b32ebeae639
[        ] <- a0a8873e-906b-4f41-b84a-4b32ebeae639
[ +118 ms] Updating files.
[ +731 ms] DevFS: Sync finished
[        ] Syncing files to device Pixel 3a... (completed in 852ms)
[        ] Synced 26.8MB.
[        ] <- accept
[ +474 ms] Hot restart performed in 1,337ms.
[   +3 ms] Performing hot restart... (completed in 1,345ms)
[        ] Restarted application in 1,365ms.
[+71434 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +1 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C forward --list
[   +5 ms] Exit code 0 from: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C forward --list
[        ] 965AY0WP5C tcp:33163 tcp:39973
[        ] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C forward --remove tcp:33163
[  +10 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.issue/code_cache/issueGQBFDL/issue/)
[ +255 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +8 ms] executing: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C forward --list
[   +6 ms] Exit code 0 from: /home/yakforward/Android/Sdk/platform-tools/adb -s 965AY0WP5C forward --list
[   +3 ms] "flutter run" took 121,120ms.
[ +259 ms] ensureAnalyticsSent: 254ms
[   +5 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +5 ms] exiting with code 0

@google-cla google-cla bot added the cla: yes Contributor has signed the Contributor License Agreement label May 16, 2021
Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miquelbeltran, please review

@miquelbeltran
Copy link
Member

Hi @iapicca All the code changes need to be done on the original dart files as well and exported using the refresh code excerpts tool, rather than editing the mark down directly. Please look at the README.md and the https://github.com/dart-lang/site-shared/blob/master/doc/code-excerpts.md for more info on how to do it.

@sfshaza2
Copy link
Contributor

That's what I was kind of assuming, but I didn't take the time to look at the site. @iapicca, are you willing to tackle that? If not, I will close the PR.

@iapicca
Copy link
Author

iapicca commented May 17, 2021

That's what I was kind of assuming, but I didn't take the time to look at the site. @iapicca, are you willing to tackle that? If not, I will close the PR.

@sfshaza2
I'm definitely willing to try;
I asked guidance on discord, because the instructions are not clear to me
any help is appreciated

Copy link
Member

@miquelbeltran miquelbeltran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I spotted a couple of issues.

@sfshaza2
Copy link
Contributor

Is this ready? Do you approve, @miquelbeltran?

@miquelbeltran
Copy link
Member

@sfshaza2 the code excerpts are not correct yet, I run the ./tool/refresh-code-excerpts.sh localy and got changes still. Also the GitHub workflow needs run approval, but I cannot do that.

@iapicca
Copy link
Author

iapicca commented May 23, 2021

[..] the code excerpts are not correct yet

@miquelbeltran
I applied the changes requested here and here in this commit
I'd be happy to fix the excerpts on a feedback

@sfshaza2
Copy link
Contributor

I've kicked off the workflow. @domesticmouse, do you have the privilege to kick off the workflow?

@domesticmouse
Copy link
Contributor

My laptop is borked. I'm currently at seriously reduced capability.

@iapicca
Copy link
Author

iapicca commented May 24, 2021

I see both tests

  • Stable channel: code check, stable, tool/check-code.sh, false) (pull_request)
  • Stable channel: null safety code check, stable, tool/check-code.sh --null-safety, false)

fails with the same output

error

Source: /home/runner/work/website/website/src
Fragments: /home/runner/work/website/website/tmp/_fragments/examples
Other args: --yaml --no-escape-ng-interpolation --replace=///!
//g;/ellipsis(<\w+>)?(())?;?/.../g;//*(\s*...\s*)*//$1/g;/{/*-(\s*...\s*)-*/}/$1/g;///!(analysis-issue|runtime-error)[^\n]//g;/\x20//\s+ignore_for_file:[^\n]+\n//g;/\x20*//\s+ignore:[^\n]+//g;

Error: /home/runner/work/website/website/src/docs/cookbook/networking/background-parsing.md:146 cannot read file "/home/runner/work/website/website/tmp/_fragments/examples/../null_safety_examples/cookbook/networking/background_parsing/lib/main.dart.excerpt.yaml"
Processed 388 Dart/Jade/Markdown files: 3 out of 338 fragments needed updating.

Error: some code excerpts need to be refreshed. You'll need to
rerun '/home/runner/work/website/website/tool/refresh-code-excerpts.sh' locally, and re-commit.
diff --git a/src/docs/cookbook/networking/background-parsing.md b/src/docs/cookbook/networking/background-parsing.md
index dd79c72..55c61db 100644
--- a/src/docs/cookbook/networking/background-parsing.md
+++ b/src/docs/cookbook/networking/background-parsing.md
@@ -54,7 +54,7 @@ using the [http.get()][] method.

Future<http.Response> fetchPhotos(http.Client client) async {
  final uri = Uri.parse('https://jsonplaceholder.typicode.com/photos');
-  final response = await client.get(uri);
+  return await client.get(uri);
}

@@ -125,7 +125,6 @@ Future<List> fetchPhotos(http.Client client) async {
final uri = Uri.parse('https://jsonplaceholder.typicode.com/photos');
final response = await client.get(uri);

  • // Use the compute function to run parsePhotos in a separate isolate.
    return parsePhotos(response.body);
    }
@@ -215,14 +214,13 @@ void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
-  static const appTitle = 'Isolate Demo';
-
+  static const _appTitle = 'Isolate Demo';

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
-      title: appTitle,
-      home: MyHomePage(title: appTitle),
+      title: _appTitle,
+      home: MyHomePage(title: _appTitle),
    );
  }
}
Error: Process completed with exit code 1.

I'm not sure what I messed up

@domesticmouse
Copy link
Contributor

Hey @iapicca, going from the logs, I suspect you need to update some snippets. The log includes the following instructions:

  Processed 388 Dart/Jade/Markdown files: 3 out of 338 fragments needed updating.
  
  Error: some code excerpts need to be refreshed. You'll need to
  rerun '/home/runner/work/website/website/tool/refresh-code-excerpts.sh' locally, and re-commit.

@iapicca
Copy link
Author

iapicca commented May 26, 2021

going from the logs, I suspect you need to update some snippets. The log includes the following instructions:

  Processed 388 Dart/Jade/Markdown files: 3 out of 338 fragments needed updating.
  
  Error: some code excerpts need to be refreshed. You'll need to
  rerun '/home/runner/work/website/website/tool/refresh-code-excerpts.sh' locally, and re-commit.

@domesticmouse
when I run 'tool/refresh-code-excerpts.sh' I get this error

/home/yakforward/projects/website/tool/env-set.sh: line 7: tool/shared/env-set.sh: No such file or directory

which makes sense since site-shared/ does not contain tool

$ ll tool
total 80
drwxrwxr-x  4 yakforward yakforward  4096 mai   16 16:02 ./
drwxrwxr-x 12 yakforward yakforward  4096 mai   16 16:02 ../
-rw-rw-r--  1 yakforward yakforward    43 mai   16 16:02 analysis_options.yaml
-rwxrwxr-x  1 yakforward yakforward   298 mai   16 16:02 before-install.sh*
-rwxrwxr-x  1 yakforward yakforward  7512 mai   16 16:02 build_check_deploy.sh*
-rwxrwxr-x  1 yakforward yakforward  1248 mai   16 16:02 check-code.sh*
drwxrwxr-x  2 yakforward yakforward  4096 mai   16 16:02 config/
drwxrwxr-x  2 yakforward yakforward  4096 mai   16 16:02 docker/
-rw-rw-r--  1 yakforward yakforward   499 mai   16 16:02 env-set.sh
-rw-rw-r--  1 yakforward yakforward  5775 mai   16 16:02 extract.dart
lrwxrwxrwx  1 yakforward yakforward    17 mai   16 16:02 install.sh -> shared/install.sh
-rw-rw-r--  1 yakforward yakforward  1559 mai   16 16:02 LICENSE
-rw-rw-r--  1 yakforward yakforward  3692 mai   16 16:02 next_prev.dart
-rw-rw-r--  1 yakforward yakforward  2602 mai   16 16:02 prdeployer.dart
-rwxrwxr-x  1 yakforward yakforward  3126 mai   16 16:02 refresh-code-excerpts.sh*
lrwxrwxrwx  1 yakforward yakforward    15 mai   16 16:02 serve.sh -> shared/serve.sh
-rwxrwxr-x  1 yakforward yakforward   223 mai   16 16:02 setup.sh*
lrwxrwxrwx  1 yakforward yakforward    20 mai   16 16:02 shared -> ../site-shared/tool/
-rw-rw-r--  1 yakforward yakforward 11788 mai   16 16:02 sitemap.txt
$ ll site-shared/
total 8
drwxrwxr-x  2 yakforward yakforward 4096 mai   16 16:02 ./
drwxrwxr-x 12 yakforward yakforward 4096 mai   16 16:02 ../

I'm probably missing something, as I mentioned I'm having hard time to understand the instructions provided

@domesticmouse
Copy link
Contributor

Hey @johnpryan and @miquelbeltran, can you please have a look at this PR and give some guidance? I'm out of my depth here.

@miquelbeltran
Copy link
Member

tool/shared/env-set.sh: No such file or directory

Looks like your setup is not correct, you need to follow all the steps in the README.md (e.g. site-shared is a submodule which you need to update: https://github.com/flutter/website#2-clone-this-repo-and-its-submodules)

@iapicca
Copy link
Author

iapicca commented May 27, 2021

tool/shared/env-set.sh: No such file or directory

Looks like your setup is not correct, you need to follow all the steps in the README.md (e.g. site-shared is a submodule which you need to update: https://github.com/flutter/website#2-clone-this-repo-and-its-submodules)

@miquelbeltran
I did not follow that before, I'll do it now

prerequisites

installed nvm

from https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating

yakforward@yakforward-yoga720 ~ $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14926  100 14926    0     0  55486      0 --:--:-- --:--:-- --:--:-- 55486
=> Downloading nvm from git to '/home/yakforward/.nvm'
=> Cloning into '/home/yakforward/.nvm'...
remote: Enumerating objects: 347, done.
remote: Counting objects: 100% (347/347), done.
remote: Compressing objects: 100% (295/295), done.
remote: Total 347 (delta 39), reused 163 (delta 27), pack-reused 0
Receiving objects: 100% (347/347), 203.77 KiB | 764.00 KiB/s, done.
Resolving deltas: 100% (39/39), done.
* (HEAD detached at FETCH_HEAD)
  master
=> Compressing and cleaning up git repository

=> Appending nvm source string to /home/yakforward/.bashrc
=> Appending bash_completion source string to /home/yakforward/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
yakforward@yakforward-yoga720 ~ $ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
yakforward@yakforward-yoga720 ~ $ source ~/.bashrc
yakforward@yakforward-yoga720 ~ $ source ~/.nvm/nvm.sh
yakforward@yakforward-yoga720 ~ $ command -v nvm
nvm
installed rvm

from https://rvm.io/rvm/install#installation

yakforward@yakforward-yoga720 ~ $     gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: key 105BD0E739499BDB: public key "Piotr Kuczynski <piotr.kuczynski@gmail.com>" imported
gpg: key 3804BB82D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
gpg: Total number processed: 2
gpg:               imported: 2
yakforward@yakforward-yoga720 ~ $ \curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.29.12.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc
gpg: Signature made R 15 jaan  2021 20:46:22 EET
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/home/yakforward/.rvm/archives/rvm-1.29.12.tgz'
Installing RVM to /home/yakforward/.rvm/
    Adding rvm PATH line to /home/yakforward/.profile /home/yakforward/.mkshrc /home/yakforward/.bashrc /home/yakforward/.zshrc.
    Adding rvm loading line to /home/yakforward/.profile /home/yakforward/.bash_profile /home/yakforward/.zlogin.
Installation of RVM in /home/yakforward/.rvm/ is almost complete:

  * To start using RVM you need to run `source /home/yakforward/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.

👉  Donate: https://opencollective.com/rvm/donate
yakforward@yakforward-yoga720 ~ $ source ~/.rvm/bin/rvm
Ruby enVironment Manager 1.29.12 (latest) (c) 2009-2020 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

Usage:
 
    rvm [--debug][--trace][--nice] <command> <options>

  for example:

    rvm list                # list installed interpreters 
    rvm list known          # list available interpreters
    rvm install <version>   # install ruby interpreter
    rvm use <version>       # switch to specified ruby interpreter
    rvm remove <version>    # remove ruby interpreter (alias: delete)
    rvm get <version>       # upgrade rvm: stable, master

Available commands:

  rvm has a number of common commands, listed below. Additional information about any command
  can be found by executing `rvm help <command>`. 

  ruby installation
      fetch                   # download binary or sources for selected ruby version
      install                 # install ruby interpreter
      list                    # show currently installed ruby interpreters
      list known              # list available interpreters
      mount                   # install ruby from external locations
      patchset                # tools related to managing ruby patchsets
      pkg                     # install a dependency package
      reinstall               # reinstall ruby and run gem pristine on all gems
      remove                  # remove ruby and downloaded sources (alias: delete)
      requirements            # installs dependencies for building ruby
      uninstall               # uninstall ruby, keeping it's sources
      upgrade                 # upgrade to another ruby version, migrating gems

  running different ruby versions
      current                 # print current ruby version and name of used gemsets
      do                      # runs a command against specified and/or all rubies
      gemdir                  # display path to current gem directory ($GEM_HOME)
      use <version>           # switch to given (and already installed) ruby version
      use default             # switch to default ruby, or system if none is set
      use system              # switch to system ruby
      wrapper                 # creates wrapper executables for a given ruby & gemset

  managing gemsets
      gemset                  # manage gemsets 
      migrate                 # migrate all gemsets from one ruby to another

  rvm configuration
      alias                   # define aliases for `rvm use`
      autolibs                # tweak settings for installing dependencies automatically 
      group                   # tools for managing groups in multiuser installations
      rvmrc                   # tools related to managing .rvmrc trust & loading gemsets

  rvm maintenance
      implode                 # removes the rvm installation completely
      cleanup                 # remove stale source files & data associated with rvm
      cron                    # manage setup for using ruby in cron
      docs                    # tools to make installing ri and rdoc docs easier
      get                     # upgrades RVM to latest head, stable or branched version
      osx-ssl-certs           # helps update OpenSSL certs installed by rvm on OS X
      reload                  # reload rvm source itself
      reset                   # remove all default and system settings
      snapshot                # backup/restore rvm installation

  troubleshooting
      config-get              # display values for RbConfig::CONFIG variables
      debug                   # additional information helping to discover issues
      export                  # set temporary env variable in the current shell
      fix-permissions         # repairs broken permissions
      repair                  # lets you repair parts of your environment, such as
                              # wrappers, env files and similar (general maintenance)
      rubygems                # switches version of rubygems for the current ruby
      tools                   # general information about the ruby env
      unexport                # undo changes made to the environment by `rvm export`
      user                    # tools for managing RVM mixed mode in multiuser installs

   information and documentation
      info                    # show the environment information for current ruby
      disk-usage              # display disk space occupied by rvm
      notes                   # display notes with operating system specifics
      version                 # display rvm version (equal to `rvm -v`)

   additional global options
      --debug                 # toggle debug mode on for very verbose output
      --trace                 # toggle trace mode on to see EVERYTHING rvm is doing
      --nice                  # process niceness (increase the value on slow computers, default 0)

For additional documentation please visit https://rvm.io
verified diffutils being installed
yakforward@yakforward-yoga720 ~ $ sudo apt install diffutils
[sudo] password for yakforward: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
diffutils is already the newest version (1:3.7-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

clone submodules

  • I did clone the project already
clone submodules
yakforward@yakforward-yoga720 ~/projects/website (fix-cookbook-background-parsing)$ git submodule update --init --remote
Submodule 'examples/codelabs' (https://github.com/flutter/codelabs) registered for path 'examples/codelabs'
Submodule 'flutter' (https://github.com/flutter/flutter) registered for path 'flutter'
Submodule 'site-shared' (https://github.com/dart-lang/site-shared.git) registered for path 'site-shared'
Cloning into '/home/yakforward/projects/website/examples/codelabs'...
Cloning into '/home/yakforward/projects/website/flutter'...
Cloning into '/home/yakforward/projects/website/site-shared'...
Submodule path 'examples/codelabs': checked out '36644094b3a7c1c538e62dd569b80f184b9b4682'
Submodule path 'flutter': checked out 'b22742018b3edf16c6cadd7b76d9db5e7f9064b5'
Submodule path 'site-shared': checked out 'bb587252bc5904475370714d54e37ef3b31f784c'

installation

run env-set.sh
yakforward@yakforward-yoga720 ~/projects/website (fix-cookbook-background-parsing)$ source ./tool/env-set.sh
Setting environment variables from tool/env-set.sh
Downloading and installing node v12.22.1...
Downloading https://nodejs.org/dist/v12.22.1/node-v12.22.1-linux-x64.tar.xz...
###################################################################################################################################################################################################### 100,0%
Computing checksum with sha256sum
Checksums matched!
Now using node v12.22.1 (npm v6.14.12)
Creating default alias: default -> 12 (-> v12.22.1)
RVM current: system
Running: rvm install ruby-2.6.5
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/21.04/x86_64/ruby-2.6.5.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating systemyakforward password required for 'apt-get --quiet --yes update': 
....
Installing required packages: gawk, bison, libgdbm-dev, libncurses5-dev, libsqlite3-dev, libtool, libyaml-dev, libgmp-dev, libssl-dev..........
Requirements installation successful.
Installing Ruby from source to: /home/yakforward/.rvm/rubies/ruby-2.6.5, this may take a while depending on your cpu(s)...
ruby-2.6.5 - #downloading ruby-2.6.5, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.4M  100 13.4M    0     0   407k      0  0:00:33  0:00:33 --:--:--  306k
ruby-2.6.5 - #extracting ruby-2.6.5 to /home/yakforward/.rvm/src/ruby-2.6.5.....
ruby-2.6.5 - #configuring......................................................................
ruby-2.6.5 - #post-configuration..
ruby-2.6.5 - #compiling....................................................................................................................................
ruby-2.6.5 - #installing................
ruby-2.6.5 - #making binaries executable..
ruby-2.6.5 - #downloading rubygems-3.0.9
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  865k  100  865k    0     0   304k      0  0:00:02  0:00:02 --:--:--  304k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.6.5 - #extracting rubygems-3.0.9.....
ruby-2.6.5 - #removing old rubygems........
ruby-2.6.5 - #installing rubygems-3.0.9................................................................
ruby-2.6.5 - #gemset created /home/yakforward/.rvm/gems/ruby-2.6.5@global
ruby-2.6.5 - #importing gemset /home/yakforward/.rvm/gemsets/global.gems..........................................................
ruby-2.6.5 - #generating global wrappers........
ruby-2.6.5 - #gemset created /home/yakforward/.rvm/gems/ruby-2.6.5
ruby-2.6.5 - #importing gemsetfile /home/yakforward/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.6.5 - #generating default wrappers........
ruby-2.6.5 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.6.5 - #complete 
Ruby was built without documentation, to build it run: rvm docs generate-ri
Command 'ruby' not found, but can be installed with:
sudo snap install ruby  # version 3.0.1, or
sudo apt  install ruby  # version 1:2.7+2
See 'snap info ruby' for additional versions.
Ruby --version: 
Configured RVM so it doesn't complain if it isn't first in PATH
INFO: git config push.recurseSubmodules is unset. Setting it to 'check':
+++ git config push.recurseSubmodules check
INFO: git config status.submodulesummary is set to 1.
run before-install.sh FAILED!
yakforward@yakforward-yoga720 ~/projects/website (fix-cookbook-background-parsing)$ ./tool/before-install.sh
Dart SDK appears to be installed: dart is /usr/bin/dart
Dart SDK version: 2.13.1 (stable) (Unknown timestamp) on "linux_x64"
::group::before_install.pub
Resolving dependencies... (2.8s)
+ _fe_analyzer_shared 22.0.0
+ analyzer 1.7.0 (1.7.1 available)
+ args 2.1.0
+ async 2.7.0
+ build 2.0.1
+ build_config 1.0.0
+ build_daemon 3.0.0
+ build_resolvers 2.0.2
+ build_runner 2.0.4
+ build_runner_core 7.0.0
+ built_collection 5.0.0
+ built_value 8.0.6
+ charcode 1.2.0
+ checked_yaml 2.0.1
+ cli_util 0.3.0
+ code_builder 4.0.0
+ code_excerpt_updater 0.0.0 from path site-shared/packages/code_excerpt_updater
+ code_excerpter 0.0.0 from path site-shared/packages/code_excerpter
+ collection 1.15.0
+ console 4.1.0
+ convert 3.0.0
+ crypto 3.0.1
+ csslib 0.17.0
+ dart_style 2.0.1
+ file 6.1.1
+ firebase 9.0.1
+ fixnum 1.0.0
+ frontend_server_client 2.1.0
+ github 8.1.0
+ glob 2.0.1
+ graphs 2.0.0
+ html 0.15.0
+ http 0.13.3
+ http_multi_server 3.0.1
+ http_parser 4.0.0
+ io 1.0.0
+ js 0.6.3
+ json_annotation 4.0.1
+ linkcheck 2.0.18
+ logging 1.0.1
+ matcher 0.12.10
+ meta 1.4.0
+ mime 1.0.0
+ package_config 2.0.0
+ path 1.8.0
+ pedantic 1.11.0
+ pool 1.5.0
+ pub_semver 2.0.0
+ pubspec_parse 1.0.0
+ shelf 1.1.4
+ shelf_web_socket 1.0.1
+ source_span 1.8.1
+ stack_trace 1.10.0
+ stream_channel 2.1.0
+ stream_transform 2.0.0
+ string_scanner 1.1.0
+ term_glyph 1.2.0
+ timing 1.0.0
+ typed_data 1.3.0
+ vector_math 2.1.0
+ watcher 1.0.0
+ web_socket_channel 2.1.0
+ yaml 3.1.0
Downloading firebase 9.0.1...
Downloading github 8.1.0...
Downloading build_runner 2.0.4...
Downloading timing 1.0.0...
Downloading stream_transform 2.0.0...
Downloading graphs 2.0.0...
Downloading code_builder 4.0.0...
Downloading build_runner_core 7.0.0...
Downloading build_daemon 3.0.0...
Downloading build_config 1.0.0...
Downloading built_collection 5.0.0...
Downloading build_resolvers 2.0.2...
Downloading built_value 8.0.6...
Downloading fixnum 1.0.0...
Downloading linkcheck 2.0.18...
Creation of temporary directory failed, path = '/home/yakforward/tmp' (OS Error: No such file or directory, errno = 2)
run before-install.sh FIXED!

created ~/tmp manually

yakforward@yakforward-yoga720 ~/projects/website (fix-cookbook-background-parsing)$ mkdir ~/tmp
yakforward@yakforward-yoga720 ~/projects/website (fix-cookbook-background-parsing)$ ./tool/before-install.sh
Dart SDK appears to be installed: dart is /usr/bin/dart
Dart SDK version: 2.13.1 (stable) (Unknown timestamp) on "linux_x64"
::group::before_install.pub
Resolving dependencies... (2.8s)
+ _fe_analyzer_shared 22.0.0
+ analyzer 1.7.0 (1.7.1 available)
+ args 2.1.0
+ async 2.7.0
+ build 2.0.1
+ build_config 1.0.0
+ build_daemon 3.0.0
+ build_resolvers 2.0.2
+ build_runner 2.0.4
+ build_runner_core 7.0.0
+ built_collection 5.0.0
+ built_value 8.0.6
+ charcode 1.2.0
+ checked_yaml 2.0.1
+ cli_util 0.3.0
+ code_builder 4.0.0
+ code_excerpt_updater 0.0.0 from path site-shared/packages/code_excerpt_updater
+ code_excerpter 0.0.0 from path site-shared/packages/code_excerpter
+ collection 1.15.0
+ console 4.1.0
+ convert 3.0.0
+ crypto 3.0.1
+ csslib 0.17.0
+ dart_style 2.0.1
+ file 6.1.1
+ firebase 9.0.1
+ fixnum 1.0.0
+ frontend_server_client 2.1.0
+ github 8.1.0
+ glob 2.0.1
+ graphs 2.0.0
+ html 0.15.0
+ http 0.13.3
+ http_multi_server 3.0.1
+ http_parser 4.0.0
+ io 1.0.0
+ js 0.6.3
+ json_annotation 4.0.1
+ linkcheck 2.0.18
+ logging 1.0.1
+ matcher 0.12.10
+ meta 1.4.0
+ mime 1.0.0
+ package_config 2.0.0
+ path 1.8.0
+ pedantic 1.11.0
+ pool 1.5.0
+ pub_semver 2.0.0
+ pubspec_parse 1.0.0
+ shelf 1.1.4
+ shelf_web_socket 1.0.1
+ source_span 1.8.1
+ stack_trace 1.10.0
+ stream_channel 2.1.0
+ stream_transform 2.0.0
+ string_scanner 1.1.0
+ term_glyph 1.2.0
+ timing 1.0.0
+ typed_data 1.3.0
+ vector_math 2.1.0
+ watcher 1.0.0
+ web_socket_channel 2.1.0
+ yaml 3.1.0
Downloading firebase 9.0.1...
Downloading github 8.1.0...
Downloading build_runner 2.0.4...
Downloading timing 1.0.0...
Downloading stream_transform 2.0.0...
Downloading graphs 2.0.0...
Downloading code_builder 4.0.0...
Downloading build_runner_core 7.0.0...
Downloading build_daemon 3.0.0...
Downloading build_config 1.0.0...
Downloading built_collection 5.0.0...
Downloading build_resolvers 2.0.2...
Downloading built_value 8.0.6...
Downloading fixnum 1.0.0...
Downloading linkcheck 2.0.18...
Changed 63 dependencies!
1 package has newer versions incompatible with dependency constraints.
Try `dart pub outdated` for more information.
::endgroup::
::group::before_install.flutter
Refreshing Flutter repo and running doctor:
+ cd flutter
+ git checkout stable
Branch 'stable' set up to track remote branch 'stable' from 'origin'.
Switched to a new branch 'stable'
+ git pull
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.
+ bin/flutter doctor
Downloading Dart SDK from Flutter engine a9d88a4d182bdae23e3a4989abfb7ea25954aad1...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  198M  100  198M    0     0  1981k      0  0:01:42  0:01:42 --:--:-- 2249k
Building flutter tool...
Downloading Material fonts...                                       3.1s
Downloading Gradle Wrapper...                                      251ms
Downloading package sky_engine...                                  890ms
Downloading flutter_patched_sdk tools...                         2,125ms
Downloading flutter_patched_sdk_product tools...                 2,144ms
Downloading linux-x64 tools...                                     15.1s
Downloading linux-x64/font-subset tools...                       1,298ms
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.0, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

    ✗ No valid Android SDK platforms found in /usr/lib/android-sdk/platforms. Directory was empty.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.
::endgroup::
run install.sh

ERRRO: ./tool/install.sh: line 24: bundle: command not found

Node version: v12.22.1
::group::install.npm_install
+ npm install
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

> protobufjs@6.11.2 postinstall /home/yakforward/projects/website/node_modules/protobufjs
> node scripts/postinstall


> gifsicle@4.0.1 postinstall /home/yakforward/projects/website/node_modules/gifsicle
> node lib/install.js

  ✔ gifsicle pre-build test passed successfully

> jpegtran-bin@4.0.0 postinstall /home/yakforward/projects/website/node_modules/jpegtran-bin
> node lib/install.js

  ✔ jpegtran pre-build test passed successfully

> optipng-bin@5.1.0 postinstall /home/yakforward/projects/website/node_modules/optipng-bin
> node lib/install.js

  ✔ optipng pre-build test passed successfully
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/glob-watcher/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1127 packages from 557 contributors and audited 1132 packages in 57.898s

48 packages are looking for funding
  run `npm fund` for details

found 19 vulnerabilities (4 low, 1 moderate, 13 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
::endgroup::
::group::install.bundle
./tool/install.sh: line 24: bundle: command not found

update fragments

run tool/refresh-code-excerpts.sh

from this comment

ERROR ```
Error: /home/yakforward/projects/website/src/docs/cookbook/networking/background-parsing.md:146 cannot read file "/home/yakforward/projects/website/tmp/_fragments/examples/../null_safety_examples/cookbook/networking/background_parsing/lib/main.dart.excerpt.yaml"

yakforward@yakforward-yoga720 ~/projects/website (fix-cookbook-background-parsing)$ tool/refresh-code-excerpts.sh
Resolving dependencies...
analyzer 1.7.0 (1.7.1 available)
Got dependencies!
Precompiling executable... (12.6s)
Precompiled build_runner:build_runner.
[INFO] Generating build script completed, took 421ms
[INFO] Precompiling build script... completed, took 8.0s
[INFO] Building new asset graph completed, took 2.0s
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/gen_l10n_example/pubspec.yaml:wrote flutter_io_dev_tools|null_safety_examples/internationalization/gen_l10n_example/pubspec[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/gen_l10n_example/lib/examples.dart:wrote flutter_io_dev_tools|null_safety_examples/internationalization/gen_l10n_example/li[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/gen_l10n_example/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/internationalization/gen_l10n_example/lib/ma[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/minimal/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/internationalization/minimal/lib/main.dart.excerpt.ya[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/add_language/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/internationalization/add_language/lib/main.dart.[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/add_language/lib/nn_intl.dart:wrote flutter_io_dev_tools|null_safety_examples/internationalization/add_language/lib/nn_intl[INFO] code_excerpter:code_excerpter on null_safety_examples/internationalization/intl_example/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/internationalization/intl_example/lib/main.dart.[INFO] code_excerpter:code_excerpter on null_safety_examples/state_mgmt/simple/lib/src/passing_callbacks.dart:wrote flutter_io_dev_tools|null_safety_examples/state_mgmt/simple/lib/src/passing_callbacks.dar[INFO] code_excerpter:code_excerpter on null_safety_examples/state_mgmt/simple/lib/src/performance.dart:wrote flutter_io_dev_tools|null_safety_examples/state_mgmt/simple/lib/src/performance.dart.excerpt.ya[INFO] code_excerpter:code_excerpter on null_safety_examples/resources/architectural_overview/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/resources/architectural_overview/lib/main.dart.ex[INFO] code_excerpter:code_excerpter on null_safety_examples/development/data-and-backend/json/lib/nested/main.dart:wrote flutter_io_dev_tools|null_safety_examples/development/data-and-backend/json/lib/nes[INFO] code_excerpter:code_excerpter on null_safety_examples/development/data-and-backend/json/lib/serializable/main.dart:wrote flutter_io_dev_tools|null_safety_examples/development/data-and-backend/json/l[INFO] code_excerpter:code_excerpter on null_safety_examples/development/data-and-backend/json/lib/manual/main.dart:wrote flutter_io_dev_tools|null_safety_examples/development/data-and-backend/json/lib/man[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/opacity_animation/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/opacity_animation/lib/main[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/opacity_animation/lib/starter.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/opacity_animation/lib/s[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/physics_simulation/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/physics_simulation/lib/ma[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/physics_simulation/lib/step3.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/physics_simulation/lib/s[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/physics_simulation/lib/step1.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/physics_simulation/lib/s[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/animated_container/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/animated_container/lib/ma[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/physics_simulation/lib/step2.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/physics_simulation/lib/s[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/animated_container/lib/starter.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/animated_container/lib[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/page_route_animation/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/page_route_animation/li[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/animation/page_route_animation/lib/starter.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/animation/page_route_animation[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/forms/text_field_changes/lib/main_step1.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/forms/text_field_changes/lib/main[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/forms/text_field_changes/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/forms/text_field_changes/lib/main.dart.[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/forms/retreive_input/lib/starter.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/forms/retreive_input/lib/starter.dart.ex[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/testing/unit/mocking/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/testing/unit/mocking/lib/main.dart.excerpt.[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/testing/unit/mocking/test/fetch_album_test.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/testing/unit/mocking/test/fetc[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/lists/floating_app_bar/lib/step2.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/lists/floating_app_bar/lib/step2.dart.ex[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/lists/floating_app_bar/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/lists/floating_app_bar/lib/main.dart.exce[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/web_sockets/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/web_sockets/lib/main.dart.exce[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/fetch_data/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/fetch_data/lib/main.dart.excerp[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/fetch_data/lib/main_step1.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/fetch_data/lib/main_step1[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/delete_data/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/delete_data/lib/main.dart.exce[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/delete_data/lib/main_step1.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/delete_data/lib/main_ste[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/send_data/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/send_data/lib/main.dart.excerpt.[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/authenticated_requests/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/authenticated_reque[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/update_data/lib/main_step2.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/update_data/lib/main_ste[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/update_data/lib/main_step5.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/update_data/lib/main_ste[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/update_data/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/update_data/lib/main.dart.exce[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/background_parsing/lib/main_step2.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/background_parsin[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/networking/background_parsing/lib/main_step3.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/networking/background_parsin[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/hero_animations/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/hero_animations/lib/main.d[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/named_routes/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/named_routes/lib/main.dart.ex[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/passing_data/lib/main_todoscreen.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/passing_data/lib/m[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/passing_data/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/passing_data/lib/main.dart.ex[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/passing_data/lib/main_routesettings.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/passing_data/li[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/returning_data/lib/main_step2.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/returning_data/lib/ma[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/returning_data/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/returning_data/lib/main.dar[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/navigation/navigate_with_arguments/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/navigation/navigate_with_argu[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/persistence/reading_writing_files/test/widget_test.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/persistence/reading_wr[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/persistence/reading_writing_files/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/persistence/reading_writing_fi[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/gestures/dismissible/lib/step1.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/gestures/dismissible/lib/step1.dart.excerp[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/gestures/dismissible/lib/step2.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/gestures/dismissible/lib/step2.dart.excerp[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/gestures/handling_taps/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/gestures/handling_taps/lib/main.dart.exce[INFO] code_excerpter:code_excerpter on null_safety_examples/cookbook/gestures/dismissible/lib/main.dart:wrote flutter_io_dev_tools|null_safety_examples/cookbook/gestures/dismissible/lib/main.dart.excerpt.[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step3_stateful_widget/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step3_stateful[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step4_infinite_list/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step4_infinite_l[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step2_use_package/pubspec.yaml:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step2_use_package/p[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step5_add_icons/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step5_add_icons/lib/[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step6_add_interactivity/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step6_add_in[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step8_themes/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step8_themes/lib/main.d[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer_null_safety/step7_navigate_route/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer_null_safety/step7_navigate_[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer/step3_stateful_widget/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer/step3_stateful_widget/lib/main.dart.ex[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer/step4_infinite_list/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer/step4_infinite_list/lib/main.dart.excerp[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer/step6_add_interactivity/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer/step6_add_interactivity/lib/main.dar[INFO] code_excerpter:code_excerpter on examples/codelabs/startup_namer/step7_navigate_route/lib/main.dart:wrote flutter_io_dev_tools|examples/codelabs/startup_namer/step7_navigate_route/lib/main.dart.exce[INFO] Running build completed, took 3.2s
[INFO] Caching finalized dependency graph completed, took 99ms
[INFO] Creating merged output dir /home/yakforward/projects/website/tmp/_fragments completed, took 1.8s
[INFO] Writing asset manifest completed, took 22ms
[INFO] Succeeded after 5.1s with 127 outputs (3696 actions)
Source: /home/yakforward/projects/website/src
Fragments: /home/yakforward/projects/website/tmp/_fragments/examples
Other args: --yaml --no-escape-ng-interpolation --replace=///!
//g;/ellipsis(<\w+>)?(())?;?/.../g;//*(\s*...\s*)*//$1/g;/{/*-(\s*...\s*)-*/}/$1/g;///!(analysis-issue|runtime-error)[^\n]//g;/\x20//\s+ignore_for_file:[^\n]+\n//g;/\x20*//\s+ignore:[^\n]+//g;

Error: /home/yakforward/projects/website/src/docs/cookbook/networking/background-parsing.md:146 cannot read file "/home/yakforward/projects/website/tmp/_fragments/examples/../null_safety_examples/cookbook/networking/background_parsing/lib/main.dart.excerpt.yaml"
Processed 388 Dart/Jade/Markdown files: 3 out of 338 fragments needed updating.


</details>

@domesticmouse
Copy link
Contributor

Can you please resolve conflicts? We can't land until conflicts with base are resolved.

@iapicca
Copy link
Author

iapicca commented May 31, 2021

unfortunately I'm be able to follow up on this PR at this moment

@iapicca iapicca closed this May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Contributor has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix example on 'Parse JSON in the background' page
4 participants