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

Grails Tooling: PerProjectPluginCache reads wrong Grails class path container during refresh dependencies

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.5.0.M3
    • Fix Version/s: 2.5.0.RC1
    • Component/s: GRAILS
    • Labels:
      None

      Description

      When making dependency changes to a Grails project like installing or adding in-place plugins, refresh dependencies creates a new Grails class path container with new class path entries for the new additions, but after the container is switched, PerProjectPluginCache, which caches the dependencies, still reads the old class path container from the Grails project. This results in the dependency changes not appearing in the Project Explorer or Grails Plugin Manager.

      The work around seems to invoke refresh dependencies twice, as the second time, the cache seems to read the correct class path container.

        Activity

        Hide
        nisingh Nieraj Singh added a comment -

        This appears to be fixed indirectly by the solution for STS-1102. The class path container switch now occurs in the same SourceFolderJob that performs the class path entry changes. The job also refreshes the descriptor cache in the per project plugin cache once the class path containers have been changed.

        Show
        nisingh Nieraj Singh added a comment - This appears to be fixed indirectly by the solution for STS-1102 . The class path container switch now occurs in the same SourceFolderJob that performs the class path entry changes. The job also refreshes the descriptor cache in the per project plugin cache once the class path containers have been changed.

          People

          • Assignee:
            Unassigned
            Reporter:
            nisingh Nieraj Singh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: