Skip to content
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

Regenerating params in VS code when the bicepparam file exists produces a confusing error message #16118

Open
majastrz opened this issue Jan 17, 2025 · 0 comments

Comments

@majastrz
Copy link
Member

Bicep version
0.32.4

Describe the bug
Regenerating params in VS code when the bicepparam file exists produces the following error message:

8:17:19 PM: Generating parameters file failed. The file "main.bicepparam" already exists but does not contain the schema for a parameters file. If overwriting the file is intended, delete it manually and retry the Generate Parameters command.

To Reproduce

  1. Create an empty bicep file and save it
  2. Right click on the editor tab and then click "Generate Parameters File"
  3. Choose bicepparam and all (the 2nd choice doesn't matter)
  4. Param generation should succeed.
  5. Repeat 2 and 3
  6. Now you should get the message above

Additional context
A valid bicepparam file will never contain the JSON param schema anywhere. We should not be checking for that. I suspect we're reusing the JSON param logic incorrectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants