#74 Cannot open files

closed-fixed
nobody
None
5
2004-05-22
2004-04-26
Anonymous
No

While trying to open files with j's file-browser on osx 10.3.3 strange things happen. Some files in a directory open on <return>-key or <mouse-dbl-click> as expected. Others never do - without a cause. Browsing the dir-tree works fine, soft-links are no problem, but strangely some files never open ?
Together with the misplaced main-menu j seem to be hardly usable on osx.

my 2c

Discussion

  • Peter Graves
    Peter Graves
    2004-04-27

    • status: open --> closed
     
  • Peter Graves
    Peter Graves
    2004-04-27

    Logged In: YES
    user_id=558172

    I haven't heard of this problem before, but in any case,
    since I don't have a Mac, I have no way to investigate it.

    It might be useful to try adding this line to ~/.j/prefs:

    dirUseNativeFormat = false

    to see if the misbehavior changes.

     
  • Pete Kirkham
    Pete Kirkham
    2004-05-21

    Logged In: YES
    user_id=774775

    OS X lists the year for not-this-year's files.

    line 107 of Directory.java can be modified to include a
    regex for OS X

    // --time-style=Mac OSX
    // -rw-r--r-- 1 pete pete 6065 23 Oct 2003
    Directories.java
    // -rw-r--r-- 1 pete pete 75350 21 May 19:58
    Directory.java
    String osX = "[0-9]+ +[0-9]+ ([A-Z][a-z]+)
    (([0-2][0-9]:[0-9][0-9])|( [0-2][0-9][0-9][0-9])) ";

    nativeMoveToFilenameRegExp =
    new UncheckedRE("(" + traditional + ")|(" + iso +
    ")|(" + osX + ")", 0, syntax);

    You can quite easily find the main class (and move it to
    the default package and call it ArmedBearJ.java so the
    application name looks nice) and set system properties
    // OS X properties
    System.setProperty("apple.laf.useScreenMenuBar", "true");

    System.setProperty("com.apple.mrj.application.growbox.intrudes",
    "false");

    That will put the menus on the screen menu bar, but the mode
    menu get fixed on whatever mode the editor starts up in. I
    spent a while thinking how to fix that, but as I use
    keyboard shortcuts all the time I didn't bother.

    Pete

     
  • Peter Graves
    Peter Graves
    2004-05-22

    Logged In: YES
    user_id=558172

    Fixed in 0.20.2.15.

     
  • Peter Graves
    Peter Graves
    2004-05-22

    • status: closed --> closed-fixed