rez-resolve-troubleshooting
БесплатноБез исполняемых скриптовНе проверенDiagnosing Rez resolve failures — a command-by-command triage path for 'The context failed to resolve', package conflicts, request version conflicts, implicit…
от loonghao344 установки в других каталогахОб этом скилле
Rez resolve failure troubleshooting
One-sentence summary: capture the failure without entering a shell, read the failure path that rez already printed, classify it into one of six causes, then confirm with the cheapest command that can rule a cause in or out.
Skill scope: diagnosing a failure that already happened. For how the solver works and how to read
-v traces see rez-resolve; for request and version syntax see rez-core-concepts; for the command
surface see rez-cli.
Step 0 — capture the failure
Never start by debugging inside a subshell; rez-env drops you into an interactive shell on success
and hides the structured output on failure. Write the context to a file instead:
rez-env <reqs> -o context.rxt # also stores a FAILED resolve
rez-env <reqs> -o - # or write it to stdout
The stored .rxt keeps failure_description, so you can re-inspect it later with rez-context:
rez-context context.rxt --so # what was requested, and the source order
rez-context context.rxt --print-graph # dot graph of the failed resolve
Two traps in that pair, both verified against src/rez/cli/context.py:
-iis--interpretonrez-context, not--input(it is--inputonrez-env, so the same short flag means opposite things on the two commands). Passing-isends the call down the interpret branch, where--soand the graph flags are skipped, and a failed context raisesResolvedContextError: Cannot perform operation in a failed context— the one case this skill exists for.--dependency-graphneeds a solved context, because it callsget_dependency_graph(). Use--print-graph(or--pg), which callsrc.graph()and works on a failed resolve. On a failed context it prints theCONFLICTedge directly:digraph g { _1 [fillcolor="#F6F6F6", fontsize="10", style="filled,dashed", label="python-2"]; _2 [fillcolor="#F6F6F6", fontsize="10", style="filled,dashed", label="!python-2"]; _1 -> _2 [arrowsize="1", color="red", fontcolor="red", style="bold", label="CONFLICT"]; }Of the other graph flags:
-d/--dependency-graphalso fails, because it callsget_dependency_graph(), which is decorated@_on_success. But-g/--graphis fine — it usesrc.graph(), the same undecorated call as--print-graph, so it does render the failure graph. It just needs GraphvizdotonPATH, and fails withFileNotFoundErrorwhen it is missing; that is an environment problem, not a failed-context one.
Step 1 — read what rez already told you
A failed resolve prints three blocks, in this order. They are the whole diagnosis; everything after this step only confirms it.
The context failed to resolve:
The following package conflicts occurred: (python-2.7 <--!--> python-3)
Resolve paths starting from initial requests to conflict:
my_tool --> my_lib-1.2 --> python-3
To see a graph of the failed resolution, add --fail-graph in your rez-env or rez-build command.
| Block | Tells you |
|---|---|
The context failed to resolve: + reason |
the failure class (see the table below) |
Resolve paths starting from initial requests to … |
who pulled in the offending requirement: it reads left (your request) to right (the conflict), so read it backwards to find the culprit |
--fail-graph hint |
the visual version of the same path |
The reason line comes from failure_description; the path lines come from
rez.utils.resolve_graph.failure_detail_from_graph, which finds the CYCLE edge first and the
CONFLICT edge second. <--!--> marks two requirements that cannot both hold. In (A <--!--> B),
A is the dependency that a package's variants share and B is the request it conflicts with — so
B is usually the thing to change. A leading . on a name marks an ephemeral package, which is
resolved but not actually installed into the environment.
If the paths block is empty, the failure is a total reduction (all variants of a scope were removed) rather than a conflict — go to cause 5.
Step 2 — classify and confirm
Work through the causes cheapest-first. Each has one command that confirms it.
| # | Cause | Signature | Confirm with |
|---|---|---|---|
| 1 | Request version conflict | (python-2.7 <--!--> python-3) — both sides the same package |
rez-depends <pkg> |
| 2 | Package conflict | (maya-2019 <--!--> !maya-2019) — different packages, or an explicit ! |
rez-depends A, rez-depends B |
| 3 | Implicit package | conflict mentions platform, arch, os; or a package vanishes only on this machine |
rez-env <reqs> --ni |
| 4 | Variant selection | wrong variant chosen, or variant subpath missing | rez-config variant_select_mode, rez-env <reqs> -v |
| 5 | Total reduction / no candidates | no conflict edge; The context failed to resolve with no named pair |
rez-search <pkg>, `rez-env --no-filter |
Установить rez-resolve-troubleshooting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rez-resolve-troubleshooting?
Diagnosing Rez resolve failures — a command-by-command triage path for 'The context failed to resolve', package conflicts, request version conflicts, implicit package failures, variant selection failures, missing packages or versions, filtered or ignored packages, and stale resolve caches. Use when rez-env, rez-build or rez-test fails to resolve and you need to find the culprit, not just read the solver. Covers Rez 3.4.0.
Как установить скилл rez-resolve-troubleshooting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rez-resolve-troubleshooting запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic