I'm just getting started with TextMate and want to use it for C++ programming. I'm wondering if people can give me some pointers and tricks on how to do that (other than the stuff in the C and other bundles, of course.) Right now, all I'm really using is the syntax highlighting, auto-indent and brace-matching. Everything else could be done in TextEdit.
One thing I specifically want to do is trigger my projects GNU 'make' script and then have the output pipped into a TextMate window. Not that hard to write a plugin for (though if anybody already has one, point me to it.) However, the tricky part is that I want to link file names in the output to files in TextMate in case the compiler spits an error at me. That means either being able to click on something like "./includes/GUI/graphs.cpp:210" and being taken to that file and line in TM, like a hyperlink, or having TM put highlights/bookmarks/whatever directly at the line in question. Is this at all possible?
I've searched Google and this list but I nothing has jumped out at me so far (though the results are so long for "C++ textmate" that there may be something buried there I'm not seeing.) If anybody can tell me how they use TM for writing C++ projects using the GNU compiler tools (g++, make, GDB, etc.) I'd really appreciate that.
You might like to try the Make bundle: http://github.com/textmate/make.tmbundle. It does exactly what you describe, and produces clickable links for compiler errors. Also has a "Build Target..." command that allows you to select which make target you want to run. Very handy.
Regards,
The Make bundle is included with TextMate by default. You can trigger the build command with ⌘B. To build a specific target, press ⌘⇪B.
—Alex
On Mar 3, 2010, at 4:22 PM, Adam Sharp wrote:
You might like to try the Make bundle: http://github.com/textmate/make.tmbundle. It does exactly what you describe, and produces clickable links for compiler errors. Also has a "Build Target..." command that allows you to select which make target you want to run. Very handy.
Regards,
-- Adam Sharp Email: adsharp@me.com Web: www.adam-sharp.net
On Thursday, March 04, 2010, at 10:57AM, "Matt Torok" magicmat@gmail.com wrote:
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I'm just getting started with TextMate and want to use it for C++ programming. I'm wondering if people can give me some pointers and tricks on how to do that (other than the stuff in the C and other bundles, of course.) Right now, all I'm really using is the syntax highlighting, auto-indent and brace-matching. Everything else could be done in TextEdit.
One thing I specifically want to do is trigger my projects GNU 'make' script and then have the output pipped into a TextMate window. Not that hard to write a plugin for (though if anybody already has one, point me to it.) However, the tricky part is that I want to link file names in the output to files in TextMate in case the compiler spits an error at me. That means either being able to click on something like "./includes/GUI/graphs.cpp:210" and being taken to that file and line in TM, like a hyperlink, or having TM put highlights/bookmarks/whatever directly at the line in question. Is this at all possible?
I've searched Google and this list but I nothing has jumped out at me so far (though the results are so long for "C++ textmate" that there may be something buried there I'm not seeing.) If anybody can tell me how they use TM for writing C++ projects using the GNU compiler tools (g++, make, GDB, etc.) I'd really appreciate that.
-Matt T.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Have anyone done a gdb bundle?. I search but could not find anything.
On Wed, Mar 3, 2010 at 9:17 PM, Alex Ross z-textmate@lasersox.net wrote:
The Make bundle is included with TextMate by default. You can trigger the build command with ⌘B. To build a specific target, press ⌘⇪B.
—Alex
On Mar 3, 2010, at 4:22 PM, Adam Sharp wrote:
You might like to try the Make bundle:
http://github.com/textmate/make.tmbundle. It does exactly what you describe, and produces clickable links for compiler errors. Also has a "Build Target..." command that allows you to select which make target you want to run. Very handy.
Regards,
-- Adam Sharp Email: adsharp@me.com Web: www.adam-sharp.net
On Thursday, March 04, 2010, at 10:57AM, "Matt Torok" <
magicmat@gmail.com> wrote:
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I'm just getting started with TextMate and want to use it for C++
programming. I'm wondering if people can give me some pointers and tricks on how to do that (other than the stuff in the C and other bundles, of course.) Right now, all I'm really using is the syntax highlighting, auto-indent and brace-matching. Everything else could be done in TextEdit.
One thing I specifically want to do is trigger my projects GNU 'make'
script and then have the output pipped into a TextMate window. Not that hard to write a plugin for (though if anybody already has one, point me to it.) However, the tricky part is that I want to link file names in the output to files in TextMate in case the compiler spits an error at me. That means either being able to click on something like "./includes/GUI/graphs.cpp:210" and being taken to that file and line in TM, like a hyperlink, or having TM put highlights/bookmarks/whatever directly at the line in question. Is this at all possible?
I've searched Google and this list but I nothing has jumped out at me so
far (though the results are so long for "C++ textmate" that there may be something buried there I'm not seeing.) If anybody can tell me how they use TM for writing C++ projects using the GNU compiler tools (g++, make, GDB, etc.) I'd really appreciate that.
-- -Matt T.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Mar 3, 2010, at 21:17, Alex Ross wrote:
The Make bundle is included with TextMate by default. You can trigger the build command with ⌘B. To build a specific target, press ⌘⇪B.
It is? I don't have a Make bundle, and I'm running TextMate r1510. When I press ⌘B I get an Xcode build action (which usually errors out as there not being any Xcode project file).
On Mar 4, 2010, at 7:14 AM, Kevin Reid wrote:
On Mar 3, 2010, at 21:17, Alex Ross wrote:
The Make bundle is included with TextMate by default. You can trigger the build command with ⌘B. To build a specific target, press ⌘⇪B.
It is? I don't have a Make bundle, and I'm running TextMate r1510. When I press ⌘B I get an Xcode build action (which usually errors out as there not being any Xcode project file).
No, I don’t think it is. I just “enabled” it last week and I had to go get it from GitHub.
Thanks, the make bundle looks like it's exactly what I want. I may go in there and make it really pretty using some HTML wrappers, like Xcode's build results, if TM will let me.
And, yeah, the Makefile bundle definitely didn't come by default with my copy of TM.
At the risk of being greedy, does TM only autocomplete symbols it sees in the file, or can I get better autocomplete? Especially looking outside the project for headers and/or having the STL functions built-in to autocomplete. Even better, autocomplete with function signatures!
Thanks for your help so far, I almost went over to Xcode but now I'm firmly back on board with TM. Though I still use Xcode to debug because GUI debuggers seem so much easier than Terminal ones (I know Xcode is just wrapping GDB, but still . . . ).
On Thu, Mar 4, 2010 at 5:14 AM, Rob McBroom mailinglist0@skurfer.comwrote:
On Mar 4, 2010, at 7:14 AM, Kevin Reid wrote:
On Mar 3, 2010, at 21:17, Alex Ross wrote:
The Make bundle is included with TextMate by default. You can trigger
the build command with ⌘B. To build a specific target, press ⌘⇪B.
It is? I don't have a Make bundle, and I'm running TextMate r1510. When I
press ⌘B I get an Xcode build action (which usually errors out as there not being any Xcode project file).
No, I don’t think it is. I just “enabled” it last week and I had to go get it from GitHub.
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Dear Matt,
At the risk of being greedy, does TM only autocomplete symbols it sees in the file, or can I get better autocomplete? Especially looking outside the project for headers and/or having the STL functions built-in to autocomplete. Even better, autocomplete with function signatures!
Maybe you can have a look at my Graffiti bundle. You can get it using GetBundles.
Thanks for your help so far, I almost went over to Xcode but now I'm firmly back on board with TM. Though I still use Xcode to debug because GUI debuggers seem so much easier than Terminal ones (I know Xcode is just wrapping GDB, but still . . . ).
I started to study the workload to do that, but I finally decided not to go for that development because writing a GDB wrapper is quite a heavy work. I know that Jorge Luis Mendez also needs that. Maybe we could join our forces to work on a GDB TM bundle?
Best regards, Mathieu
___________________________________________
Mathieu Godart
ASIC Integration Manager Coolsand Technologies ___________________________________________
Le 4 mars 2010 à 23:37, Matt Torok a écrit :
Thanks, the make bundle looks like it's exactly what I want. I may go in there and make it really pretty using some HTML wrappers, like Xcode's build results, if TM will let me.
And, yeah, the Makefile bundle definitely didn't come by default with my copy of TM.
At the risk of being greedy, does TM only autocomplete symbols it sees in the file, or can I get better autocomplete? Especially looking outside the project for headers and/or having the STL functions built-in to autocomplete. Even better, autocomplete with function signatures!
Thanks for your help so far, I almost went over to Xcode but now I'm firmly back on board with TM. Though I still use Xcode to debug because GUI debuggers seem so much easier than Terminal ones (I know Xcode is just wrapping GDB, but still . . . ).
On Thu, Mar 4, 2010 at 5:14 AM, Rob McBroom mailinglist0@skurfer.comwrote:
On Mar 4, 2010, at 7:14 AM, Kevin Reid wrote:
On Mar 3, 2010, at 21:17, Alex Ross wrote:
The Make bundle is included with TextMate by default. You can trigger
the build command with ⌘B. To build a specific target, press ⌘⇪B.
It is? I don't have a Make bundle, and I'm running TextMate r1510. When I
press ⌘B I get an Xcode build action (which usually errors out as there not being any Xcode project file).
No, I don’t think it is. I just “enabled” it last week and I had to go get it from GitHub.
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- -Matt T.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 04/03/2010, at 11:14 PM, Kevin Reid kpreid@mac.com wrote:
On Mar 3, 2010, at 21:17, Alex Ross wrote:
The Make bundle is included with TextMate by default. You can trigger the build command with ⌘B. To build a specific target, pr ess ⌘⇪B.
It is? I don't have a Make bundle, and I'm running TextMate r1510. When I press ⌘B I get an Xcode build action (which usually errors ou t as there not being any Xcode project file).
I realised I didn't have it when I had no syntax for makefiles. That's when I had a search on GetBundles and found the Make bundle. I have the current build of TextMate (not sure what number it is) but am pretty sure I have upgraded to it from an older one—maybe Make wasn't included in a previous build?
On Mar 4, 2010, at 6:06 PM, Adam Sharp wrote:
On 04/03/2010, at 11:14 PM, Kevin Reid kpreid@mac.com wrote:
On Mar 3, 2010, at 21:17, Alex Ross wrote:
The Make bundle is included with TextMate by default. You can trigger the build command with ⌘B. To build a specific target, press ⌘⇪B.
It is? I don't have a Make bundle, and I'm running TextMate r1510. When I press ⌘B I get an Xcode build action (which usually errors out as there not being any Xcode project file).
I realised I didn't have it when I had no syntax for makefiles. That's when I had a search on GetBundles and found the Make bundle. I have the current build of TextMate (not sure what number it is) but am pretty sure I have upgraded to it from an older one—maybe Make wasn't included in a previous build?
I was wrong. It is not included by default. Best thing to do is get it from http://github.com/textmate/make.tmbundle
—Alex