bbcmicrobit / bbcmicrobit/PythonEditor

Code hinter causes incorrect entry

未關閉
#141 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Autocomplete bug
主要語言
JavaScript
星號
201
分支
126
PR 合併指標
30 天內沒有已合併 PR

描述

This case found when typing in a _variables.py_ example.

Up to here, all entries and behavior is fine (note cursor position and code hint):
![image](https://user-images.githubusercontent.com/1266318/56397438-9456a200-61f8-11e9-81a2-f709e378046d.png)

And here, one ")" character later, still fine (though I don't see how try/except is a good suggestion)
![image](https://user-images.githubusercontent.com/1266318/56397442-96b8fc00-61f8-11e9-92ef-8b2d2d172ade.png)

But then upon hitting enter key, that "a)" is replaced with the hinted block - not at all what user expects at that moment.
![image](https://user-images.githubusercontent.com/1266318/56397444-9ae51980-61f8-11e9-9448-56e8be8e6f4f.png)

貢獻指南

開啟貢獻指南

研究方向

在 variables.py 範例中輸入內容以重現此問題,並按照螢幕截圖中顯示的游標和程式碼提示狀態進行操作。檢查在右括號後按下 Enter 時會發生什麼;當輸入的「a)」沒有被建議的區塊意外取代時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
frontend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。