Bugs item #1169601, was opened at 2005-03-24 02:53 Message generated for change (Comment added) made by drieseng 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: Fixed Priority: 5 Submitted By: Jack (jkordas) >Assigned to: Gert Driesen (drieseng) 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: Gert Driesen (drieseng) Date: 2005-03-24 17:58 Message: Logged In: YES user_id=707851 Thanks for the repro. I already fixed this issue in CVS (not sure about the second one, but I'll test it when I get home). I'll upload a new nightly build later today (http://nant.sourceforge.net/nightly/latest). ---------------------------------------------------------------------- Comment By: Jack (jkordas) Date: 2005-03-24 17: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 07:38 Message: Logged In: YES user_id=707851 Nevermind, I found the cause. ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2005-03-24 07: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 nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers