Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/find-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down