I have tried require() and import, but have not been successful
Maybe a unit test/validation pipeline is your best way to achieve this.
Thank you for the response.
I did learn through more research that the engine is the Nashorn engine and due to the fact that it is deprecated in Java 11 there will not be support for it in VScode. Some people have made some progress.
The Expression Language is a completely custom-built language that actually gets compiled into Java Byte code to be executed on the JCC.
That is good information. I would prefer to write expressions and expression libs than script snaps.
Yes, that is very valid. I think making the expression builder more IDE like would be very helpful for developing expressions as well as debugging and testing them.
For now, a pipeline that validates expression libraries is the best I can think of.
Thanks for the feedback – if you hadn’t used the Expression Builder before, here’s a preview. It’s definitely not as full featured as a IDE or Text Editor, but has some useful on-the-fly evaluation for writing expressions. As Cole mentioned, there’s still some improvements that we could make, but check it out if you haven’t already.