Command line make results

36 views
Skip to first unread message

Peter Zion

unread,
Mar 15, 2011, 11:40:24 AM3/15/11
to BBEdit Talk
Hello,

I'm evaluating BBEdit as a replacement for my current text editor.

Is there a simple way for me to run "make" in a given directory,
collect the results into a window, and then have it jump to the file
and line numbers parser from the output results by clicking on lines
in the output?

I've looked through the manual as well as searching this group and
I've found nothing. I'm surprised, since this seems like it's very
common use case.

Thanks in advance,
Peter Zion

Rich Siegel

unread,
Mar 15, 2011, 12:32:02 PM3/15/11
to bbe...@googlegroups.com
On Tuesday, March 15, 2011, Peter Zion <peter...@gmail.com> wrote:

>Is there a simple way for me to run "make" in a given directory,
>collect the results into a window, and then have it jump to the file
>and line numbers parser from the output results by clicking on lines
>in the output?

I would recommend Shell Worksheets (File => New => Shell
Worksheet) for this purpose. When you get an error, select the
file and line number, then "Open Selection" will take you there.

Enjoy,

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.

Robert Huttinger

unread,
Mar 15, 2011, 1:03:38 PM3/15/11
to bbe...@googlegroups.com
you just have an answer for everything dont you...

thats awesome!



--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbe...@googlegroups.com
To unsubscribe from this group, send email to
bbedit+un...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

LuKreme

unread,
Mar 15, 2011, 5:57:06 PM3/15/11
to bbe...@googlegroups.com
On Mar 15, 2011, at 11:03, Robert Huttinger <roberth...@gmail.com> wrote:

> you just have an answer for everything dont you...

Not only that, but he posted the answer lime 20 minutes BEFORE the question.

> thats awesome!

And freaky! :)

Peter Zion

unread,
Mar 16, 2011, 10:05:52 AM3/16/11
to bbe...@googlegroups.com
Hmm, that seems like an awful lot of work just to run a build and jump to errors. Thanks anyway!

pz

Rich Siegel

unread,
Mar 16, 2011, 10:37:22 AM3/16/11
to bbe...@googlegroups.com
On Wednesday, March 16, 2011, Peter Zion <peter...@gmail.com> wrote:

>Hmm, that seems like an awful lot of work just to run a build
>and jump to errors. Thanks anyway!

Have you tried it? It's no more work than doing it in a
Terminal, and actually less to navigate errors.

Peter Zion

unread,
Mar 16, 2011, 10:40:51 AM3/16/11
to bbe...@googlegroups.com

On 2011-03-16, at 10:37 AM, Rich Siegel wrote:

> On Wednesday, March 16, 2011, Peter Zion <peter...@gmail.com> wrote:
>
>> Hmm, that seems like an awful lot of work just to run a build and jump to errors. Thanks anyway!
>
> Have you tried it? It's no more work than doing it in a Terminal, and actually less to navigate errors.

Yes, I tried it. I guess I'm used to tools such as Xcode which just allow you to hit command-B to build then left-click on a line to jump to an error. This is one of the most common things I do in my workflow and it has to be as fast as possible.

pz

Charlie Garrison

unread,
Mar 16, 2011, 8:19:55 PM3/16/11
to bbe...@googlegroups.com
Good morning,

On 16/03/11 at 10:40 AM -0400, Peter Zion <peter...@gmail.com> wrote:

>Yes, I tried it. I guess I'm used to tools such as Xcode which
>just allow you to hit command-B to build then left-click on a
>line to jump to an error. This is one of the most common
>things I do in my workflow and it has to be as fast as possible.

Assign Cmd-B to an Applescript which brings the worksheet
forward, selects the make command and runs it. Then when errors
appear, click line with file name, and do Cmd-L, Cmd-D. Doesn't
really seem like lots more work to me.


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

Doug McNutt

unread,
Mar 16, 2011, 8:59:02 PM3/16/11
to bbe...@googlegroups.com
Has anyone offered a script or setting that will open a perl script and go to the line specified in an error message when the script is executed from within a worksheet?

--
--> The best programming tool is a soldering iron <--

Charlie Garrison

unread,
Mar 16, 2011, 9:29:53 PM3/16/11
to bbe...@googlegroups.com
Good afternoon,

On 16/03/11 at 6:59 PM -0600, Doug McNutt
<doug...@macnauchtan.com> wrote:

>Has anyone offered a script or setting that will open a perl
>script and go to the line specified in an error message when
>the script is executed from within a worksheet?

I either don't understand the question or no script is needed.
Assuming the error message uses the standard format of appending
the line number; bbedit will already do that. Eg, from the
command line:

$ bbedit /etc/hosts:7

Or from within an open document, select the file name (& line
number) and hit cmd-D.

If the error message uses a different format to identify the
line, then use Perl (or whatever) to munge it into the above
format and pass to the bbedit tool.

Reply all
Reply to author
Forward
0 new messages