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

vs-bicep sanity testing: The main.bicep file does not show an error after creating a bicepconfig.json file in the same folder with contents #14836

Closed
v-chenzha opened this issue Aug 14, 2024 · 4 comments
Assignees
Labels
devdiv Related to Bicep tooling efforts in DevDiv investigate VisualStudio
Milestone

Comments

@v-chenzha
Copy link
Collaborator

OS Version/SKU: Win10 22H2/Enterprise
VS Version/SKU: 17.12.0 Preview 2.0 [35213.224.main]
Bicep Build: 34197

Repro Steps:

  1. Create a new main.bicep file with these contents:
resource a 'Astronomer.Astro/organizations@2023-08-01-preview' = {
	name: 'name'
	location: 'westus'
}
  1. Verify that no errors.
  2. Don't close the main.bicep file.
  3. Create a new bicepconfig.json file in the same folder with these contents:
{
	"analyzers": {
		"core": {
			"verbose": false,
			"enabled": true,
			"rules": {
				"use-recent-api-versions": {
					"level": "error"
				}
			}
		}
	}
}
  1. View -> Error List.
  2. Check whether there is an error in "Error List".

Expect:
There is an error in "Error List".
image

Actual:
There is no error in "Error List".

@StephenWeatherford
Copy link
Contributor

StephenWeatherford commented Sep 11, 2024

@v-chenzha Could you please try it again, but this time, create a project first (shouldn't matter what kind, e.g. c# project), and create the main.bicep file inside the project's folders.

It seems to work for me in that scenario. Thanks!

@v-chenzha
Copy link
Collaborator Author

@StephenWeatherford Verified on both Console App project and Azure Cloud Service (extend support) project that this issue still reproduces.

@StephenWeatherford
Copy link
Contributor

RECOMMENDATION: won't fix
WORK-AROUND: Close/reopen the main.bicep file

@StephenWeatherford
Copy link
Contributor

Won't fix

@StephenWeatherford StephenWeatherford closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devdiv Related to Bicep tooling efforts in DevDiv investigate VisualStudio
Projects
Archived in project
Development

No branches or pull requests

3 participants