question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parameter file validation fails with: Unable to load schema from <snip> unexpected end of file.

See original GitHub issue

Hi,

I automatically generated my first parameter file today via this extension (having previously been passing data via a custom PSObject) but VSCode lists the following problem:

Unable to load schema from 'https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#': unexpected end of file. (768) [2, 16]

The JSON referenced is valid, which is odd.

I’m also suffering problems in the main template file with apiVersions when they’re roughly 2021 onwards (“for full schema validation, consider updating the value to…”) but I think you’re tracking this already.

Any ideas? Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
StephenWeatherfordcommented, Feb 2, 2022

Turns out it’s a vscode in version 1.63.0: https://github.com/microsoft/vscode/issues/140227. It’s been fixed in the Insiders version 1.64, if you don’t mind installing vscode insiders (https://code.visualstudio.com/insiders/)

1reaction
StephenWeatherfordcommented, Jan 27, 2022

Sorry, misread your statement about schemas. We’ll be releasing a new version with updated schemas very soon (for template files, we snapshot the schemas to avoid various issues). That should hopefully help with that.

For parameter files, we rely mostly on vscode’s built-in JSON support, so we don’t have any control over the parameters file schema loading. I’m not seeing the problem myself. It could be a CDN issue that will eventually resolve itself, we’ve seen those before. I would try F1 and “JSON: Clear schema cache”.

If that doesn’t work, I’m guessing there’s not much that actually not working, right? Our functionality (param snippets etc) doesn’t depend on the schema loading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON Schema can be loaded only on the first usage #140227
Parameter file validation fails with: Unable to load schema from <snip> unexpected end of file. microsoft/vscode-azurearmtools#1441.
Read more >
Visual Studio Code on Azure ARM template reports unable to ...
Unable to load schema from 'http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json': unexpected end of file. When ...
Read more >
Using Schema Editor to view and validate tool map files - Help
Use the Schema Editor to view and validate tool map files. Launch the Schema Editor on the CMF_ver document Use the File >...
Read more >
MEGS_Log error messages
Error 2, The end of a data file was unexpectedly encountered. Error 3, The configuration file does not appear to be a configuration...
Read more >
FMNBA005 - IBM
FMNBA100 Unexpected end of parameter specification. Explanation. The parameters for the File Manager invocation are terminated by a comma. User response.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found