Based on testing on Linux, the outcome of jpath '~Code' is correct. But on
further testing on wine. the outcome of it is incorrect as what you had
observed. On browsing the code
configfolders=: 3 : 0
UserFolders_j_=: i.0 2
if. IFWIN do.
BINPATH_z_=: filecase BINPATH_z_
sf=. filecase each {:"1 SystemFolders_j_
SystemFolders_j_=: ({."1 SystemFolders_j_),.sf
end.
dat=. cbread1 'folders.cfg'
if. (0=#dat) +. dat -: _1 do. return. end.
ndx=. dat i.&> ' '
ids=. ndx {.each dat
pts=. jpath each filecase each (ndx+1) }. each dat
uf=. ids,.pts
msk=. (=tolower) {.&>ids
SystemFolders_j_=: SystemFolders,msk#uf
UserFolders_j_=: (-.msk)#uf
SystemFolders_j_=: cpath SystemFolders_j_
UserFolders_j_=: cpath UserFolders_j_
EMPTY
)
filecase is ] for linux but tolower for win so that ~User is the same as
~user and so that the ~Code in UserFolders is incorrect from that moment.
Since filesystem in windows is case-insensitive, and it seems that this
case-insensitivity is also applied to SystemFolders and UserFolders.
I also find mac is problematic in this regard because it is not win but
with a case-insensitive file system.
Втр, 28 Дек 2010, Devon McCormick писал(а):
> BTW - it's not worth you spending too much time on this other than the
> verification you already gave me that it appears to work for you. I have so
> much accreted customization at startup that I'm continually stepping on my
> own feet with a new version like this. For instance, the error message
> mentioned below (usually) stopped appearing after I added my own startup
> file to config/startup.ijs.
>
> I need to re-vamp my customizations to conform to some of the more standard
> J conventions - I've already noted at least one of these in my write-up of
> my experiences moving from J6 to J7:
> http://www.jsoftware.com/jwiki/NYCJUG/2010-12-14#MovingfromJ6toJ7.2BIBMMyExperience.
>
> However, it makes sense to keep a record of teething pains like this as
> others may encounter similar problems and, at some point, I'll probably
> figure out what I'm doing wrong to break the new version. Is there any sort
> of publicly-accessible error log where we could note these issues and their
> resolutions?
>
> On Tue, Dec 28, 2010 at 10:24 AM, Devon McCormick <[email protected]>wrote:
>
> > I open J-GTK, select Edit/Configure/Folders and make the following entries:
> >
> > User C:/amisc/JSys/user
> > Code ~User/code
> >
> > I save and exit. On my work machine, where I'm now trying this, I get a
> > message that "jconsole.exe has encountered a problem and needs to close..."
> > However, the change is saved as can be seen when I re-start J.
> >
> > Then I re-start J-GTK, and enter this:
> > jpath '~Code'
> > c:/documents and settings/devon_mccormick/j701-user/code
> >
> > Not "C:/amisc/JSys/user/code" as I would expect.
> >
> >
> > Date: Tue, 28 Dec 2010 00:38:18 +0800
> > From: bill lam <[email protected]>
> > Subject: Re: [Jbeta] Possible bug in folders config
> >
> > It worked for me. Can you give more detail why it didn't work for you and
> > what outcome did you expect?
> >
> > ???, 27 ??? 2010, Devon McCormick ?????(?):
> >
> > > I just noticed that if I include something like this in the
> > gtk/folders.cfg
> > > file:
> > >
> > > User C:/amisc/JSys/user
> > > Code ~User/code
> > >
> > > that "Code" is not set using the definition of "User" defined above it -
> > it
> > > is set as though I used "~user" instead of "~User".
> > ...
> >
> >
> > --
> > Devon McCormick, CFA
> > ^me^ at acm.
> > org is my
> > preferred e-mail
> >
> >
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> 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 --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm