mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
1.0 KiB
1.0 KiB
Lessons
Recurring mistakes and how to avoid them. Add an entry when a mistake repeats.
flutter analyzecrashes ("FormatException: Unexpected end of input" from the analysis server) when the project path has non-ASCII characters (~/Hacking/Darío/...). Usedart analyzelocally; CI paths are ASCII soflutter analyzeis fine there.- Generated FFI types share a namespace with Flutter widgets in Dart: avoid DTO names such as
PageView,Page,Routeinsynapse-ffi. - wasmi 2's default tail-call dispatch overflowed the stack in debug test builds (an
infinite-loop module crashed the process instead of running out of fuel).
synapse-modulesusesportable-dispatch; keep it, and keep the runaway-module test. - Fedora's packaged
cargo/rust(in/usr/bin) shadows rustup's toolchain in some shells; mixing them breakstarget/with E0514 ("compiled by an incompatible version of rustc"). Prefix commands withPATH="$HOME/.cargo/bin:$PATH"(the Stop hook already does) and checkcargo --versionbefore building.