Giter Club home page Giter Club logo

Comments (8)

archseer avatar archseer commented on May 22, 2024

I think this should be fixed on master by now. Let me know to reopen if necessary.

from helix.

cjohansson avatar cjohansson commented on May 22, 2024

The issue remains, tested on commit b873fb9897bb5b24a60cca3d9fa69285446a857f

from helix.

archseer avatar archseer commented on May 22, 2024

What terminal emulator are you using?

from helix.

cjohansson avatar cjohansson commented on May 22, 2024
$ zsh --version
zsh 5.8 (x86_64-ubuntu-linux-gnu)
$ basename "/"$(ps -f -p $(cat /proc/$(echo $$)/stat | cut -d \  -f 4) | tail -1 | sed 's/^.* //')
gnome-terminal-server
$ echo $TERM
xterm-256color

But I get the exact same issue in bash, see below (or am I doing something wrong here?)

$ bash        
$ cd ~/Downloads/helix-editor/helix/
$ RUST_BACKTRACE=1 hx
thread 'main' panicked at 'index out of bounds: the len is 1920 but the index is 49296', helix-tui/src/buffer.rs:185:14
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14
   2: core::panicking::panic_bounds_check
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5
   3: helix_tui::buffer::Buffer::clear_with
   4: helix_term::ui::prompt::Prompt::render_prompt
   5: helix_term::compositor::Compositor::render
   6: helix_term::application::Application::handle_terminal_events
   7: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   8: tokio::park::thread::CachedParkThread::block_on
   9: tokio::runtime::thread_pool::ThreadPool::block_on
  10: tokio::runtime::Runtime::block_on
  11: hx::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

from helix.

archseer avatar archseer commented on May 22, 2024

Terminal as in alacritty, kitty, GNOME terminal.

I was able to replicate the bug, it seems to happen on a large folder where there's too many completions. Looking at a quick fix now

from helix.

archseer avatar archseer commented on May 22, 2024

Pushed a fix in 8372395

from helix.

cjohansson avatar cjohansson commented on May 22, 2024

Thanks, I can confirm it is working now

from helix.

archseer avatar archseer commented on May 22, 2024

Thanks for reporting it!

from helix.

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.