I use CSV+formulas as a plain-text format that can be stored in git and wouldn't require typing formulas anew. Unfortunately, when using Ctrl+s to save an edited CSV file, all formulas are lost. They shouldn't be, because LO knows the exact format it used for loading the file. Repro with latest 7.4.0.3 # Steps to reproduce 1. Execute `echo "2,=A1*A1" > test.csv` 2. Open the created `test.csv` in LO Calc `localc ./test.csv` 3. A window with file load configuration will pop up: make sure a `✓ Evaluate formulas` checkbox is checked and press `Ok` 4. Press Ctrl+s to save the file. LO will only ask if you're sure about the format, press `Use Text CSV Format` 5. In terminal execute `cat test.csv` ## Expected output 2,=A1*A1 ## Actual output 2,4 # Workarounds Use `Save as` (Shift + Ctrl +s), then in popped up window make sure a "✓ Edit filter settings" is set. When through a few windows the filter settings appear, make sure a "✓ Save cell formulas instead of calculated values" is set. Fun thing: the checkbox is set by default. But apparently Ctrl+s disagrees.
This seems weird indeed. When you check "Evaluate formulas", the opened CSV file shows the value 4 in cell B1, but if you select the cell and check its contents you'll notice that it does have a formula, not the value "4". So saving the file as CSV should save the formula as well.
(In reply to Konstantin Kharlamov from comment #0) > I use CSV+formulas as a plain-text format that can be stored in git and > wouldn't require typing formulas anew. Have you considered using Flat XML ODF Spreadsheet (.fods) for this purpose?
(In reply to Michael Warner from comment #2) > (In reply to Konstantin Kharlamov from comment #0) > > I use CSV+formulas as a plain-text format that can be stored in git and > > wouldn't require typing formulas anew. > > Have you considered using Flat XML ODF Spreadsheet (.fods) for this purpose? Oh, thanks! I didn't know about that format. Yeah, that's an interesting solution. Although it has lots of text compared to CSV, but on the upside, adding new columns will grow the file down, so it's easier to compare the diffs (CSV files would grow to the right). Thank you!
NEW per comment 1
Dear Konstantin Kharlamov, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Repro on 24.8.4.2 Version: 24.8.4.2 (X86_64) / LibreOffice Community Build ID: 480(Build:2) CPU threads: 12; OS: Linux 6.12; UI render: default; VCL: kf6 (cairo+xcb) Locale: en-US (en_US.UTF-8); UI: en-US 24.8.4-2 Calc: threaded