Skip to content

Empty enums generate error #71

Open
@tluxon

Description

Expected Behaviour

To be able to leave an empty enum in the code, e.g.:

enum Options {
    // add your amazing option here
}

Why would I do this? Perhaps I have a bunch of code dependent on the enum (but not specific enum values) that I'm not ready to delete, because I expect to introduce different values into the enum in the future.

Actual Behaviour

Empty enums generate an error:

ERROR:root:FAILED: Hyde-validate for <path>/<to>/options.hpp
ERROR:root:        stdout: 
ERROR:root:        stderr: <path>/<to>/<docs>/options.md: extraneous file
Error: YAML documentation failed to validate.

If options.md is removed, a different error is generated:

ERROR:root:FAILED: Hyde-validate for <path>/<to>/options.hpp
ERROR:root:        stdout: 
ERROR:root:        stderr: Error: YAML documentation failed to validate.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Create an empty enum and run hyde

Platform and Version

Mac OS.

Sample Code that illustrates the problem

enum Options {
    // add your amazing option here
}

Logs taken while reproducing problem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions