artemave / workspace-diagnostics.nvim

Populate diagnostics for all projects files, not just the opened ones.
https://artem.rocks/posts/workspace_diagnostics_nvim
MIT License
105 stars 3 forks source link

Hangs the entire system #11

Open duarm opened 3 days ago

duarm commented 3 days ago

Description

Opening a medium=sized C project with this hangs my system, all cores at 100%, until the process is killed by the OS. I'm using clangd. Not sure if this is due to a conflict with another plugin or some configuration problem. But after disabling the workspace-diagnostics.nvim, everything works as expected.

Steps to reproduce

  1. Open a properly configured medium/large project with clangd and this plugin.

Environment

artemave commented 3 days ago

Yeah, it's kinda bound to happen. What is "medium-sized"? How many files?

duarm commented 3 days ago
$ git ls-files | wc -l         
250

Mostly dependencies I keep in source, so an easy way to exclude folders would go a long way

artemave commented 3 days ago

an easy way to exclude folders would go a long way

There is one actually:

require("workspace-diagnostics").setup({
  workspace_files = function()
    return { 'index.js', 'lib/banana.js' }
  end
})