Opened 9 years ago

Last modified 9 years ago

#6546 new enhancement

Keymap -l should be more specific about errors in the layout

Reported by: rq Owned by: nobody
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/alpha2
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I made a Lithuanian layout for myself, and used vim for that purpose. When I tried to load it, I get the following error:

keymap: error when loading the keymap: Bad data

This error message is basically useless. It would be much more helpful if it would actually hint to the line (and preferably the column) in which the error occured.

Per Pulkomandy's suggestion, I'm attaching the keymap file in question.

Attachments (1)

Lithuanian.keymap (17.8 KB ) - added by rq 9 years ago.
The erring keymap

Download all attachments as: .zip

Change History (4)

by rq, 9 years ago

Attachment: Lithuanian.keymap added

The erring keymap

comment:1 by rq, 9 years ago

Note: in the keymap file, I found and fixed an obvious error in line 236, but I still get same error. I even tried deleting everything from line 190, and nothing changed – still same error. It's really hard to debug main part of the keymap with no way to see detailed messages...

Last edited 9 years ago by rq (previous) (diff)

comment:2 by korli, 9 years ago

Which command line do you actually run ?

As of hrev31195, the -l option loads binary keymap files and not source keymap files.

comment:3 by rq, 9 years ago

Right, I used keymap -l, as the header of the file said.

However, trying keymap -s just crashes the app instead of returning any useful debug output.

Note: See TracTickets for help on using tickets.