tgrosinger / advanced-tables-obsidian

Improved table navigation, formatting, and manipulation in Obsidian.md
GNU General Public License v3.0
2.15k stars 80 forks source link

Continue evaluation on error #339

Open harmtemolder opened 2 months ago

harmtemolder commented 2 months ago

Describe the bug

It used to be the case that if a row could not be calculated because of incorrect values, evaluation of the rest of the table would continue (see rows 2475 and 2479 in the screenshot below, calculated a while back). Probably since updating to version 0.22.0 this does not happen any longer. My developer console shows Uncaught Error: [DecimalError] Invalid argument: ?.

To Reproduce

Caluclating

| 1   | 2   | 1\*2 |
| --- | --- | ---- |
| 1   | 2   |      |
| 1   | b   |      |
| 1   | 2   |      |
<!-- TBLFM: @2$3..@>$3=($1*$2) -->

results in

Uncaught Error: [DecimalError] Invalid argument: b

Expected behavior

| 1   | 2   | 1\*2 |
| --- | --- | ---- |
| 1   | 2   | 2    |
| 1   | b   |      |
| 1   | 2   | 2    |
<!-- TBLFM: @2$3..@>$3=($1*$2) -->

or possibly

| 1   | 2   | 1\*2 |
| --- | --- | ---- |
| 1   | 2   | 2    |
| 1   | b   | NaN  |
| 1   | 2   | 2    |
<!-- TBLFM: @2$3..@>$3=($1*$2) -->

Screenshots

image

Desktop (please complete the following information):