-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing error for some cases of named expressions with numbers (before: Named expression on format "HF2_2" not allowed) #1058
Comments
Hi, @jboysen. I am sorry you experienced an issue with HyperFormula. You are right, the naming rules for named expressions must be updated. Thank you for reporting it. |
The implementation of isNameValid indicates that the name is valid: hyperformula/src/NamedExpressions.ts Lines 161 to 166 in fd0a405
Is the implementation incorrect? |
It might be incorrect or there is something else going on here. Our team will investigate this issue shortly. |
Also, the heading |
Note to myself: Based on the case https://jsfiddle.net/h93ak8pL/1/, update the forum topic at https://forum.handsontable.com/t/gh-hyperformula-1058-named-expression-is-not-working/6569 |
I see now the title changed of this issue. We looked more into this, and found that "HF2_2" is problematic, but "HF_2" was not, so the title is now misleading. For now we solved it by checking our named expressions like this in a validate method:
|
@jboysen Thank you for your input. It will come in handy in the process of working on this issue. |
Possible duplicate: #880 |
I'm more than happy to announce that we just released HyperFormula 2.3.1 where this issue is fixed. We are closing this issue as solved. If there is anything that won't work for you after updating, please leave a comment. |
Because HF can handle more columns than Excel something like AUFRINGES1 named range expression is invalid in HF but not Excel. How about if we set MaxColumns to say 26 or max Excel columns could you only do the named range check up to that column for compatibility? |
Hi @kevinplummer that's an interesting idea. But at the moment, it is not available out of the box. If you'd like to test a custom solution and create a pull request we would be more than happy to review it as at the moment we focus more on fixing issues than on providing new functionalities. |
But there is not information about why, and the naming doesn't violate the rules mentioned here: https://hyperformula.handsontable.com/guide/named-expressions.html#naming-convention
A jsfiddle to illustrate the issue: https://jsfiddle.net/uk1djxpw/1/
The text was updated successfully, but these errors were encountered: