Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327861

Summary: [RDT] ProjectNotConfiguredException when hitting F3 "Open Declaration"
Product: [Tools] PTP Reporter: Thomas . <spam-receiver>
Component: RDTAssignee: Project Inbox <ptp-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3 CC: g.watson, jamesblackburn+eclipse, recoskie
Version: 4.0.3Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Thomas . CLA 2010-10-15 04:01:15 EDT
Build Identifier: 20100917-0705

Have a workspace with a single project in it.  The project is located in a "local" folder (Samba share).  
When I hover the mouse over an expression, the yellow window showing the declaration pops up.  When I press F3 for this expression, a window titled "Problem Occurred" appears with the following text:
'Open Declaration' has encountered a problem. An internal error occurred during: "Open Declaration".
The details give me the following text:
An internal error occurred during: "Open Declaration".
org.eclipse.ptp.services.core.ProjectNotConfiguredException

Reproducible: Always

Steps to Reproduce:
Probably depends on project setup/configuration.  What kind of information do you require for analysis?
Comment 1 James Blackburn CLA 2010-10-15 04:22:13 EDT
PTP is mentioned in the error, not CDT
Comment 2 Thomas . CLA 2010-10-15 05:17:14 EDT
Yes, but it happens for C++ files.
Comment 3 Chris Recoskie CLA 2010-10-15 09:20:39 EDT
Did you create a remote project for this, or a regular CDT project?

The behaviour of the Remote C/C++ Editor is to fall back to local behaviour if the file is local, so I am somewhat surprised you are seeing this.  The error would seem to inidcate you have a remote project that somehow doesn't have a service model configured for it.

Which version of PTP do you have installed?
Comment 4 Thomas . CLA 2010-10-15 10:01:44 EDT
(In reply to comment #3)
> Did you create a remote project for this, or a regular CDT project?
I don't remember, but probably "Remote C/C++ Project", because the error doesn't appear for normal C/C++ projects.  How can I find out?

> The behaviour of the Remote C/C++ Editor is to fall back to local behaviour if
> the file is local, so I am somewhat surprised you are seeing this.  The error
> would seem to inidcate you have a remote project that somehow doesn't have a
> service model configured for it.
What do you mean with "Service Model"?  I can find in the workspace preferences the page "Service Confiurations".  Is this the same?
If yes: No, I don't have a service configuration set up.  But I remember the error showing up, even if remote indexing service has been set up (although as mentioned the files are local).

> Which version of PTP do you have installed?
4.0.3.201009162109 for:
Parallel Tools Platform (PTP) End-User Runtime 
PTP Remote Development Tools (RDT)
PTP Remote System Explorer Adapter
Comment 5 Chris Recoskie CLA 2010-10-15 10:11:49 EDT
(In reply to comment #4)
> I don't remember, but probably "Remote C/C++ Project", because the error
> doesn't appear for normal C/C++ projects.  How can I find out?

Open the .project file for your project, and check the project natures.  If it's a remote project, then you will see RemoteNature in there.

I think part of the problem here is that you created a remote project, but pointed it at local files.  You should point the project location at the remote server using a remote filesystem provider such as RSE.  If you wish to treat your project as local, then there is no benefit to creating a remote project.

You will also need to create a service configuration for this project while you are creating it.  The wizard should take care of that
Comment 6 Thomas . CLA 2010-10-15 10:29:41 EDT
(In reply to comment #5)
> (In reply to comment #4)
> > I don't remember, but probably "Remote C/C++ Project", because the error
> > doesn't appear for normal C/C++ projects.  How can I find out?
> Open the .project file for your project, and check the project natures.  If
> it's a remote project, then you will see RemoteNature in there.
Yes, it's there, and also is the RemoteMakeNature.  But I created the project before the latest Eclipse update, i.e. version was dated from June 2010.

> I think part of the problem here is that you created a remote project, but
> pointed it at local files.  You should point the project location at the remote
> server using a remote filesystem provider such as RSE.  If you wish to treat
> your project as local, then there is no benefit to creating a remote project.
The benefit I'm trying to get is the following:
- The files are hosted on a Solaris box with ClearCase. When I use the WinXP mount of the ClearCase folders, I can make use of all the ClearCase features (checkin, checkout, diff, etc.). Also the index is held locally, which makes access quick for me. From this point, standard C/C++ project is fine.
- Builds have to be run on a different Solaris box.  The ClearCase paths are mounted there, too.  I want to call the build from within Eclipse, i.e. do some remote development.

So I set up the remote project with local files, configured the remote connection and also tried to configure the services.

> You will also need to create a service configuration for this project while you
> are creating it.  The wizard should take care of that.
The remote connection works fine, I can browse files via the RSE, open shells etc.  But because remote building didn't work, I removed the service configuration.
Comment 7 Thomas . CLA 2011-05-20 04:06:56 EDT
This error still occurs and still is a show stopper for using Eclipse. I have installed all latest software.
Can you please advise a workaround?
Comment 8 Greg Watson CLA 2014-05-29 16:25:38 EDT
Development on RDT has shifted to synchronized remote projects. Are you able to use these instead?
Comment 9 Thomas . CLA 2014-06-03 15:55:05 EDT
(In reply to Greg Watson from comment #8)
> Development on RDT has shifted to synchronized remote projects. Are you able
> to use these instead?

I have not observed the issue for a really long time. Probably some changes in my project configuration have obsoleted the problem.
Comment 10 Greg Watson CLA 2014-06-03 16:17:37 EDT
No longer a problem. Please open another bug if you have any other issues.