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

Delete and update AspectJ markers does full rebuild on every change

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.3.RELEASE
    • Fix Version/s: 3.6.4.RELEASE
    • Component/s: EDITING, ROO, UI
    • Labels:
    • Environment:
      See attached sts-configuration-details.txt

      Description

      I am experiencing poor performance using STS when working on a Roo project since the STS AspectJ/AJDT "Delete and update AspectJ markers" process does full rebuild on every single change (also whitespaces). I am uncertain if the problem is STS, ROO, AspectJ/AJDT or another tool in the stack, but its pretty annoying

      Usually i have the "Build Automatically" setting enabled in STS, but had to disable this to control when STS does full rebuild. I recreate the problem when inserting a whitespace into a JUnit test and save the file, when compiling the project the AspectJ/AJDT compiler does full rebuild of all aspects taking 1-2 min every time. The AspectJ/AJDT compiler normally completes its "Delete and update AspectJ markers" process in a few minuttes, but it is strange that a whitespace in a JUnit test can generate a full rebuild.

      I am working on a Lenovo T540p (i5-4300M CPU @ 2.60GHz with 16GB Ram) and i am using the latest STS (3.6.3.SR1, Build Id: 201501121239). Roo is running from STS integrated into the IDE. My Roo project is roughly 100 entities, 25 controllers plus the generated Roo code.

      I am most certain that the AspectJ/AJDT background processes are the cause for my problems (more likely: my inability to configure everything to its needs) as I am not experiencing any problems working on non-AspectJ projects. I have enabled JDT Weaving in STS.

      I am interested in any hints, tips, suggestions you might have that could help me speed up the processes again. I guess a good start would be to get some general configuration from someone who has all this running more vividly (especially for the AspectJ part of it).

      My STS project has the following builder/natures enabled:

      <buildSpec>
      	<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
      	<name>org.eclipse.wst.common.project.facet.core.builder</name>
      	<name>org.eclipse.ajdt.core.ajbuilder</name>
      	<name>org.springframework.ide.eclipse.core.springbuilder</name>
      	<name>org.eclipse.wst.validation.validationbuilder</name>
      	<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
      	<name>org.eclipse.m2e.core.maven2Builder</name>
      </buildSpec>
      <natures>
      	<nature>com.springsource.sts.roo.core.nature</nature>
      	<nature>net.vtst.ow.eclipse.less.nature</nature>
      	<nature>org.springframework.ide.eclipse.core.springnature</nature>
      	<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
      	<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
      	<nature>org.eclipse.ajdt.ui.ajnature</nature>
      	<nature>org.eclipse.m2e.core.maven2Nature</nature>
      	<nature>net.vtst.ow.eclipse.soy.nature</nature>
      	<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
      	<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
      	<nature>org.eclipse.jdt.core.javanature</nature>
      	<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
      </natures>
      

      If you need more information or have questions please tell

      Best regards
      Frank Henningsen

      Related problems:

        Attachments

          Activity

            People

            • Assignee:
              aclement Andy Clement
              Reporter:
              fhxster Frank Henningsen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: