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

Cannot ignore files from being indexed when using terraform-ls via nvim-lsp #1610

Open
1 task
garrettheel opened this issue Feb 5, 2024 · 1 comment
Open
1 task
Labels
bug Something isn't working

Comments

@garrettheel
Copy link

garrettheel commented Feb 5, 2024

Language Server Version

0.32.6

Terraform Version

1.7.1

Client Version

nvim-lsp

Terraform Configuration

n/a

Steps to Reproduce

Use terraformls via nvim-lsp and configure to avoid indexing node_modules.

Note that I've tried many variations of this (e.g. putting indexing at the root) and none of them worked:

local lspconfig = require("lspconfig")
lspconfig.terraformls.setup{
    initializationOptions = {
      indexing = {
        ignorePaths = {"node_modules"},
      },
      ignoreDirectoryNames = {"node_modules"},
    },
}

Expected Behavior

No files in node_modules show up in logs

Actual Behavior

Still see logs littered with

[ERROR][2024-02-05 09:57:42] .../vim/lsp/rpc.lua:734	"rpc"	"/opt/homebrew/bin/terraform-ls"	"stderr"	"2024/02/05 09:57:42 walker.go:242: walking of {file:///Users/garrett/src/project/node_modules/@storybook/addon-docs/node_modules/to-regex-range} finished\n"

Gist

No response

Workarounds

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@garrettheel garrettheel added the bug Something isn't working label Feb 5, 2024
@MXfive
Copy link

MXfive commented Mar 9, 2024

The heading type is wrong on the docs, so is confusing to read, but it should be indexing.ignoreDirectoryNames that you set. See the deprecation message of the top levelignoreDirectoryNames.

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

No branches or pull requests

2 participants