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

Bug 140396

Summary: content assist stops working after uninstall
Product: z_Archived Reporter: Michael D. Elder <mdelder>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: mik.kersten
Version: dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michael D. Elder CLA 2006-05-05 13:21:13 EDT
When using a IBM 5.0 JDK, I find that after installing Mylar to one Eclipse environment, JDT content assist fails in other environments that are either (1) not JDK 5.0 or (2) do not have Mylar installed. 

On a fresh Eclipse SDK (in this case 20060505-1208), and using the default system JRE (which is a Sun JDK 5.0), content assist failed to work. I switched the VM Launch option (-vm) of Eclipse to use the IBM JDK 5.0, with j9 support. Still no content assist. Finally, I installed the Mylar support (I have installed it previously to other development environments, all 3.2 based, all recent Eclipse SDKs, sometimes with WTP loaded as well). After installing Mylar support to this new environment (using the Update mechanism and the "dev" update site), I finally had content assist restored.
Comment 1 Michael D. Elder CLA 2006-05-05 13:23:41 EDT
One thing that seems to be consistent between these issues is the configuration of the workspace; so it may be that content assist fails in Eclipse SDKs without Mylar support, when the current workspace has been used by an Eclipse SDK with Mylar support. 

This seems counter-intuitive that simply using Mylar on a workspace can break other Eclipse SDKs when using the same workspace. 
Comment 2 Mik Kersten CLA 2006-05-05 14:37:30 EDT
I'm guessing the problem with the proposals not showing up is that the Mylar and standard proposals are disabled.  Please try to follow the configuration instructions at the following entry and let me know how it goes:

http://www.eclipse.org/mylar/doc/faq.php#content-assist-duplication

If this is indeed the case, the underlying problem is that the Mylar proposals disappear on uninstall, and the standard JDT ones do not get re-enabled.  I submitted a JDT UI report for this (bug 140416), and we note it in the uninstall troubleshooting:

http://www.eclipse.org/mylar/doc/faq.php#content-assist
 
Comment 3 Michael D. Elder CLA 2006-05-05 15:31:03 EDT
So in this case, I wasn't trying to uninstall it. I just wanted to use a different version of Eclipse on the workspace. I was unaware that there were contributions like that.

Could you contribute a J2SE1.3+ compliant version of the contribution that would indicate how to change the setting when the proposals were requested? Something like "No Content Assist Proposals -- go to ... in the preferences to change your settings" ?
Comment 4 Mik Kersten CLA 2006-05-09 16:03:30 EDT
I've improved and clarified the preference page.  However, I'm not sure what you mean by a J2SE1.3+ compliant contribution--wouldn't such a contribution need to reside with JDT UI?  I've described that on bug 140416, and note that there is a screenshot of the updated preference settings wizard there.
Comment 5 Mik Kersten CLA 2006-05-15 21:15:43 EDT
We have done what we could on the Mylar end, although I'm still not happy with the result (and went as far as making the warning in the wizard red, sigh).  Michael, if you have additional suggestions feel free to re-open.  FAQ entry is: http://www.eclipse.org/mylar/doc/faq.php#content-assist

*** This bug has been marked as a duplicate of 140416 ***