From 2e9060cac2654dacc506834dd1566eb109c8524f Mon Sep 17 00:00:00 2001 From: Stella <100439259+StellaHuang95@users.noreply.github.com> Date: Tue, 4 Oct 2022 17:28:43 -0700 Subject: [PATCH 1/3] update versions exposed to users --- .../Environments/AddExistingEnvironmentView.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Python/Product/PythonTools/PythonTools/Environments/AddExistingEnvironmentView.cs b/Python/Product/PythonTools/PythonTools/Environments/AddExistingEnvironmentView.cs index 12f453bdeb..24aa92fc90 100644 --- a/Python/Product/PythonTools/PythonTools/Environments/AddExistingEnvironmentView.cs +++ b/Python/Product/PythonTools/PythonTools/Environments/AddExistingEnvironmentView.cs @@ -51,16 +51,8 @@ ProjectView selectedProject }; public static IList VersionNames { get; } = new[] { - "2.5", - "2.6", - "2.7", - "3.0", - "3.1", - "3.2", - "3.3", - "3.4", - "3.5", - "3.6", + // we only support creating environments of offically supported versions + // see https://devguide.python.org/versions/ "3.7", "3.8", "3.9", From 1ce0b7ff80f051f63489ae66bfcc27e976427192 Mon Sep 17 00:00:00 2001 From: Stella <100439259+StellaHuang95@users.noreply.github.com> Date: Thu, 12 Oct 2023 11:58:28 -0700 Subject: [PATCH 2/3] fix warning repeatedly showing up --- .../LanguageServerClient/PythonLanguageClient.cs | 12 ------------ .../PythonTools/Project/PythonProjectNode.cs | 9 +++++++++ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs b/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs index dbd65fafcf..4f70f64f3d 100644 --- a/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs +++ b/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs @@ -396,18 +396,6 @@ private LanguageServerSettings.PythonSettings GetSettings(Uri scopeUri = null) PythonConstants.TypeCheckingModeSetting, null, Site, PythonWorkspaceContextProvider.Workspace, out _) ?? _analysisOptions.TypeCheckingMode; - var ver3 = new Version(3, 0); - var version = context.InterpreterConfiguration.Version; - // show a warning if the python version is not supported - if (version.ToLanguageVersion() == PythonLanguageVersion.None) - { - MessageBox.ShowWarningMessage(Site, Strings.PythonVersionNotSupportedInfoBarText.FormatUI(context.InterpreterConfiguration.Description)); - } - else if (context.InterpreterConfiguration.Version < ver3) - { - MessageBox.ShowWarningMessage(Site, Strings.WarningPython2NotSupported); - } - // get task list tokens from options var taskListTokens = new List(); var taskListService = Site.GetService(); diff --git a/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs b/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs index 269765c066..46c0c2b6cb 100644 --- a/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs +++ b/Python/Product/PythonTools/PythonTools/Project/PythonProjectNode.cs @@ -28,6 +28,7 @@ using Microsoft.Build.Execution; using Microsoft.PythonTools.Commands; using Microsoft.PythonTools.Common; +using Microsoft.PythonTools.Common.Parsing; using Microsoft.PythonTools.Environments; using Microsoft.PythonTools.Infrastructure; using Microsoft.PythonTools.Interpreter; @@ -273,6 +274,14 @@ internal set { MSBuildConstants.InterpreterIdProperty, ReplaceMSBuildPath(_active.Configuration.Id) ); + var ver3 = new Version(3, 0); + var version = _active.Configuration.Version; + // show a warning if the python version is not supported + if (version.ToLanguageVersion() == PythonLanguageVersion.None) { + Utility.MessageBox.ShowWarningMessage(Site, Strings.PythonVersionNotSupportedInfoBarText.FormatUI(_active.Configuration.Description)); + } else if (_active.Configuration.Version < ver3) { + Utility.MessageBox.ShowWarningMessage(Site, Strings.WarningPython2NotSupported); + } } else { BuildProject.SetProperty(MSBuildConstants.InterpreterIdProperty, ""); } From c6aeb955edabf6936b05dda3e2e00ad3b3078d30 Mon Sep 17 00:00:00 2001 From: Stella <100439259+StellaHuang95@users.noreply.github.com> Date: Tue, 17 Oct 2023 21:32:23 -0700 Subject: [PATCH 3/3] update debugpy version --- Build/debugpy-version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/debugpy-version.txt b/Build/debugpy-version.txt index 60fdb8d5d2..afa2b3515e 100644 --- a/Build/debugpy-version.txt +++ b/Build/debugpy-version.txt @@ -1 +1 @@ -1.6.7 \ No newline at end of file +1.8.0 \ No newline at end of file