Repository navigation
Resolve the NES language server through the assistant installation lookup - #18608
Merged
Merged
Conversation
…okup paiLanguageServerPath() hardcoded <XDG_DATA>/pai/bin/dist/nes, so the language server behind code suggestions ignored RSTUDIO_POSIT_AI_PATH and system-wide installs -- both of which the chat backend honors, since it resolves through locatePositAssistantInstallation(). With only a system-wide install present, chat worked and suggestions never started; with the override set, the two halves could run out of different installations, with nothing reporting the mismatch. Derive the NES directory from locatePositAssistantInstallation() instead. The lookup within an installation is now a separate nesLanguageServerPath(), covered by tests. Addresses #18597
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:34 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:34 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:42 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:42 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:50 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:50 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:50 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:50 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:50 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:50 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:53 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
August 19, 2026 22:53 — with
GitHub Actions
Inactive
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
paiLanguageServerPath()hardcoded<XDG_DATA>/pai/bin/dist/nes, so the language server behind Posit Assistant code suggestions ignored bothRSTUDIO_POSIT_AI_PATHand system-wide installs. The chat backend honors both, since it resolves throughlocatePositAssistantInstallation().Two divergences followed:
/etc/rstudio/pai/bin), chat worked and code suggestions never started. The failure logged at debug level only, so it was invisible unless assistant logging was turned up.RSTUDIO_POSIT_AI_PATHpointed at a dev build, chat ran the dev build while the language server came from whatever was in the per-user install, with nothing reporting the mismatch.paiLanguageServerPath()now derives its directory fromlocatePositAssistantInstallation(), so both halves of the assistant resolve the same installation. The lookup within an installation is split out asnesLanguageServerPath(installPath)and covered by tests: empty install path, an installation with no NES script, resolution under an arbitrary install root, thelanguage-server.jsfallback, and the.cjspreference.One behavior change worth noting:
locatePositAssistantInstallation()accepts an installation only when the chat files are present (dist/client/index.html,dist/server/main.js), so a directory holdingdist/nesalone no longer resolves. Shipped packages contain both.Fixes #18597.