Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not updating with trailing newlines in OCaml #84

Open
frangio opened this issue Apr 29, 2018 · 1 comment
Open

Not updating with trailing newlines in OCaml #84

frangio opened this issue Apr 29, 2018 · 1 comment

Comments

@frangio
Copy link

frangio commented Apr 29, 2018

When using Codi in OCaml code, trailing newlines will prevent Codi from updating.

Additionally, newlines in the middle of the code result in the last line showing as "Syntax error" while it's being edited, which doesn't happen otherwise.

  • Linux 4.14
  • Neovim v0.2.2
  • script from util-linux 2.32
  • OCaml 4.06.0
@metakirby5
Copy link
Owner

This is due to how OCaml handles newlines. We typically assume there will be one prompt per line of input, but that is not always the case. This can be addressed in a preprocess. I currently don't have time to work on this, but am happy to merge in a fix for it.

screen shot 2018-05-07 at 20 13 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants