advanced-tables-obsidian icon indicating copy to clipboard operation
advanced-tables-obsidian copied to clipboard

Continue evaluation on error

Open harmtemolder opened this issue 1 year ago • 0 comments

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):

  • OS: Manjaro Linux
  • Obsidian Version: v1.6.7
  • Advanced Tables Version: 0.22.0

harmtemolder avatar Sep 26 '24 07:09 harmtemolder