Community
Participate
Working Groups
Assuming I have an editor with can complete Fo to Foo and Foo. to Foo.Bar ; Auto-activation is enabled; the . character is NOT marked as completion proposal trigger char, or the trigger proposal trigger chars are disabled ( bug 539165 ). If I start a completion session after Fo, then Foo is proposed, ok. Then if I press enter, then the proposal is inserted, completion session is stopped, so if I type . after that, it starts a new session and Bar is proposed, ok. Now, if I start a completion session after Fo, then Foo is proposed, ok. Then if I keep typing o, the completion session remain and Foo is still proposed. ok. Then if I type . then all elements are filtered out, completion session is stopped and I don't get proposals for Bar. Not OK. I would expect that when all proposals are filtered out, a new completion session would start to request content assist processors for fresher content according to the last change.
New Gerrit change created: https://git.eclipse.org/r/129658
Gerrit change https://git.eclipse.org/r/129658 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=5b95a692ab1d6a909b865aad0f62fc0389fcc929
Done.
(In reply to Mickael Istria from comment #3) > Done. Mickael, I haven't looked deeper yet, but I fear that this change broke few JDT UI tests, and may be not just tests. http://download.eclipse.org/eclipse/downloads/drops4/I20180922-0245/testresults/html/org.eclipse.jdt.ui.tests_ep410I-unit-cen64-gtk3_linux.gtk.x86_64_8.0.html There are LOT of them, just one here for example: testSurroundWithRunnable19 Wrong number of proposals, is: 0, expected: 1 junit.framework.AssertionFailedError: Wrong number of proposals, is: 0, expected: 1 at junit.framework.Assert.fail(Assert.java:57) at junit.framework.Assert.assertTrue(Assert.java:22) at junit.framework.TestCase.assertTrue(TestCase.java:192) at org.eclipse.jdt.ui.tests.quickfix.QuickFixTest.assertNumberOfProposals(QuickFixTest.java:528) at org.eclipse.jdt.ui.tests.quickfix.SurroundWithTemplateTest.testSurroundWithRunnable19(SurroundWithTemplateTest.java:933) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(In reply to Andrey Loskutov from comment #4) > (In reply to Mickael Istria from comment #3) > > Done. > > Mickael, I haven't looked deeper yet, but I fear that this change broke few > JDT UI tests, and may be not just tests. I've looked now deeper, this change is not guilty, it was bug 535964 http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=bb4abd131785dc66b2a4da321ded042fd4e37db1