-
Notifications
You must be signed in to change notification settings - Fork 91
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
Unable to use debugger #286
Comments
Hi @MacLikorne 👋 Thank you for raising this and sorry you ran into trouble here. Does it help if you set Terraform CLI should not be attempting to start the provider when there is an available reattach configuration. I believe the logic that determines whether the reattach configuration applies to a certain provider is based on the full provider address. |
In v0.7.0 (just released), you should be able to setup the provider serving via the new func main() {
opts := providerserver.ServeOpts{
Address: "qovery.com/api/qovery",
Debug: true,
}
if err := providerserver.Serve(context.Background(), qovery.New(version), opts); err != nil {
log.Fatal(err)
}
} If you are still having trouble (using a full provider address with |
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. |
Module version
Relevant provider source code
Terraform Configuration Files
Debug Output
When running Intellij Ultimate in debug:
When running a Terraform command:
Expected Behavior
I was expecting to get IDE's breakpoints triggered when executing a CLI command.
Actual Behavior
I got the error shown in log output.
Steps to Reproduce
terraform apply
orterraform plan
Actually, I already tried to remove the
dev_overrides
from terraform config but it doesn't change anything.I also tried with and without
--debug
flag.I noticed that the file in
/tmp
used by terraform on command execution is not the same than the one in theAddr
of theTF_REATTACH_PROVIDERS
variable. In the logs you can see/tmp/plugin913228467
in the variable and/tmp/plugin172277024
in the debug log.I work with fish terminal and tried to export
TF_REATTACH_PROVIDERS
in every possible way.UPDATE: tried this way and got the same error.
References
The text was updated successfully, but these errors were encountered: