jbdoderlein / BetterOCaml

A small but efficient, intuitive and responsive OCaml IDE right in your browser! Ships OCaml v5.1.1, interpreter by your browser (so it works offline!), compiled with js_of_ocaml.
https://perso.eleves.ens-rennes.fr/people/jean-baptiste.doderlein/betterocaml
Apache License 2.0
37 stars 8 forks source link

🐛 fix error highlight location of js execute_callback #74

Closed AlexisHamon closed 5 months ago

AlexisHamon commented 5 months ago

The position is currently not updated when calling 'execute' from the js code. This causes the highlight to be moved to the first line when code is executed from the editor.

Sample code:

let a = 5;;

let b = 3;;

a + b;;

let a = ;;