Hello,
I'm trying to get the feel for TextMate right now, and I'm wondering:
can it be that there is no nice support for Makefiles?
I checked out the Makefile bundle from SVN, but while that does allow you to *run* a Makefile, it doesn't allow you to click on an error message and be taken to the relevant source file, or do any other interactive goodness, unless I am mistaken.
In general, it seems it would be nice if there were a way to run an arbitrary command and filter the output for file names and line numbers (kind of like M-x compile); this would be quite flexible for those of using projects that don't build in Xcode. Is there a bundle out there that provides this kind of feature? Or, at least some kind of "Build with Makefile" support?
I am not trying to slight the work of the author of the Makefile bundle, by the way: no doubt s/he just doesn't use Makefiles that often. But I would be surprised to learn that there aren't a lot of users still working on projects that use makefiles to build...
thanks for any information!
Niko Matsakis
On Oct 3, 2007, at 3:52 PM, Niko Matsakis wrote:
I checked out the Makefile bundle from SVN, but while that does allow you to *run* a Makefile, it doesn't allow you to click on an error message and be taken to the relevant source file, or do any other interactive goodness, unless I am mistaken.
I am not trying to slight the work of the author of the Makefile bundle, by the way: no doubt s/he just doesn't use Makefiles that often. But I would be surprised to learn that there aren't a lot of users still working on projects that use makefiles to build...
From a post of allan's two days ago:
"There is a Makefile bundle, it does this, but it is *very* rudimentary (I wrote the build command, but I rarely ever work with Makefiles, so I didn’t spend much time prettying up the output)."
Basically there isn't good support because no one has made the support. You sound like you use makefiles enough to want good support; you should take a look around the other build commands (XCode, Rubymate, etc) to see how they do things, then you could see how best to add support for what you want. Then send the patch to the dev-list. :)
On 03/10/2007, at 22:52, Niko Matsakis wrote:
[...] I checked out the Makefile bundle from SVN, but while that does allow you to *run* a Makefile, it doesn't allow you to click on an error message and be taken to the relevant source file, or do any other interactive goodness, unless I am mistaken.
It should make links clickable. Though a makefile can run arbitrary shell commands, so it might be your command output errors in a way not supported by the current regexp.
In general, it seems it would be nice if there were a way to run an arbitrary command and filter the output for file names and line numbers (kind of like M-x compile) [...]
This is what I tried to create with the tm_parser ruby module used by the Make command. It filters stdin based on the typical file:line: [column:]error pattern and makes the errors clickable (by outputting HTML, and expecting this to be is used in a “Show as HTML” context).
But basically all the script runners / compilers we have (except Makefile bundle) do not use it, because they can provide a much better user experience by not outsourcing those 3 lines of regexp-matching ;)
Thanks everyone for the help! A few quick responses:
Michael Sheets wrote:
From a post of allan's two days ago:
"There is a Makefile bundle, it does this, but it is *very* rudimentary (I wrote the build command, but I rarely ever work with Makefiles, so I didn’t spend much time prettying up the output)."
Sorry, I must have missed that message. I only recently joined the list. Seems like it answers my question though. :)
This is what I tried to create with the tm_parser ruby module used by the Make command. It filters stdin based on the typical file:line:[column:]error pattern and makes the errors clickable (by outputting HTML, and expecting this to be is used in a “Show as HTML” context).
Hmm, this sounds like exactly what I want. Maybe I'm missing something in my setup? I'll go poking around.
But basically all the script runners / compilers we have (except Makefile bundle) do not use it, because they can provide a much better user experience by not outsourcing those 3 lines of regexp- matching ;)
Right, and that makes perfect sense to me. It would simply be nice to have something grep-like as a fallback option.
Niko