Bug 518167 - [navigation] Open selection in Java editor doesn't work.
Summary: [navigation] Open selection in Java editor doesn't work.
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2017-06-13 03:50 EDT by Andriy Simonov CLA
Modified: 2017-12-06 04:28 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Simonov CLA 2017-06-13 03:50:42 EDT
I run Eclipse for Java Developers 4.7.0 RC3 on Linux with Gtk3 (org.eclipse.swt.internal.gtk.version=3.22.11). When I move the mouse over an overridable method with Ctrl pressed a popup with "Open Declaration" and "Open Implementation" appears, clicking on neither of them navigate anywhere.
Comment 1 Dani Megert CLA 2017-06-13 04:04:02 EDT
Noopur, please investigate. Probably same issue as bug 518166. And most likely in SWT.
Comment 2 Noopur Gupta CLA 2017-06-13 04:30:34 EDT
I cannot reproduce any of these issues with 4.7.0 RC3 on Ubuntu 16.04 having gtk version 3.18.9.

Can you please provide your OS details?

Also, check if any exception is logged in the Error Log.
Comment 3 Andriy Simonov CLA 2017-06-13 04:50:10 EDT
Sure,

uname -a
Linux desktop 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.0 (stretch)
Release:	9.0
Codename:	stretch

java -version
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

Should I add anything else?
Comment 4 Noopur Gupta CLA 2017-06-13 04:56:28 EDT
Thanks! Please attach any exception from the .log file in Eclipse that is generated when you click the "Open Declaration" link.
Comment 5 Noopur Gupta CLA 2017-06-13 05:02:24 EDT
Moving to SWT as it looks like an issue with the new gtk version.

I currently don't have access to a system with gtk 3.22.11 to verify this.
Comment 6 Andriy Simonov CLA 2017-06-13 05:07:54 EDT
Sorry, but I can't find any logs in the eclipse or ~/.eclipse directories. Could you tell me what the name of the file I need to check and where it is?
Comment 7 Noopur Gupta CLA 2017-06-13 05:17:20 EDT
See workspace/.metadata/.log file. Or, open the "Error Log" view in Eclipse which shows the contents of the .log file.
Comment 8 Andriy Simonov CLA 2017-06-13 05:32:04 EDT
No exceptions were generated when I clicked "Open Declaration".
Comment 9 Leo Ufimtsev CLA 2017-06-14 17:40:45 EDT
Works for me.

I have the following:
Version: Oxygen (4.7)
Build id: I20170530-0800

Fedora 25, 4.11.x, Gnome
Gtk 3.22.15

Does it occur on a fresh Eclipse and clean workspace? Maybe some plugin in messing with the functionality or you have an issue in your workspace.

To download recent nightly/integration builds, please go here:
http://download.eclipse.org/eclipse/downloads/
- Scroll down to "4.x Integration Builds". 
- Click on the most recent stable build like "I201XXXXX...", 
- Find your platform in the "Eclipse SDK". Download the archive, extract it and run the 'eclipse' binary.
Comment 10 Andriy Simonov CLA 2017-06-20 01:06:40 EDT
Hi Leo, thank you for your comment. I did exactly as you wrote. I downloaded eclipse-SDK-I20170612-0950-linux-gtk-x86_64.tar.gz and ran it on a new workspace. Unfortunately navigation still doesn't work.
Comment 11 Leo Ufimtsev CLA 2017-06-20 10:45:02 EDT
(In reply to Andriy Simonov from comment #10)
> Hi Leo, thank you for your comment. I did exactly as you wrote. I downloaded
> eclipse-SDK-I20170612-0950-linux-gtk-x86_64.tar.gz and ran it on a new
> workspace. Unfortunately navigation still doesn't work.

Which desktop window manager do use? Gnome/Mate/Cinamon/KDE/?

Are you using dark theme? If so, can you try light theme to see if there is a difference? (restart after switching).
Comment 12 Leo Ufimtsev CLA 2017-06-28 10:56:53 EDT
Ping.
Comment 13 Alexander Kurtakov CLA 2017-12-06 04:23:12 EST
Closing the bug due to no response from reporter and working for committers. Please reopen if you can still reproduce it with latest versions.