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

bug: crash on :GhBlameCurrentLine #5

Open
3 tasks done
fredrikaverpil opened this issue Feb 15, 2024 · 0 comments
Open
3 tasks done

bug: crash on :GhBlameCurrentLine #5

fredrikaverpil opened this issue Feb 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fredrikaverpil
Copy link

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.5

Operating system/version

Sonoma 14.3.1 (23D60)

Describe the bug

When I run :GhBlameCurrentLine I get a crash:

Info  21:09:58 notify.info GhBlame Fetching PR details...Error  21:09:59 msg_show.lua_error Error executing vim.schedule lua callback: ...cal/share/LazyVim/lazy/gh-blame.nvim/lua/gh-blame/gh.lua:148: attempt to index field 'resource' (a userdata value)
stack traceback:
	...cal/share/LazyVim/lazy/gh-blame.nvim/lua/gh-blame/gh.lua:148: in function 'find_associated_pr'
	....local/share/LazyVim/lazy/gh-blame.nvim/lua/gh-blame.lua:36: in function <....local/share/LazyVim/lazy/gh-blame.nvim/lua/gh-blame.lua:24>

Steps To Reproduce

  1. Install using the provided lazy.nvim example.
  2. Open git-controlled lua file.
  3. Run :GhBlameCurrentLine

Expected Behavior

I'd expect to see the PR info related to the line blamed.

@fredrikaverpil fredrikaverpil added the bug Something isn't working label Feb 15, 2024
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