Open GitarMan opened 5 months ago
@GitarMan confirmed. will take a look at it.
@GitarMan Could you please update to latest commit on dev branch and retry? Thanks.
@andmarti1424 That fixed the segfault, thanks!!
Now when I run:
\"@date(@now, "%Y/%m/%d")
It successfully outputs the date.
I tested some of the other date functions though, and and I'm still getting the error in slet - exprerr
error (without a crash).
All these date functions are throwing that error:
\"@tts(8,20,45)
\"@now
\"@year("1708588800")
\"@month("1708588800")
\"@day("1708588800")
\"@hour("1708588800")
\"@minute("1708588800")
\"@second("1708588800")
However, this function works as expected:
\"@date(@dts(1976, 12, 14))
@GitarMan hello. will check those commands. thank you.
Version
I'm running version 0.8.4 built from source (because the latest version is not available yet in the apt-get repository, and I need multi-sheet functionality).
Segmentation Fault Crash
Specifically, I am experiencing the Segmentation Fault crash when I try to run the example date function from the documentation:
\"@date(@now, "%d/%m/%Y")
I get the error:
Segmentation fault (core dumped)
I ran sc-im with GNU Debugger to try to get a clue as to what could be causing the error. To be honest, I'm not too familiar with C programming / debugging, just thought it might help with the diagnosis.
Here was the output from gdb when I recreated the bug in an empty spreadsheet and then ran a backtrace:
General Date Functions Not Working
Less severe (because it doesn't cause a crash) is that when I try to run date functions in general, like:
\"@hour("1708588800")
Or if I run:
\"@now
I get the following error (without a crash):
error in slet - exprerr
Thanks!
As a vim user, I am constantly frustrated when using any other spreadsheet program. I super appreciate this project.
There are just a few things missing for me to be able to completely replace programs like LibreOffice Calc. (Maybe I need to become more familiar with Lua to extend.) Would love better support for conditional formatting (I know about the CELL_NEGATIVE style). Worried about the crashes, so I have to save manually often.
But this is an awesome project! Thanks for all the effort you've put into it.