trunk-io / neovim-trunk

The official Trunk Check Plugin for Neovim
https://docs.trunk.io/check/ide-integration/neovim-plugin
MIT License
21 stars 3 forks source link

Lua error when opening a file #12

Open ignacio-voxel opened 10 months ago

ignacio-voxel commented 10 months ago

Getting this error when I open any file

Error executing vim. schedule lua callback: ..ount_nvim.@AXjk2a/usr/share/nvim/runtime/lua/vim/lsp.lua:1308:RPC[Error]code_name=InvalidPara stack traceback:
[c]: in function 'assert'
...ount_nvim.aAXjk2a/usr/share/nvim/runtime/lua/vim/lsp.lua:1308:infunction'
vim/_editor. lua: in function <vim/_editor. lua:0>

after that, several messages get injected to the actual file I opened, in this case a .tsx

Screenshot 2023-10-20 at 5 39 23 PM

Steps to Reproduce

installed using LazyVim using default config except path to Trunk which is custom in my case

formatOnSave = false and lazy = false

When opening neovim everything is slow (unusable) Then open a file, in my case .tsx file Error shown above start to show up

Environment

Ubuntu Neovim 0.9.2

puzzler7 commented 10 months ago

Thanks for reporting this! Can you send the contents of .trunk/trunk.yaml and .trunk/logs/neovim.log?

ignacio-voxel commented 10 months ago

log file has this like 10 times:

[INFO  Fri Oct 20 19:18:25 2023] .../.local/share/nvim/lazy/neovim-trunk/lua/trunk.lua:27: Starting
[INFO  Fri Oct 20 19:18:25 2023] .../.local/share/nvim/lazy/neovim-trunk/lua/trunk.lua:229: Setting up autocmds