kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Add documentation about plugin enabling on pex

Open rtibbles opened this issue 1 month ago • 8 comments

Summary

Adds context aware error messaging to plugin enable and apply to give information about pex plugin enabling Adds developer documentation about the same.

References

Fixes #6516

Reviewer guidance

Try to enable a non-existent plugin with the pex file - see the error message!

:robot: This was created by Claude Code. @rtibbles then reviewed the generated output, and did iterative rounds of updates before making it ready for review :robot:

rtibbles avatar Nov 27 '25 00:11 rtibbles

So much for trusting the issue!

rtibbles avatar Dec 09 '25 20:12 rtibbles

Looks like fallback is probably the best value.

rtibbles avatar Dec 09 '25 20:12 rtibbles

Although.. weirdly that doesn't seem to work.

rtibbles avatar Dec 09 '25 20:12 rtibbles

Oh, no, it does! Nevermind - updating!

rtibbles avatar Dec 09 '25 20:12 rtibbles

Updated to PEX_INHERIT_PATH=fallback, which does seem to work - I guess the 1 value was from pex v1, which we dropped when we dropped Python 2.7 support.

rtibbles avatar Dec 09 '25 20:12 rtibbles

Verified here for the version of pex we are using, as a reference: https://github.com/pex-tool/pex/blob/v2.1.153/pex/variables.py#L487

rtibbles avatar Dec 09 '25 20:12 rtibbles

Yeah fallback seems most appropriate. I will test it to double check

bjester avatar Dec 09 '25 21:12 bjester