Bug 1331470

Summary: swt hello world tutorial does not work
Product: [Fedora] Fedora Reporter: Peter Backes <rtc>
Component: eclipseAssignee: Sopot Cela <scela>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: akurtako, andjrobins, eclipse-sig, jerboaa, krzysztof.daniel, mat.booth, rgrunber, sbobber
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-27 22:29:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Screenshot none

Description Peter Backes 2016-04-28 14:57:07 UTC
Description of problem:
The "Create a Hello World SWT application" fails to work as described; widget classes are inaccessible.

Version-Release number of selected component (if applicable):
eclipse-platform-4.5.2-10.fc23.i686

How reproducible:
always

Steps to Reproduce:
1. run eclipse
2. On the welcome tutorial screen, select "Create a Hello World SWT application"
3. do as instructed

Actual results:
"Organize imports" has no effect, which leads to the following compile errors: 
	Display cannot be resolved to a type
	Display cannot be resolved to a type
	Shell cannot be resolved to a type
	Shell cannot be resolved to a type

Expected results:
imports for Display and Shell are added by the "Organize imports" command.

Additional info:
1. manually adding the necessary imports, like

	import org.eclipse.swt.widgets.Display;
	import org.eclipse.swt.widgets.Shell;

has no effect; the compile errors about missing Display and Shell are still present.

2. The workspace explorer shows some strange files in org.eclipse.swt.gtk.linux.x86, like org/eclipse/swt/widges/*.orig and library/*.orig. Should these files really be there? They look like leftover files from a patch that was applied.

Comment 1 Alexander Kurtakov 2016-04-28 15:06:46 UTC
Sopot, please investigate.

Comment 2 Mat Booth 2016-04-29 08:31:39 UTC
(In reply to Peter Backes from comment #0)
> 2. The workspace explorer shows some strange files in
> org.eclipse.swt.gtk.linux.x86, like org/eclipse/swt/widges/*.orig and
> library/*.orig. Should these files really be there? They look like leftover
> files from a patch that was applied.

You are right, these files should not be there are left overs from a patch that is not cleanly applied (there was fuzz) but this likely to be a red herring and not the cause of your problem.

Fortunately, our SWT patches go away with the update to Neon. :-)

Comment 3 Sopot Cela 2016-04-29 08:41:48 UTC
(In reply to Peter Backes from comment #0)
> Description of problem:
> The "Create a Hello World SWT application" fails to work as described;
> widget classes are inaccessible.
> 
> Version-Release number of selected component (if applicable):
> eclipse-platform-4.5.2-10.fc23.i686
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> 1. run eclipse
> 2. On the welcome tutorial screen, select "Create a Hello World SWT
> application"
> 3. do as instructed
> 
> Actual results:
> "Organize imports" has no effect, which leads to the following compile
> errors: 
> 	Display cannot be resolved to a type
> 	Display cannot be resolved to a type
> 	Shell cannot be resolved to a type
> 	Shell cannot be resolved to a type
> 
> Expected results:
> imports for Display and Shell are added by the "Organize imports" command.
> 
> Additional info:
> 1. manually adding the necessary imports, like
> 
> 	import org.eclipse.swt.widgets.Display;
> 	import org.eclipse.swt.widgets.Shell;
> 
> has no effect; the compile errors about missing Display and Shell are still
> present.
> 

I confirm it is not working. We're thinking it may have something to do with the way we package the org.eclipse.swt.gtk.linux.x86_64 project in fedora as it is working fine with upstream eclipse.

Comment 4 Sopot Cela 2016-04-29 08:51:06 UTC
Created attachment 1152185 [details]
Screenshot

The issue is narrowed down to two jars not being present in org.eclipse.swt.gtk.linux.x86_64. See attachment for a comparison of fedora and upstream versions (left-fedora and right-upstream). They are in the upstream version but they're not in the fedora case. Also deleting the jars in upstream project gives same erroneous behavior (imports not resolved).

Comment 5 Alexander Kurtakov 2016-05-03 06:25:28 UTC
Hmm, having the jars embedded that way looks wrong in the upstream version. And all the class files should be there already so I would say the example/whatever is run by the hyperlink needs fixing to setup the project proper.

Comment 6 Fedora End Of Life 2016-11-25 07:29:51 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Mat Booth 2016-11-25 10:41:36 UTC
I assume this is still a problem.

Comment 8 Fedora End Of Life 2017-02-28 09:57:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 9 sbobber 2017-10-11 07:41:46 UTC
Using Fedora 26, I solved by downloading and installing jdk from http://www.oracle.com/technetwork/java/javase/downloads/index.html

Comment 10 Fedora End Of Life 2018-05-03 08:48:36 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 11 Ben Cotton 2019-05-02 21:52:08 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Ben Cotton 2019-10-31 19:22:36 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 13 Ben Cotton 2019-11-27 22:29:23 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.