Terraform-ls produces huge amount of log entries #9630
-
Hi! When using terraform-ls with the default configuration, it produces a huge number (10-20k rows per minute) and fills the It seems that Helix interprets the responses from terraform-ls as errors 🤔 I'm not sure whether this is an issue with Helix, or terraform-ls not adhering to the LSP spec. Is it possible to suppress the logging Helix does per LSP? Any other solutions for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See helix/helix-lsp/src/transport.rs Line 74 in 4df08dd and helix/helix-lsp/src/transport.rs Lines 139 to 151 in 4df08dd We log everything the server sends over its stderr as an error. Some language servers use stderr as a logging backend since it's simpler (and I suppose tidier) than having a dedicated log file. It looks like it's possible to configure a file to send the logs to instead of stderr and terraform-ls is looking into changing their logging strategy hashicorp/terraform-ls#1271. I would recommend adding the arguments to redirect the logs to |
Beta Was this translation helpful? Give feedback.
See
helix/helix-lsp/src/transport.rs
Line 74 in 4df08dd
and
helix/helix-lsp/src/transport.rs
Lines 139 to 151 in 4df08dd
We log everything the server sends over its stderr as an error. Some language servers use stderr as a logging backend since …