jamescourtney / FlatSharp

Fast, idiomatic C# implementation of Flatbuffers
Apache License 2.0
510 stars 51 forks source link

chore: create output directory if not exists #444

Closed sssooonnnggg closed 2 weeks ago

sssooonnnggg commented 3 weeks ago

If the output directory doesn't exist, the compiler will return directly without any errors, which is a bit confusing. When the output directory does not exist, try to create it.

jamescourtney commented 2 weeks ago

Apparently all the pipelines are broken. I'll take a look at this soon.

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.91%. Comparing base (cf9cd4a) to head (4453709). Report is 1 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444/graphs/tree.svg?width=650&height=150&src=pr&token=6EUECHZGT4&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney)](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney) ```diff @@ Coverage Diff @@ ## main #444 +/- ## ======================================= Coverage 96.91% 96.91% ======================================= Files 126 126 Lines 9754 9754 Branches 792 792 ======================================= Hits 9453 9453 Misses 209 209 Partials 92 92 ``` | [Files with missing lines](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney) | Coverage Δ | | |---|---|---| | [src/FlatSharp.Compiler/FlatSharpCompiler.cs](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444?src=pr&el=tree&filepath=src%2FFlatSharp.Compiler%2FFlatSharpCompiler.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney#diff-c3JjL0ZsYXRTaGFycC5Db21waWxlci9GbGF0U2hhcnBDb21waWxlci5jcw==) | `93.43% <ø> (ø)` | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney). Last update [cf9cd4a...4453709](https://app.codecov.io/gh/jamescourtney/FlatSharp/pull/444?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Courtney).