-
Notifications
You must be signed in to change notification settings - Fork 182
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
Language Server doesn't initialize when no providers exist #367
Comments
I'm also running into this for a repository containing modules |
Thanks for letting us know you're running into this problem. Could you paste in the specific error message you're seeing? Just want to make sure we go after the right underlying issue. |
same problem, full log below. `
|
yep, can't work with modules too because extension trying to find scheme which not exist without init. :( |
It also doesn't initialize if your source folder isn't a very simple layout I know the new and fashionale pattern is to use workspaces, but I run with multiple configs in a nested folder tree. If there's no .terraform folder in the root it doesn't init. The "bleeding edge" terraform-lsp that terraform-ls replaced still works, by the way, I've configured my local fork of it as my LSP because of this, even if it's a bit crashy on complex variables.
|
|
Launching language server: /Users/developer/.vscode/extensions/hashicorp.terraform-2.0.1/lsp/terraform-ls serve |
Going to merge this in with the main issue for tracking the different folder structure support: hashicorp/terraform-ls#32 (comment) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
When creating a module where no providers are needed, language server does not initialize.
Use-Case
I create a template that is designed for tags that is universal to any cloud vendor. It is designed to be used as a module with pre-defined tags that the enterprise requires and then allows for any additional tags. Implementation is to use as a module and in the resource tags = module.tagging.tags.
Because this use-case doesn't require any providers, it is only using locals, language server fails to initialize.
Desired need:
Because format is now based on the language server, formatting is not provided because the language server is not initialized.
The text was updated successfully, but these errors were encountered: