Bugs item #1169601, was opened at 2005-03-23 19:53
Message generated for change (Comment added) made by jkordas
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1169601&group_id=31650
Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack (jkordas)
Assigned to: Nobody/Anonymous (nobody)
Summary: exception from commented-out include file
Initial Comment:
This is in the nightly build, nant-0.85-nightly-2005-03-23.
If you have a line in a .cpp file such as
//#include "foo/bar.h" and foo.bar.h does not exist, you
get an error compiling when nothing should happen
because of the comment.
Problem is in
NAnt.VisualCpp.Tasks.ClTasks.FindUpdatedInclude()
_includeRegex must not be screening out the above.
If I change this to //#include "bar.h" I don't see this
problem.
----------------------------------------------------------------------
>Comment By: Jack (jkordas)
Date: 2005-03-24 10:43
Message:
Logged In: YES
user_id=1230267
I added a repro. The sample as sent compiles. To activate
each bug you will need to add a '#' in front of the include in
either Form1.cpp or Common\Nested.cpp
There are two somewhat related problems. The first one
described initially results in an exception such as the
following.
Unexpected error while compiling project 'WinForms'
Could not find a part of the path "D:\Program
Files\Microsoft Visual Studio.NET 2003\VC7
\ATLMFC\INCLUDE\foo".
The second results in an exception as follows.
BUILD FAILED
Unexpected error while compiling project 'WinForms'
Search pattern cannot contain ".." to move up directories
and can be contained only internally in file/directory names,
as in "a..b".
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-03-24 00:38
Message:
Logged In: YES
user_id=707851
Nevermind, I found the cause.
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-03-24 00:20
Message:
Logged In: YES
user_id=707851
I agree that we should be screening out commented
includes, but I don't see what exception you'd get from the
example you provided.
Can you provide more information on that ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1169601&group_id=31650
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers