Skip to content
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

thread 'main' panicked on specific cheatsheet #917

Open
pushou opened this issue Oct 1, 2024 · 1 comment
Open

thread 'main' panicked on specific cheatsheet #917

pushou opened this issue Oct 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pushou
Copy link

pushou commented Oct 1, 2024

Describe the bug
One of my cheatsheet produces error

export RUST_BACKTRACE=1; navi
thread 'main' panicked at 'byte index 2 is not a char boundary; it is inside '\u{a0}' (bytes 1..3) of `# do not fragment off`', src/parser.rs:110:22
                 stack backtrace:

To Reproduce
Steps to reproduce the behavior:

  1. Create a cheatsheet with
% bgp,cisco,pushou

# other
route-map nodf permit 10
set ip df 0
interface FastEthernet2
ip policy route-map nodf
  1. Launch navi

  2. Use UP arrow key

  3. See error trace

export RUST_BACKTRACE=1; navi
thread 'main' panicked at 'byte index 2 is not a char boundary; it is inside '\u{a0}' (bytes 1..3) of `# do not fragment off`', src/parser.rs:110:22
                 stack backtrace:
                               OAOOOOOOOOOO

Remove lines in the cheatsheet and Navi worked as expected

Expected behavior
run Navi without error

Versions:

  • OS: Ubuntu 24
  • Navi 2.0.23
  • zsh 5.9 (x86_64-ubuntu-linux-gnu) same behavior under bash

thanks for Navi !

@pushou pushou added the bug Something isn't working label Oct 1, 2024
Copy link

welcome bot commented Oct 1, 2024

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant