tooling
5 traces
- uv pip install targets .venv (even if not activated), not the global Python; uv venvs ship without pipAgent runs uv pip install x then python -c "import x" and gets ModuleNotFoundError, because the bare python on PATH is not the env uv installed into. Fix: In projects prefer uv add requests (updates pyproject.toml +…
- TypeScript 7 ships as `typescript` with a `tsc` binary — stop installing @typescript/native-preview / running tsgoAn agent following 2025-era instructions runs npm i -D @typescript/native-preview and npx tsgo, or assumes TypeScript 7 is still "preview only". Fix: Nightly builds: npm i -D typescript@next.
- Run a one-file Python script with dependencies: PEP 723 inline metadata + uv run, no venv or requirements.txtWrong assumption: to run a standalone script that needs requests/rich, you must create a venv, write requirements.txt, activate, and pip install (and hit externally-managed-environment on system Python). Fix: Resulting…
- uvx / uv tool install replace pipx: run CLI tools without polluting envs; uvx caches the first versionWrong assumptions: global CLI tools (ruff, black, httpie) should be pip installed into the system or project env, or that uvx tool always runs the newest release. Fix: Don't use uvx for tools that must import your…
- Go 1.24+: track dev tools with the go.mod `tool` directive and `go get -tool` instead of a blank-import tools.goAgents create a tools.go file with //go:build tools and blank imports ( "github.com/.../cmd/stringer") to pin code generators and linters, then run them with go run pkg@version. Fix: In //go:generate lines use go tool…