Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321291 - [RDT] Code navigation, e.g. "Open Declaration", no longer works
Summary: [RDT] Code navigation, e.g. "Open Declaration", no longer works
Status: CLOSED WONTFIX
Alias: None
Product: PTP
Classification: Tools
Component: Core (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 03:22 EDT by Thomas . CLA
Modified: 2014-05-29 14:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas . CLA 2010-07-30 03:22:20 EDT
Build Identifier: 20100617-1415

I tried to setup a remote C++ project with local sources and remote build, but didn't get it working. So I deleted that project from my workspace. Then I added the same C++ sources from the same location as before as a normal C++ project. Now code browsing does not work any longer, although the index has been properly.

This is one example of what I get when I press F3 on a function, which is part of my sources:

An internal error occurred during: "Open Declaration".
org.eclipse.ptp.services.core.ProjectNotConfiguredException

F4 and Ctrl+Alt+H produce teh same exceptions. However, the source code highlighting does not show any errors, e.g. unresolved includes.


Reproducible: Always

Steps to Reproduce:
1. Open my workspace (what's so special about it?)
2. Open a source code file.
3. Use code browsing.
Comment 1 Greg Watson CLA 2010-12-15 19:02:08 EST
I'm not sure how this could be configured. When you create a new remote project, you have to specify a remote system for the project. Or did you try to configure the remote build manually?
Comment 2 Thomas . CLA 2011-03-31 05:00:52 EDT
(In reply to comment #1)
> I'm not sure how this could be configured. When you create a new remote
> project, you have to specify a remote system for the project. Or did you try to
> configure the remote build manually?

No, I only used the "New Project" wizard and the property pages.  But maybe I found the clue to the problem:
In "Service Configurations" I have configured a remote build service, but no indexing service.  This is because I don't have remote sources to be indexed, but only want to build remotely.
Comment 3 Thomas . CLA 2011-05-24 11:10:47 EDT
I still observe the same behavior with an installation downloaded today (i.e. Helios SR2).  I have created a new workspace and a new project:
- New Remote Project
- Provider: Local
- Connection: Local
I selected these settings because I have Samba access to the remote files.

Then I went to "Edit Service Configuration", selected the "Local" service
configuration (it's the only one) and edited the build settings:
- Service Provider: Remote Build Service
- Provider: Remote Tools
- Connection: a connection to the build host, created via the "New connection"
button
- Build Configuration Location: this was pre-filled with some local path:
C:/Documents and Settings/my_username/.eclipse

Now:
- "Outline" constantly shows "Pending..."
- Symbol highlighting in the editor doesn't work.
- Hitting F3 on any symbol has no effect.
- Clicking on the plus + next to a file in the "C/C++ Projects" browser causes the UI to hang.

Please advise.
Comment 4 Thomas . CLA 2011-05-24 11:13:07 EDT
(In reply to comment #3)
> - Clicking on the plus + next to a file in the "C/C++ Projects" browser causes
> the UI to hang.
Sorry, I have been impatient: after 3-5 minutes the UI returned, but the plus didn't expand.
Comment 5 Thomas . CLA 2011-05-24 11:15:39 EDT
(In reply to comment #3)
> - Hitting F3 on any symbol has no effect.
I have found the following message in the "Error Log", but I don't know if it's related:

eclipse.buildId=M20110210-1200
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.cpp.product


Error
Tue May 24 17:13:24 CEST 2011
No search result page found for search result class org.eclipse.ptp.rdt.ui.serviceproviders.NullCIndexServiceProvider$NullSearchQuery$NullSearchResult
Comment 6 Greg Watson CLA 2014-05-29 14:08:25 EDT
Assuming this will not be fixed.