Rename refactoring should check whether the target variable exists
維護者通常 7 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
This is a tracking issue for several rename bugs in rope, a Python refactoring library, and it does not name a file or test. Start by reading the linked tickets (#776, #769, #768, #766, #765, #764, #763, #761) to find the concrete rename cases, then reproduce one of them against rope's rename refactoring. Done means a rename whose target name is already taken is rejected with a clear error, and the listed cases are verified against that change.
由索引模型根據 Issue 內容生成。
描述
The following series of tickets all have the same root cause, rope currently doesn't validate whether the target variable name is currently occupied by another existing variable:
- #776
- #769
- #768
- #766
- #765
- #764
- #763
- #761
Collecting here into one big ticket since most of them will likely be resolved by the same solution.
Once this ticket is resolved, we'll go through each ticket to verify that those cases are addressed by the solution.
- 主要語言
- Python
- 星號
- 2.2k
- 分支
- 197
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 5
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python-rope/rope 的其他 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
python-rope/rope#927 ·
維護者通常 7 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
python-rope/rope#926 ·
維護者通常 7 天內回覆
-
simplify.real_code blanks t-strings, so renames inside them edit the wrong offset可能已有人在做 @sean0407 於 10 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 83/100
python-rope/rope#913 ·
維護者通常 7 天內回覆
-
難度 4/5 3-5 天 新手友好度 30/100
python-rope/rope#925 ·
維護者通常 7 天內回覆
-
Extract method/variable and introduce parameter don't check whether the new name is already in use未關閉
難度 3/5 1-2 天 新手友好度 62/100
python-rope/rope#924 ·
維護者通常 7 天內回覆
相似的 Issue
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retries未關閉follow-up
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
-
Built-in QUBO fallback applies bitwise xor to floating binary states可能已有人在做 @iloveeyjafjalla 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
qboson/kaiwu-pytorch-plugin#1702 ·
維護者通常 3 天內回覆
-
bug v2
難度 2/5 1-3 小時 新手友好度 76/100
modelcontextprotocol/python-sdk#3811 ·
維護者通常 1 天內回覆
-
cost:cheap practicality:seen-in-the-wild severity:medium
難度 2/5 1-3 小時 新手友好度 72/100
fairagro/m4.2_advanced_middleware_api#620 ·
維護者通常 1 天內回覆