Re: [Jgeneral] support for case sensitive file system in macos
Followup question. In the upcoming release, will the filecase bug be fixed for case sensitive filesystems. If not I might make a patch to work along with homebrew. DG > On Dec 9, 2019, at 09:32, chris burke wrote: > > Note that Jqt also has a toLower for the mac in base/util.cpp/cfcase. I > don't think this caused the "first line error", but you would need to > recompile it for normal use. > > On Sun, Dec 8, 2019 at 8:27 PM Dimitrios Galanakis > wrote: > >> 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. >> > -- > 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
Note that Jqt also has a toLower for the mac in base/util.cpp/cfcase. I don't think this caused the "first line error", but you would need to recompile it for normal use. On Sun, Dec 8, 2019 at 8:27 PM Dimitrios Galanakis wrote: > 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. > -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] support for case sensitive file system in macos
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
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
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
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
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
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
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
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
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
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
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
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