[jbosstools-issues] [JBoss JIRA] (JBIDE-19773) Can Central tell the user what's wrong if gtk/swt/webkit not available so they know what to do?

Konstantin Marmalyukov (JIRA) issues at jboss.org
Fri Jun 5 10:40:04 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13074741#comment-13074741 ] 

Konstantin Marmalyukov commented on JBIDE-19773:
------------------------------------------------

Some testcases for Linux:
*A*. Install JBDS(including vpe), do not add any flags to configuration.
a.
1. Check if you have webkitgtk3 installed(or libwebkitgtk3 in case of Ubuntu). Launch JBDS with GTK3.
2. Central should be opened at first start. Check that wizards are opened, search works properly.

b. Remove webkitgtk3 package. Be careful with removing(do not remove the dependencies - you can break your Linux distro). Restart JBDS. Open central. Error message which advice you to install necessary package should be shown.

c.
1. Check if you have webkitgtk installed(or libwebkitgtk in case of Ubuntu). Install it if not installed. Launch JBDS with GTK2.
2. Central should be opened at first start. *Assert*: check that webkit browser is used(indicator: placeholder in search text input). Check that wizards are opened, search works properly.
3. Go to visual page editor preferences page. Set JSF(xulrunner) mode. Confirm restart prompt.
4. Open Central after restart(if it will not be opened automatically). *Assert*: check that embedded xulrunner browser is used(indicator: *no* placeholder in search text input). Wizards and search *should* work without any limitations.

d.
1. Launch JBDS with GTK2.
2. Open html page with JBoss Tools HTML editor, ensure Visual editor is in HTML5 mode, restart if necessary. If it is not necessary - restart anyway.
3. Open Central if it is not opened automatically. Ensure Central uses webkit(indicator: placeholder in search text input).

e. Remove webkitgtk package. Restart JBDS. Open central. Error message which advice you to install necessary package should be shown.

f. 
1. Download xulrunner10 and xulrunner 24 from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/ and unpack it somewhere
2. Configure JBDS to use downloaded xulrunner10. ping me for further instructions.
3. Run JBDS with GTK2
4. Set up HTML5 mode in VPE preferences if needed
5. Ensure you really use xullrunner10(Open internal web browser and go to whatsmyuseragent.com. User agent should be like Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/ /10.0.4)
6. Open Central and check if it works
7. Configure JBDS  to use downloaded xulrunner24 and repeat steps 3-6.

*B* Install Central with JBT installation, but *do not* install VPE.
a. Launch Eclipse/JBDS with GTK3. Error message should be shown(webkitgtk3 was removed in testcase b :) )

b. Install webkitgtk3 back. Launch Eclipse/JBDS with GTK3. Enjoy central.

c. Launch JBDS with GTK2.  Error message should be shown(webkitgtk was removed in testcase d)

d. Install webkitgtk back. Launch Eclipse/JBDS with GTK2. Enjoy central.

e.
1. Download xulrunner10 and xulrunner 24 from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/ and unpack it somewhere
2. Configure JBDS to use downloaded xulrunner10. ping me for further instructions.
3. Run JBDS with GTK2
4. Ensure you really use xullrunner10(Open internal web browser and go to whatsmyuseragent.com. User agent should be like Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/ /10.0.4)
5. Open Central and check if it works
6. Configure JBDS  to use downloaded xulrunner24 and repeat steps 3-5.

> Can Central tell the user what's wrong if gtk/swt/webkit not available so they know what to do?
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-19773
>                 URL: https://issues.jboss.org/browse/JBIDE-19773
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>    Affects Versions: 4.3.0.Alpha2
>            Reporter: Nick Boldt
>            Assignee: Konstantin Marmalyukov
>            Priority: Critical
>             Fix For: 4.3.0.Beta1
>
>
> It was suggested today on build.next call by Max that it would be great if when gtk/swt/browser/webkit problems occur as a result of Central loading that we could notify the user what when wrong and suggest a solution.
> Context:
> {quote}
> * No more handles with install-grinder https://issues.jboss.org/browse/JBIDE-19750 and https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-install-grinder.install-tests.matrix_master/2839/PROJECT=devstudio,eclipseBundleVersion=mars.M6,jdk=java18_default,label_exp=%28RHEL7||beaker||jboss-prod%29&&!ia64&&!ppc64&&!rhts/console
> *    SWT problem? GTK problem? xvnc/xvfb problem?
> *    missing webkit package on RHEL7 ?
> *    @mickael to ping Fred; see what is missing on RHEL7 (need GTK3 packages)
> *      what about x86 bundles for x86_64 platform? - https://github.com/jbosstools/jbosstools-devdoc/blob/master/building/how_to_build_jbosstools_faq.adoc#my-build-is-failing-due-to-unsatisfiedlinkerror-or-a-missing-so-file {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list