Skip to content

Python sample Playground debugging uses Windows-only paths and PowerShell command on macOS #271

Description

Description:

Summary

The README includes macOS environment setup, but the sample’s VS Code F5 configuration contains Windows-specific interpreter paths, a Windows PATH separator, and a PowerShell executable name unavailable on Mac.

Sample: https://github.com/microsoft/Agent365-Samples/tree/main/python/agent-framework/sample-agent

Environment

macOS on Apple Silicon, Python 3.11.15, PowerShell 7.6.0 installed as pwsh.

Steps to Reproduce

Create the documented virtual environment on macOS, install PowerShell, and select Debug in Microsoft 365 Agents Playground in VS Code. The configuration references these incompatible values:

Location Configured Value macOS Equivalent
settings.json .venv/Scripts/python.exe python
launch.json, Python launch .venv/Scripts/python.exe python
launch.json, Playground PATH ; separator : separator
tasks.json, token refresh powershell pwsh

Expected Behavior

The documented Playground debug workflow should resolve the correct interpreter and executables on macOS without manual configuration changes.

Suggested Resolution

Use portable interpreter discovery and platform-specific overrides for the Python launch, Playground PATH, and token-refresh task. I applied macOS overrides locally while retaining the Windows defaults; VS Code configuration checks pass.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions