Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread bill lam
That branches are for iOS. Years ago, 2!:0 did not
work on iPhone.

Mon, 09 Dec 2019, Dimitrios Galanakis написал(а):
> ok, changing tolower was not a good idea.
> 
> I changed filecase=: ] for Darwin.
> 
> I think it works now. Maybe I did something wrong in my first try, I am not 
> sure.
> 
> BTW, looking around, I also came across this small detail:
> 
> UNAME=: (2!:0 'uname')-.10{a.
> 
> (line 32 of stdlib.ijs)
> 
> also works correctly under macos, that is it returns 'Darwin'. Therefore 
> there is no need for a separate if statement.
> 
> DG
> 
> > On Dec 8, 2019, at 21:35, chris burke  wrote:
> > 
> > This is a file name error when initializing Jqt - most likely because of
> > incorrect capitalization.
> > 
> > Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
> > BINPATH and SystemFolders_j_ have correct capitalization?
> > 
> > On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> > wrote:
> > 
> >> I see. Here is the new error.
> >> 
> >> j first line error:  "25"
> >> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
> >> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
> >> 
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread Dimitrios Galanakis
ok, changing tolower was not a good idea.

I changed filecase=: ] for Darwin.

I think it works now. Maybe I did something wrong in my first try, I am not 
sure.

BTW, looking around, I also came across this small detail:

UNAME=: (2!:0 'uname')-.10{a.

(line 32 of stdlib.ijs)

also works correctly under macos, that is it returns 'Darwin'. Therefore there 
is no need for a separate if statement.

DG

> On Dec 8, 2019, at 21:35, chris burke  wrote:
> 
> This is a file name error when initializing Jqt - most likely because of
> incorrect capitalization.
> 
> Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
> BINPATH and SystemFolders_j_ have correct capitalization?
> 
> On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> wrote:
> 
>> I see. Here is the new error.
>> 
>> j first line error:  "25"
>> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
>> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
>> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread Dimitrios Galanakis
I initialized a git repository and added the 'system' dir files. So I don't 
think that there has been in change in my change.

In addition (I am embarrassed to say that I did this), I installed j901 in the 
root directory (easiest directory, I could think of without cases).

bin/jqt.command

worked successfully and I was presented with the IDE.

Therefore it is definitely capitalization problems.


> On Dec 8, 2019, at 21:35, chris burke  wrote:
> 
> This is a file name error when initializing Jqt - most likely because of
> incorrect capitalization.
> 
> Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
> BINPATH and SystemFolders_j_ have correct capitalization?
> 
> On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> wrote:
> 
>> I see. Here is the new error.
>> 
>> j first line error:  "25"
>> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
>> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
>> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread bill lam
Perhaps updatejqt.sh overwrite your change to filecase=: ...
You can inspect again if filecase=: ] or not.

It seems dors trying to do a J sentence and get result,
but the sentence failed so that no result was available.

tolower is needed in other places, you can not change it to ]

