Community
Participate
Working Groups
Created attachment 287001 [details] Auto complete working. Autocomplete is not providing a list of options once an assertion has been added to the function. The following works before adding the assertion. See "BeforeAssert" image. I then add the assertTrue(). See "WithAssert". Now when I type user dot, auto complete does not recommend options, so I then type ctrl-space to get a list - empty. See "AfterAssert" image. I noticed this when working on unit tests because I'm copying tests to make different variations, and they usually contain an assertion at the end. I can work around by commenting out the assert, and everything works.
Created attachment 287002 [details] AfterAssert
Created attachment 287003 [details] WithAssert
Created attachment 287004 [details] BeforeAssert
Created attachment 287005 [details] Java code.
I've simplified and used the variable passed to my lambda, someVar - and when I type the dot, nothing appears. This eliminated my User class from the senario.
Please check with 4.21 RC2a if the bug was fixed, may be one of linked bugs to bug 574913 are related.
I can reproduce this issue in 4.20, but not anymore in 4.21 and in I20210917-1800. Therefore, I close this bug as fixed. Shawn, thanks for reporting. Please upgrade to Eclipse 2021-09 (4.21) to get this and other content assist fixes (see bug 574913).