bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Can't Generate BICEP parameter files in VS Code

Open bthomason2087 opened this issue 3 years ago • 1 comments

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 avatar Aug 29 '23 20:08 bthomason2087

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

bthomason2087 avatar Aug 29 '23 21:08 bthomason2087