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: log every run, with the commands, PATH, exit codes and output, in the Installer tab and in idea.log #2296
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.
Activity
docs: say plainly which links of the Installer tab run the installer,…
feat: idea.log gets up to 4,000 characters of an installer command's …
feat: show the installation that ran at the start of a debug session …
docs: say plainly which links of the Installer tab run the installer,…
feat: idea.log gets up to 4,000 characters of an installer command's …