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

zoxide: Error: nu::shell::access_beyond_end (link) #275

Closed
azzamsa opened this issue Aug 16, 2022 · 5 comments · Fixed by #278
Closed

zoxide: Error: nu::shell::access_beyond_end (link) #275

azzamsa opened this issue Aug 16, 2022 · 5 comments · Fixed by #278

Comments

@azzamsa
Copy link
Contributor

azzamsa commented Aug 16, 2022

❯ z
Error: nu::shell::access_beyond_end (link)

  × Row number too large (max: 0).
    ╭─[~/code/forks/nu_scripts/prompt/zoxide-eq.nu:86:1]
 86 │         # } else {
 87 │             cd (zoxide query --exclude ($env.PWD) -- $rest.0 | str collect | str trim)
    ·                                                            ┬
    ·                                                            ╰── index too large (max: 0)
 88 │         # }
    ╰────
@kubouch
Copy link
Contributor

kubouch commented Aug 16, 2022

Seems like you're calling a command without arguments.

Could you please provide more details, the exact reproduction steps, and fill in the issue template? We can't do much with this error report.

Edit: Sorry, I thought this issue is on the main Nushell repo. Seems like that command just needs a check for empty args.

@fdncred Is this script supposed to be used for zoxide integration? I thought zoxide had their own setup.

@azzamsa
Copy link
Contributor Author

azzamsa commented Aug 16, 2022

It is included in their setup guide https://github.com/ajeetdsouza/zoxide#step-2-add-zoxide-to-your-shell.
However, unlike other shell. z can't be accessed until we use use ~/code/forks/nu_scripts/prompt/zoxide-eq.nu [z, zi] .


I did a typo, so that it doesn't work.
Yes, it is now works out of the box. We can drop nu_scripts/prompt/zoxide-eq.nu safely.

@azzamsa
Copy link
Contributor Author

azzamsa commented Aug 16, 2022

Added a fix too ajeetdsouza/zoxide#442

@fdncred
Copy link
Collaborator

fdncred commented Aug 16, 2022

@kubouch we used it early on before zoxide supported engine-q. We should get rid of this zoxide-eq.nu file.

@azzamsa
Copy link
Contributor Author

azzamsa commented Aug 18, 2022

@fdncred PR sent #278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants