I think what I'd want to explore first though is being able to click
on a line in a traceback that is in a library file or somewhere else
in the current worksheet to get taken directly to the site of the
error ... much better than having to remember a line number as you
switch tabs and then scroll manually to find it.
It would be nice to be able to "take the traceback with you" and still
have that when you are looking at the other file ... I'm not sure how
that would work exactly - I could imagine a temporary pane opening at
the bottom of the window when you click on a line, but I'm still wary
of an IDE-style proliferation of extra panes.
- Owen
> --
> You received this message because you are subscribed to the Google Groups "Reinteract" group.
> To post to this group, send email to reint...@googlegroups.com.
> To unsubscribe from this group, send email to reinteract+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reinteract?hl=en.
>
>
I wasn't expecting this to work, but it did, so I'll share it. This
patch replaces the TextView with a GTKSourceView2.View as ancestor of
ShellView. Then, we can easily turn on line numbering in the
LibraryEditor. I haven't tested this carefully, so if it eats your
homework or craps on your carpet, you've been warned.
In the long run, I agree with Owen--intelligent exception reporting is
definitely preferable. But maybe this will be useful for you in the
short run.
Robert
I've been using this patch for the past few weeks, mainly because I'm
too lazy to undo it. There's been no homework eaten, but I have noticed
an interesting side effect. Before, I would occasionally get worksheets
and libraries confused and try to execute a library. Since I've added
line numbers, this hasn't happened. I would have thought that the lack
of the bright rectangles next to the code was as good a visual
indicator, but apparently not. I don't know if this is because it's
harder to notice something that's not there than something that is, or
because line numbers remind me of a text editor, or what, but I'd like
to float the idea that line numbers in libraries is good purely for
visual distinction from worksheets.
Robert