Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.2k stars 742 forks source link

Can't Generate BICEP parameter files in VS Code #11679

Closed bthomason2087 closed 1 year ago

bthomason2087 commented 1 year ago

Does this occur consistently? Yes Repro steps: I primarily use VS Code for my BICEP work

  1. in VS Code, right-click the bicep template file and select generate parameter file
  2. select bicepparam OR json
  3. select all or required (the result is the same)

I've seen other issues where a file handler was the expected culprit. I've tried closing OneDrive, PowerToys, and Everything. Nothing seems to do the trick.

Action: command/bicep.generateParams Error type: Error Error Message: Generating parameters failed: cannot open redacted:url Detail: Unable to read file 'c:\Users\redacted:username\redacted\Documents\VSCode\Infrastructure\BICEP\BICEP Templates\Web\functions\function.bicepparam' (Error: Unable to resolve nonexistent file 'c:\Users\redacted:username\redacted\Documents\VSCode\Infrastructure\BICEP\BICEP Templates\Web\functions\function.bicepparam')

Version: 0.20.4 OS: win32 OS Release: 10.0.22621 Product: Visual Studio Code Product Version: 1.81.1 Language: en

Call Stack ``` GenerateParamsCommand.execute extension.js:2:2849037 extension.js:2:2851364extension.js:2:2851364 ```
bthomason2087 commented 1 year ago

I believe I found the issue for this problem. I thought this was the previous ERRNO error I was getting. this was actually an issue with a module being used in the main bicep template