Giter Site home page Giter Site logo

"edit" command crashes about rbw HOT 5 CLOSED

doy avatar doy commented on August 23, 2024
"edit" command crashes

from rbw.

Comments (5)

doy avatar doy commented on August 23, 2024

does /usr/bin/vim exist on your system? what other values for EDITOR did you try?

from rbw.

kkga avatar kkga commented on August 23, 2024

I've tried any console text editor available on my system (vim, nvim, nano, kak), but it still shows the same error.

I'm on Void Linux.

~ > whereis vim
vim: /usr/bin/vim /usr/share/vim /usr/share/man/man1/vim.1

~ > rbw edit GitHub
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/kkga/.cargo/registry/src/github.com-1ecc6299db9ec823/rbw-1.3.0/src/edit.rs:44:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

~ > which nano
/bin/nano

~ > EDITOR=/bin/nano rbw edit GitHub
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/kkga/.cargo/registry/src/github.com-1ecc6299db9ec823/rbw-1.3.0/src/edit.rs:44:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

from rbw.

doy avatar doy commented on August 23, 2024

do you have the VISUAL env var set?

from rbw.

kkga avatar kkga commented on August 23, 2024

do you have the VISUAL env var set?

This did the trick, thanks.

from rbw.

das-s avatar das-s commented on August 23, 2024

I ran into the same error when VISUAL is set with editor flags, e.g.export VISUAL="emacsclient -c" or export VISUAL="vim -v". Editing without editor flags works though. Could this be related to insufficient escaping?

from rbw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.