Skip to content

teaceo-debug/DEEP6 / .claude/skills/tradingview-pinescript-error-doctor

tradingview-pinescript-error-doctor

Verified

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
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall