Menu

#339 OSX: Missing or empty :main keymap

Unknown
open
nobody
osx (1)
v4.0
3
2016-03-14
2016-01-06
No

After successfully compiling joe under the most recent OSX (10.11.2) with the most recent xcode, I can't actually run the joe binary in the apple-standard X11 system, due to an error involving keymaps:

akramer-mba:joe-4.1$ joe
Processing '/usr/local/etc/joe/joerc'...
Processing '/usr/local/etc/joe/ftyperc'...
Finished processing /usr/local/etc/joe/ftyperc

689: EOF before end of help text
Finished processing /usr/local/etc/joe/joerc
Missing or empty :main keymap
rc file has no :main key binding section or no bindings. Bye.

...this error message doesn't give me the tools to address it. Should this :main key binding be in a file somewhere? Should it be in an environment variable? Etc.

Discussion

  • Adam D. I. Kramer

    (Joe 4.1, not 4.0. I just upgraded from 3.7. Sorry it took me so long.)

     
  • John J. Jordan

    John J. Jordan - 2016-01-07

    Is it possibly reading an older version of joerc instead of a fresh, 4.1 version? There were problems with the ASCII table section in the JOE help after 4.1 changed the file encoding of joerc. But if you get this error with straight 4.1 joerc then that's an issue.

    The rc file parser is missing the end marker (probably due to bad decoding) of the help screen and reading through the keybindings below, so it's not finding them.

    I would try a couple of things. First check that joerc file against the rc/joerc.in from the source (even better if you get the current one out of Mercurial). If you can't get it to work after that, try removing the ASCII table section ({CharTable ... }).

     
  • Gary Castro

    Gary Castro - 2016-02-02

    Did this to me, as well with OS X 10.11.3 and joe 3.8 (not familiar with 4.x).

    Copying from source rc/joerc.in fixed it.

     
  • Joe Allen

    Joe Allen - 2016-03-14

    I finally got access to an OS X machine to try this. The problem is that sed is not happy with invalid UTF-8 sequences. If I run with 'LC_ALL=C make', sed does not complain, but still mangles the files.

     

Log in to post a comment.