Bug 155222 - [editor] [completion] "Insert common prefixes automatically" makes code completion case-sensitive
Summary: [editor] [completion] "Insert common prefixes automatically" makes code compl...
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.4.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Andrew Eisenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 09:42 EDT by Alex Savitsky CLA
Modified: 2008-08-22 17:29 EDT (History)
1 user (show)

See Also:


Attachments
AJ versions in my environment, if this helps (163.46 KB, image/jpeg)
2006-12-12 14:59 EST, Alex Savitsky CLA
no flags Details
A minimal testcase I was able to reproduce the bug with (1.42 KB, application/zip)
2006-12-14 09:59 EST, Alex Savitsky CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Savitsky CLA 2006-08-25 09:42:23 EDT
When in AJ editor, the code completion should disregard case when searching for completion choices. Currently, when you, say, type "var.tos" (where var is an Object) and  press Ctrl-Space, you won't get the toString() as a choice. You have to type "var.toS" to get the toString() in the list.

AJ version: 1.4.0
Build id: 20060629124300
Comment 1 Ramnivas Laddad CLA 2006-12-12 14:47:40 EST
Just tried this with 1.4.1.200611230655 and couldn't reproduce it. So perhaps this bug may be closed now.
Comment 2 Alex Savitsky CLA 2006-12-12 14:53:55 EST
Have you tried it in AJ editor or in regular Java editor? I currently have AJ 1.4.1.200611230655, and the bug is still there.
Comment 3 Alex Savitsky CLA 2006-12-12 14:59:16 EST
Created attachment 55525 [details]
AJ versions in my environment, if this helps
Comment 4 Matt Chapman CLA 2006-12-14 09:46:59 EST
hmm, I can't reproduce this either. Could you see if it happens with a minimal source file, and then paste in the code here?
Comment 5 Alex Savitsky CLA 2006-12-14 09:59:33 EST
Created attachment 55676 [details]
A minimal testcase I was able to reproduce the bug with

Too bad I don't know how to record it in action. Then again, how would I record keystrokes?

Anyway, just open the Test.java in "AspectJ/Java Editor" and press code completion (Ctrl-Space in my IDE) where the arrow "<-" points.

Change the trailing "s" to "S" and you'll get the toString() completion.
Comment 6 Matt Chapman CLA 2006-12-14 10:23:19 EST
how strange, it still seems to be working ok for me. Pressing ctrl-space gives an option of "toString()" plus the message about "limited aspectj support".

Do you get any completions at all? If so, please list them.

Could you try going to Window > Preferences then Java > Editor > Content Assist
Have you changed any settings on this page, or the "Advanced" sub-page? If so, please make a note of which ones, then use the "restore defaults" button on both pages, and try the test again.
Comment 7 Alex Savitsky CLA 2006-12-14 10:32:39 EST
Got it! The setting "Insert common prefixes automatically" breaks the code completion (beats me why - it doesn't seem to be related). When I switched it off, everything works. Other content assist settings seem to have no effect.

Thanks Matt!
Comment 8 Matt Chapman CLA 2006-12-14 11:28:24 EST
ok, cool. I haven't used this option before. It seems to work with the Java editor but not the AspectJ editor, so there is a bug here. Updating the abstract appropriately.
Comment 9 Andrew Eisenberg CLA 2008-08-22 17:29:03 EDT
Seems to be working now even with "Insert Common Prefixes" turned on.  I am resolving this bug as fixed.

Please comment if this is still an issue for you.