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

Empty enums generate error #71

Open
tluxon opened this issue Dec 6, 2021 · 0 comments
Open

Empty enums generate error #71

tluxon opened this issue Dec 6, 2021 · 0 comments

Comments

@tluxon
Copy link

tluxon commented Dec 6, 2021

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

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

No branches or pull requests

1 participant