Skip to content

Installer: log every run, with the commands, PATH, exit codes and output, in the Installer tab and in idea.log #2296

Done

Description

@muescha

Idea

When the installer of a language server or debug adapter template runs, there is often no way to see what it did. This proposal: every run of the installer leaves a trace, not only a failed one.

What to log

For each step (check and install):

  • the command,
  • the working directory,
  • the PATH it used,
  • the exit code,
  • the output (stdout and stderr).

Where:

  • in the Installer tab of the language server or debug adapter,
  • in idea.log,
  • and a link from an "Installation … failed" notification to that output.

Why also a successful run

  • A check can succeed with the wrong tool, for example gem of the system Ruby instead of the one of a version manager like mise. The log of a successful run shows which tool was found and which version it printed.
  • When a later language server or debug session fails, the log shows what the installer did before, even if it reported success.
  • It shows whether the installer ran at all, or whether the check was skipped.

Then a user can tell whether a tool is missing, is found in the wrong version, or fails for another reason, without guessing.

Related

Pair-programmed with ❤️ by @muescha and ⚙️ by 🤖 Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions