Closed little-dude closed 7 years ago
I submitted an issue on the xi-editor repo, since I don't understand the error returned by the core.
Not completely related to this issue, but I'd like to use https://github.com/potocpav/xi_glium/blob/master/src/core.rs, would you consider putting it in a crate? For now I just copy/pasted it to play with it.
I will have time to look into the issue on Monday.
There are many issues with the current approach (glium + glium_text), so I might end up switching to a different library for the GUI. Splitting off the core is a logical middle-step. Since there is now interest in that, I will probably just do it on Monday too.
I'm sorry I'm late. Fixed the issue, it was caused by calling the back-end with an "id" parameter, when none is expected. The back-end returned an error which the front-end didn't know how to parse, so it crashed.
I split the fn call
into fn notify
and fn request
to generate the "id" only when needed.
About making a library from core.rs; that will require quite a bit of refactoring, so I will not do it as a part of this issue.
Thank you!
About making a library from core.rs; that will require quite a bit of refactoring, so I will not do it as a part of this issue.
That's ok for now I'm just copying the file in my workspace. What kind of refactoring are you thinking about? Maybe i can help.
What I had in mind: get rid of unwraps, document public functions, possibly have options for debug output / backtrace of the xi-editor. If you are enthusiastic, you can just create your own project and do it as you wish :-)
Hi,
I'm seeing the following panick when running xi_glium:
This is with the current HEAD of xi-edit. I know that the README says that
xi_glium
works with https://github.com/google/xi-editor/commit/7f7b88590d413dc4531bf1d1f57f6dfcb0117966 but it's a pretty old commit already andxi-editor
does not build with my current rust version.Rust version:
rustc 1.13.0-nightly (2c01bb885 2016-08-31)
Is this an issue with
xi-editor
itself, withxi_glium
?