Skip to content

Valid YAML file triggers throw parse_error("Failed to convert a scalar to a floating point value", m_line, m_indent); #428

@tomwpid

Description

@tomwpid

Description

Trying to load a large but valid YAML file results in the following exception.

throw parse_error("Failed to convert a scalar to a floating point value", m_line, m_indent);

Reproduction steps

  1. Download the problem file Problem YAML.zip
  2. Try to deserialise the file as below.
  3. Observe the exception being thrown

Expected vs. actual results

Expected: YAML should load without error
Actual: YAML cannot be loaded

Minimal code example

// Open a YAML file. Other streams or strings are also usable as an input.
td::ifstream ifs("invNames.yaml");

// Deserialize the loaded file contents.
fkyaml::node RootNode = fkyaml::node::deserialize(ifs);

Error messages

throw parse_error("Failed to convert a scalar to a floating point value", m_line, m_indent);

Compiler and operating system

Compiler: MSVC v143 - v14.38 - 17.8 OS: Windows

Library version

0.3.14

Validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions