Bevel cannot read this file format

A [DataSource] path ends in an extension no format reader handles.

  • Error
  • BEVEL098
  • Since 0.3

What it means

Bevel reads JSON, YAML, XML and Markdown. For anything else you teach it a format. The message lists every extension Bevel can load.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL098: Dataset 'Plans': unsupported file extension '.toml' for path 'plans.toml'. Bevel can load: .json, .markdown, .md, .xml, .yaml, .yml, or a directory of Markdown files. To load another format, register an IBevelFormatReader (see AddBevelFormat). Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel098/

How to fix

Fix the extension, or teach Bevel the format: write an IBevelFormatReader and register it with AddBevelFormat.

See Teach Bevel a new format for a full example.