teaceo-debug/DEEP6 / .claude/skills/tradingview-pinescript-error-doctor
tradingview-pinescript-error-doctor
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.2 KB |
| errors/common-compile-errors.md | markdown | 1.1 KB |
| errors/drawing-object-errors.md | markdown | 3.2 KB |
| errors/loop-and-scope-errors.md | markdown | 2.4 KB |
| errors/official-error-codes.md | markdown | 1.9 KB |
| errors/request-security-errors.md | markdown | 3.2 KB |
| errors/type-system-errors.md | markdown | 4.1 KB |
| knowledge.md | markdown | 6.3 KB |
| patterns/debug-instrumentation.md | markdown | 1.7 KB |
| patterns/quick-fixes.md | markdown | 2.1 KB |
| playbooks/alert-debugging.md | markdown | 4.3 KB |
| playbooks/expert-checklist.md | markdown | 993 B |
| playbooks/repainting-and-mtf.md | markdown | 1004 B |
| playbooks/repair-workflow.md | markdown | 588 B |
| playbooks/version-migration.md | markdown | 2.9 KB |
errors/common-compile-errors.md
View on GitHub# Common Compile Errors
Last verified: 2026-05-22
Use this file for the high-frequency non-coded errors found in real Pine work.
## Undeclared Identifier
Check in this order:
- typo
- missing namespace (`ta.`, `math.`, `str.`, `request.`)
- scope error: declared inside block, used outside
- version mismatch between old and new Pine syntax
## Cannot Call Function With Argument Type X; Expected Y
Most often this is a qualifier mismatch across `const`, `simple`, and `series`.
Repair pattern:
- inspect the function signature
- replace dynamic inputs with actual `input.*()` or literals where required
- do not assume `int()` or `float()` removes the `series` qualifier
## Mismatched Input / Syntax Spillover
Usually the flagged line is not the true root cause.
Inspect the previous 1–3 lines for:
- missing `)` or `]`
- unclosed string
- broken multiline ternary or function call
- stray comma
## Array / Object Guard Failures
Typical root causes:
- array access before size check
- calling setters on `na` line/label/box/table IDs
- loop bounds derived from empty arrays
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |