From 5444aa79565b606859127d209d127bfacd20c207 Mon Sep 17 00:00:00 2001 From: Stella <100439259+StellaHuang95@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:46:45 -0700 Subject: [PATCH] fix telemetry versioning issue (#8041) --- Build/debugpy-version.txt | 2 +- .../Product/VSInterpreters/Interpreter/PythonRegistrySearch.cs | 3 --- .../Interpreter/WorkspaceInterpreterFactoryProvider.cs | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Build/debugpy-version.txt b/Build/debugpy-version.txt index 9eadd6baa..d2c4b2715 100644 --- a/Build/debugpy-version.txt +++ b/Build/debugpy-version.txt @@ -1 +1 @@ -1.8.6 \ No newline at end of file +1.8.7 \ No newline at end of file diff --git a/Python/Product/VSInterpreters/Interpreter/PythonRegistrySearch.cs b/Python/Product/VSInterpreters/Interpreter/PythonRegistrySearch.cs index bcee7f2f9..7ed28f062 100644 --- a/Python/Product/VSInterpreters/Interpreter/PythonRegistrySearch.cs +++ b/Python/Product/VSInterpreters/Interpreter/PythonRegistrySearch.cs @@ -188,9 +188,6 @@ namespace Microsoft.PythonTools.Interpreter { return null; // Python 2.x is no longer supported. } - if (sysVersion.ToLanguageVersion() == PythonLanguageVersion.None) { - sysVersion = new Version(0, 0); - } if (!InterpreterArchitecture.TryParse(tagKey.GetValue("SysArchitecture", null) as string, out var arch)) { arch = assumedArch; diff --git a/Python/Product/VSInterpreters/Interpreter/WorkspaceInterpreterFactoryProvider.cs b/Python/Product/VSInterpreters/Interpreter/WorkspaceInterpreterFactoryProvider.cs index 8f7d555ef..e991ca6e4 100644 --- a/Python/Product/VSInterpreters/Interpreter/WorkspaceInterpreterFactoryProvider.cs +++ b/Python/Product/VSInterpreters/Interpreter/WorkspaceInterpreterFactoryProvider.cs @@ -316,9 +316,6 @@ namespace Microsoft.PythonTools.Interpreter { var arch = CPythonInterpreterFactoryProvider.ArchitectureFromExe(interpreterPath); var version = CPythonInterpreterFactoryProvider.VersionFromSysVersionInfo(interpreterPath); - if (version.ToLanguageVersion() == PythonLanguageVersion.None) { - version = new Version(0, 0); - } var name = Path.GetFileName(prefixPath); var description = name;