learn-ocaml
learn-ocaml copied to clipboard
Highlight and write something on "Replace this string with your implementation."
Related user(s):
No response
Related issue(s) or PR(s):
No response
Related project scope(s):
web-app UI
Bug description:
When I open an exercice and highlight the string "Replace this string with your implementation." :
When I type a letter to replace the string, the letter appears after the two semicolons :
To reproduce:
No response
Expected behavior:
When I type letter on the highlighted text, the letter should appears before the two semicolons :
learn-ocaml --version
v1.0.0
git describe --long --always --abbrev=40 --tags
No response
What OS do you use?
GNU/Linux
What OS version/distribution do you use?
Ubuntu 20.04.6 LTS
What browser(s) do you use with learn-ocaml?
Firefox, Edge
What browser(s) version did you used to reproduce the issue?
Firefox115.6.0esr; Edge version 121.0.2277.83
Screenshots (if need be):
No response
Additional context:
No response
Can indeed reproduce, thanks for reporting. At the moment we are bound to a tweaked (and fixed) version of the Ace editor, which comes with many bugs and weirdnesses (in short, it is expected to allow our automatic-indentation mode, but provides no way to control concurrent operations, hence race conditions such as the one you are reporting). The proper fix for this will probably be to plug-in a more modern and more reliable editor in place of Ace here, but that will require quite a bit of work.