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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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.
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:
<ifcondition="1==1"><!-- src --><processtype="org.eclipse.cdt.core.CreateSourceFolder"><simplename="projectName"value="$(projectName)"/><simplename="path"value="$(sourceDir)"/></process></if><ifcondition="1==1"><!-- system --><processtype="org.eclipse.cdt.core.CreateSourceFolder"><simplename="projectName"value="$(projectName)"/><simplename="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 :-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'll investigate, thank you
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?
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.
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
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
In the generated project, root "src" is the only listed source location.
Generated project.
yes, the project is obviously incomplete.
can you check the workspace logs for any exceptions? (.metadata/.log)
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%)
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?
No difference with Kepler, also tried running both Kepler and Luna with jdk1.7.0_71.
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:
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 :-(
At least the problem is easy to avoid, and is now documented in case someone else runs into it.