brr icon indicating copy to clipboard operation
brr copied to clipboard

OCaml console improvements

Open dbuenzli opened this issue 5 years ago • 3 comments

A few things that could be improved in the OCaml console

  • [ ] Error reporting highlighting (note that #use does a good job at this as per built-in toplevel support)
  • [ ] WYSWYG history management
  • [ ] Completion (upstream ?)
  • [ ] Toplevel printer story (this should likely be solved upstream)
  • [ ] A worfklow for app specific toplevel init ?
  • [ ] See if we can extend #use to act over URLs.

dbuenzli avatar Sep 13 '20 16:09 dbuenzli

What is the toplevel printer story ? By completion, you mean completion in the ocaml top loop ?

hhugo avatar Nov 01 '20 20:11 hhugo

Note when I meant upstream, I meant upstream in ocaml not in js_of_ocaml.

In general I think we are not well served by the toploop APIs upstream and that's where most of the improvements should go. Since it then benefits a whole range of derived projects.

What is the toplevel printer story ?

Implementing this attribute scheme in ocaml for automatically installing toplevel printers.

By completion, you mean completion in the ocaml top loop ?

Yes. E.g. a trie on the ids of loaded cmis, or maybe even try to summon merlin at some point. I'd also be interested in having something for that in down, see here.

dbuenzli avatar Nov 01 '20 21:11 dbuenzli

Thanks for the clarification

hhugo avatar Nov 01 '20 21:11 hhugo