Community
Participate
Working Groups
When I right click on my project in the project explorer, and select "Properties", then the menu on the left of the dialog does not include the "C/C++ Build" entry. When I use the menu bar to select Project -> Preferences, the "C/C++ Build" enty is included. Eclipse Version: Helios Service Release 1 Build id: 20100917-0705.
(In reply to comment #0) > When I right click on my project in the project explorer, and select > "Properties", then the menu on the left of the dialog does not include the > "C/C++ Build" entry. What entries do you see there? Can you attach a screenshot? > When I use the menu bar to select Project -> Preferences, > the "C/C++ Build" enty is included. Is it "Project -> Properties" or "Window -> Preferences"? Are you sure the same project was selected when you used that. Maybe multiple projects got selected? Is it reproducible?
Yes, it is reproducible. Yes, it is the same project. Screenshot is attached, dialog1.jpg shows the dialog after right clicking on the project, dialog2.jpg is the dialog when selected over the menu bar. Note that the project name is missing in the title bar of the first dialog.
Created attachment 181500 [details] screenshot
Created attachment 181501 [details] screenshot 2
The decorator on the project shows it as Python project. Is it a project with mixed natures? What do you have in .project in <natures> section?
The project contains both C and Python components. I created it as a PyDev project and then selected "Convert to C/C++" project in the context menu (which seemed to make it both a PyDev and CDT project). From .project: <natures> <nature>org.python.pydev.pythonNature</nature> <nature>org.eclipse.cdt.core.cnature</nature> <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> </natures>
I've seen this too a couple of days ago (and meant to raise a bug). It appears that the C++ Build property doesn't show unless you are in the C/C++ Perspective. I regularly mix Java and C++ and you see this behavior in the Java perspective.
I created PyDev project and converted it to Makefile CDT project. I got the same set of natures as described in comment 6. Still I see "C/C++ Build" property page in C/C++, Java, Pydev perspectives in all Project Explorer, Package Explorer and Pydev Package Explorer. Your screenshot shows Pydev Package Explorer. If you open Project Explorer view, is it any different there or is it linked to perspective as Doug suggested?
That could be it, I'm opening the properties from the Java Packages view. That would imply that the C++ Build property is dependent upon an ICProject. The other thing I saw is that the C++ General property does always show up. So my question now is, how do these things differ? It would be a place to start looking.
The problem is not related to the perspective. It occurs in both the PyDev view with the PyDev Package Explorer and in the C/C++ View with the Project Explorer.
Do you have anything suspicious in .log?
Which .log do you mean?
There is a log file in your-workspace/.metadata/.log. You can also see its contents in eclipse view General/Error Log.
Created attachment 181579 [details] .metadata/.log here is the log file.
Created attachment 182028 [details] Fix enablement expressions This patch should fix it. At least it works for JDT. JDT and probably also PyDev have their own element types (JavaProject, etc.). The solution is to enable the page for any type that adapts to IProject (or IResource - depending on the page) and has the required nature. Additionally AbstractPage also needs to support adaptable types otherwise it throws a NullPointerException.
I committed the changes to HEAD and cdt_7_0.
*** cdt cvs genie on behalf of aleherbau *** Bug 328472 - "C/C++ Build" does not show under Preferences [*] plugin.xml 1.128.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.ui/plugin.xml?root=Tools_Project&r1=1.128.2.1&r2=1.128.2.2 [*] AbstractPage.java 1.77.2.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java?root=Tools_Project&r1=1.77.2.3&r2=1.77.2.4 [*] plugin.xml 1.132 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-build/org.eclipse.cdt.managedbuilder.ui/plugin.xml?root=Tools_Project&r1=1.131&r2=1.132 [*] AbstractPage.java 1.80 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java?root=Tools_Project&r1=1.79&r2=1.80