Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363900 - Code completion breaks down in 64Bit Eclipse (works in 32Bit Eclipse of same Version)
Summary: Code completion breaks down in 64Bit Eclipse (works in 32Bit Eclipse of same ...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-11-16 04:51 EST by Christian Schindler CLA
Modified: 2011-11-16 09:26 EST (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 Christian Schindler CLA 2011-11-16 04:51:46 EST
Build Identifier: M20110909-1335

When writing code if the code assist does not find a completion it exits with:
"Content Assist" did not complete normally.  Please see the log for more information.
1

After this error, content assist does not work any more in this file.
This does not happen in the 32Bit Version with the same BuildID (I checked older 64Bit Eclipse versions like Helios - same behavior).

Just a code snippet to show how to break code completion:

import java.awt.Color;
public class CompletionError {
	
public static void main(String[] args) {
//code completion from Sysout+CTRL+BLANK works		
System.out.println("Codecompletion works.");
System.out.println("Color.BLACK.getRGB()="+Color.BLACK.getRGB());

//stupid thing but to show how to break code completion
//pressing after "new Co"+CTRL+BLANK the completion works (i.e "Color(int arg)")
//pressing after "new C"+CTRL+BLANK the completion is broken further on.
Color col = new C

//line above is of course wrong, anyway if you remove it after that incident
//it breaks the code completion from this time on 

Sysout ; //here code completion does not work any more.
		
}
}


Reproducible: Always

Steps to Reproduce:
1.Generate a simple class with main method
2.import java.awt.Color;
3.Write code in main method: Color col = new C
4.Press CTRL+BLANK for code completion
5.From this time on completion is broken
Comment 1 Dani Megert CLA 2011-11-16 05:56:04 EST
> Please see the log for more information.
What does the .log say?
Comment 2 Dani Megert CLA 2011-11-16 06:14:31 EST
I cannot reproduce this with your steps and this build:
http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/download.php?dropFile=eclipse-SDK-3.7.1-win32-x86_64.zip
Comment 3 Christian Schindler CLA 2011-11-16 09:26:50 EST
Interesting - I now had the chance to try it on another machine and was not able to reproduce it either.

Therefore I again installed Java 1.7 for both 64/32Bit and tried it again with both eclipse builds (64/32Bit). Seems to work now... must have been a combination of weird Java installations/updates and Win7, I guess - and of course the guy who sits in front of the machine ;)

Can be closed - sorry about that!
Thanks anyway!