peltoche / vixi Goto Github PK
View Code? Open in Web Editor NEWA vim like client for the xi backend
License: Apache License 2.0
A vim like client for the xi backend
License: Apache License 2.0
I git-cloned the repo and ran : cargo install --path .
and got the following error:
(xi was not pre-installed
error[E0658]: use of unstable library feature 'mem_take'
--> /home/joe/.cargo/git/checkouts/xi-editor-e3bc3cb50a6bb63b/4f93edb/rust/rope/src/breaks.rs:228:24
|
228 | let leaf = mem::take(&mut self.leaf);
| ^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/61129
error[E0658]: use of unstable library feature 'mem_take'
--> /home/joe/.cargo/git/checkouts/xi-editor-e3bc3cb50a6bb63b/4f93edb/rust/rope/src/spans.rs:130:28
|
130 | let mut leaf = mem::take(&mut self.leaf);
| ^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/61129
Compiling toml v0.5.6
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
error: Could not compile `xi-rope`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `vixi v0.1.0 (/home/joe/src/vixi)`, intermediate artifacts can be found at `/home/joe/src/vixi/target`
Caused by:
build failed
``
Ubuntu 19.04
rustc 1.37.0
I am getting this issue while cargo run
thread 'main' panicked at 'failed to retrieve cli value', src/libcore/option.rs:1038:5
Currently, there's no license available on this project, so it cannot be distributed. Could you please add a license to allow copying and distributing this project freely?
Xi-editor uses Apache 2. Otherwise, there are resources on choosing a license.
Is vixi still being maintained or is it a dead project?
quoting @zellyn : xi-editor/xi-editor#337
Not only is Kakoune an interesting and ambitious redesign of a modal editing UI, but many of the features, such as multiple selections and especially selection splitting, would be an interesting test case for Xi: if you can cover Kakoune functionality, you should be able to cover anything!
There are two separate issues that cause crashes when saving a file with vixi.
event_controller/view.rs line 48
pub fn lines_availables_after(&self, start: u32) -> u32 {
(self.lines.len() as u32) - start
}
start is frequently larger than what lines len gets set to when working with a file over 100 lines
same file line 172.
pub fn update_buffer(&mut self, operations: Vec<Operation>) {
.
.
.
.
let old_buffer = &self.buffer.lines[old_idx + i];
new_buffer.lines.push(Line {
raw: old_buffer.raw.clone(),
ln: operation.ln.map(|ln| ln + i),
is_dirty,
});
new_idx += 1;
}
old_idx += operation.n;
}
indexing into buffer.lines is often at a value too high for the actual length of the vector.
These issues seem related to something elsewhere that prevents the buffer from having an accurate count of its lines.
error[E0433]: failed to resolve: maybe a missing extern crate sys;
?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\lib.rs:22:9
|
22 | pub use sys::size::terminal_size;
| ^^^ maybe a missing extern crate sys;
?
error[E0433]: failed to resolve: maybe a missing extern crate sys;
?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\lib.rs:23:9
|
23 | pub use sys::tty::{is_tty, get_tty};
| ^^^ maybe a missing extern crate sys;
?
error[E0433]: failed to resolve: maybe a missing extern crate sys;
?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\async.rs:5:5
|
5 | use sys::tty::get_tty;
| ^^^ maybe a missing extern crate sys;
?
error[E0433]: failed to resolve: maybe a missing extern crate sys;
?
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:29:5
|
29 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
| ^^^ maybe a missing extern crate sys;
?
error[E0432]: unresolved import sys
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:28:5
|
28 | use sys::Termios;
| ^^^ maybe a missing extern crate sys;
?
Compiling bincode v1.1.3
Compiling toml v0.4.10
error[E0425]: cannot find function get_tty
in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\async.rs:20:36
|
20 | thread::spawn(move || for i in get_tty().unwrap().bytes() {
| ^^^^^^^ not found in this scope
error[E0425]: cannot find function set_terminal_attr
in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:45:9
|
45 | set_terminal_attr(&self.prev_ios).unwrap();
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function get_terminal_attr
in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:90:23
|
90 | let mut ios = get_terminal_attr()?;
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function raw_terminal_attr
in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:93:9
|
93 | raw_terminal_attr(&mut ios);
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function set_terminal_attr
in this scope
--> C:\Users\rog.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.1\src\raw.rs:95:9
|
95 | set_terminal_attr(&ios)?;
| ^^^^^^^^^^^^^^^^^ not found in this scope
Compiling toml v0.5.0
Compiling syn v0.15.30
error: aborting due to 10 previous errors
Some errors have detailed explanations: E0425, E0432, E0433.
For more information about an error, try rustc --explain E0425
.
error: Could not compile termion
.
warning: build failed, waiting for other jobs to finish...
error: build failed
Text occasionally disappears, reappears, and shifts wrongly as I move my cursor about the screen. Here is an example with the default keyboard.toml
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.