Lol. Case in point. Sometimes I just hit the wrong key and things go bad.

What I was going to say is that often I have an error that forces me to
kill the IDE,
then I reload everything, and like a complete idiot hit the run button
again out of habit.
So I only get to fix the problem on the third try. :)

Simply moving to a non-modal window that doesn't lock up the IDE feels like
a much better fix.


On Sun, Dec 22, 2019 at 1:41 PM Michal Wallace <michal.wall...@gmail.com>
wrote:

> I get that try / catch works, but I don't think it's a good answer.
> Exception handling should be for things that might fail because of
> external issues (files not existing, bad input, etc).
> It shouldn't be a discipline you have to adopt just in case you make a
> typo.
>
> Usually when this happens, it's a mistake on my part, and it's easy to
> fix...
> It's just really annoying because having to kill the IDE breaks my mental
> flow.
> (And also I'
>
>
> On Sun, Dec 22, 2019 at 10:35 AM chris burke <cbu...@jsoftware.com> wrote:
>
>> Would it help to use try/catch in the paint handler? For example, in the
>> below, try resizing the window. Each time the paint handler is called the
>> error is written to the session and the image painted a new color:
>>
>> wd 'reset'
>> wd 'pc win0 closeok; pn "debug me"'
>> wd 'cc img isigraph'
>> wd 'pshow'
>> win0_img_paint =: 3 : 0
>> try.
>>  2 *
>> catch.
>>  echo 13!:12''
>>  glfill_jgl2_ 255 ,~ ? 3#255
>> end.
>> )
>>
>> On Sat, Dec 21, 2019 at 8:44 PM Raul Miller <rauldmil...@gmail.com>
>> wrote:
>>
>> > Ideally, the error "modal" should give some additional options:
>> >
>> > (2) stop painting (this needs a bit more thought)
>> >
>> > (3) cease popping up temporarily,
>> >
>> > (4) shut down J
>> >
>> > Thanks,
>> >
>> > --
>> > Raul
>> >
>> ----------------------------------------------------------------------
>> 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