On 01.04.2009, at 07:30, rburrowes wrote:
Why do I sometimes get xcode messages when using cmd R to run ruby code? If I click somewhere else in the document and then use cmd R, then it usually runs the code in the file without the xcode error.
Right now though, nothing I do is working. I'm getting
xcodebuild: Error: the directory /Users/xxxx/Desktop does not contain an Xcode project.
every time I try cmd R.
Did you set the language grammar of your Ruby file to "Ruby"? ⌘R behaves different according to the set language. If a language grammar/bundle has no ⌘R specified it falls back a tmCommand which has that key shortcut set to no scope. ⌘R in the Xcode bundle is such a tmCommand. Thus make sure that your language is set, in your case, to "Ruby"
--Hans