On Fri, Jan 29, 2010 at 1:16 AM, Devon McCormick <[email protected]> wrote:
> If you have debug mode set with
>   13!:0]1
> an error shows the function name and line number of an error.  Also
>   13!:1''
> shows you the complete calling stack.
>
> Once you have loaded code and are running it, you could use Dan's
> "whereDefined" to figure out the file in which a function was defined:
>
> whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3''''),<''Source of definition not
> found for '',''.'',~y'
>
> There could perhaps be better editor integration at the cost of forcing
> everyone to learn a new editor; I prefer the current editor-agnostic
> approach as this allows me to use my editor as my session manager.

What I'd like to get is, double-click(or any kind of simple action) on
an error message and jump to the position in the code. Could you share
how you set up your editor and work with it?

>
> On Thu, Jan 28, 2010 at 1:52 AM, June Kim <[email protected]> wrote:
>
>> On Tue, Jan 26, 2010 at 4:04 AM, Devon McCormick <[email protected]>
>> wrote:
>> > Most of these have been addressed, many of them recently.
>> >
>> > 1. This is peculiar to your problem or implementation of an algorithm.
>> > 2. There are numerous ways to deal with this - see
>> > http://www.jsoftware.com/jwiki/Scripts/WS Files, (my own) Scripts/File J
>> > Variables, or Guides/Persistence.
>> > 3. Can't help you here.
>> > 4. Spaces are crucial only within quoted strings and between alphanumeric
>> > names, much like in most other languages.
>> > 5. Try emacs or any other editor.
>>
>> I think it can't be solved with emacs or any other editor, if you want
>> to jump exactly to the point where the problem occured in the code.
>> J's error message gives little information, compared to other
>> languages(many of them at least provide the filename, and line number
>> of the problematic code, and some even provide the column in the line)
>>
>> > 6. What's so hard about "6!:2"?
>> > 7. This is pretty laughable considering how little unnecessary minutiae J
>> > has compared to most languages.
>> > 8. J is not a symbolic math environment like Maple or Mathematica.
>> > 9. You find "plot" too difficult?
>> >
>> > On Mon, Jan 25, 2010 at 12:51 PM, DIETER ENSSLEN <[email protected]
>> >wrote:
>> >
>> >> 1. 'oom's   ie out of memory
>> >> 2. not being able to easily continue on previous work, save it and it is
>> >> stuck in the wrong J on retrieving
>> >> 3. no sweet install on small devices
>> >> 4. where are the crucial spaces, and where are there no spaces
>> >> 5 not being able to easily edit parts of a program gone wrong
>> >> 6 not being able to do timing functions easily
>> >> 7 we humans having to worry too much about the minutiae and nitty gritty
>> >> instead of leaving this to the computer which are much better at that
>> >> 8 no easy integration function, limits
>> >> 9 no sweet and easy graphing
>> >> ----------------------------------------------------------------------
>> >> For information about J forums see http://www.jsoftware.com/forums.htm
>> >>
>> >
>> >
>> >
>> > --
>> > Devon McCormick, CFA
>> > ^me^ at acm.
>> > org is my
>> > preferred e-mail
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> >
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to