alibaba / alibaba/AliOS-Things

[Bug Report]:

Open
#1,947 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

### 联系方式

773751460@qq.com

### 您发现了什么问题

A bug happened!
运行环境:VS code V1.65.1
固件版本:HaaSPython-HaaSEDUK1-v2.1.0

### 分支

master (Default)

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

_No response_

### 日志

```shell
PS I:\test\test_demo> $Env:Path="C:\ProgramData\aos\miniconda3;C:\ProgramData\aos\miniconda3\Scripts;C:\ProgramData\aos\miniconda3\Library\bin;$Env:Path";python c:\Users\Administrator\.vscode\extensions\haas.haas-studio-2.3.1\asserts\burntool\haaseduk1\flash_program.py --bin=i:\HaaSPython-HaaSEDUK1-v2.1.0\HaaSPython-HaaSEDUK1-v2.1.0\HaaSPython-HaaSEDUK1-v2.1.0.bin --bin=i:\HaaSPython-HaaSEDUK1-v2.1.0\HaaSPython-HaaSEDUK1-v2.1.0\littlefs.bin#0xB32000 --port=COM5
File "c:\Users\Administrator\.vscode\extensions\haas.haas-studio-2.3.1\asserts\burntool\haaseduk1\flash_program.py", line 1
SyntaxError: Non-UTF-8 code starting with '\x9a' in file c:\Users\Administrator\.vscode\extensions\haas.haas-studio-2.3.1\asserts\burntool\haaseduk1\flash_program.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
```

Contributor guide

Open the contributing guide

Research direction

Start with asserts/burntool/haaseduk1/flash_program.py and reproduce the reported flash command from the log. Inspect the first line and its encoding handling; done means the script starts without the reported SyntaxError and the relevant flashing test or command proceeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, vscode
Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.