Bug 116926 - Script providers should be able to check if they can handle data without initialising their engines
Summary: Script providers should be able to check if they can handle data without init...
Status: RESOLVED DUPLICATE of bug 126643
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
6.0.3.2 release
Hardware: All Linux (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 15:34 UTC by Daniel Oakey
Modified: 2021-05-10 10:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Oakey 2018-04-10 15:34:25 UTC
Description:
I installed the [Code Highligher](https://extensions.libreoffice.org/extensions/code-highlighter) extension which uses python 3, not Java. 

Now, every time I open any Libre Office application, I get a warning that I need to install a Java Runtime Environment.

[warning](https://i.imgur.com/XItcYjN.jpg)

Steps to Reproduce:
1. Install an extension that uses python, not Java, such as the Code Highlighter extension
2. Open any LibreOffice application

Actual Results:  
An annoying warning appears saying I need to have Java installed

Expected Results:
A Java warning should only appear if I have an extension requiring Java.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 Buovjaga 2018-04-18 16:26:23 UTC
Comment from Mike Kaganski on IRC:
because Java providers are lexicographically before Python script engine provider and when looking for relevant providers, they are tested first, and complain

Caolán had a quick solution:
search backwards and I imagine the practical problem goes away
Comment 2 Buovjaga 2018-04-18 16:32:50 UTC
Well, Mike had a further comment, so tweaking summary.
Comment 3 QA Administrators 2019-04-19 03:01:00 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2021-04-19 03:39:22 UTC Comment hidden (obsolete)
Comment 5 Mike Kaganski 2021-05-10 10:57:34 UTC

*** This bug has been marked as a duplicate of bug 126643 ***