alibaba / alibaba/AliOS-Things

[Bug Report]: HaaS Studio的Python快速开发功能,部署运行和串口必须运行在终端为PowerShell模式才可以工作,git bash模式无法工作。

Open
#1,892 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
4.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### 联系方式

35227619@qq.com

### 您发现了什么问题

HaaS Studio的Python快速开发功能,部署运行和串口必须运行在终端为PowerShell模式才可以工作,git bash模式无法工作。我需要使用git的bash模式作为常用终端。建议增加windows下,git bash终端的支持。
运行环境: haas-studio v2.2.0
固件版本: v2.2.0

### 分支

rel_3.3.0 (Main)

### 请选择您发现此问题的解决方案名称

py_engine_esp32_demo

### 日志

```shell
$ "C:\ProgramData\aos\miniconda3\condabin\conda.bat" activate C:\ProgramData\aos\miniconda3,set PATH=C:\ProgramData\aos\miniconda3;C:\ProgramData\aos\miniconda3\Scripts;C:\ProgramData\aos\miniconda3\Library\bin;%PATH%&python c:\Users\walker\.vscode\extensions\haas.haas-studio-2.2.0\asserts\mpy_tools\mpytool.py -p COM5 -f c:\Users\walker\workspace\hello\src -t c:\Users\walker\.vscode\extensions\haas.haas-studio-2.2.0\asserts\mpy_tools

ArgumentError: activate does not accept more than one argument:
['C:ProgramDataaosminiconda3,set', 'PATH=C:ProgramDataaosminiconda3']

bash: C:ProgramDataaosminiconda3Scripts: command not found
bash: C:ProgramDataaosminiconda3Librarybin: command not found
bash: bg: %PATH%: no such job
bash: python: command not found
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the logged deployment command in Git Bash and comparing it with PowerShell behavior. Inspect the referenced extension file, asserts/mpy_tools/mpytool.py, along with how HaaS Studio invokes it. Done means Python deployment and serial functionality work in Windows Git Bash without the reported conda, PATH, or command-not-found errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, git, powershell, python
Domain
devtools, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.