SHWotever / SimHub

Multi sim dashboard, bass shaker driver, ....
http://www.simhubdash.com/
808 stars 98 forks source link

Javascript binding #1295

Closed nipsterx93 closed 1 year ago

nipsterx93 commented 1 year ago

Hello,

I'm facing a strange issue when I try to write any formula inside the dashboard bindings menu. It seems like it doesn't matter what code I write, on the Raw Result I'll always get "Expression error:Line 33': Unexpected token *" even though in many cases I do not have a line 33.

I get this error as soon as I start typing, plus, even tested formulas ( from other users) wont work at all.

Ncalc works fine, Javascript doesn't work at all.

It would be amazing if you could dig into this. Thanks.

SHWotever commented 1 year ago

Hi ! do not hesitate to check you don't have any invalid scripts inside the javascriptextensions folder. Those scripts get loaded on top of any JS formulas, it's likely to be your culprit.

nipsterx93 commented 1 year ago

Hi, thanks for the answer. I believe you are spot on, I reinstalled SimHub and now it works perfectly so I guess there was some Javascript extension that caused the issue. Thanks for your support.

Il lun 8 mag 2023, 11:03 Wotever @.***> ha scritto:

Hi ! do not hesitate to check you don't have any invalid scripts inside the javascriptextensions folder. Those scripts get loaded on top of any JS formulas, it's likely to be your culprit.

— Reply to this email directly, view it on GitHub https://github.com/SHWotever/SimHub/issues/1295#issuecomment-1538017921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV3LA35UDIBEQL4PXWCGRX3XFCZH3ANCNFSM6AAAAAAXRWDIMU . You are receiving this because you authored the thread.Message ID: @.***>

SHWotever commented 1 year ago

Thanks for tyour feedback !