Python sample Playground debugging uses Windows-only paths and PowerShell command on macOS
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- powershell, python, vscode
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Trong cấu hình VS Code của sample-agent, trước tiên hãy kiểm tra settings.json, launch.json và tasks.json. So sánh các cài đặt cho trình thông dịch Python, Playground PATH và lệnh token-refresh với quy trình macOS được tài liệu hóa, sau đó chạy các bước kiểm tra cấu hình VS Code. Được xem là hoàn tất khi quy trình debug Playground hoạt động trên macOS đồng thời giữ nguyên các giá trị mặc định của Windows.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 41
- Fork
- 23
- Merge trung bình
- 7 giờ 43 phút
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/Agent365-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/Agent365-python#249 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/Agent365-python#270 ·
-
[python/agent-framework/sample-agent] Sample dependencies are inconsistent on PyPI — cannot run Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
microsoft/Agent365-python#262 ·
-
microsoft/Agent365-python#257 · 2 bình luận · 1 người được giao ·
-
microsoft/Agent365-python#239 · 1 reaction · 2 người được giao ·
Tất cả issue của microsoft/Agent365-python
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·