From 48a8c14c55af4ed028fb524c1895640139bb8445 Mon Sep 17 00:00:00 2001 From: owl-from-hogvarts Date: Tue, 4 May 2021 12:12:46 +0300 Subject: [PATCH] lib: pretty print path --- lib/find-python.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/find-python.js b/lib/find-python.js index 16885bb4c8..6a4727fe3a 100644 --- a/lib/find-python.js +++ b/lib/find-python.js @@ -492,7 +492,14 @@ class PythonFinder { this.logger.log.verbose(`${this.logger.colorizeOutput(Logger.colors.GREEN, 'execFile')}: exec = `, exec) this.logger.log.verbose(`${this.logger.colorizeOutput(Logger.colors.GREEN, 'execFile')}: args = `, args) // TODO: make beauty print of PATH property (new line by semicolon) - this.logger.log.silly(`${this.logger.colorizeOutput(Logger.colors.GREEN, 'execFile')}: opts = `, JSON.stringify(opts, null, 2), '\n\n') + this.logger.log.silly('execFile: opts = ', JSON.stringify(opts, (key, value) => { + if (key.toLowerCase() === 'path') { + if (typeof value === 'string') { + return ['!!!! ATTENTION !!!! THIS IS NOT A REAL ARRAY!!!', 'IS IS FORMATTED AS ARRAY TO BEAUTIFUL OUTPUT!!!', 'IN PRACTICE IT IS STRING OF VALUES SEPARATED BY SEMICOLONS', ...value.split(';')] + } + } + return value + }, 2)) //* possible outcomes with error messages on Windows (err.message, error.stack?, stderr) // issue of encoding (garbage in terminal ) when 866 or any other locale code