dart-fix-runtime-errors 是做什么的?
利用 get_runtime_errors 和 lsp 获取活跃的堆栈跟踪,定位失败行,应用修复,并通过热重载验证解决。
利用 get_runtime_errors 和 lsp 获取活跃的堆栈跟踪,定位失败行,应用修复,并通过热重载验证解决。
该技能旨在自动修复 Dart 应用中的运行时错误。它通过 `get_runtime_errors` 获取活跃的堆栈跟踪,并利用 LSP(语言服务器协议)精确定位代码中的失败行。随后,它会应用修复方案,并通过 `hot_reload` 快速验证错误是否已解决。此技能适用于 Dart 和 Flutter 开发者,支持在支持 LSP 和热重载的 IDE 或编辑器(如 VS Code)中使用。其核心优势在于自动化了“捕获错误 → 定位问题 → 应用补丁 → 验证修复”的循环,显著减少手动调试时间,提升开发效率。
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-fix-runtime-errorsInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
利用 get_runtime_errors 和 lsp 获取活跃的堆栈跟踪,定位失败行,应用修复,并通过热重载验证解决。
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Collect coverage using the coverage packge and create an LCOV report
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Use switch expressions and pattern matching where appropriate
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.