-
Notifications
You must be signed in to change notification settings - Fork 131
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
cmd/inspect-module: A command to aid with debugging root module discovery #225
Comments
radeksimko
changed the title
cmd/inspect: A command to aid with debugging root module discovery
cmd/debug: A command to aid with debugging root module discovery
Jul 13, 2020
radeksimko
changed the title
cmd/debug: A command to aid with debugging root module discovery
cmd/inspect-module: A command to aid with debugging root module discovery
Jul 13, 2020
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. |
ghost
locked and limited conversation to collaborators
Aug 23, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Version
Use-cases
The server has a capability to walk through some complex hierarchies to understand where to find plugin cache (i.e. schema data) and how to match it with files being open in order to provide relevant completion candidates.
Because complexity may vary and reasons for why root module isn't discovered are many it's expectable that there will be a time period when we have to work with users to tweak the discovery & matching logic.
Providing all the feedback (reasons why root module was not discovered) is not always practical or possible at runtime, unless we would flood users with messages. Obtaining this kind of information from the logs is not trivial either, especially when users only share snippets of their logs.
We need a way of communicating the complexity of hierarchy of root modules easily.
Attempted Solutions
tree
output + logs + verbal description of dependenciesProposal
Introduce
terraform-ls inspect-module [path]
command which will mostly just do what the server would do oninitialize
, but synchronously[path]
and finally present all this in some consumable/share-able form that user can just paste into a gist or something.
The text was updated successfully, but these errors were encountered: