https://infracost.io logo
Title
s

stocky-salesmen-15167

01/17/2023, 12:40 PM
Hi guys, I’ve updated to 0.10.16 and get an error in VScode now in the debug log:
debug: setting context infracost:active to true
debug: setting context infracost:loggedIn to true
debug: initializing workspace
debug: running Infracost in project: /Users/jgrumboeck/git/redbullmediahouse/cp-cloud-terraform
debug: running Infracost breakdown
debug: found project redbullmediahouse/cp-cloud-terraform
debug: setting context infracost:error to undefined
The Infracost spinner in the lower right is just spinning and no costs are shown. Is this a known issue? The .infracost folder jsut holds an terraform_modules/manifest.json, which content is
{"Modules":[]}
… so also quite empty.
m

mysterious-teacher-68276

01/17/2023, 12:41 PM
hey johannes 👋
which version of vscode are you using?
*vscode-infracost
s

stocky-salesmen-15167

01/17/2023, 12:42 PM
0.2.3
m

mysterious-teacher-68276

01/17/2023, 12:43 PM
and vscode was working with the
0.10.15
release?
s

stocky-salesmen-15167

01/17/2023, 12:43 PM
Had 0.10.13 before … let me switch back or downgrade to 0.10.15
m

mysterious-teacher-68276

01/17/2023, 12:44 PM
vscode should use an bundled infracost version though, so this is a bit wierd
s

stocky-salesmen-15167

01/17/2023, 12:47 PM
Hmmm … sorry, is there a quick way how to switch to an older version of infracost with brew?
ok … uninstall infracost from brew, so the bundled version should be used by VScode right? Error is still the same.
m

mysterious-teacher-68276

01/17/2023, 12:51 PM
hmm ok
@stocky-salesmen-15167 can I schedule a call with you tomorrow to go over this - would be helpful to be able to build specific binaries for your case to get to the bottom of the issue?
s

stocky-salesmen-15167

01/17/2023, 12:53 PM
Sure.
m

mysterious-teacher-68276

01/17/2023, 12:53 PM
I’m going to release a
0.2.4
version with the latest CLI bundled and see if that does anything for you
bear with me
s

stocky-salesmen-15167

01/17/2023, 12:53 PM
No worries, also not time critical.
m

mysterious-teacher-68276

01/17/2023, 12:54 PM
👍
s

stocky-salesmen-15167

01/17/2023, 12:54 PM
just send me an invite … if not possible time-wise I’ll respond with a different suggestion
m

mysterious-teacher-68276

01/17/2023, 12:54 PM
cool thanks
s

stocky-salesmen-15167

01/17/2023, 1:16 PM
Found it! Was my fault: I had an old
<http://versions.tf|versions.tf>
in the root folder containing some valid
terraform {}
stanza. This somehow mislead infracost to not being able to detect the multiprojects in this monorepo. I removed this old crap and now it works.
m

mysterious-teacher-68276

01/17/2023, 1:17 PM
ah nice - we have improvements inbound for the next release so this won’t fail in your monorepo
I’ve just released v0.2.4 of the vscode extension btw
which has the new cli bundled
s

stocky-salesmen-15167

01/17/2023, 1:18 PM
The new parallelism seems to overload TFC private registry API. Get some HTTP 429
m

mysterious-teacher-68276

01/17/2023, 1:18 PM
damn
could you raise an issue for that
(can be brief, just so we can prioritise it)
s

stocky-salesmen-15167

01/17/2023, 1:19 PM
Sure. Rerunning it helps.
m

mysterious-teacher-68276

01/17/2023, 1:22 PM
thank you sir
s

stocky-salesmen-15167

01/17/2023, 1:24 PM
Do you also need this “infracost breakdown --debug-report” json?
m

mysterious-teacher-68276

01/17/2023, 1:24 PM
for the private registry bug?
s

stocky-salesmen-15167

01/17/2023, 1:24 PM
jep
m

mysterious-teacher-68276

01/17/2023, 1:25 PM
nah don’t worry
s

stocky-salesmen-15167

01/17/2023, 1:25 PM
👍
Maybe we still could have a call as there are some numbers wrong in the vscode infracost tab I think.