Skip to content

Python version is always incorrect even when clearing & reloading cachine #23661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DonJayamanne opened this issue Jun 24, 2024 · 0 comments · Fixed by #23662
Closed

Python version is always incorrect even when clearing & reloading cachine #23661

DonJayamanne opened this issue Jun 24, 2024 · 0 comments · Fixed by #23662
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@DonJayamanne
Copy link

Not sure why this change was introduced, however removing this fixes the issue
https://github.com/microsoft/vscode-python/pull/23425/files#diff-2f004b3ebc3e9fe31027486e129a5263c35448eba497b70eeeeabd8aeb58d0f9

        const info = EnvironmentInfoService.getInterpreterInfo(env);
        if (info !== undefined) {
            this.cache.set(normCasePath(interpreterPath), deferred);
            deferred.resolve(info);
            return info;
        }

The older versions didnt have it, hence while comparing the code found this difference and tried without it, and bingo.

@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Jun 24, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 24, 2024
@DonJayamanne DonJayamanne self-assigned this Jun 24, 2024
DonJayamanne added a commit that referenced this issue Jun 24, 2024
eleanorjboyd pushed a commit to eleanorjboyd/vscode-python that referenced this issue Jun 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants