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

Make sure generated file has actual code on exception #456

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

parched
Copy link

@parched parched commented Dec 5, 2024

This makes this line work correctly

@@ -621,15 +622,20 @@ private static string CreateCSharp(
return csharp;
});
}
catch (FlatSharpCompilationException e)
{
csharp = e.CSharp;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is only really useful when code generation for reading bfbs fails, so should never be hit by an end user, but is useful for flatsharp developers

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Looks like you have a nullability error.

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

Successfully merging this pull request may close these issues.

2 participants