Feeling Like Homer and exclaiming "D'Oh!"

I'm a big Simpsons fan - and one of the appeals is watching Homer do something really stupid that he should have known better and exclaim "D'oh" when the inevitable happens.  So there's nothing more painful when you end up "pulling a Homer"... 

I had one today.  I was trying to solve a problem, and made it worse by doing something that I should have known better.  At my client I'm doing some pretty complex TFS build automation.  Since some of what I'm doing is pushing the limits of what I personally think should be done using MSBuild, I wrote a C# custom MSBuild task that calls PowerShell.  My complex scripting therefor is done in what I believe is by far the best scripting language on the Windows platform, instead of a tool that is excellent for determining dependencies between source code...

While trying to debug a problem of getting my PowerShell script in an MSBuild script, all of sudden things that were previously working started breaking.  After annoying "cubical neighbors with exclamations of frustration" - I realized what I had just done to make things worse.

I was deploying changes to the build server using a "C$" type file share (I have admin access to the "box") and notepad.  I had the "Format-Word wrap" option in notepad checked - and it was inserting line breaks "randomly" in the scripts - wreaking havoc in both PowerShell and MSBuild...

 D'oh!

Published 24 November 08 01:49 by DanielS

Comments

No Comments
Anonymous comments are disabled