Community
Participate
Working Groups
2018-09: The quality of import quick fixes seems to have deteriorated a couple of years ago; there are many contexts where the import must be manually typed. I just found one that is close to a repro; it persists after an Eclipse restart. Given the following source: package org.eclipse.qvtd.compiler.internal.utilities; //import org.eclipse.ocl.pivot.utilities.ClassUtil; import org.eclipse.qvtd.pivot.qvtschedule.ConnectionRole; public class ToGraphPartitionVisitor2 { public void visit() { ConnectionRole targetConnectionRole = ClassUtil.nonNullState(null); } } ClassUtil is unresolved, but no no import quick fix is offered when hovering over ClassUtil. Rather a bad quick fix to add the org.eclipse.ocl.pivot bundle is offered even though that bundle is already required. Uncommenting the ClassUtil import solves the problem. If instead the "ConnectionRole targetConnectionRole = " text is deleted, the quick fix correctly offers org.eclipse.ocl.pivot.utilities.ClassUtil. ( ConnectionRole is an enum. nonNullState is templated. public static @NonNull <T> T nonNullState(@Nullable T aT) { )
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
I still see this, but find that after a minute or so a retry and the quick fix is there. It would appear that the background job that prepares the 'index' can be really really slow. If a quick fix is not yet available, the quick fix dialog should pop up a please wait/retry later dialog.