Skip to content

[BUG] Error when diffing package.json #151

@thenbe

Description

@thenbe

Issues

  • I have checked existing issues and there are no issues with the same problem.

Plugin Version

  • I am using the latest version of the plugin

Neovim Version

  • I am using the 0.6 neovim version or later

Neovim Version

NVIM v0.10.0-dev-2424c3e

Branch

master

Actual behavior

.

Expected behavior

.

Steps to reproduce

  1. Install diffview.nvim
  2. Run DiffviewFileHistory
  3. Press tab until you come across a package.json diff
  4. Observe error:
04:27:15 msg_show E1510: Value too large: 
   Error  04:27:15 msg_show.emsg Error executing vim.schedule lua callback: d argument: expected valid directory
stack traceback:
	[C]: in function 'jobstart'
	...im/lazy/package-info.nvim/lua/package-info/utils/job.lua:40: in function 'job'
	...lazy/package-info.nvim/lua/package-info/actions/show.lua:31: in function 'run'
	...re/nvim/lazy/package-info.nvim/lua/package-info/init.lua:14: in function 'show'
	[string ":lua"]:1: in main chunk
	[C]: in function 'resume'
	...cal/share/nvim/lazy/diffview.nvim/lua/diffview/async.lua:193: in function 'step'
	...cal/share/nvim/lazy/diffview.nvim/lua/diffview/async.lua:247: in function 'notify_all'
	...cal/share/nvim/lazy/diffview.nvim/lua/diffview/async.lua:222: in function 'step'
	...cal/share/nvim/lazy/diffview.nvim/lua/diffview/async.lua:399: in function <...cal/share/nvim/lazy/diffview.nvim/lua/diffview/async.lua:391>

Package info config

Using default config.

Other information

The full path of the package.json as in the diff buffer is something like: diffview:///home/me/myproject/.git/c7d31eaa3c7/package.json.

Help

Yes, but I don't know how to start. I would need guidance (check question below)

Implementation help

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working🤝 Contributions WelcomeNot on the roadmap but can be picked up by someone

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions