RT-Thread / RT-Thread/rt-thread

[Bug] env2.0引入的部分python语法不兼容问题

Open
#9,141 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

RT-Thread Version

4.x 5.0.0 5.0.2

Hardware Type/Architectures

none

Develop Toolchain

MDK Keil

Describe the bug

在2.0版本env-windows工具测试生成mdk工程出现的问题:

  • 内核版本:经测试除了当前 master 分支,4.x、5.0.x、5.1.0 版本内核都会这个问题
  • 分析:主要原因是env2.0升级了py3版本,部分语法和py3不兼容:decode 函数,py3由于字符串已经是utf8了不需要再次decode。如果修改,则所有版本rtt仓库都需要调整 tools/keil iar....py 文件
Other additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the env-windows project-generation path and the tools/keil, tools/iar, and related Python scripts mentioned in the report. Reproduce MDK project generation with env2.0 against the affected RT-Thread 4.x and 5.x versions, then verify the generated projects no longer fail because of Python 3 incompatibilities.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.