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

Unable to remove file reference from parameter file to template file if template file is deleted #952

Closed
ReneRebsdorf opened this issue Sep 10, 2020 · 2 comments · Fixed by #1012

Comments

@ReneRebsdorf
Copy link

Does this occur consistently? yes
Repro steps:

  1. Create a template file
  2. Create a template parameters file
  3. Link the two using the extension
  4. Delete the linked template file (preserving the parameter file)

It would be a great if when reporting this error an option was provided to remove the link.
Pressing the "Template File" to normally provide a template file just reproduces this error.

Action: azurerm-vscode-tools.openTemplateFile
Error type: Error
Error Message: cannot open file:////azureDeploy.json. Detail: Unable to read file 'path\azureDeploy.json' (Error: Unable to resolve non-existing file 'path\azureDeploy.json')

Version: 0.12.0
OS: win32
OS Release: 10.0.19042
Product: Visual Studio Code
Product Version: 1.48.2
Language: en

Call Stack
file:/workbench.desktop.main.js:6239:388
@StephenWeatherford
Copy link
Contributor

I agree this should be fixed. As a work-around, you can delete this association in your vscode user settings.

@ReneRebsdorf
Copy link
Author

ReneRebsdorf commented Sep 12, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants