Skip to content

Installer: also log the installer's output to the IDE log, so an installation can be diagnosed when no console was open #2156

Done

Description

@lagergren

What happens

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

  1. added
    enhancement
    on Nov 23, 2026
  2. added this to the 0.30.2 milestone on Nov 24, 2026
  3. added 3 commits that reference this issue on Nov 24, 2026
    84b13ac
    c0f0f2d
    39bc493
  4. added 2 commits that reference this issue on Nov 24, 2026
    44f5a1a
    873f8fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementinstall

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions