Skip to content

Commit 9764b1e

Browse files
authored
Remove inspect-module command (hashicorp#1642)
* Remove inspect module command * Remove outdated troubleshooting docs
1 parent 6518ef9 commit 9764b1e

File tree

3 files changed

+0
-257
lines changed

3 files changed

+0
-257
lines changed

docs/TROUBLESHOOTING.md

-29
Original file line numberDiff line numberDiff line change
@@ -184,32 +184,3 @@ Path supports template syntax. This allows for separation of logs while accounti
184184
- `ppid` - parent process ID (typically editor's or editor plugin's PID)
185185

186186
The path is interpreted as [Go template](https://golang.org/pkg/text/template/), e.g. `/tmp/terraform-ls-memprofile-{{timestamp}}.log`.
187-
188-
## "No root module found for ... functionality may be limited"
189-
190-
Most of the language server features depend on initialized root modules
191-
(i.e. folder with `*.tf` files where you ran `terraform init` successfully).
192-
and server's ability to discover them within the hierarchy and match them
193-
with files being open in the editor.
194-
195-
This functionality should cover many hierarchies, but it may not cover yours.
196-
If it appears that root modules aren't being discovered or matched the way
197-
they should be, it can be useful to use `inspect-module` to obtain
198-
the discovery results and provide them to maintainers in a bug report.
199-
200-
Point it to the same directory that you tried to open in your IDE/editor
201-
and wait for the output - it may take some seconds or low minutes
202-
depending on the complexity of your hierarchy and number of root modules in it.
203-
204-
```
205-
$ terraform-ls inspect-module /path/to/dir
206-
```
207-
208-
## "Unable to retrieve schemas for ..."
209-
210-
The process of obtaining the schema currently requires access to the state,
211-
which in turn means that if the code itself doesn't have enough context
212-
to obtain the state and/or there isn't context available from config file(s)
213-
in standard locations you may need to provide that extra context.
214-
215-
See https://github.com/hashicorp/terraform-ls/issues/128 for more.

internal/cmd/inspect_module_command.go

-223
This file was deleted.

main.go

-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ func main() {
3838
AlgoliaAPIKey: algoliaAPIKey,
3939
}, nil
4040
},
41-
"inspect-module": func() (cli.Command, error) {
42-
return &cmd.InspectModuleCommand{
43-
Ui: ui,
44-
}, nil
45-
},
4641
"version": func() (cli.Command, error) {
4742
return &cmd.VersionCommand{
4843
Ui: ui,

0 commit comments

Comments
 (0)