Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9271

Workspace locks/slow when Invoking 'CDI (Contexts and Dependency Injection Builder)' on 'project'

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.3.0.M4
    • Component/s: cdi, maven
    • Labels:
      None
    • Environment:
      Linux Ubuntu x64 Natty
      Eclipse Indigo 3.7
      Java 1.6.0_24
      JBoss Tools Nightly

      Description

      Invoking 'CDI (Contexts and Dependency Injection Builder)' on 'project' causes the workspace to lock whenever a file is changed.

      Check out this project:
      https://github.com/ocpsoft/rewrite

      Import in to workspace as maven project. Open a source file in API. Change the file. Try to change or save any other file (the workspace locks while it waits for CDI builder to finish.)

      Very annoying

        Gliffy Diagrams

        1. JBIDE-9271.patch
          3 kB
          Viacheslav Kabanovich
        2. JBT_CDI_Builder.mov
          8.26 MB
          Lincoln Baxter III

          Activity

          Hide
          akazakov Alexey Kazakov added a comment -

          Snjezana, what I did:
          1. cloned https://github.com/forge/core
          2. imported it as an existing maven project
          3. opened BaseFacet.java, edited it, saved, edited, saved, etc.
          It took about 7 seconds to re-build the projects for CDI builder in this case. But after the fix it takes only 0,07 - 0,15 s. It was a problem of incremental validation in CDI builder.

          Show
          akazakov Alexey Kazakov added a comment - Snjezana, what I did: 1. cloned https://github.com/forge/core 2. imported it as an existing maven project 3. opened BaseFacet.java, edited it, saved, edited, saved, etc. It took about 7 seconds to re-build the projects for CDI builder in this case. But after the fix it takes only 0,07 - 0,15 s. It was a problem of incremental validation in CDI builder.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          I just tried the build from last night. Everything seems much faster.

          Show
          lincolnthree Lincoln Baxter III added a comment - I just tried the build from last night. Everything seems much faster.
          Hide
          akazakov Alexey Kazakov added a comment -

          Lincoln, is it fast enough now? Or you still have to wait for CDI Builder when saving?

          Show
          akazakov Alexey Kazakov added a comment - Lincoln, is it fast enough now? Or you still have to wait for CDI Builder when saving?
          Hide
          snjeza Snjezana Peco added a comment -

          Please reopen if you faced this issue again.

          Show
          snjeza Snjezana Peco added a comment - Please reopen if you faced this issue again.
          Hide
          jjankovi Jaroslav Jankovič added a comment -

          Succesfully reproduced on M2 (~7 seconds for CDI builder). On M4 only about 0.1 sec. Verified in JBDS 5.0.0.v201110242253R-H40-M4. Closing Jira.

          Show
          jjankovi Jaroslav Jankovič added a comment - Succesfully reproduced on M2 (~7 seconds for CDI builder). On M4 only about 0.1 sec. Verified in JBDS 5.0.0.v201110242253R-H40-M4. Closing Jira.

            People

            • Assignee:
              snjeza Snjezana Peco
              Reporter:
              lincolnthree Lincoln Baxter III
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development