Community
Participate
Working Groups
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
Just tried this with 1.4.1.200611230655 and couldn't reproduce it. So perhaps this bug may be closed now.
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.
Created attachment 55525 [details] AJ versions in my environment, if this helps
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?
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.
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.
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!
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.
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.