Code hinter causes incorrect entry

Open
#141 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Reproduce the issue while typing in the variables.py example, following the cursor and code-hint states shown in the screenshots. Check what happens when Enter is pressed after the closing parenthesis; done means the typed “a)” is not unexpectedly replaced by the suggested block.

Written by the indexing model from the issue text.

Description

Autocomplete bug

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

And here, one ")" character later, still fine (though I don't see how try/except is a good suggestion)
image

But then upon hitting enter key, that "a)" is replaced with the hinted block - not at all what user expects at that moment.
image

Dominant language
JavaScript
Stars
201
Forks
126
PR merge metrics
No merged PRs in 30d

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.

More from bbcmicrobit/PythonEditor

All issues in bbcmicrobit/PythonEditor

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.