Hello List, I am new on this list and here is my first question to TM: I've started to learn programming with C. of course, I want to use TM as editor because of my positive experiences with the LaTex bundle. now i've the problem with compiling the source code. everytime pushing cmd+r, I get the error: "no xcode project available" so I compile the c-files manually with the terminal. that is not very comfortable;) my question is, if there is a way that I push cmd+r, TM runs the gcc in the background und execute the file in the terminal automatically? and if there is a source error TM jumps to the specific line? my current version of TM is 1.5.7 (1464). thanks a lot for your help.
sebastian
On Sep 26, 2008, at 7:17 PM, Sebastian Arns wrote:
Hello List,
I am new on this list and here is my first question to TM: I've started to learn programming with C. of course, I want to use TM as editor because of my positive experiences with the LaTex bundle. now i've the problem with compiling the source code. everytime pushing cmd+r, I get the error: "no xcode project available" so I compile the c-files manually with the terminal. that is not very comfortable;) my question is, if there is a way that I push cmd+r, TM runs the gcc in the background und execute the file in the terminal automatically? and if there is a source error TM jumps to the specific line? my current version of TM is 1.5.7 (1464). thanks a lot for your help.
Do you set your language to C in TextMate? C bundle has a command for Run and another for compiling to a tool. Have you tried these commands?
You can't use Objective-C mode. You simply need C.
Yes I'm using C as language, in this bundle I have following commands:- Quick Open - Compile Single File to Tool - Insert Missing Includes - Insert Call to Constructors - C Library Completations
and now I'm searching a command for build & run.
On Fri, Sep 26, 2008 at 12:30 PM, Takaaki Kato mate@samuraicoder.comwrote:
On Sep 26, 2008, at 7:17 PM, Sebastian Arns wrote:
Hello List,
I am new on this list and here is my first question to TM: I've started to learn programming with C. of course, I want to use TM as editor because of my positive experiences with the LaTex bundle. now i've the problem with compiling the source code. everytime pushing cmd+r, I get the error: "no xcode project available" so I compile the c-files manually with the terminal. that is not very comfortable;) my question is, if there is a way that I push cmd+r, TM runs the gcc in the background und execute the file in the terminal automatically? and if there is a source error TM jumps to the specific line? my current version of TM is 1.5.7 (1464). thanks a lot for your help.
Do you set your language to C in TextMate? C bundle has a command for Run and another for compiling to a tool. Have you tried these commands?
You can't use Objective-C mode. You simply need C.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Sep 26, 2008, at 1:32 PM, Sebastian Arns wrote:
Yes I'm using C as language, in this bundle I have following commands:
- Quick Open
- Compile Single File to Tool
- Insert Missing Includes
- Insert Call to Constructors
- C Library Completations
and now I'm searching a command for build & run.
Hi Sebastian,
Only very recently has the ⌘R “Run” command been added to the C bundle. It has not yet been distributed with TextMate. You have two options:
1. Wait until there is a new cutting edge build of TextMate. 2. Checkout the C bundle and Support folder from the Bundle repository.
For #1 you don't have to do anything except wait. For #2, you can follow the directions in the section 5.7 of the textmate manual here: http://manual.macromates.com/en/bundles
—Alex
On Sep 26, 2008, at 2:24 PM, Alex Ross wrote:
On Sep 26, 2008, at 1:32 PM, Sebastian Arns wrote:
Yes I'm using C as language, in this bundle I have following commands:
- Quick Open
- Compile Single File to Tool
- Insert Missing Includes
- Insert Call to Constructors
- C Library Completations
and now I'm searching a command for build & run.
Hi Sebastian,
Only very recently has the ⌘R “Run” command been added to the C bundle. It has not yet been distributed with TextMate. You have two options:
- Wait until there is a new cutting edge build of TextMate.
I should also mention that there should be a new cutting edge build in the next few of weeks, so you hopefully won't have to wait too long.
—Alex
Hello Alex, thanks for your hint. after updating the C bundle with svn the command "Run" appeared in the C bundle, but when I press cmd+r I get the following error-message:
/tmp/temp_textmate.5CLDJp:3:in `require': no such file to load -- /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor (LoadError) from /tmp/temp_textmate.5CLDJp:3
On Fri, Sep 26, 2008 at 2:24 PM, Alex Ross tm-alex@rosiba.com wrote:
On Sep 26, 2008, at 1:32 PM, Sebastian Arns wrote:
Yes I'm using C as language, in this bundle I have following commands:
- Quick Open
- Compile Single File to Tool
- Insert Missing Includes
- Insert Call to Constructors
- C Library Completations
and now I'm searching a command for build & run.
Hi Sebastian,
Only very recently has the ⌘R "Run" command been added to the C bundle. It has not yet been distributed with TextMate. You have two options:
- Wait until there is a new cutting edge build of TextMate.
- Checkout the C bundle and Support folder from the Bundle
repository.
For #1 you don't have to do anything except wait. For #2, you can follow the directions in the section 5.7 of the textmate manual here: http://manual.macromates.com/en/bundles
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Sep 26, 2008, at 9:45 PM, Sebastian Arns wrote:
thanks for your hint. after updating the C bundle with svn the command "Run" appeared in the C bundle, but when I press cmd+r I get the following error-message:
/tmp/temp_textmate.5CLDJp:3:in `require': no such file to load -- / Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ executor (LoadError) from /tmp/temp_textmate.5CLDJp:3
Have you got "Support" folder updated with svn as well? It's in the same level as "Bundles" directory.
On Sep 26, 2008, at 2:45 PM, Sebastian Arns wrote:
Hello Alex,
thanks for your hint. after updating the C bundle with svn the command "Run" appeared in the C bundle, but when I press cmd+r I get the following error-message:
/tmp/temp_textmate.5CLDJp:3:in `require': no such file to load -- / Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ executor (LoadError) from /tmp/temp_textmate.5CLDJp:3
Because you have not also grabbed the Support folder. See section 5.7.4.
http://manual.macromates.com/en/bundles
Now, that you have checkouts of the bundles it is important to remember to keep them up to date because these bundles will override those in the TextMate.app itself.
—Alex
Thanks everybody, now it works fine, but unfortunately it doesnt stop at scanf to wait for input.
On Fri, Sep 26, 2008 at 2:53 PM, Alex Ross tm-alex@rosiba.com wrote:
On Sep 26, 2008, at 2:45 PM, Sebastian Arns wrote:
Hello Alex,
thanks for your hint. after updating the C bundle with svn the command "Run" appeared in the C bundle, but when I press cmd+r I get the following error-message:
/tmp/temp_textmate.5CLDJp:3:in `require': no such file to load -- / Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ executor (LoadError) from /tmp/temp_textmate.5CLDJp:3
Because you have not also grabbed the Support folder. See section 5.7.4.
http://manual.macromates.com/en/bundles
Now, that you have checkouts of the bundles it is important to remember to keep them up to date because these bundles will override those in the TextMate.app itself.
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate