From 7d6e415d4fcfdc5ce16c9ad305c305033b73f970 Mon Sep 17 00:00:00 2001 From: Till Hainbach Date: Thu, 3 Dec 2020 14:21:32 +0100 Subject: [PATCH 1/8] Add settings for pyls-mypy --- package.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/package.json b/package.json index d79a1484..02bcd196 100644 --- a/package.json +++ b/package.json @@ -438,6 +438,26 @@ } } }, + "pyls_mypy": { + "title": "MyPy", + "type": "object", + "properties": { + "enabled": { + "title": "Enabled", + "type": "boolean", + "order": 1, + "default": true, + "description": "Enable or disable MyPy." + }, + "live_mode": { + "title": "Live mode", + "type": "boolean", + "order": 1, + "default": false, + "description": "Turn on live mode (If disabled, mypy linters on file save)." + } + } + }, "flake8": { "title": "Flake8", "type": "object", From 76183b37a403bee068678bb0e36dc6251c90b141 Mon Sep 17 00:00:00 2001 From: Till Hainbach Date: Thu, 3 Dec 2020 14:25:10 +0100 Subject: [PATCH 2/8] Update error description to include install pyls-mypy --- dist/main.js | 4 ++-- lib/main.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/main.js b/dist/main.js index bbd32658..a6c0e0dc 100644 --- a/dist/main.js +++ b/dist/main.js @@ -88,7 +88,7 @@ class PythonLanguageClient extends AutoLanguageClient { text: "Download Python", onDidClick: () => shell.openExternal("https://www.python.org/downloads/") }], - description: "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + "```" + description: "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + `${python} -m pip install git+git+https://github.com/tomv564/pyls-mypy.git\n` +"```" }); } }); @@ -121,4 +121,4 @@ const pythonClient = new PythonLanguageClient(); pythonClient.createDebuggerProvider = _main.createDebuggerProvider; // add the debugger module.exports = pythonClient; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiXSwibm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ICAgKTtcbiAgICB9KTtcblxuICAgIGNoaWxkUHJvY2Vzcy5vbihcImNsb3NlXCIsIChjb2RlLCBzaWduYWwpID0+IHtcbiAgICAgIGlmIChjb2RlICE9PSAwICYmIHNpZ25hbCA9PSBudWxsKSB7XG4gICAgICAgIGF0b20ubm90aWZpY2F0aW9ucy5hZGRFcnJvcihcbiAgICAgICAgICBcIlVuYWJsZSB0byBzdGFydCB0aGUgUHl0aG9uIGxhbmd1YWdlIHNlcnZlci5cIixcbiAgICAgICAgICB7XG4gICAgICAgICAgICBkaXNtaXNzYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIGJ1dHRvbnM6IFtcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHRleHQ6IFwiSW5zdGFsbCBJbnN0cnVjdGlvbnNcIixcbiAgICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgYXRvbS53b3Jrc3BhY2Uub3BlbihcImF0b206Ly9jb25maWcvcGFja2FnZXMvaWRlLXB5dGhvblwiKVxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgdGV4dDogXCJEb3dubG9hZCBQeXRob25cIixcbiAgICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgc2hlbGwub3BlbkV4dGVybmFsKFwiaHR0cHM6Ly93d3cucHl0aG9uLm9yZy9kb3dubG9hZHMvXCIpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICBkZXNjcmlwdGlvbjpcbiAgICAgICAgICAgICAgXCJNYWtlIHN1cmUgdG8gaW5zdGFsbCBgcHlsc2AgMC4xOSBvciBuZXdlciBieSBydW5uaW5nOlxcblwiICtcbiAgICAgICAgICAgICAgXCJgYGBcXG5cIiArXG4gICAgICAgICAgICAgIGAke3B5dGhvbn0gLW0gcGlwIGluc3RhbGwgJ3B5dGhvbi1sYW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b3ZpZGVyID0gY3JlYXRlRGVidWdnZXJQcm92aWRlcjsgLy8gYWRkIHRoZSBkZWJ1Z2dlclxubW9kdWxlLmV4cG9ydHMgPSBweXRob25DbGllbnQ7XG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiXSwibmFtZXMiOlsiY3AiLCJyZXF1aXJlIiwic2hlbGwiLCJBdXRvTGFuZ3VhZ2VDbGllbnQiLCJkZXRlY3RWaXJ0dWFsRW52IiwiZGV0ZWN0UGlwRW52IiwicmVwbGFjZVBpcEVudlBhdGhWYXIiLCJzYW5pdGl6ZUNvbmZpZyIsIlBZVEhPTl9SRUdFWCIsIlB5dGhvbkxhbmd1YWdlQ2xpZW50IiwiZ2V0R3JhbW1hclNjb3BlcyIsImdldExhbmd1YWdlTmFtZSIsImdldFNlcnZlck5hbWUiLCJnZXRSb290Q29uZmlndXJhdGlvbktleSIsImFjdGl2YXRlIiwiYXRvbSIsImNvbmZpZyIsInVuc2V0IiwibWFwQ29uZmlndXJhdGlvbk9iamVjdCIsImNvbmZpZ3VyYXRpb24iLCJweWxzIiwiY29uZmlndXJhdGlvblNvdXJjZXMiLCJweWxzQ29uZmlndXJhdGlvblNvdXJjZXMiLCJyb3BlIiwicGx1Z2lucyIsInB5bHNQbHVnaW5zIiwic3RhcnRTZXJ2ZXJQcm9jZXNzIiwicHJvamVjdFBhdGgiLCJ2ZW52UGF0aCIsInB5bHNFbnZpcm9ubWVudCIsIk9iamVjdCIsImFzc2lnbiIsInByb2Nlc3MiLCJlbnYiLCJweXRob24iLCJnZXQiLCJjaGlsZFByb2Nlc3MiLCJzcGF3biIsImN3ZCIsIm9uIiwiZXJyIiwiZGVzY3JpcHRpb24iLCJjb2RlIiwibm90aWZpY2F0aW9ucyIsImFkZEVycm9yIiwiZGlzbWlzc2FibGUiLCJzaWduYWwiLCJidXR0b25zIiwidGV4dCIsIm9uRGlk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jogYCR7ZGVzY3JpcHRpb259PHA+SWYgeW91IGhhdmUgUHl0aG9uIGluc3RhbGxlZCBwbGVhc2Ugc2V0IFwiUHl0aG9uIEV4ZWN1dGFibGVcIiBzZXR0aW5nIGNvcnJlY3RseS4gSWYgeW91IGRvIG5vdCBwbGVhc2UgaW5zdGFsbCBQeXRob24uPC9wPmBcbiAgICAgICAgfVxuICAgICAgKTtcbiAgICB9KTtcblxuICAgIGNoaWxkUHJvY2Vzcy5vbihcImNsb3NlXCIsIChjb2RlLCBzaWduYWwpID0+IHtcbiAgICAgIGlmIChjb2RlICE9PSAwICYmIHNpZ25hbCA9PSBudWxsKSB7XG4gICAgICAgIGF0b20ubm90aWZpY2F0aW9ucy5hZGRFcnJvcihcbiAgICAgICAgICBcIlVuYWJsZSB0byBzdGFydCB0aGUgUHl0aG9uIGxhbmd1YWdlIHNlcnZlci5cIixcbiAgICAgICAgICB7XG4gICAgICAgICAgICBkaXNtaXNzYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIGJ1dHRvbnM6IFtcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHRleHQ6IFwiSW5zdGFsbCBJbnN0cnVjdGlvbnNcIixcbiAgICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgYXRvbS53b3Jrc3BhY2Uub3BlbihcImF0b206Ly9jb25maWcvcGFja2FnZXMvaWRlLXB5dGhvblwiKVxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgdGV4dDogXCJEb3dubG9hZCBQeXRob25cIixcbiAgICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgc2hlbGwub3BlbkV4dGVybmFsKFwiaHR0cHM6Ly93d3cucHl0aG9uLm9yZy9kb3dubG9hZHMvXCIpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICBkZXNjc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Rpb25gXG4gICAgICAgICk7XG4gICAgICAgIHJlc29sdmUoKTtcbiAgICAgIH0sIG1pbGxpc2Vjb25kcyk7XG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgcHl0aG9uQ2xpZW50ID0gbmV3IFB5dGhvbkxhbmd1YWdlQ2xpZW50KClcbnB5dGhvbkNsaWVudC5jcmVhdGVEZWJ1Z2dlclByb3ZpZGVyID0gY3JlYXRlRGVidWdnZXJQcm92aWRlcjsgLy8gYWRkIHRoZSBkZWJ1Z2dlclxubW9kdWxlLmV4cG9ydHMgPSBweXRob25DbGllbnQ7XG4iXX0= diff --git a/lib/main.js b/lib/main.js index 59a48d01..0c42b26d 100644 --- a/lib/main.js +++ b/lib/main.js @@ -100,6 +100,7 @@ class PythonLanguageClient extends AutoLanguageClient { "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + + `${python} -m pip install git+git+https://github.com/tomv564/pyls-mypy.git\n` + "```" } ); From 5dad5fbbc5b58448b06de1220085296b96c251ae Mon Sep 17 00:00:00 2001 From: tillhainbach <33448151+tillhainbach@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:36:23 +0100 Subject: [PATCH 3/8] Fix superflous "git+" in error description Obviously, it should have been git+https: ... from the start... --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 0c42b26d..3df4779a 100644 --- a/lib/main.js +++ b/lib/main.js @@ -100,7 +100,7 @@ class PythonLanguageClient extends AutoLanguageClient { "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + - `${python} -m pip install git+git+https://github.com/tomv564/pyls-mypy.git\n` + + `${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` + "```" } ); From 8fa547bf0f866425554bb88726ef0bdf2e3a358e Mon Sep 17 00:00:00 2001 From: tillhainbach <33448151+tillhainbach@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:37:05 +0100 Subject: [PATCH 4/8] Fix superflous "git+" --- dist/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/main.js b/dist/main.js index a6c0e0dc..3f00b03b 100644 --- a/dist/main.js +++ b/dist/main.js @@ -88,7 +88,7 @@ class PythonLanguageClient extends AutoLanguageClient { text: "Download Python", onDidClick: () => shell.openExternal("https://www.python.org/downloads/") }], - description: "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + `${python} -m pip install git+git+https://github.com/tomv564/pyls-mypy.git\n` +"```" + description: "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + `${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` +"```" }); } }); From e8fe09fbeba2da2359b57cdd5f664f048df4567e Mon Sep 17 00:00:00 2001 From: tillhainbach <33448151+tillhainbach@users.noreply.github.com> Date: Sun, 14 Mar 2021 11:46:07 +0100 Subject: [PATCH 5/8] feat(add-pyls-mypy): remove conflict markers --- dist/main.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dist/main.js b/dist/main.js index 9e565078..dc86687c 100644 --- a/dist/main.js +++ b/dist/main.js @@ -121,8 +121,4 @@ const pythonClient = new PythonLanguageClient(); pythonClient.createDebuggerProvider = _main.createDebuggerProvider; // add the debugger module.exports = pythonClient; -<<<<<<< HEAD -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiXSwibmFtZXMiOlsiY3AiLCJyZXF1aXJlIiwic2hlbGwiLCJBdXRvTGFuZ3VhZ2VDbGllbnQiLCJkZXRlY3RWaXJ0dWFsRW52IiwiZGV0ZWN0UGlwRW52IiwicmVwbGFjZVBpcEVudlBhdGhWYXIiLCJzYW5pdGl6ZUNvbmZpZyIsIlBZVEhPTl9SRUdFWCIsIlB5dGhvbkxhbmd1YWdlQ2xp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dGFydCB0aGUgUHl0aG9uIGxhbmd1YWdlIHNlcnZlci5cIixcbiAgICAgICAgICB7XG4gICAgICAgICAgICBkaXNtaXNzYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIGJ1dHRvbnM6IFtcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHRleHQ6IFwiSW5zdGFsbCBJbnN0cnVjdGlvbnNcIixcbiAgICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgYXRvbS53b3Jrc3BhY2Uub3BlbihcImF0b206Ly9jb25maWcvcGFja2FnZXMvaWRlLXB5dGhvblwiKVxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgdGV4dDogXCJEb3dubG9hZCBQeXRob25cIixcbiAgICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgc2hlbGwub3BlbkV4dGVybmFsKFwiaHR0cHM6Ly93d3cucHl0aG9uLm9yZy9kb3dubG9hZHMvXCIpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICBkZXNjcmlwdGlvbjpcbiAgICAgICAgICAgICAgXCJNYWtlIHN1cmUgdG8gaW5zdGFsbCBgcHlsc2AgMC4xOSBvciBuZXdlciBieSBydW5uaW5nOlxcblwiICtcbiAgICAgICAgICAgICAgXCJgYGBcXG5cIiArXG4gICAgICAgICAgICAgIGAke3B5dGhvbn0gLW0gcGlwIGluc3RhbGwgJ3B5dGhvbi1sYW5ndWFnZS1zZXJ2ZXJbYWxsXSdcXG5gICtcbiAgICAgICAgICAgICAgXCJgYGBcIlxuICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgICByZXR1cm4gY2hpbGRQcm9jZXNzO1xuICB9XG5cbiAgYXN5bmMgZ2V0U3VnZ2VzdGlvbnMocmVxdWVzdCkge1xuICAgIGlmICghUFlUSE9OX1JFR0VYLnRlc3QocmVxdWVzdC5wcmVmaXgpKSByZXR1cm4gbnVsbDtcbiAgICByZXR1cm4gc3VwZXIuZ2V0U3VnZ2VzdGlvbnMocmVxdWVzdCk7XG4gIH1cblxuICBkZWFjdGl2YXRlKCkge1xuICAgIGRlYnVnZ2VyRGlzcG9zZSgpO1xuICAgIHJldHVybiBQcm9taXNlLnJhY2UoW3N1cGVyLmRlYWN0aXZhdGUoKSwgdGhpcy5jcmVhdGVUaW1lb3V0UHJvbWlzZSgyMDAwKV0pO1xuICB9XG5cbiAgY3JlYXRlVGltZW91dFByb21pc2UobWlsbGlzZWNvbmRzKSB7XG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgIGxldCB0aW1lb3V0ID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgIGNsZWFyVGltZW91dCh0aW1lb3V0KTtcbiAgICAgICAgdGhpcy5sb2dnZXIuZXJyb3IoXG4gICAgICAgICAgYFNlcnZlciBmYWlsZWQgdG8gc2h1dGRvd24gaW4gJHttaWxsaXNlY29uZHN9bXMsIGZvcmNpbmcgdGVybWluYXRpb25gXG4gICAgICAgICk7XG4gICAgICAgIHJlc29sdmUoKTtcbiAgICAgIH0sIG1pbGxpc2Vjb25kcyk7XG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgcHl0aG9uQ2xpZW50ID0gbmV3IFB5dGhvbkxhbmd1YWdlQ2xpZW50KClcbnB5dGhvbkNsaWVudC5jcmVhdGVEZWJ1Z2dlclByb3ZpZGVyID0gY3JlYXRlRGVidWdnZXJQcm92aWRlcjsgLy8gYWRkIHRoZSBkZWJ1Z2dlclxubW9kdWxlLmV4cG9ydHMgPSBweXRob25DbGllbnQ7XG4iXX0= -======= //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiXSwibmFtZXMiOlsiY3AiLC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T4ge1xuICAgICAgaWYgKGNvZGUgIT09IDAgJiYgc2lnbmFsID09IG51bGwpIHtcbiAgICAgICAgYXRvbS5ub3RpZmljYXRpb25zLmFkZEVycm9yKFwiVW5hYmxlIHRvIHN0YXJ0IHRoZSBQeXRob24gbGFuZ3VhZ2Ugc2VydmVyLlwiLCB7XG4gICAgICAgICAgZGlzbWlzc2FibGU6IHRydWUsXG4gICAgICAgICAgYnV0dG9uczogW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICB0ZXh0OiBcIkluc3RhbGwgSW5zdHJ1Y3Rpb25zXCIsXG4gICAgICAgICAgICAgIG9uRGlkQ2xpY2s6ICgpID0+IGF0b20ud29ya3NwYWNlLm9wZW4oXCJhdG9tOi8vY29uZmlnL3BhY2thZ2VzL2lkZS1weXRob25cIiksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICB0ZXh0OiBcIkRvd25sb2FkIFB5dGhvblwiLFxuICAgICAgICAgICAgICBvbkRpZENsaWNrOiAoKSA9PiBzaGVsbC5vcGVuRXh0ZXJuYWwoXCJodHRwczovL3d3dy5weXRob24ub3JnL2Rvd25sb2Fkcy9cIiksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIF0sXG4gICAgICAgICAgZGVzY3JpcHRpb246XG4gICAgICAgICAgICBcIk1ha2Ugc3VyZSB0byBpbnN0YWxsIGBweWxzYCAwLjE5IG9yIG5ld2VyIGJ5IHJ1bm5pbmc6XFxuXCIgK1xuICAgICAgICAgICAgXCJgYGBcXG5cIiArXG4gICAgICAgICAgICBgJHtweXRob259IC1tIHBpcCBpbnN0YWxsICdweXRob24tbGFuZ3VhZ2Utc2VydmVyW2FsbF0nXFxuYCArXG4gICAgICAgICAgICBcImBgYFwiLFxuICAgICAgICB9KVxuICAgICAgfVxuICAgIH0pXG4gICAgcmV0dXJuIGNoaWxkUHJvY2Vzc1xuICB9XG5cbiAgYXN5bmMgZ2V0U3VnZ2VzdGlvbnMocmVxdWVzdCkge1xuICAgIGlmICghUFlUSE9OX1JFR0VYLnRlc3QocmVxdWVzdC5wcmVmaXgpKSByZXR1cm4gbnVsbFxuICAgIHJldHVybiBzdXBlci5nZXRTdWdnZXN0aW9ucyhyZXF1ZXN0KVxuICB9XG5cbiAgZGVhY3RpdmF0ZSgpIHtcbiAgICBkZWJ1Z2dlckRpc3Bvc2UoKVxuICAgIHJldHVybiBQcm9taXNlLnJhY2UoW3N1cGVyLmRlYWN0aXZhdGUoKSwgdGhpcy5jcmVhdGVUaW1lb3V0UHJvbWlzZSgyMDAwKV0pXG4gIH1cblxuICBjcmVhdGVUaW1lb3V0UHJvbWlzZShtaWxsaXNlY29uZHMpIHtcbiAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgbGV0IHRpbWVvdXQgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgY2xlYXJUaW1lb3V0KHRpbWVvdXQpXG4gICAgICAgIHRoaXMubG9nZ2VyLmVycm9yKGBTZXJ2ZXIgZmFpbGVkIHRvIHNodXRkb3duIGluICR7bWlsbGlzZWNvbmRzfW1zLCBmb3JjaW5nIHRlcm1pbmF0aW9uYClcbiAgICAgICAgcmVzb2x2ZSgpXG4gICAgICB9LCBtaWxsaXNlY29uZHMpXG4gICAgfSlcbiAgfVxufVxuXG5jb25zdCBweXRob25DbGllbnQgPSBuZXcgUHl0aG9uTGFuZ3VhZ2VDbGllbnQoKVxucHl0aG9uQ2xpZW50LmNyZWF0ZURlYnVnZ2VyUHJvdmlkZXIgPSBjcmVhdGVEZWJ1Z2dlclByb3ZpZGVyIC8vIGFkZCB0aGUgZGVidWdnZXJcbm1vZHVsZS5leHBvcnRzID0gcHl0aG9uQ2xpZW50XG4iXX0= ->>>>>>> master From aa3c181c1a9a554f63d317c844105a7d0846ce76 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sun, 14 Mar 2021 23:54:41 -0500 Subject: [PATCH 6/8] chore: pnpm format --- dist/main.js | 4 ++-- lib/main.js | 35 ++++++++++++----------------------- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/dist/main.js b/dist/main.js index dc86687c..00fbfe71 100644 --- a/dist/main.js +++ b/dist/main.js @@ -88,7 +88,7 @@ class PythonLanguageClient extends AutoLanguageClient { text: "Download Python", onDidClick: () => shell.openExternal("https://www.python.org/downloads/") }], - description: "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + `${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` +"```" + description: "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + "```" }); } }); @@ -121,4 +121,4 @@ const pythonClient = new PythonLanguageClient(); pythonClient.createDebuggerProvider = _main.createDebuggerProvider; // add the debugger module.exports = pythonClient; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiXSwibmFtZXMiOlsiY3AiLCJyZXF1aXJlIiwic2hlbGwiLCJBdXRvTGFuZ3VhZ2VDbGllbnQiLCJkZXRlY3RWaXJ0dWFsRW52IiwiZGV0ZWN0UGlwRW52IiwicmVwbGFjZVBpcEVudlBhdGhWYXIiLCJzYW5pdGl6ZUNvbmZpZyIsIlBZVEhPTl9SRUdFWCIsIlB5dGhvbkxhbmd1YWdlQ2xpZW50IiwiZ2V0R3JhbW1hclNjb3BlcyIsImdldExhbmd1YWdlTmFtZSIsImdldFNlcnZlck5hbWUiLCJnZXRSb290Q29uZmlndXJhdGlvbktleSIsImFjdGl2YXRlIiwiYXRvbSIsImNvbmZpZyIsInVuc2V0IiwibWFwQ29uZmlndXJhdGlvbk9iamVjdCIsImNvbmZpZ3VyYXRpb24iLCJweWxzIiwiY29uZmlndXJhdGlvblNvdXJjZXMiLCJweWxzQ29uZmlndXJhdGlvblNvdXJjZXMiLCJyb3BlIiwicGx1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YXJUaW1lb3V0KHRpbWVvdXQpXG4gICAgICAgIHRoaXMubG9nZ2VyLmVycm9yKGBTZXJ2ZXIgZmFpbGVkIHRvIHNodXRkb3duIGluICR7bWlsbGlzZWNvbmRzfW1zLCBmb3JjaW5nIHRlcm1pbmF0aW9uYClcbiAgICAgICAgcmVzb2x2ZSgpXG4gICAgICB9LCBtaWxsaXNlY29uZHMpXG4gICAgfSlcbiAgfVxufVxuXG5jb25zdCBweXRob25DbGllbnQgPSBuZXcgUHl0aG9uTGFuZ3VhZ2VDbGllbnQoKVxucHl0aG9uQ2xpZW50LmNyZWF0ZURlYnVnZ2VyUHJvdmlkZXIgPSBjcmVhdGVEZWJ1Z2dlclByb3ZpZGVyIC8vIGFkZCB0aGUgZGVidWdnZXJcbm1vZHVsZS5leHBvcnRzID0gcHl0aG9uQ2xpZW50XG4iXX0= \ No newline at end of file diff --git a/lib/main.js b/lib/main.js index 49adabb0..6cc999fd 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,22 +1,9 @@ const cp = require("child_process") -const { - shell -} = require("electron") -const { - AutoLanguageClient -} = require("atom-languageclient") -const { - detectVirtualEnv, - detectPipEnv, - replacePipEnvPathVar, - sanitizeConfig -} = require("./utils") +const { shell } = require("electron") +const { AutoLanguageClient } = require("atom-languageclient") +const { detectVirtualEnv, detectPipEnv, replacePipEnvPathVar, sanitizeConfig } = require("./utils") -import { - createDebuggerProvider, - activate as debuggerActivate, - dispose as debuggerDispose -} from "./debugger/main" +import { createDebuggerProvider, activate as debuggerActivate, dispose as debuggerDispose } from "./debugger/main" // Ref: https://github.com/nteract/hydrogen/blob/master/lib/autocomplete-provider.js#L33 // adapted from http://stackoverflow.com/q/5474008 @@ -69,9 +56,9 @@ class PythonLanguageClient extends AutoLanguageClient { }) childProcess.on("error", (err) => { const description = - err.code == "ENOENT" ? - `No Python interpreter found at \`${python}\`.` : - `Could not spawn the Python interpreter \`${python}\`.` + err.code == "ENOENT" + ? `No Python interpreter found at \`${python}\`.` + : `Could not spawn the Python interpreter \`${python}\`.` atom.notifications.addError("`ide-python` could not launch your Python runtime.", { dismissable: true, description: `${description}

If you have Python installed please set "Python Executable" setting correctly. If you do not please install Python.

`, @@ -82,7 +69,8 @@ class PythonLanguageClient extends AutoLanguageClient { if (code !== 0 && signal == null) { atom.notifications.addError("Unable to start the Python language server.", { dismissable: true, - buttons: [{ + buttons: [ + { text: "Install Instructions", onDidClick: () => atom.workspace.open("atom://config/packages/ide-python"), }, @@ -91,7 +79,8 @@ class PythonLanguageClient extends AutoLanguageClient { onDidClick: () => shell.openExternal("https://www.python.org/downloads/"), }, ], - description: "Make sure to install `pyls` 0.19 or newer by running:\n" + + description: + "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + `${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` + @@ -125,4 +114,4 @@ class PythonLanguageClient extends AutoLanguageClient { const pythonClient = new PythonLanguageClient() pythonClient.createDebuggerProvider = createDebuggerProvider // add the debugger -module.exports = pythonClient \ No newline at end of file +module.exports = pythonClient From 5b388b2471de0e555cc62c33ee91cbf28eb4d398 Mon Sep 17 00:00:00 2001 From: tillhainbach <33448151+tillhainbach@users.noreply.github.com> Date: Mon, 22 Mar 2021 14:42:14 +0100 Subject: [PATCH 7/8] fix(pyls-mypy): set live-mode default to true Set default live-mode to pyls-mypy defaults. Co-authored-by: Amin Yahyaabadi --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ff4ac07..deb4aa8a 100644 --- a/package.json +++ b/package.json @@ -458,7 +458,7 @@ "title": "Live mode", "type": "boolean", "order": 1, - "default": false, + "default": true, "description": "Turn on live mode (If disabled, mypy linters on file save)." } } From cd4c12dcac98dd7906bd5e02a5b361c1b5f8723a Mon Sep 17 00:00:00 2001 From: Till Hainbach Date: Tue, 23 Mar 2021 11:51:46 +0100 Subject: [PATCH 8/8] docs(mypy): update live-mode description --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index deb4aa8a..51aaa508 100644 --- a/package.json +++ b/package.json @@ -459,7 +459,7 @@ "type": "boolean", "order": 1, "default": true, - "description": "Turn on live mode (If disabled, mypy linters on file save)." + "description": "Turn on live mode. If disabled, mypy linters on file save. Note: Linting on file save may not work on all machines." } } },