This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236429 - Code assistance chooses Fortran for Cpp files
Summary: Code assistance chooses Fortran for Cpp files
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project Discovery (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-26 15:33 UTC by AE56
Modified: 2013-11-14 12:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screengrab (59.95 KB, image/png)
2013-09-27 15:02 UTC, AE56
Details
Sample project (3.18 KB, application/x-gzip)
2013-09-27 15:04 UTC, AE56
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AE56 2013-09-26 15:33:37 UTC
I have a fortran library in my project that is mostly C++.  The code assistance parser appears to have selected fortran for all .cpp and .h files, not just .f files.
Comment 1 Alexander Simon 2013-09-27 07:05:49 UTC
Please clarify what you mean.
I do not understand the problem and how to it reproduce.
Comment 2 AE56 2013-09-27 15:02:56 UTC
Created attachment 140566 [details]
Screengrab
Comment 3 AE56 2013-09-27 15:04:04 UTC
Created attachment 140567 [details]
Sample project
Comment 4 AE56 2013-09-27 15:09:43 UTC
With the sample project I attached:  

Create a new C/C++ Project with Existing Sources, using the Makefile supplied in libraries/build/Makefile.

Code assistance fails to parse.  Looking at the File Properties for each .cpp file shows the Tool as Fortran Compiler.
Comment 5 Alexander Simon 2013-10-01 06:12:52 UTC
fixed, change set:
269b1ab906fd
Comment 6 AE56 2013-10-09 18:49:13 UTC
(In reply to Alexander Simon from comment #5)
> fixed, change set:
> 269b1ab906fd

I still see the issue with dev 201310070001.  Will I get a notification when this change set is merged?
Comment 7 Alexander Simon 2013-10-09 19:14:51 UTC
(In reply to AE56 from comment #6)
> (In reply to Alexander Simon from comment #5)
> > fixed, change set:
> > 269b1ab906fd
> 
> I still see the issue with dev 201310070001.  Will I get a notification when
> this change set is merged?
Fix was integrated 7 Oct in CND repository:
http://hg.netbeans.org/cnd-main/rev/9cd872364693
Take today build to be sure that fix was propagated in the dev build
Comment 8 AE56 2013-10-11 15:13:40 UTC
Tested with dev-201310110001. cpp files now correctly show the tool as C++ Compiler.  I think that means this bug is fixed as it was reported.

However, .h files have 'Exclude from code assistance' selected and tool as 'Custom Build Tool', so code assistance still fails to parse.
Comment 9 soldatov 2013-11-14 12:19:28 UTC
can't reproduce in NetBeans 7.4 patch1 build