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

Fail gracefully #340

Open
phadej opened this issue Dec 19, 2024 · 0 comments
Open

Fail gracefully #340

phadej opened this issue Dec 19, 2024 · 0 comments

Comments

@phadej
Copy link
Collaborator

phadej commented Dec 19, 2024

Currently we don't fail gracefully, thus e.g. when we run tests we get situations like

golden
  bitfields
    treediff: golden: bit-fields not supported yet
CallStack (from HasCallStack):
  error, called at src/HsBindgen/C/Fold/Type.hs:391:47 in hs-bindgen-0.1.0-inplace:HsBindgen.C.Fold.Type

There's two part, the tree-diff probably should catch exceptions and fail more gracefully (report test as failed, not abort everything);
But also we should fail more gracefully to begin with, I'm sure there will be unsupported features for a long time.

@edsko edsko added this to the 1: `Storable` instances milestone Dec 20, 2024
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

2 participants