Since the last TextMate update I get a bunch of apparent Ruby Exceptions in my run log, see below for an example. It is always run_xcode_target.rb:156 causing the exception.
Any thoughts on how to fix it?
Thanks
Gerd
==> Exception during output formatting: TypeError: can't convert nil into String /Library/Application Support/TextMate/Bundles/ Xcode.tmbundle/Support/bin/run_xcode_target.rb:156:in `join' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:156:in `path_for_basename' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:152:in `each_pair' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:152:in `path_for_basename' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:367:in `run' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:364:in `gsub' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:364:in `run' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:281:in `call' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:281:in `run' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:281:in `each' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:281:in `run' /Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb: 55:in `call' /Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb: 55:in `exhaust' /Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb: 55:in `each_line' /Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb: 55:in `exhaust' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:276:in `run' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:325:in `run' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/run_xcode_target.rb:358:in `run' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/parse_build.rb:220 /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/format_build_output.rb:295:in `load' /Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/ bin/format_build_output.rb:295
On Jun 25, 2009, at 2:48 PM, Gerd Knops wrote:
Since the last TextMate update I get a bunch of apparent Ruby Exceptions in my run log, see below for an example. It is always run_xcode_target.rb:156 causing the exception.
Any thoughts on how to fix it?
Figured out the why: I was using a build script to pull the version info from the repository and put it into Info.plist and a version header, but Xcode never quite got that right.
So now I am using a separate target to do that, and my main target depends on that secondary target.
Apparently that breaks run_xcode_target.rb, for reasons I don't quite understand (I am somewhat Ruby illiterate, and who understands the project files?). As a workaround I disabled the offending part in run_xcode_target.rb, which surely breaks something else but so far works for me. Basically I changed line 154 from
if obj['isa'] == 'PBXContainerItemProxy'
to
if obj['isa'] == 'PBXContainerItemProxyXX'
Maybe this will help someone tracking it down and coming up with a real fix...
Thanks
Gerd