-
Notifications
You must be signed in to change notification settings - Fork 274
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
Edit buffer crashes #86
Comments
@romgrk I can't reproduce this error on master 🤔, are you seeing or doing anything else also did you run the bootstrap command? What system are you on? |
Yes, I've ran $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
$ esy --version
0.5.6 Not sure how to debug esy's ocaml, but if you have some tips I'd be happy to. |
Thanks for logging the issue, @romgrk ! Usually this exception comes from here: oni2/src/editor/Neovim/NeovimApi.re Line 137 in 8cf65cd
And it means that we didn't get a response from a request we sent to the Neovim API, but we were expecting one. It'd be helpful to log out the We saw cases where when it picked up an It'd be interesting too to run the tests and see if those pass - |
Wouldn't it be interesting to use another list library that doesn't throw on an empty list but returns options, so you are required to handle these cases explicitly. Even though you probably have no very good options here to handle the empty list |
Yes, was just thinking about this - we should at the very least check |
Think we could definitely do this without a new dependency, by wrapping the call in a |
Wouldn't a patternmatch also be a good alternative? |
@bryphe here is the result of the tests: https://gistpreview.github.io/?a07cbe32ba939e9f968e6f1ea157deb4 Logging the method names before the crash says that the last method called is |
Steps:
esy x Oni2
:e Oni.install
Result: Oni2 crashes
Expected: buffer is opened
Terminal log:
The text was updated successfully, but these errors were encountered: