bbcmicrobit / bbcmicrobit/PythonEditor

Code hinter causes incorrect entry

Open
#141 6 comments 0 reactions 0 assignees View on GitHub
Autocomplete bug
Dominant language
JavaScript
Stars
201
Forks
126
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.