Skip to content

Operator + on ranges throws runtime exception AbsoluteCellRange: Wrong range size #1267

Closed

Description

@BrianHung

Description

Encountered an internal error while trying some array formula tests. The specific formula "='Sheet1'!A:A+'Sheet1'!1:1" I expect to result in a DetailedCellError instead.

import HyperFormula from "hyperformula";

console.log(
  `%c Using HyperFormula ${HyperFormula.version}`,
  "color: blue; font-weight: bold"
);

const hf = HyperFormula.buildFromSheets({
  "Sheet1": [["1"]],
}, {
  licenseKey: "gpl-v3",
  useArrayArithmetic: true,
});

hf.setCellContents({ sheet: 0, row: 0, col: 0 }, "='Sheet1'!A:A+'Sheet1'!1:1")

const sheetName = "Sheet1";
const sheetId = hf.getSheetId(sheetName);

Demo

https://codesandbox.io/s/red-field-hmeldt?file=/src/hyperformulaConfig.js

Activity

  1. added
    Bug
    on May 11, 2023
  2. changed the title [-]Error `AbsoluteCellRange: Wrong range size` with ArrayFormula[/-] [+]Operator `+` on ranges throws runtime exception `AbsoluteCellRange: Wrong range size`[/+] on May 30, 2023
  3. sequba commented on May 30, 2023

    @sequba
    Contributor

    @BrianHung thank you for reporting this issue. You are right, this case should be handled by returning a cell error. We'll work on it in one of the upcoming releases.

  4. self-assigned this
    on May 30, 2023
  5. AMBudnik commented on Dec 27, 2023

    @AMBudnik
    Contributor

    Hi @BrianHung

    I have good news! We're closing this issue as solved and released in HyperFormula 2.6.1.
    Here's a list of all the changes https://github.com/handsontable/hyperformula/releases/tag/2.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugImpact: HighReleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions