mgreminger / EngineeringPaper.xyz

EngineeringPaper.xyz is a web app that makes it easy to create, save, and share engineering calculations.
https://EngineeringPaper.xyz
MIT License
119 stars 8 forks source link

Syntax error when trying to specify result unit after an equation #185

Closed prostolyubo closed 1 year ago

prostolyubo commented 1 year ago

Let's assume: a = 5 [mm] b = 2 [mm] This does work: test = a + b = This does not work: test = a + b = [mm]

As a user' I would like to be able to specify the result units of equation inline instead of writing two separate lines of code: test = a + b test = [mm]

mgreminger commented 1 year ago

Thanks for the bug report. Yes, it should work to specify units for a combined assignment-query. I'm not able to reproduce the issue on my end (see the screenshot below). Here's a link to a sheet where it's working. Could you share a link to a sheet where you're able to reproduce this issue?

Screenshot from 2023-06-02 12-07-58

prostolyubo commented 1 year ago

I already modified the file to remove the broken sentence. Now I tried rewriting it and it indeed works. I am really sorry, perhaps there was something else in the equation that broke it and made me think this is impossible.

mgreminger commented 1 year ago

Thanks for the update. No problem, it makes sense that this could be confused since the "Syntax Error" error message is kind of a catch all that can have many causes.