Mon, 09 Dec 2019, Dimitrios Galanakis написал(а):
> I restarted from a fresh installation, just in case.
> 
> I confirm that
> 
> 2!:5'HOME'
> 
> does give the correct capitalization even on a fresh installation without the 
> "tolower" corrections.
> 
> However on a fresh installation BINPATH and  SystemFolders_j_
> have incorrect capitalization. Also updatejqt.sh fails.
> 
> After changing 'filecase=: tolower' into 'filecase=: ]' (for Darwin) in 
> stdlib.ijs, the updatejqt.sh script terminates.
> 
> 2!:5'HOME'
> 
> still has the correct capitalization, but BINPATH and  SystemFolders_j_ do 
> not.
> 
> I even went and replaced 'tolower=: 3 : 0` ] @.(2 = 3!:0)' 
> (I think it does not change the case this way, even though I am not sure what 
> the @.(2 = 3!:0) bit does).
> 
> After this change both BINPATH and  SystemFolders_j_ do have the correct 
> capitalization.
> 
> However, bin/jqt.command still gives the same error:
> 
> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
> bin/jqt.command: line 4: 45829 Abort trap: 6   bin/jqt
> 
> (only slight difference is that the "j first line error:  "25"" in the error 
> message is missing.
> 
> DG
> 
> 
> > On Dec 8, 2019, at 23:44, bill lam  wrote:
> > 
> > I followed Chris suggestion and running jconsole,
> > BINPATH and SystemFolders_j_ are correctly capitalization, 
> > ie /Users/bill
> > albeit my filesystem is case-insensitive.
> > 
> > can you confirm this correctly starts with /Users/
> > 
> > 2!:5'HOME'
> > 
> > 
> > 
> > Sun, 08 Dec 2019, Dimitrios Galanakis написал(а):
> >> As far as I can tell, all BINPATHs and SystemFolders_j_ have incorrect 
> >> capitalization.
> >> 
> >> Is there a way to pretend that Darwin is Linux?
> >> 
> >>> On Dec 8, 2019, at 21:35, chris burke  wrote:
> >>> 
> >>> This is a file name error when initializing Jqt - most likely because of
> >>> incorrect capitalization.
> >>> 
> >>> Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, 
> >>> do
> >>> BINPATH and SystemFolders_j_ have correct capitalization?
> >>> 
> >>> On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> >>> wrote:
> >>> 
>  I see. Here is the new error.
>  
>  j first line error:  "25"
>  Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
>  bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
>  
> >>> --
> >>> For information about J forums see http://www.jsoftware.com/forums.htm
> >> 
> >> --
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> > 
> > -- 
> > regards,
> > 
> > GPG key 1024D/4434BAB3 2008-08-24
> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread Dimitrios Galanakis
Sorry, I replaced tolower (a multiline definition) by just a ].
Still the error remains.

> On Dec 8, 2019, at 21:35, chris burke  wrote:
> 
> This is a file name error when initializing Jqt - most likely because of
> incorrect capitalization.
> 
> Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
> BINPATH and SystemFolders_j_ have correct capitalization?
> 
> On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> wrote:
> 
>> I see. Here is the new error.
>> 
>> j first line error:  "25"
>> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
>> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
>> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread Dimitrios Galanakis
I restarted from a fresh installation, just in case.

I confirm that

2!:5'HOME'

does give the correct capitalization even on a fresh installation without the 
"tolower" corrections.

However on a fresh installation BINPATH and  SystemFolders_j_
have incorrect capitalization. Also updatejqt.sh fails.

After changing 'filecase=: tolower' into 'filecase=: ]' (for Darwin) in 
stdlib.ijs, the updatejqt.sh script terminates.

2!:5'HOME'

still has the correct capitalization, but BINPATH and  SystemFolders_j_ do not.

I even went and replaced 'tolower=: 3 : 0` ] @.(2 = 3!:0)' 
(I think it does not change the case this way, even though I am not sure what 
the @.(2 = 3!:0) bit does).

After this change both BINPATH and  SystemFolders_j_ do have the correct 
capitalization.

However, bin/jqt.command still gives the same error:

Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
bin/jqt.command: line 4: 45829 Abort trap: 6   bin/jqt

(only slight difference is that the "j first line error:  "25"" in the error 
message is missing.

DG


> On Dec 8, 2019, at 23:44, bill lam  wrote:
> 
> I followed Chris suggestion and running jconsole,
> BINPATH and SystemFolders_j_ are correctly capitalization, 
> ie /Users/bill
> albeit my filesystem is case-insensitive.
> 
> can you confirm this correctly starts with /Users/
> 
> 2!:5'HOME'
> 
> 
> 
> Sun, 08 Dec 2019, Dimitrios Galanakis написал(а):
>> As far as I can tell, all BINPATHs and SystemFolders_j_ have incorrect 
>> capitalization.
>> 
>> Is there a way to pretend that Darwin is Linux?
>> 
>>> On Dec 8, 2019, at 21:35, chris burke  wrote:
>>> 
>>> This is a file name error when initializing Jqt - most likely because of
>>> incorrect capitalization.
>>> 
>>> Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
>>> BINPATH and SystemFolders_j_ have correct capitalization?
>>> 
>>> On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
>>> wrote:
>>> 
 I see. Here is the new error.
 
 j first line error:  "25"
 Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
 bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
 
>>> --
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
>> --
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> -- 
> regards,
> 
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread bill lam
I followed Chris suggestion and running jconsole,
BINPATH and SystemFolders_j_ are correctly capitalization, 
ie /Users/bill
albeit my filesystem is case-insensitive.

can you confirm this correctly starts with /Users/

 2!:5'HOME'



Sun, 08 Dec 2019, Dimitrios Galanakis написал(а):
> As far as I can tell, all BINPATHs and SystemFolders_j_ have incorrect 
> capitalization.
> 
> Is there a way to pretend that Darwin is Linux?
> 
> > On Dec 8, 2019, at 21:35, chris burke  wrote:
> > 
> > This is a file name error when initializing Jqt - most likely because of
> > incorrect capitalization.
> > 
> > Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
> > BINPATH and SystemFolders_j_ have correct capitalization?
> > 
> > On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> > wrote:
> > 
> >> I see. Here is the new error.
> >> 
> >> j first line error:  "25"
> >> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
> >> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
> >> 
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread Dimitrios Galanakis
As far as I can tell, all BINPATHs and SystemFolders_j_ have incorrect 
capitalization.

Is there a way to pretend that Darwin is Linux?

> On Dec 8, 2019, at 21:35, chris burke  wrote:
> 
> This is a file name error when initializing Jqt - most likely because of
> incorrect capitalization.
> 
> Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
> BINPATH and SystemFolders_j_ have correct capitalization?
> 
> On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
> wrote:
> 
>> I see. Here is the new error.
>> 
>> j first line error:  "25"
>> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
>> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
>> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread chris burke
This is a file name error when initializing Jqt - most likely because of
incorrect capitalization.

Does jconsole work properly, i.e. run bin/jconsole in a terminal? If so, do
BINPATH and SystemFolders_j_ have correct capitalization?

On Sun, Dec 8, 2019 at 12:20 PM Dimitrios Galanakis 
wrote:

> I see. Here is the new error.
>
> j first line error:  "25"
> Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
> bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt
>
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread Dimitrios Galanakis
I see. Here is the new error.

j first line error:  "25"
Assertion failed: (p->t==2), function dors, file base/jsvr.cpp, line 444.
bin/jqt.command: line 4: 32726 Abort trap: 6   bin/jqt

> On Dec 8, 2019, at 11:42, chris burke  wrote:
> 
> On the mac, please run jqt.command (in the same directory), not bin/jqt.
> 
> On Sun, Dec 8, 2019 at 5:18 AM Dimitrios Galanakis 
> wrote:
> 
>> Thank you for the response.
>> 
>> I did hack around in the way you suggested and the installation script
>> succeded..
>> 
>> However running bin/jqt results in error
>> 
>> qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
>> This application failed to start because no Qt platform plugin could be
>> initialized. Reinstalling the application may fix this problem.
>> 
>> Not sure if this is a filecase problem.
>> 
>>> On Dec 8, 2019, at 09:12, chris burke  wrote:
>>> 
>>> I doubt this has ever been tried. In order to handle case-insensitivity,
>>> the scripts convert filenames to lowercase in windows and mac.
>>> 
>>> If you want to experiment, edit system/main/stdlib.ijs and replace the
>>> Darwin definition:
>>> 
>>> filecase=: 'tolower'
>>> 
>>> with
>>> 
>>> filecase=: ]
>>> 
>>> Then restart J.
>>> 
>>> On Sat, Dec 7, 2019 at 11:45 PM Dimitrios Galanakis 
>>> wrote:
>>> 
 Hello there,
 
 Attempting to install J on my mac with a case sensitive filesystem, I
