microsoft / microsoft/Agent365-python
Python sample Playground debugging uses Windows-only paths and PowerShell command on macOS
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 41
- Forks
- 23
- Merge medio
- 7 h 43 min
- PR fusionados (30 d)
- 3
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
En la configuración de VS Code de sample-agent, inspecciona primero settings.json, launch.json y tasks.json. Compara la configuración del intérprete de Python, Playground PATH y el comando token-refresh con el flujo de trabajo documentado para macOS y, después, ejecuta las comprobaciones de configuración de VS Code. Se considera terminado cuando el flujo de depuración de Playground funciona en macOS y se mantienen los valores predeterminados de Windows.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- powershell, python, vscode
- Área
- developer-experience, tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Activo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 78/100