* fix: stabilize validation and tests on Windows * test: add Windows smoke coverage for skill activation * refactor: make setup_web script CommonJS * fix: repair aegisops-ai frontmatter * docs: add when-to-use guidance to core skills * docs: add when-to-use guidance to Apify skills * docs: add when-to-use guidance to Google and Expo skills * docs: add when-to-use guidance to Makepad skills * docs: add when-to-use guidance to git workflow skills * docs: add when-to-use guidance to fp-ts skills * docs: add when-to-use guidance to Three.js skills * docs: add when-to-use guidance to n8n skills * docs: add when-to-use guidance to health analysis skills * docs: add when-to-use guidance to writing and review skills * meta: sync generated catalog metadata * docs: add when-to-use guidance to Robius skills * docs: add when-to-use guidance to review and workflow skills * docs: add when-to-use guidance to science and data skills * docs: add when-to-use guidance to tooling and automation skills * docs: add when-to-use guidance to remaining skills * fix: gate bundle helper execution in Windows activation * chore: drop generated artifacts from contributor PR * docs(maintenance): Record PR 457 sweep Document the open issue triage, PR supersedence decision, local verification, and source-only cleanup that prepared PR #457 for re-running CI. --------- Co-authored-by: sickn33 <sickn33@users.noreply.github.com>
56 lines
1.9 KiB
Markdown
56 lines
1.9 KiB
Markdown
---
|
|
name: makepad-reference
|
|
description: "This category provides reference materials for debugging, code quality, and advanced layout patterns."
|
|
risk: unknown
|
|
source: community
|
|
---
|
|
|
|
# Makepad Reference
|
|
|
|
This category provides reference materials for debugging, code quality, and advanced layout patterns.
|
|
|
|
## When to Use
|
|
|
|
- You need quick-reference material for common Makepad errors, debugging, or API lookups.
|
|
- The task is diagnostic or reference-oriented rather than writing a focused feature in one subsystem.
|
|
- You want a central starting point before diving into more specialized Makepad skills.
|
|
|
|
## Quick Navigation
|
|
|
|
| Topic | File | Use When |
|
|
|-------|------|----------|
|
|
| API Documentation | Official docs index, quick API reference | Finding detailed API info |
|
|
| Troubleshooting | Common errors and fixes | Build fails, runtime errors |
|
|
| Code Quality | Makepad-aware refactoring | Simplifying code safely |
|
|
| Adaptive Layout | Desktop/mobile responsive | Cross-platform layouts |
|
|
|
|
## Common Issues Quick Reference
|
|
|
|
| Error | Quick Fix |
|
|
|-------|-----------|
|
|
| `no matching field: font` | Use `text_style: <THEME_FONT_*>{}` |
|
|
| Color parse error (ends in `e`) | Change last digit (e.g., `#14141e` → `#14141f`) |
|
|
| `set_text` missing argument | Add `cx` as first argument |
|
|
| UI not updating | Call `redraw(cx)` after changes |
|
|
| Widget not found | Check 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
|
|
|
|
- [Makepad Official Docs](https://publish.obsidian.md/makepad-docs/) - Obsidian-based documentation
|
|
- [Makepad Repository](https://github.com/makepad/makepad)
|
|
- [Robrix](https://github.com/project-robius/robrix) - Production reference
|
|
- [Moly](https://github.com/moxin-org/moly) - Production reference
|