From 29043f6a5c62797bb9493d579160d1ce556b9a9c Mon Sep 17 00:00:00 2001 From: William Daniau Date: Mon, 8 Apr 2019 20:46:41 +0200 Subject: [PATCH 1/2] environment processing avoid error on build. --- src/features/linter-provider.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/features/linter-provider.ts b/src/features/linter-provider.ts index 9bef7c08..7f80cd36 100644 --- a/src/features/linter-provider.ts +++ b/src/features/linter-provider.ts @@ -32,11 +32,9 @@ export default class FortranLintingProvider { * so errorRegex can nevertheless be used to filter out errors and warnings * * see also: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html - */ - const env = { - ...process.env, - LC_ALL: 'C' - }; + */ + const env = process.env; + env.LC_ALL = 'C'; if (process.platform == 'win32') { // Windows needs to know the path of other tools if (!env.Path.includes(path.dirname(command))) { From 3502db42fd505491cc6df35d01b26ced7fd7bc38 Mon Sep 17 00:00:00 2001 From: William Daniau Date: Tue, 9 Apr 2019 12:36:36 +0200 Subject: [PATCH 2/2] light modifications, trailing spaces and === --- src/features/linter-provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/linter-provider.ts b/src/features/linter-provider.ts index 7f80cd36..c279a404 100644 --- a/src/features/linter-provider.ts +++ b/src/features/linter-provider.ts @@ -32,10 +32,10 @@ export default class FortranLintingProvider { * so errorRegex can nevertheless be used to filter out errors and warnings * * see also: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html - */ + */ const env = process.env; env.LC_ALL = 'C'; - if (process.platform == 'win32') { + if (process.platform === 'win32') { // Windows needs to know the path of other tools if (!env.Path.includes(path.dirname(command))) { env.Path = `${path.dirname(command)}${path.delimiter}${env.Path}`;