package-info.nvim icon indicating copy to clipboard operation
package-info.nvim copied to clipboard

[BUG] Error when diffing package.json

Open thenbe opened this issue 1 year ago • 2 comments

Issues

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

Plugin Version

  • [X] I am using the latest version of the plugin

Neovim Version

  • [X] 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

thenbe avatar Apr 01 '24 01:04 thenbe

I just ran into this issue. Is there a workaround where you can disable this package when diffview is open?

ryanbas21 avatar Feb 24 '25 17:02 ryanbas21

I'm having the same issue while using octo.nvim. I'll report back if I find a good solution.

joshmedeski avatar Sep 03 '25 19:09 joshmedeski