https://infracost.io logo
#help
Title
# help
a

agreeable-army-32863

06/28/2023, 4:06 PM
having trouble with the vscode extension. the left sidebar is showing all my directories and their associated costs, but in the editor i am not getting any real time update info, it’s just the normal text editor. i get no pop ups or “total monthly cost” line to click to break down.
like in this demo image it shows the infracost pane on the left, and on the right there is the “total monthly cost” info above the code. mine does not have anything extra on the right pane https://github.com/infracost/vscode-infracost/blob/master/.github/assets/tree-view.gif?raw=true
when i change the instance size of something, the infracost info graphic on the bottom right changes from cloud to circling, then back to cloud, but nothing changes in my editor
m

mysterious-teacher-68276

06/28/2023, 4:27 PM
@agreeable-army-32863 this should only update on save. Are you saving the file?
a

agreeable-army-32863

06/28/2023, 4:36 PM
yes, saving the file, but nothing shows above my resources for costs. the icon swirls whenever i save but nothing shows in my editor
Copy code
vscode
Version: 1.79.2
Infracost v0.10.23
also tried restarting vs code
Screen Shot 2023-06-28 at 11.43.03 AM.png
tried downgrading extension to
0.2.11
still same behavior
m

mysterious-teacher-68276

06/28/2023, 4:52 PM
@agreeable-army-32863 is there anything in the Infracost debug log pane. Also what machine are you running on?
Can you also let me know what version of the terraform extension you are using
a

agreeable-army-32863

06/28/2023, 4:56 PM
macos 12.6.2 Terraform v1.5.1
Copy code
2023-06-28 11:56:05.641 [error] [hashicorp.terraform] provider FAILED
2023-06-28 11:56:05.641 [error] Error: <http://main.tf|main.tf> (61,32): position outside of any attribute name, value or block
m

mysterious-teacher-68276

06/28/2023, 4:58 PM
Hmm ok this looks like a problem with the old terraform extension
Do you mind updating it to the latest version
I believe it’s 2.26.1
a

agreeable-army-32863

06/28/2023, 4:59 PM
sorry, that was my cli version vscode extension version is ``v2.26.1``
Copy code
2023-06-28 11:59:53.603 [error] Error: <http://main.tf|main.tf> (33,26): position outside of any attribute name, value or block
	at /Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:387194
	at re (/Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:387488)
	at /Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:382272
	at Immediate.<anonymous> (/Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:382292)
	at process.processImmediate (node:internal/timers:466:21)
uninstalled both extensions, tried again with new red
Copy code
2023-06-28 12:05:55.059 [error] [hashicorp.terraform] provider FAILED
2023-06-28 12:05:55.059 [error] Error: no reference origin found
	at /Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:387194
	at re (/Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:387488)
	at /Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:382272
	at Immediate.<anonymous> (/Users/xxx/.vscode/extensions/hashicorp.terraform-2.26.1-darwin-x64/out/extension.js:1:382292)
	at process.processImmediate (node:internal/timers:466:21)
m

mysterious-teacher-68276

06/28/2023, 5:07 PM
hmm I’m not sure what’s going on here unfortunately, it seems that the Terraform extension is dying trying to report the symbols to us. We use this information to show the code lenses over the Terraform blocks. We’ve just merged a change into the Infracost CLI that will allow us to remove reliance on the Terraform extension, so I’m going to try and get that merged into the Infracost extension. Could you open an issue here: https://github.com/infracost/vscode-infracost referencing your issues with the Terraform extension and I’ll do some proper investigation on it tomorrow.
a

agreeable-army-32863

06/28/2023, 5:08 PM
👍