Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 251453 - ProjectNotConfiguredException when not doing anything related to RDT
Summary: ProjectNotConfiguredException when not doing anything related to RDT
Status: RESOLVED DUPLICATE of bug 249156
Alias: None
Product: PTP
Classification: Tools
Component: RDT (show other bugs)
Version: 2.1RC2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Chris Recoskie CLA
QA Contact: Greg Watson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-20 15:03 EDT by Beth Tibbitts CLA
Modified: 2008-10-20 15:47 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 Beth Tibbitts CLA 2008-10-20 15:03:34 EDT
I installed Eclipse SDK 3.4.1, and CDT 5.0.2.200810170802
and PTP 2.1  10/20   RC2 candidate
I installed everything except for TAU Photran Enabler
I installed RSE end-user runtime and end user actions as well
(following instructions at the bottom of http://wiki.eclipse.org/PTP/builds/2.1)

I created a new hello MPI world project and ran simple PLDT 'find MPI artifacts' and used
some content assist
-- that is, I'm not doing anything related to RDT yet 

And i notice  in the console later:

!SESSION 2008-10-20 14:46:55.546 -----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments:  -showlocation -showlocation -keyring /Users/beth/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws carbon -arch x86 -showlocation -data /Users/beth/ews/runtime-ptp21rc2_sdk -showlocation -keyring /Users/beth/.eclipse_keyring -consoleLog -showlocation

!ENTRY org.eclipse.cdt.core 1 0 2008-10-20 14:47:45.781
!MESSAGE Indexed 'a_helloMPI' (1 sources, 20 headers) in 2.23 sec: 3,691 declarations; 2,443 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0.00%)
CDT version: 5.0.2.200810170802

!ENTRY org.eclipse.cdt.ui 4 4 2008-10-20 14:48:34.346
!MESSAGE Error
!STACK 0
org.eclipse.ptp.rdt.services.core.ProjectNotConfiguredException
	at org.eclipse.ptp.rdt.services.core.ServiceModelManager.getConf(ServiceModelManager.java:140)
	at org.eclipse.ptp.rdt.services.core.ServiceModelManager.getActiveConfiguration(ServiceModelManager.java:148)
	at org.eclipse.ptp.internal.rdt.ui.contentassist.RemoteCompletionProposalAdapter.getService(RemoteCompletionProposalAdapter.java:31)
	at org.eclipse.ptp.internal.rdt.ui.contentassist.AbstractCompletionProposalAdapter.computeCompletionProposals(AbstractCompletionProposalAdapter.java:75)
	at org.eclipse.ptp.internal.rdt.ui.contentassist.AbstractCompletionProposalAdapter.computeCompletionProposals(AbstractCompletionProposalAdapter.java:63)
	at org.eclipse.cdt.internal.ui.text.contentassist.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:296)
	at org.eclipse.cdt.internal.ui.text.contentassist.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:260)
	at org.eclipse.cdt.internal.ui.text.contentassist.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:267)
	at org.eclipse.cdt.internal.ui.text.contentassist.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:220)
	at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1836)

Does not seem to cause anything visible in the workbench.
Comment 1 Chris Recoskie CLA 2008-10-20 15:07:45 EDT
I am willing to bet this was because you are using the remote editor with a non-remote project.

*** This bug has been marked as a duplicate of bug 249156 ***
Comment 2 Mike Kucera CLA 2008-10-20 15:32:52 EDT
(In reply to comment #1)
> I am willing to bet this was because you are using the remote editor with a
> non-remote project.

I agree.
Comment 3 Beth Tibbitts CLA 2008-10-20 15:47:00 EDT
You are both exactly right.
I didn't even notice the different editor icon (NOW I DO)

So, if RDT is installed, the default editor is always "Remote C/C++ Editor" it seems.
Once you force it to open a particular file with the normal editor once,
(context menu, Open With, C/C++ Editor)
then it subsequently opens that file with the normal editor.
(As expected, it always defaults to the last-used editor per file, is I think what's happening.)

The ProjectNotConfiguredException happens as soon as I do some content assist 
in a file opened with the Remote Editor, in a local project.

I think I would recommend that users do not install RDT unless (all) their projects in the eclipse installation are remote projects.  Does this sound right???