-
Notifications
You must be signed in to change notification settings - Fork 178
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
Creating a CsvWriter with custom FrontendOptions gives compile error, and CsvWriter with default FrontendOptions but custom Logger gives runtime assertion violation #609
Comments
Thank you for reporting this! Once you've decided to use Would you be able to work with the |
Thanks for this amazingly fast fix. I would like to use a new release but I can work with the master branch until 7.4.0 is out! Out of curiosity, when are you planning to release that? |
Thanks for your patience! Releases typically happen spontaneously, depending on the accumulation of bug fixes and new features. I'm aiming to delay the next release slightly to bundle multiple fixes and reduce the workload for package maintainers. That said, you can expect a new release no later than the beginning of November, though it could happen sooner. |
The fix has been Please give it a try when you have a chance, and feel free to reach out if you encounter any further issues. |
I have tried the fixed CsvWriter and it is working well! So I believe this issue is fixed. Thanks for your help! |
Describe the bug
There seems to be no way to create a
CsvWriter
when using customFrontendOptions
. There are two scenarios which I tried, and both resulted in unexpected errors. I will give the brief errors here and the full code to reproduce in the next section (probably due to #453).When I create a
CsvWriter
with customFrontendOptions
(e.g.quill::CsvWriter<MyCsvSchema, CustomFrontendOptions> csv_writer{"orders.csv"};
), I get a compilation error that the CsvWriter cannot create a logger:When I create a
CsvWriter
with defaultquill::FrontendOptions
and try to log to a logger which uses customFrontendOptions
, I get a runtime assertion error when compiled with Debug.Code snippet:
The program compiles. When I run it, the following error is raised:
To Reproduce
I used the following code to get the compilation error when creating a
CsvWriter
with customFrontendOptions
:When compiling this program, I get an error. The full error is:
When we change the line to create the
CsvWriter
with defaultquill::FrontendOptions
instead, but still logging to the custom logger using the customFrontendOptions
(this is obviously wrong, as we should not mix defaultquill::FrontendOptions
with customFrontendOptions
as mentioned in the Frontend Options documentation, but since this raises a runtime error instead of a compile-time error, I think it is important to mention anyways):The program compiles in Debug. When I run it, the following error is raised:
Interestingly, when compiling and running in Release, the program executes fine and the CSV file is written correctly.
Expected Behaviour
CsvWriter
with customFrontendOptions
, I would expect no compilation error.CsvWriter
with defaultquill::FrontendOptions
and still logging to a custom logger with customFrontendOptions
, I would expect a compilation error, warning, or runtime error in both Debug and Release mode.Environment Details
7.3.0
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: