You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Installer: also log the installer's output to the IDE log, so an installation can be diagnosed when no console was open #2156
An installer's output (the tasks it runs, the commands of its exec tasks and their output, its checks, its errors) is printed only to the consoles that registered with ServerInstallerBase.registerConsoleProvider:
the Traces tab of the language server in the Language Servers view, which registers when that tab is created (LSPConsoleToolWindowPanel);
the debug console of a DAP run (DAPDebugRunner).
When no console has registered, the output is dropped: an installer that runs when a language server starts, before the user ever opened that server in the Language Servers view, prints into nothing. And a console's content is gone once it's cleared or the IDE restarts.
So when a user reports that an installation failed, there's often nothing to look at or attach to the issue. idea.log has only the few warnings that the installation classes log themselves.
#2144 logs the GitHub API requests, the token fallbacks and each download (URL, size, duration, source). The rest of the installer's output is still console-only.
Proposal
Also write each line that an installer prints through SLF4J, as the rest of LSP4IJ logs, under the category com.redhat.devtools.lsp4ij.installation, whatever consoles are registered:
INFO: the start and the result of the installation and of each task, so a default idea.log shows what was run and how it ended.
WARN: errors.
DEBUG: the output of exec commands, which can be long (npm, pip, cargo), turned on with #com.redhat.devtools.lsp4ij.installation in Help | Diagnostic Tools | Debug Log Settings.
The IDE decides where the lines go (idea.log by default), as for every other LSP4IJ log line. As in #2144, a value that can be a secret (a token, an Authorization header) is never logged.
Activity
feat: log what an installer does to the IDE log too, so that an insta…
test: an installer without a console logs the start and the result of…
test: an installer without a console logs the start and the result of…
feat: log what an installer does to the IDE log too, so that an insta…
feat: show the directory, PATH and exit code of each installer comman…