jspreadsheet / pro

Jspreadsheet Pro | The javascript spreadsheet
https://jspreadsheet.com/
15 stars 1 forks source link

#NAME error with formulas #312

Closed dmt0 closed 9 months ago

dmt0 commented 10 months ago

Hi Paul,

I'm having an issue with formulas. Basic formulas like SUM would display #NAME. It happens intermittently and I can't repro it outside of my dev setup. But I also have no Idea how to debug it.

Here are some details:

image

Stack trace:

index.js:546 Error: #NAME?
    at eval (index.js:475:139)
    at eval (index.js:548:376)
    at eval (index.js:548:396)
    at eval (index.js:5:71)
    at eval (index.js:5:155)
"jspreadsheet": "10.7.1",
"@jspreadsheet/copypaste_advanced": "3.3.1",
"@jspreadsheet/formula-pro": "4.2.0",
"@jspreadsheet/parser": "4.0.5",
"@jspreadsheet/render": "4.0.0",
"@jspreadsheet/search": "3.0.1",
"@jspreadsheet/statusbar": "2.7.1",
paulorodalves commented 10 months ago

One possible explanation could be that setExtensions is being called after the spreadsheet creation. At the moment you create the formula, the extension might not yet have a formula associated with it. The occurrence of this issue could be related to other asynchronous operations, such as useEffect, but pinpointing the exact cause is challenging without more context. Could you share any additional information? It would be helpful to find the problem

dmt0 commented 10 months ago

Hi @paulorodalves setExtension is definitely called before anything. It's in the root, while actual creation is in the React components. I also narrowed down the jspreadsheet version when this started to happen. So when I downgrade to 10.4.1, things work fine. When I upgrade to 10.5.0, it breaks.

More on the behaviour:

hodeware commented 9 months ago

Since "The issue is triggered specifically when we create a formula from @progidev/jss-formulas-statistics like TTEST.TWOSAMPPLE.F", you will need to contact the third party developer. In this particular instance he needs to upgrade both JSS and Formula Pro. It is probably some version incompatibility or something he need to update on his plugin. He can contact our support directly by email, so we can try to help him.

hodeware commented 9 months ago

If you still need help on this, please contact: support@jspreadsheet.com