Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

Run command not showing errors on failure #276

Closed bob2517 closed 1 year ago

bob2517 commented 2 years ago

I think this is a latest branch issue, but in case it isn't, here's an issue for it.

If there are JavaScript errors in a run command, it silently fails, which is no use to anyone.

The workaround is to look for errors in the JavaScript code itself - do console.log() in there - try and see where it could be failing. It's not ideal.

bob2517 commented 2 years ago

At the same time of fixing this, allow embedded JS, {= =} to work on CSS variable assignment.

CSS variable assignment from ACSS is a hidden gem and really useful, as you can avoid having to add and remove classes to change CSS properties, and means less DOM markup.

bob2517 commented 1 year ago

Can't seem to repeat this now. Work on the second part of this. Re-open if needed.

bob2517 commented 1 year ago

Both these appear to be fixed on the branch already.

bob2517 commented 1 year ago

Dev edition warning added to failing expressions to show error. There's a fallback to string evaluation that happens afterwards which was causing no initial error to appear. This may also need to be placed elsewhere if it comes up again.

bob2517 commented 1 year ago

Closing in preparation for release.