AgentSkillsCN

makepad-reference

关键:用于Makepad故障排除与参考。可通过以下触发词启动: 故障排除、错误、调试、修复、问题、议题、 无匹配字段、解析错误、未找到组件、UI未更新、 代码质量、重构、响应式布局、适应性、 api文档、参考、文档化、 故障排除、错误、调试、问题、修复

SKILL.md
--- frontmatter
name: makepad-reference
description: |
  CRITICAL: Use for Makepad troubleshooting and reference. Triggers on:
  troubleshoot, error, debug, fix, problem, issue,
  no matching field, parse error, widget not found, UI not updating,
  code quality, refactor, responsive layout, adaptive,
  api docs, reference, documentation,
  故障排除, 错误, 调试, 问题, 修复

Makepad Reference

This category provides reference materials for debugging, code quality, and advanced layout patterns.

Quick Navigation

TopicFileUse When
API DocumentationOfficial docs index, quick API referenceFinding detailed API info
TroubleshootingCommon errors and fixesBuild fails, runtime errors
Code QualityMakepad-aware refactoringSimplifying code safely
Adaptive LayoutDesktop/mobile responsiveCross-platform layouts

Common Issues Quick Reference

ErrorQuick Fix
no matching field: fontUse text_style: <THEME_FONT_*>{}
Color parse error (ends in e)Change last digit (e.g., #14141e#14141f)
set_text missing argumentAdd cx as first argument
UI not updatingCall redraw(cx) after changes
Widget not foundCheck ID spelling, use ids!() for paths

Debug Tips

bash
# Run with line info for better error messages
MAKEPAD=lines cargo +nightly run
rust
// Add logging
log!("Value: {:?}", my_value);
log!("State: {} / {}", self.counter, self.is_loading);

Resources