Re: Is anybody using LO's JavaScript editor window?

2024-04-02 Thread Stephan Bergmann

On 3/25/24 16:13, Stephan Bergmann wrote:
I'm asking because I have 
 "Update to latest Rhino 
1.7.14" as a potential master change.  But, as its commit message says: 
"Update [...] at the expense of losing, at least for now, the script 
editor for it (which had been hacked into the old upstream sources in a 
hard-to-maintain way)."


after getting no negative responses here, I now submitted 
 
"Update to latest Rhino 1.7.14" (i.e., we lost its editor window)


Re: Is anybody using LO's JavaScript editor window?

2024-03-26 Thread Caolán McNamara
On Mon, 2024-03-25 at 16:13 +0100, Stephan Bergmann wrote:
> Now, how widespread is the use of this edit window feature for 
> JavaScript, actually?  Does anybody use it, would anybody miss it? 
> (This is only about the JavaScript feature, the BeanShell edit window
> is not affected.)

I know you are only asking about the edit window feature and not
javascript entirely. But FWIW in fedora I added
--disable-scripting-beanshell --disable-scripting-javascript
unconditionally since Fedora 36 without any known complaints :-)

https://src.fedoraproject.org/rpms/libreoffice/c/bddc32c9c1bd5f71e8b3117a326bd577b96ccd03


Re: Is anybody using LO's JavaScript editor window?

2024-03-25 Thread Mike Kaganski

On 26.03.2024 5:55, Thorsten Behrens wrote:

any recollection of anyone ever using live-editing of JS in LibreOffice?


Here is a list of Ask topics with "JavaScript" in title:

https://ask.libreoffice.org/search?q=JavaScript%20in%3Atitle%20order%3Alatest

IMO, it is best to provide a better language compliance, sacrificing the 
editor if unavoidable; the IDE could catch up later, even as an 
extension, like with Python's APSO.


--
Best regards,
Mike Kaganski



Re: Is anybody using LO's JavaScript editor window?

2024-03-25 Thread Thorsten Behrens
Hi y'all,

Stephan Bergmann wrote:
> Now, how widespread is the use of this edit window feature for JavaScript,
> actually?
>
I'm not aware of any extension using JS (except for ancient demo
code). The beanshell bits are sort of useful though, since they allow
rapid prototyping of Java UNO code - if that's not affected, I see
only upsides in this change.

Hossein, any recollection of anyone ever using live-editing of JS in
LibreOffice?

Cheers,

-- Thorsten


signature.asc
Description: PGP signature


Is anybody using LO's JavaScript editor window?

2024-03-25 Thread Stephan Bergmann
For each of BeanShell and JavaScript, we support some edit window in 
which such scripts can be typed in and modified, and from which those 
scripts can be run.  (For example, under "Tools - Macros - Organize 
Macros - JavaScript..." select "Macros - Application Macros - Hello 
World - helloworld.js" and click "Edit".)  For Python, on the other 
hand, we do not offer such an edit window at all.


Now, how widespread is the use of this edit window feature for 
JavaScript, actually?  Does anybody use it, would anybody miss it? 
(This is only about the JavaScript feature, the BeanShell edit window is 
not affected.)


I'm asking because I have 
 "Update to latest Rhino 
1.7.14" as a potential master change.  But, as its commit message says: 
"Update [...] at the expense of losing, at least for now, the script 
editor for it (which had been hacked into the old upstream sources in a 
hard-to-maintain way)."


(And, in turn, the reason why I'd like to update Rhino is because I have 
a JS script that our old Rhino 1.5 just can't comprehend.)