You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use azure tab in vscode to find a storage account blob container and add it to your workspace so you have a local folder open with an empty .tf file and you also have the storage account blob container open
Terraform language server stops working
The text was updated successfully, but these errors were encountered:
I managed to reproduce this by following the steps attached. Thank you for the report.
I can also confirm that this is indeed related to the Azure Storage extension, which for some reason seems to produce invalid URIs (it's missing one extra /).
We could avoid the crash by ignoring any workspace which has invalid URI, but I think we should still raise it as a visible warning to the user.
Relatedly I think that the Azure Storage extension should generate valid URIs - i.e. I would treat that as a bug on their side.
The follow-up question - assuming the workspace has a valid URI, is whether we could/should somehow support editing of Terraform files within such a workspace. I will create a separate issue for that as I believe this is not related just to Azure Storage, but other kinds of remote workspaces.
We have fixed the crash as part of #969 - so the next LS release (0.29.0) should only raise warnings, but more importantly the next release of the VS Code extension (v2.24.0) and latest preview version should not be sending URIs like these to the language server at all. This was addressed as part of hashicorp/vscode-terraform#1163
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Server Version
Terraform Version
Client Version
VSCode
Azure Storage extension
v0.14.1
Terraform Configuration Files
an empty "a.tf" file can reproduce
Log Output
https://gist.github.com/TeamDman/3d8684494d05b2a3f098410da395ee6c
Expected Behavior
no crash
Actual Behavior
crash
Steps to Reproduce
The text was updated successfully, but these errors were encountered: