-
Notifications
You must be signed in to change notification settings - Fork 37
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
Plugin discovery Issue #12
Comments
will look into right now, since I might do is reverse ladder up in the dir(so going from the file dir all the way up to home directory) |
Makes sense to me, guess you could go until the folder no longer contains any |
I have a similar issue on Windows, although it's not even nested - it's a very trivial
Regarding this functionality in general - is it necessary for us to have the plugin installed at all? There are many instances where I have terraform I'm maintaining but not running on my machine (i.e., it's running with special creds in a CI runner). The prior version didn't seem to require local plugin binaries to verify things, but maybe an LSP implementation has different requirements? |
Yeah so looking at the way the code works the LSP is using the provider to dynamically discover the schema for the This, in my opinion, is ingenious as it will highlight errors based on the provider version used by the project not an arbritary version of the provider but I do see the issue with projects where One option we have is to install some set "Standard" providers into the Another would be to popup something in the |
I think, for simplicity, I prefer the second approach. |
@lawrencegripper - I think in my use case, running Testing locally on a project at work, it looks like this can be avoided via Let me know if I'm missing something, thanks! |
P.S. because it search for all terraform folders including the root .terraform.d, so if you have a global provider binary there, it will default to that |
Are we missing a path for where plugins are being searched, though? In my comment/scenario above, shouldn't it be attempting to look in |
What happens when you have a module that is not initialized with 'terraform init'? as those plugins don't even exists, I'm running into this now which is throwing a false positive error on every file in my module. |
Hi, I've submitted #23 which should resolve this issue. |
Nice! |
Hi,
Awesome work on the LSP!
I'm seeing an issue with nested modules and
provider
discovery. In the sample I have following folder structure.What I see is that discovery is attempted at
/deployment/environment/logicapp/.terraform/plugins/
not at/deployment/environment/.terraform/plugins/
where the root of the terraform project is.Error is as follows, happy to look at fixing this up but probably won't be any time in the next few days.
The text was updated successfully, but these errors were encountered: