The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(lsp): surface the pnpm failure reason and document the exotic-subdep block
teknium106e76129cd6b
diff --git a/agent/lsp/install.py b/agent/lsp/install.pyindex 06341963ffc..fcf7f5d9083 100644--- a/agent/lsp/install.py+++ b/agent/lsp/install.py@@ -175,7 +175,9 @@ def _run_installer(tool: str, pkg: str, cmd: list, *, timeout: int, env: Optionatimeout=timeout, env=env, stdin=subprocess.DEVNULL, creationflags=windows_hide_flags(),)if proc.returncode != 0:- logger.warning("[install] %s install failed for %s: %s", tool, pkg, proc.stderr.strip()[:500])+ # pnpm reports ERR_PNPM_* on stdout with an empty stderr; log whichever stream carries the reason.+ detail = (proc.stderr.strip() or proc.stdout.strip())[:500]+ logger.warning("[install] %s install failed for %s: %s", tool, pkg, detail)return Falseexcept (subprocess.TimeoutExpired, OSError) as e:logger.warning("[install] %s install errored for %s: %s", tool, pkg, e)diff --git a/website/docs/user-guide/features/lsp.md b/website/docs/user-guide/features/lsp.mdindex f079bbda4ce..0a77a35e771 100644--- a/website/docs/user-guide/features/lsp.md+++ b/website/docs/user-guide/features/lsp.md@@ -200,7 +200,11 @@ lsp:# using npm, so a pnpm/yarn supply-chain policy (minimumReleaseAge,# allowBuilds, …) is never bypassed. Yarn Berry (2+): its default PnP# linker writes no node_modules/.bin, so set `nodeLinker: node-modules`- # in <HERMES_HOME>/lsp/.yarnrc.yml.+ # in <HERMES_HOME>/lsp/.yarnrc.yml. pnpm 11 blocks git-hosted transitive+ # deps by default (ERR_PNPM_EXOTIC_SUBDEP); @vue/language-server 2.x pulls+ # one in, so under pnpm that server is skipped with the pnpm error in the+ # log — install it once with npm, or relax block-exotic-subdeps in+ # <HERMES_HOME>/lsp/.npmrc if your policy allows it.package_manager: npm# How long an unused language-server client stays alive (seconds).