Menu

#132 "Advanced settings..." in wizard excludes files from STMF3xx template build

Next release
pending-postponed
None
5
2015-02-28
2014-11-29
No
  1. Create a new STM32F3xx C/C++ project
  2. In the wizard, click "Advanced settings..."

-> In the generated project, all folders except "src" will have the "Exclude resource from build" property set.

Discussion

  • Liviu Ionescu (ilg)

    • status: open --> open-accepted
    • assigned_to: Liviu Ionescu (ilg)
     
  • Liviu Ionescu (ilg)

    I'll investigate, thank you

     
  • Liviu Ionescu (ilg)

    I checked and I cannot reproduce the problem.

    In my tests, if you select the option to exclude unused files, only .c files from the stm32f3-stdperipfh, except gpio.c and rcc.c, are marked as excluded.

    Can you provide mode details?

     
  • Anders Montonen

    Anders Montonen - 2014-12-07

    My setup is Eclipse 4.4.1 on OS X 10.10.1, using jdk1.8.0_25. The issue is fully reproducible using default project options, the only thing I have to do is select advanced settings in the wizard (without changing any options). If I uncheck the exclude unused files option, the project is generated as expected.

     
    • Liviu Ionescu (ilg)

      I unpacked a fresh Eclipse, I created a new workspace, installed the plug-ins, created a new F3 project with default settings and only files from src/stm32f3-stdperiph are excluded.

      I do not have OS X 10.10 and Java 1.8, only 10.9 & 1.7.

      After entering Advanced settings, what else are you doing?

      Go to C/C++ General -> Path and Symbols -> Source Locations and show me the window, as attached.

       

      Last edit: Liviu Ionescu (ilg) 2014-12-08
  • Anders Montonen

    Anders Montonen - 2014-12-08

    In advanced settings I just click "OK", and I touch no settings in the wizard except selecting the project type and entering the name. It seems that clicking "Cancel" in advanced settings does not trigger this.

     

    Last edit: Anders Montonen 2014-12-08
  • Anders Montonen

    Anders Montonen - 2014-12-08

    In the generated project, root "src" is the only listed source location.

     
  • Anders Montonen

    Anders Montonen - 2014-12-08

    Generated project.

     
  • Liviu Ionescu (ilg)

    yes, the project is obviously incomplete.

    can you check the workspace logs for any exceptions? (.metadata/.log)

     
  • Anders Montonen

    Anders Montonen - 2014-12-09

    No exceptions. Creating the project only produces this entry in the log:

    !ENTRY org.eclipse.cdt.core 1 0 2014-12-09 11:04:49.537
    !MESSAGE Indexed '1' (4 sources, 62 headers) in 1.17 sec: 4,152 declarations; 4,981 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)

     
  • Liviu Ionescu (ilg)

    still could not reproduce it... :-(

    the only significant difference is Java 1.8, but it shouldn't behave so much different.

    could you also try the same sequence on a fresh Kepler SR2, with a fresh workspace?

    and possibly send me pictures with template settings?

     
  • Anders Montonen

    Anders Montonen - 2014-12-09

    No difference with Kepler, also tried running both Kepler and Luna with jdk1.7.0_71.

     
  • Liviu Ionescu (ilg)

    thank you for the screenshots, they were useful, I finally managed to reproduce the problem.

    it happens to other templates too, not only to F3.

    the template marks both the 'src' and the 'system' folders using exactly the same procedure:

    <if condition="1==1">
        <!-- src -->
        <process type="org.eclipse.cdt.core.CreateSourceFolder">
            <simple name="projectName" value="$(projectName)" />
            <simple name="path" value="$(sourceDir)" />
        </process>
    </if>
    
    <if condition="1==1">
        <!-- system -->
        <process type="org.eclipse.cdt.core.CreateSourceFolder">
            <simple name="projectName" value="$(projectName)" />
            <simple name="path" value="$(sysDir)" />
        </process>
    </if>
    

    the problem is that when the Advanced tab is entered, the source folders definitions made by the template are overwritten.

    I'm afraid there isn't much to do in the plug-in to fix this :-(

     
  • Anders Montonen

    Anders Montonen - 2014-12-10

    At least the problem is easy to avoid, and is now documented in case someone else runs into it.

     
  • Liviu Ionescu (ilg)

    • status: open-accepted --> pending-postponed
     
MongoDB Logo MongoDB