Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

loonghaoот 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:

  • -i is --interpret on rez-context, not --input (it is --input on rez-env, so the same short flag means opposite things on the two commands). Passing -i sends the call down the interpret branch, where --so and the graph flags are skipped, and a failed context raises ResolvedContextError: Cannot perform operation in a failed context — the one case this skill exists for.

  • --dependency-graph needs a solved context, because it calls get_dependency_graph(). Use --print-graph (or --pg), which calls rc.graph() and works on a failed resolve. On a failed context it prints the CONFLICT edge 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-graph also fails, because it calls get_dependency_graph(), which is decorated @_on_success. But -g / --graph is fine — it uses rc.graph(), the same undecorated call as --print-graph, so it does render the failure graph. It just needs Graphviz dot on PATH, and fails with FileNotFoundError when 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
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить rez-resolve-troubleshooting с