diff --git a/HISTORY.md b/HISTORY.md index 97ad0bd..44aa251 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,8 @@ ## 1.1.2 (2016-??-??) +* Hotfix for Atom's bug with `process.env.PATH` ([#94](https://github.com/platformio/platformio-atom-ide/issues/94)) + ## 1.1.1 (2016-03-28) * Added `Menu: PlatformIO > Update Atom packages` item diff --git a/lib/main.js b/lib/main.js index a17819b..d04c71e 100755 --- a/lib/main.js +++ b/lib/main.js @@ -47,6 +47,11 @@ module.exports = { }, activate: function() { + // @TODO Hotfix for https://github.com/atom/atom/issues/11302 + if (!('PATH' in process.env) && 'Path' in process.env) { + process.env.PATH = process.env.Path; + } + this.subscriptions = new CompositeDisposable(); maintenance.updateOSEnviron();