Skip to content

Fix spurious unresolved interpreter warning from ${workspaceFolder}-scoped global defaultInterpreterPath#1334

Merged
eleanorjboyd merged 2 commits intomicrosoft:mainfrom
00zayn:fix/defaultinterpreterpath-workspacefolder-global
Mar 19, 2026
Merged

Fix spurious unresolved interpreter warning from ${workspaceFolder}-scoped global defaultInterpreterPath#1334
eleanorjboyd merged 2 commits intomicrosoft:mainfrom
00zayn:fix/defaultinterpreterpath-workspacefolder-global

Conversation

@00zayn
Copy link
Contributor

@00zayn 00zayn commented Mar 7, 2026

Fixes #1316. Skip evaluating ${workspaceFolder}-scoped python.defaultInterpreterPath during global resolution.

@00zayn
Copy link
Contributor Author

00zayn commented Mar 7, 2026

@microsoft-github-policy-service agree

karthiknadig
karthiknadig previously approved these changes Mar 17, 2026
traceWarn(
`${logPrefix} defaultInterpreterPath '${userInterpreterPath}' contains unresolved variables, falling back to auto-discovery`,
if (!scope && userInterpreterPath.includes('${workspaceFolder}')) {
traceVerbose(
Copy link
Member

@karthiknadig karthiknadig Mar 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be we should explicitly return undefined here (after logging)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent was to skip ${workspaceFolder}-eval during global resolution & just fall through to Priority 4 auto-discovery w/o recording an error, rather than treating it as unresolved.

@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 17, 2026
@mjbvz mjbvz modified the milestones: 1.112.0, 1.113.0 Mar 17, 2026
bpasero
bpasero previously approved these changes Mar 17, 2026
eleanorjboyd
eleanorjboyd previously approved these changes Mar 18, 2026
@eleanorjboyd eleanorjboyd dismissed stale reviews from bpasero, karthiknadig, and themself via 54c55e8 March 18, 2026 22:55
@eleanorjboyd eleanorjboyd added the bug Issue identified by VS Code Team member as probable bug label Mar 18, 2026
@eleanorjboyd eleanorjboyd enabled auto-merge (squash) March 18, 2026 23:04
@00zayn
Copy link
Contributor Author

00zayn commented Mar 19, 2026

@microsoft-github-policy-service agree

@eleanorjboyd eleanorjboyd merged commit d2ac600 into microsoft:main Mar 19, 2026
43 of 44 checks passed
@00zayn 00zayn deleted the fix/defaultinterpreterpath-workspacefolder-global branch March 19, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

${workspaceFolder} in python.defaultInterpreterPath reported unresolvable on startup

7 participants