Another thing I discovered when toying around was that syntax
highlighting is slightly broken for comments in these cases:

* a comment contains 0 : 0 : the entire comment (and following code
till the next lone opening parenthesis) is regarded as a long string
literal, and marked up as such.
* if a word (probably any valid identifier) is directly followed by an
opening brace (even in comments) it's highlighted as a string. I guess
this is supposed to indicate functions in traditionally mathematical
notation like f(x), but it should not happen in comments.

-----------

It is hard to get syntax highlighting exactly right.  Perhaps you could
take a look at the source and see where it can be improved:

http://www.jsoftware.com/gitlist/qtide.git/blob/master/lib/high/highj.cpp

On 4 May 2015 at 01:19, Jan-Pieter Jacobs <[email protected]>
wrote:

> Hi everyone,
>
> I found some bugs I'd want to inform about:
> * Infinite popups in plot
> * comments syntax highlighting broken
> * Tabula add-on broken
> * Labs break each other.
>
> I just found another instance of an error which keeps popping up
> infinitely when using plot.
> A try to debug the error with the JQt debugger ended in a crash.
>
> A minimal example exhibiting this behavior is:
>
> load 'plot'
> opts =: 'xlabel myxlabel; ylabel myylabel'
> opts plot ;/~ i.10
>
> Probably it is me doing something wrong, but as this makes me forcibly
> shut down J every time I hit this error, it's pretty annoying to hunt
> down my error.
> ------------------------
> Another thing I discovered when toying around was that syntax
> highlighting is slightly broken for comments in these cases:
>
> * a comment contains 0 : 0 : the entire comment (and following code
> till the next lone opening parenthesis) is regarded as a long string
> literal, and marked up as such.
> * if a word (probably any valid identifier) is directly followed by an
> opening brace (even in comments) it's highlighted as a string. I guess
> this is supposed to indicate functions in traditionally mathematical
> notation like f(x), but it should not happen in comments.
> ------------------------
> Further, I've found the "math/tabula" add-on to be utterly broken, in
> that clicking any of the buttons pops up the error:
>
> error in: tab_g_mbldown
>
> domain error: chkgl2
>       glpixels X,Y,32,32,,convicon y
> ------------------------
> Running through the labs in order they show up gave me some problems:
>
> 0) Book of numbers: (4) 12 of 23 : domain error: on
> 1) CAL : 3 of 11 : z =:tabengine 'CTAB'  : length error SP1: n (x,.SP) ,. y
>
> After doing a "clear '' " both worked fine. So I assume that these were
> due to
> 0) other labs overwriting "standard" words (like "on") with something else
> 1) labs not verifying what they use is what they expect it to be.
>
> Maybe it would not be a bad idea to run labs in a private locale,
> which is initialized in a certain way? This way these conflicts (and
> conflicts with user defined things) might be avoided.
>
> Best regards,
>
> Jan-Pieter
> ----------------------------------------------------------------------
> 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