I did a Find in Files search for the error message in the IDE source
and identified that 1e6 appears to be an arbitrary number set in the
IDE verb:
  istextfile_jgtkedit_
3 : 0
s=. 1!:4 :: _1: f=. fboxname y
if. (s>:0) *. s<MaxText do.
  if. istextfile1 1!:1 :: (''"_) f do. 1 return. end.
end.
f=. tofoldername_jp_ y
t=. (gettext 'open file')
if. s = _1 do.
  mbinfo t;(gettext 'not found: '),f
elseif. s >: 1e6 do.
  mbinfo t;(gettext 'file too big '),f,': ',,'c' 8!:2 s
elseif. do.
  mbinfo t;(gettext 'content is not text: '),f
end.
0
)

I imagine it was just a case of estimating a sensible max size for a
*.ijs script to prevent users from mistakenly opening very large text
files in the editor. Try increasing the value and seeing if there are
any other issues with loading bigger files.



On Thu, Jul 7, 2011 at 8:39 AM, Devon McCormick <[email protected]> wrote:
> I can confirm that the JGTK editor refuses to load a script if it's too
> large - somewhere between 615,000 and a million bytes.  This seems very
> restrictive.  Once again, I'm glad I use emacs.
>
> On Wed, Jul 6, 2011 at 3:00 PM, <[email protected]> wrote:
>
>>
>>
>> Hi!  How do I load a large script (just over 1MB) in J701 GTK?
>>
>>
>>
>> I find that my script, that works just fine in 6.02 and its .ijs editor,
>> will not load in 7.01.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Richard Vaughan
>> ----------------------------------------------------------------------
>> 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