Re: Trying to configure code assistance manually and accurately

  • From: Vladimir Voskresensky - Oracle < >
  • To:
  • Subject: Re: Trying to configure code assistance manually and accurately
  • Date: Tue, 11 Dec 2012 10:16:15 +0400

Hello Antonio,

If you was able to specify clean&build command for your project.
Could you try Clean&Build from IDE and then press "Configure Code Assistance" button in Build's Output Window?
It should adjust all code assistance to all your files correctly.

If you need navigation between source files of different projects =>
1) if you have master makefile/build script building "All" -> try to create one project, specify your full clean & build commands and Code Assistance should be automatically detected as well
OR
2) for each module's project you can go to project's properties and in Libraries specify "Dependent Projects"
=> should be able to jump between definitions directly

Hope it helps,
Vladimir.

On 03.12.12 21:32, titosanxez wrote:
Hi all,

I want to set up NB for a software project of thousands of lines. The source 
files are mainly C/C++, but there are many kind of files within the source 
tree, as XML, PDF, DOX, etc. The source tree is composed/organized in several 
modules. Each module is a directory with the following structure:


Code:

moduleA
|__publicHeaders
      |__header.h
      |__....
|__src
      |__submodule1
          |__include
               |__header1.h
          |__source1.c
          |__....
     |__submodule2
          |__include
              |__header2.h
          |__source2.c
          |__....
     ....
....
|




There are some rules of visibility, but the most important one is that a 
module can use only other module's header files that are located under 
module/publicHeaders.

Also, each module contains its own makefiles. So my approach is to create a 
NB C/C++ project with existing sources for each module, in which I specify 
the main makefile and the build rule. So far, this is very easy to do and the 
project works fine. In contrast, configuring accurately code assistance it's 
being a little bit more complicated.

The problems I'm having is that the actions under the "navigate" submenu that appears 
when clicking over a symbol are not working properly. For instance, when I click on "go to 
Declaration/Definition", it goes to the header file where it is declared, instead of the C 
file where is defined. Hence this question:
How can I tell Netbeans where to specifically look for declarations and for 
headers? Note that I would like to specify both things separately.

Also, as modules may depend on others, I would like NB projects to be able to 
consider files from those other modules, so that source navigation is able to 
go to the correct file.

In order to avoid GUI-based configuring and to reuse configurations, I'm 
creating the project configuration files by hand, that is, creating directly 
the configurations.xml and modifying then accordingly. So another question 
is, where could I get information about the XML schema and what each element 
means? For instance, I add by hand every element as follows:

Code:

<item path="../../moduleA//srcC/submodule1/source.c"
             ex="false"
             tool="0"
             flavor2="2">
     <cTool>
     </cTool>
</item>



I cannot relate the flavor2 attribute with any feature. What does it mean? 
where can I get information about attributes like this one?

Any help with this would be very appreciated. My goal is to have a set of NB 
projects properly configured so that all references are resolved. Please feel 
free to ask any question or doubt.

Thanks in advance.

Antonio






Trying to configure code assistance manually and accurately

titosanxez 12/03/2012

Re: Trying to configure code assistance manually and accurately

Vladimir Voskresensky - Oracle 12/11/2012

Trying to configure code assistance manually and accurately

titosanxez 12/17/2012

Trying to configure code assistance manually and accurately

titosanxez 12/17/2012

Re: Trying to configure code assistance manually and accurately

Alexander Simon 12/17/2012

Trying to configure code assistance manually and accurately

titosanxez 12/17/2012

Re: Trying to configure code assistance manually and accurately

Alexander Simon 12/17/2012

Trying to configure code assistance manually and accurately

titosanxez 12/17/2012

Trying to configure code assistance manually and accurately

titosanxez 12/18/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close