>> run
 into problems.
 
 Assuming that I placed j901 in /usr/local and run
 
 /usr/local/j901/updatejqt.sh
 
 I get various errors that suggest case insensitivity. For example:
 
 Updating server catalog...
 Warning: Failed to open /users/galanakis/j901-user/temp/httpget.log!
 curl: (6) Could not resolve host: www.jsoftware.com
 Connection failed: Unexpected error
 Connection failed:
 
 It fails to open Note that the correct path should be
 
 /Users/galanakis/j901-user/temp/httpget.log!
 
 that is with capital a 'U' for Users.
 
 Is there support for case sensitive filesystems in mac os?
 
 DG
 
 
 --
 For information about J forums see http://www.jsoftware.com/forums.htm
 
>>> --
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
>> --
>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
> --
> For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread chris burke
On the mac, please run jqt.command (in the same directory), not bin/jqt.

On Sun, Dec 8, 2019 at 5:18 AM Dimitrios Galanakis 
wrote:

> Thank you for the response.
>
> I did hack around in the way you suggested and the installation script
> succeded..
>
> However running bin/jqt results in error
>
> qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
> This application failed to start because no Qt platform plugin could be
> initialized. Reinstalling the application may fix this problem.
>
> Not sure if this is a filecase problem.
>
> > On Dec 8, 2019, at 09:12, chris burke  wrote:
> >
> > I doubt this has ever been tried. In order to handle case-insensitivity,
> > the scripts convert filenames to lowercase in windows and mac.
> >
> > If you want to experiment, edit system/main/stdlib.ijs and replace the
> > Darwin definition:
> >
> >  filecase=: 'tolower'
> >
> > with
> >
> >  filecase=: ]
> >
> > Then restart J.
> >
> > On Sat, Dec 7, 2019 at 11:45 PM Dimitrios Galanakis 
> > wrote:
> >
> >> Hello there,
> >>
> >> Attempting to install J on my mac with a case sensitive filesystem, I
> run
> >> into problems.
> >>
> >> Assuming that I placed j901 in /usr/local and run
> >>
> >> /usr/local/j901/updatejqt.sh
> >>
> >> I get various errors that suggest case insensitivity. For example:
> >>
> >> Updating server catalog...
> >> Warning: Failed to open /users/galanakis/j901-user/temp/httpget.log!
> >> curl: (6) Could not resolve host: www.jsoftware.com
> >> Connection failed: Unexpected error
> >> Connection failed:
> >>
> >> It fails to open Note that the correct path should be
> >>
> >> /Users/galanakis/j901-user/temp/httpget.log!
> >>
> >> that is with capital a 'U' for Users.
> >>
> >> Is there support for case sensitive filesystems in mac os?
> >>
> >> DG
> >>
> >>
> >> --
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] support for case sensitive file system in macos

2019-12-08 Thread chris burke
I doubt this has ever been tried. In order to handle case-insensitivity,
the scripts convert filenames to lowercase in windows and mac.

If you want to experiment, edit system/main/stdlib.ijs and replace the
Darwin definition:

  filecase=: 'tolower'

with

  filecase=: ]

Then restart J.

On Sat, Dec 7, 2019 at 11:45 PM Dimitrios Galanakis 
wrote:

> Hello there,
>
> Attempting to install J on my mac with a case sensitive filesystem, I run
> into problems.
>
> Assuming that I placed j901 in /usr/local and run
>
> /usr/local/j901/updatejqt.sh
>
> I get various errors that suggest case insensitivity. For example:
>
> Updating server catalog...
> Warning: Failed to open /users/galanakis/j901-user/temp/httpget.log!
> curl: (6) Could not resolve host: www.jsoftware.com
> Connection failed: Unexpected error
> Connection failed:
>
> It fails to open Note that the correct path should be
>
> /Users/galanakis/j901-user/temp/httpget.log!
>
> that is with capital a 'U' for Users.
>
> Is there support for case sensitive filesystems in mac os?
>
> DG
>
>
> --
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
For information about J forums see http://www.jsoftware.com/forums.htm