diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d13553a..0478f0f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.9.7](https://github.com/lgeiger/ide-python/compare/v1.9.6...v1.9.7) (2021-08-24) + + +### Bug Fixes + +* fix replacing $PIPENV_PATH in the python path ([5789f41](https://github.com/lgeiger/ide-python/commit/5789f417d4f7ce0c37c34945f96f6e2001731143)) + ## [1.9.6](https://github.com/lgeiger/ide-python/compare/v1.9.5...v1.9.6) (2021-08-10) diff --git a/dist/main.js b/dist/main.js index d56399bb..828af373 100644 --- a/dist/main.js +++ b/dist/main.js @@ -99,7 +99,9 @@ class PythonLanguageClient extends AutoLanguageClient { pylsEnvironment.VIRTUAL_ENV = venvPath; } - let pythonBin = atom.config.get("ide-python.python") || "python3"; + let pythonBin = atom.config.get("ide-python.python") || "python3"; // replace $PIPENV_PATH in the path + + pythonBin = replacePipEnvPathVar(pythonBin, venvPath); // check if it exists if (whichSync(pythonBin, { nothrow: true @@ -107,7 +109,7 @@ class PythonLanguageClient extends AutoLanguageClient { pythonBin = "python"; } - this.python = replacePipEnvPathVar(pythonBin, venvPath); + this.python = pythonBin; const childProcess = super.spawn(this.python, ["-m", this.getPyLs()], { cwd: projectPath, env: pylsEnvironment @@ -168,4 +170,4 @@ const pythonClient = new PythonLanguageClient(); pythonClient.createDebuggerProvider = _main.createDebuggerProvider; // add the debugger module.exports = pythonClient; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiXSwibmFtZXMiOlsic2hlbGwiLCJyZXF1aXJlIiwid2hpY2hTeW5jIiwic3luYyIsIkF1dG9MYW5ndWFnZUNsaWVudCIsImRldGVjdFZpcnR1YWxFbnYiLCJkZXRlY3RQaXBFbnYiLCJyZXBsYWNlUGlwRW52UGF0aFZhciIsInNhbml0aXplQ29uZmlnIiwiUFlUSE9OX1JFR0VYIiwiUHl0aG9u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93biBpbiAke21pbGxpc2Vjb25kc31tcywgZm9yY2luZyB0ZXJtaW5hdGlvbmApXG4gICAgICAgIHJlc29sdmUoKVxuICAgICAgfSwgbWlsbGlzZWNvbmRzKVxuICAgIH0pXG4gIH1cbn1cblxuY29uc3QgcHl0aG9uQ2xpZW50ID0gbmV3IFB5dGhvbkxhbmd1YWdlQ2xpZW50KClcbnB5dGhvbkNsaWVudC5jcmVhdGVEZWJ1Z2dlclByb3ZpZGVyID0gY3JlYXRlRGVidWdnZXJQcm92aWRlciAvLyBhZGQgdGhlIGRlYnVnZ2VyXG5tb2R1bGUuZXhwb3J0cyA9IHB5dGhvbkNsaWVudFxuIl19 \ No newline at end of file diff --git a/package.json b/package.json index 31639f57..01850c73 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ide-python", "main": "./dist/main", - "version": "1.9.6", + "version": "1.9.7", "description": "Python language support for Atom-IDE", "keywords": [ "ide",