Skip to content

Instantly share code, notes, and snippets.

View eseidel's full-sized avatar

Eric Seidel eseidel

View GitHub Profile
@eseidel
eseidel / xcode.diff
Created June 17, 2024 21:33
XCode non-determinism
--- DiffPatchRunnerDisassembly 2024-06-17 17:06:29
+++ ReleaseRunnerDisassembly 2024-06-17 17:06:15
@@ -1,4 +1,4 @@
-DiffPatchRunner:
+ReleaseRunner:
(__TEXT,__text) section
0000000100004000 sub sp, sp, #0x40
0000000100004004 stp x22, x21, [sp, #0x10]
@@ -1278328,1181 +1278328,1163 @@
00000001004e3d94 ldp x28, x27, [sp, #0x60]
@eseidel
eseidel / path.dart
Created December 17, 2023 18:15
test of path with empty first value
import 'package:path/path.dart' as path;
void main() {
print(path.join('', 'bin', 'java.exe'));
}
@eseidel
eseidel / flutter_companies.md
Last active November 13, 2023 14:28
List of companies serving Flutter developers

This is a list of companies serving Flutter developers who replied to my Twitter thread on June 14th, 2023.

This does not include companies using Flutter (there are simply too many to list!), only those offering products or services for Flutter developers.

Presence on this list is not imply any endorsement of the company or its products (other than Shorebird, of course, I endourse my own company).

@eseidel
eseidel / fuel_logic.txt
Created June 10, 2023 15:07
output from fuel buying logic
X1-JY33-68113B 108 56
X1-SJ74-17013F 109 56
X1-AD50-96037Z 109 56
X1-PG48-77613D 110 57
X1-BF69-19557A 111 58
X1-JX24-85913A 119 62
X1-CG57-49267E 120 62
X1-PD87-99960E 125 113
X1-TK76-05664B 125 113
X1-YQ87-24385F 125 113
@eseidel
eseidel / confusion.dart
Created May 21, 2023 01:14
confusing exception handling with futures
class ApiException implements Exception {
ApiException();
}
Future<void> inner() async {
throw ApiException();
}
Future<void> _middle() async {
try {
@eseidel
eseidel / engine.txt
Created March 3, 2023 17:09
List of engine files
.
./android_release_x64
./android_release_x64/clang_x64
./android_release_x64/clang_x64/gen_snapshot.exe
./android_release_x64/flutter_embedding_release.jar
./android_release_x64/flutter_embedding_release.maven-metadata.xml
./android_release_x64/flutter_embedding_release.pom
./android_release_x64/flutter_patched_sdk
./android_release_x64/flutter_patched_sdk/platform_strong.dill
./android_release_x64/flutter_patched_sdk/platform_strong.dill.d
@eseidel
eseidel / bug_report.txt
Created February 28, 2023 18:09
bug_report from android emulator
This file has been truncated, but you can view the full file.
--------- beginning of kernel
02-28 10:04:05.379 0 0 I : Booting Linux on physical CPU 0x0000000000 [0x00000000]
02-28 10:04:05.379 0 0 I : Linux version 5.10.110-android12-9-00004-gb92ac325368e-ab8731800 (build-user@build-host) (Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee), LLD 12.0.5 (/buildbot/src/android/llvm-toolchain/out/llvm-project/lld c935d99d7cf2016289302412d708641d52d2f7ee)) #1 SMP PREEMPT Tue Jun 14 13:40:53 UTC 2022
02-28 10:04:05.379 0 0 I Machine model: linux,ranchu
02-28 10:04:05.379 0 0 I : Stack Depot is disabled
02-28 10:04:05.379 0 0 I printk : debug: skip boot console de-registration.
02-28 10:04:05.379 0 0 I efi : UEFI not found.
02-28 10:04:05.379 0 0 I Zone ranges:
02-28 10:04:05.379 0 0 I : DMA32 [mem 0x0000000040000000-0x00000000bfffffff]
02-28 10:04:05.379 0 0
@eseidel
eseidel / log.txt
Created February 28, 2023 18:07
flutter_run log
Launching lib/main.dart on sdk gphone64 arm64 in release mode...
E/AndroidRuntime(10454): FATAL EXCEPTION: ScreenDecorations
E/AndroidRuntime(10454): Process: com.android.systemui, PID: 10454
E/AndroidRuntime(10454): java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter bottomLeft
E/AndroidRuntime(10454): at com.android.systemui.statusbar.events.PrivacyDotViewController.initialize(Unknown Source:22)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations.setupDecorations(ScreenDecorations.java:315)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations.startOnScreenDecorationsThread(ScreenDecorations.java:252)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations.$r8$lambda$bRx4s-frKyGv-SmpobluoualBbQ(Unknown Source:0)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations$$ExternalSyntheticLambda2.run(Unknown Source:2)
E/AndroidRuntime(10
eseidel@erics-mbp src % ./flutter/tools/gn --no-goma --unoptimized --mac-cpu=arm64
Using prebuilt Dart SDK binary. If you are editing Dart sources and wish to compile the Dart SDK, set `--no-prebuilt-dart-sdk`.
Generating GN files in: out/host_debug_unopt_arm64
WARNING at the command-line "--args":1:1213: Build argument has no effect.
is_debug=true use_goma=false goma_dir="None" flutter_build_web_sdk=false full_dart_sdk=false skia_enable_flutter_defines=true skia_use_dng_sdk=false skia_use_sfntly=false skia_enable_pdf=false skia_use_x11=false skia_use_wuffs=true skia_use_expat=false skia_use_fontconfig=false skia_use_legacy_layer_bounds=true skia_use_icu=true is_official_build=true android_full_debug=false is_clang=true skia_gl_standard="" use_clang_static_analyzer=false enable_coverage=false enable_lto=false host_os="mac" host_cpu="x64" target_os="mac" target_cpu="arm64" dart_target_arch="arm64" mac_sdk_min="10.14" mac_deployment_target="10.14.0" use_ios_simulator=false flutter_use_fontconfig=false dart_com
@eseidel
eseidel / gist:8e79a32b069a9798279f290d4f7a0dde
Created February 3, 2023 19:43
Trying to build flutter 3.7.1 with Android Studio Electric Eel 2022.1.1 Patch 1
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
n 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de