Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-407

Content assist for favorites does not work reliably

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.1.0.SR01
    • Fix Version/s: Sprint 2, 2.2.0.RELEASE
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS X 10.5.7, Java 5, Eclipse 3.5 Carbon-based STS

      Description

      I have two content assist favourites configured in a number of workspaces: org.junit.Assert.* and org.easymock.EasyMock.. Unfortunately content assist does not consistently provide me with completion options for these two favourites, e.g. at the moment typing assert cmd-space offers me no proposals. I would expect to see that various assert methods on org.junit.Assert.

      I don't always have this problem, e.g. it seems to work fine in some workspaces but not in others. Once the problem's occurred, restarting STS doesn't appear to make any difference. I've looked in the error log and it doesn't appear to contain anything that relates to this problem.

        Activity

        Hide
        awilkinson Andy Wilkinson added a comment -

        Oops, sorry about the bold text above. I wasn't shouting, I just neglected to espace the *'s properly.

        Show
        awilkinson Andy Wilkinson added a comment - Oops, sorry about the bold text above. I wasn't shouting, I just neglected to espace the *'s properly.
        Hide
        cdupuis Christian Dupuis added a comment -

        Andy, are you running with JDT Weaving enabled on those workspaces where the problem occurs?

        Christian

        Show
        cdupuis Christian Dupuis added a comment - Andy, are you running with JDT Weaving enabled on those workspaces where the problem occurs? Christian
        Hide
        awilkinson Andy Wilkinson added a comment -

        I've just checked the workspace that I'm using at the moment that's exhibiting the problem: it's got JDT weaving enabled.

        Show
        awilkinson Andy Wilkinson added a comment - I've just checked the workspace that I'm using at the moment that's exhibiting the problem: it's got JDT weaving enabled.
        Hide
        awilkinson Andy Wilkinson added a comment -

        And now I've disabled JDT weaving, restarted STS, and content assist is working again. Thanks for the tip, Christian.

        Show
        awilkinson Andy Wilkinson added a comment - And now I've disabled JDT weaving, restarted STS, and content assist is working again. Thanks for the tip, Christian.
        Hide
        cdupuis Christian Dupuis added a comment -

        Thanks Andy, I've forwarded this problem to Andrew E. for investigation. Except to hear back soon.

        Christian

        Show
        cdupuis Christian Dupuis added a comment - Thanks Andy, I've forwarded this problem to Andrew E. for investigation. Except to hear back soon. Christian
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        Andy,

        Is this behavior happening throughout the workspace (ie- even for non-AJ projects)? Or only AJ projects?

        Show
        aeisenberg Andrew Eisenberg added a comment - Andy, Is this behavior happening throughout the workspace (ie- even for non-AJ projects)? Or only AJ projects?
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        I've tried this out in both STS 2.1.0.SR01 as well as the latest dev build.

        In STS, I can reproduce your problem in AJ projects.

        However, the problem appears to be fixed in the latest dev build. I have fixed some other bugs in the way that AJDT handles content assist and this bug may have been addressed at the same time.

        Can you try updating to the dev build and see if this fixes your problem?

        AJDT Update Site - http://download.eclipse.org/tools/ajdt/35/dev/update

        Show
        aeisenberg Andrew Eisenberg added a comment - I've tried this out in both STS 2.1.0.SR01 as well as the latest dev build. In STS, I can reproduce your problem in AJ projects. However, the problem appears to be fixed in the latest dev build. I have fixed some other bugs in the way that AJDT handles content assist and this bug may have been addressed at the same time. Can you try updating to the dev build and see if this fixes your problem? AJDT Update Site - http://download.eclipse.org/tools/ajdt/35/dev/update
        Hide
        cdupuis Christian Dupuis added a comment -

        Andrew, Andy I can confirm that after updating AJDT the problem disappears.

        Andy, please let me know if that is the case for you as well, so that we can close this issue.

        Christian

        Show
        cdupuis Christian Dupuis added a comment - Andrew, Andy I can confirm that after updating AJDT the problem disappears. Andy, please let me know if that is the case for you as well, so that we can close this issue. Christian
        Hide
        awilkinson Andy Wilkinson added a comment -

        Thanks, chaps. I've re-enabled JDT weaving and can confirm that the problem only occurs in AspectJ projects. Also, I've just upgraded to the latest dev build and that's fixed the problem in AspectJ projects for me too. Thanks again.

        Show
        awilkinson Andy Wilkinson added a comment - Thanks, chaps. I've re-enabled JDT weaving and can confirm that the problem only occurs in AspectJ projects. Also, I've just upgraded to the latest dev build and that's fixed the problem in AspectJ projects for me too. Thanks again.

          People

          • Assignee:
            Unassigned
            Reporter:
            awilkinson Andy Wilkinson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: