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 due to nil target in sync_scroll #550

Open
dlyongemallo opened this issue Dec 28, 2024 · 0 comments · May be fixed by #551
Open

[Bug] crash due to nil target in sync_scroll #550

dlyongemallo opened this issue Dec 28, 2024 · 0 comments · May be fixed by #551
Labels
bug Something isn't working

Comments

@dlyongemallo
Copy link

dlyongemallo commented Dec 28, 2024

Description

Occasionally, when exiting neovim with DiffviewOpen, there is an error message: `diffview.nvim/lua/diffview/async.lua:187: The coroutine failed with this message: ... diffview.nvim/lua/diffview/scene/layout.lua:308: attempt to index local 'target' (a nil value)'.

Here's the entire error message:
Screenshot from 2024-12-24 00-50-52

Expected behavior

Neovim exits normally.

Actual behavior

Diffview crashes and neovim displays an error message.

Steps to reproduce

Unfortunately, the issue isn't deterministically reproducible. So the following steps are necessary to reproduce, but possibly insufficient.

  1. start neovim
  2. use DiffviewOpen with some commit
  3. do stuff, then exit

Sometimes, neovim exits normally, and sometimes, the above error appears.

Health check

Output of :checkhealth diffview
diffview: require("diffview.health").check()

Checking plugin dependencies ~
- OK nvim-web-devicons installed.

Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.43.0)
- WARNING Configured `hg_cmd` is not executable: 'hg'

Log info

No relevant details from DiffviewLog.

Neovim version

NVIM v0.10.3
Build type: RelWithDebInfo
LuaJIT 2.1.1713484068

Operating system and version

Linux 6.8.0-51-generic x86_64 GNU/Linux

Minimal config

No response

@dlyongemallo dlyongemallo added the bug Something isn't working label Dec 28, 2024
@dlyongemallo dlyongemallo linked a pull request Dec 28, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant