Hash :
ef81d04e
Author :
Date :
2023-09-18T18:17:34
This page lists the warnings and errors generated by xkbcommon. There are currently 20 entries.
@todo The documentation of the log messages is a work in progress.
Code | Identifier | Description | Type |
---|---|---|---|
[XKB-034] |
malformed-number-literal |
Warn on malformed number literals | Error |
[XKB-060] |
unsupported-modifier-mask |
Warn on unsupported modifier mask | Error |
[XKB-107] |
unrecognized-keysym |
Warn on unrecognized keysyms | Warning |
[XKB-183] |
cannot-infer-key-type |
Warn if no key type can be inferred | Warning |
[XKB-237] |
unsupported-group-index |
Warn when a group index is not supported | Error |
[XKB-286] |
undefined-key-type |
Warn if using an undefined key type | Warning |
[XKB-305] |
non-base-group-name |
Warn if a group name was defined for group other than the first one | Warning |
[XKB-312] |
unsupported-shift-level |
Warn when a shift level is not supported | Error |
[XKB-461] |
conflicting-key-symbol |
Warn if there are conflicting keysyms while merging keys | Warning |
[XKB-516] |
extra-symbols-ignored |
<span class=”todo”>TODO:</span> add description | Warning |
[XKB-578] |
wrong-field-type |
Warn when a field has not the expected type | Error |
[XKB-645] |
unknown-char-escape-sequence |
Warn on unknown escape sequence in string literal | Warning |
[XKB-700] |
multiple-groups-at-once |
Warn if a key defines multiple groups at once | Warning |
[XKB-769] |
invalid-syntax |
The syntax is invalid and the file cannot be parsed | Error |
[XKB-770] |
undefined-keycode |
<span class=”todo”>TODO:</span> add description | Warning |
[XKB-800] |
conflicting-modmap |
Warn if there are conflicting modmap definitions | Warning |
[XKB-883] |
conflicting-key-action |
Warn if there are conflicting actions while merging keys | Warning |
[XKB-893] |
conflicting-key-type |
Warn if there are conflicting key types while merging groups | Warning |
[XKB-935] |
conflicting-key-fields |
Warn if there are conflicting fields while merging keys | Warning |
[XKB-965] |
unresolved-keymap-symbol |
Warn if using a symbol not defined in the keymap | Warning |
xkbcommon can parse the following number literal formats:
xkbcommon replaces keysyms it does not recognize by the keysym NoSymbol
.
You may find the list of supported keysyms in
include/xkbcommon/xkbcommon-keysyms.h
.
comma
”.
See: `XKB_KEY_comma` in `include/xkbcommon/xkbcommon-keysyms.h`.
**Fix:**
xkbcommon supports group index in the range (1..4).
Shift levels are one-indexed. xkbcommon supports two formats of shift levels:
as numbers and as identifiers LevelN
, where N
is in the range (1..8).
xkbcommon support the following escape sequences in string literals:
Escape sequence | Corresponding character |
---|---|
\b |
U+0008 Backspace |
\t |
U+0009 Character tabulation |
\n |
U+000A Line feed |
\v |
U+000B Vertical tabulation |
\f |
U+000C Form feed |
\r |
U+000D Carriage return |
\e |
U+001B Escape |
\\ |
U+005C Backslash |
\NNN |
Octal escape, from \0 to \777 |
@todo detailed explanation and examples
[XKB-034]: @ref XKB-034 [XKB-060]: @ref XKB-060 [XKB-107]: @ref XKB-107 [XKB-183]: @ref XKB-183 [XKB-237]: @ref XKB-237 [XKB-286]: @ref XKB-286 [XKB-305]: @ref XKB-305 [XKB-312]: @ref XKB-312 [XKB-461]: @ref XKB-461 [XKB-516]: @ref XKB-516 [XKB-578]: @ref XKB-578 [XKB-645]: @ref XKB-645 [XKB-700]: @ref XKB-700 [XKB-769]: @ref XKB-769 [XKB-770]: @ref XKB-770 [XKB-800]: @ref XKB-800 [XKB-883]: @ref XKB-883 [XKB-893]: @ref XKB-893 [XKB-935]: @ref XKB-935 [XKB-965]: @ref XKB-965
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
# Error index {#error-index}
<!--
NOTE: This file has been generated automatically by “update-message-registry.py”.
Do not edit manually!
-->
This page lists the warnings and errors generated by xkbcommon.
There are currently 20 entries.
@todo The documentation of the log messages is a work in progress.
## Index
| Code | Identifier | Description | Type |
| --------- | ---------------------------- | ----------- | ---- |
| [XKB-034] | `malformed-number-literal` | Warn on malformed number literals | Error |
| [XKB-060] | `unsupported-modifier-mask` | Warn on unsupported modifier mask | Error |
| [XKB-107] | `unrecognized-keysym` | Warn on unrecognized keysyms | Warning |
| [XKB-183] | `cannot-infer-key-type` | Warn if no key type can be inferred | Warning |
| [XKB-237] | `unsupported-group-index` | Warn when a group index is not supported | Error |
| [XKB-286] | `undefined-key-type` | Warn if using an undefined key type | Warning |
| [XKB-305] | `non-base-group-name` | Warn if a group name was defined for group other than the first one | Warning |
| [XKB-312] | `unsupported-shift-level` | Warn when a shift level is not supported | Error |
| [XKB-461] | `conflicting-key-symbol` | Warn if there are conflicting keysyms while merging keys | Warning |
| [XKB-516] | `extra-symbols-ignored` | <span class="todo">TODO:</span> add description | Warning |
| [XKB-578] | `wrong-field-type` | Warn when a field has not the expected type | Error |
| [XKB-645] | `unknown-char-escape-sequence` | Warn on unknown escape sequence in string literal | Warning |
| [XKB-700] | `multiple-groups-at-once` | Warn if a key defines multiple groups at once | Warning |
| [XKB-769] | `invalid-syntax` | The syntax is invalid and the file cannot be parsed | Error |
| [XKB-770] | `undefined-keycode` | <span class="todo">TODO:</span> add description | Warning |
| [XKB-800] | `conflicting-modmap` | Warn if there are conflicting modmap definitions | Warning |
| [XKB-883] | `conflicting-key-action` | Warn if there are conflicting actions while merging keys | Warning |
| [XKB-893] | `conflicting-key-type` | Warn if there are conflicting key types while merging groups | Warning |
| [XKB-935] | `conflicting-key-fields` | Warn if there are conflicting fields while merging keys | Warning |
| [XKB-965] | `unresolved-keymap-symbol` | Warn if using a symbol not defined in the keymap | Warning |
## Details
### XKB-034 – Malformed number literal {#XKB-034}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Error</dd>
<dt>Summary</dt><dd>Warn on malformed number literals</dd>
</dl>
xkbcommon can parse the following number literal formats:
- *decimal integer:* 1, 123, etc.
- *decimal floating-point number:* 1.23, etc.
- *hexadecimal integer:* prefixed with “0x”: 0x123, 0xff, 0xAB, etc.
### XKB-060 – Unsupported modifier mask {#XKB-060}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Error</dd>
<dt>Summary</dt><dd>Warn on unsupported modifier mask</dd>
</dl>
### XKB-107 – Unrecognized keysym {#XKB-107}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn on unrecognized keysyms</dd>
</dl>
xkbcommon replaces keysyms it does not recognize by the keysym `NoSymbol`.
You may find the list of supported keysyms in
`include/xkbcommon/xkbcommon-keysyms.h`.
#### Examples
<details>
<summary>Unrecognized keysym “`coma`”</summary>
**Error message:**
```
xkbcommon: WARNING: [XKB-107] de:31:20: unrecognized keysym "coma"
```
xkbcommon does not recognize the keysym “`coma`”. It is most probably
a typo for “<code>com<em>m</em>a</code>”.
See: `XKB_KEY_comma` in `include/xkbcommon/xkbcommon-keysyms.h`.
**Fix:**
<div class="example-container">
<div class="example">
<div class="example-inner">
<div class="example-title">Before</div>
```c
key <AB08> {[ coma, semicolon, periodcentered, multiply ]};
```
</div>
</div>
<div class="example">
<div class="example-inner">
<div class="example-title">After</div>
```c
key <AB08> {[ comma, semicolon, periodcentered, multiply ]};
```
</div>
</div>
</div>
</details>
### XKB-183 – Cannot infer key type {#XKB-183}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if no key type can be inferred</dd>
</dl>
### XKB-237 – Unsupported group index {#XKB-237}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Error</dd>
<dt>Summary</dt><dd>Warn when a group index is not supported</dd>
</dl>
xkbcommon supports group index in the range (1..4).
### XKB-286 – Undefined key type {#XKB-286}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if using an undefined key type</dd>
</dl>
### XKB-305 – Non base group name {#XKB-305}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if a group name was defined for group other than the first one</dd>
</dl>
### XKB-312 – Unsupported shift level {#XKB-312}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Error</dd>
<dt>Summary</dt><dd>Warn when a shift level is not supported</dd>
</dl>
Shift levels are _one_-indexed. xkbcommon supports two formats of shift levels:
as numbers and as identifiers `LevelN`, where `N` is in the range (1..8).
### XKB-461 – Conflicting key symbol {#XKB-461}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if there are conflicting keysyms while merging keys</dd>
</dl>
### XKB-516 – Extra symbols ignored {#XKB-516}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd><span class="todo">TODO:</span> add description</dd>
</dl>
### XKB-578 – Wrong field type {#XKB-578}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Error</dd>
<dt>Summary</dt><dd>Warn when a field has not the expected type</dd>
</dl>
### XKB-645 – Unknown char escape sequence {#XKB-645}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn on unknown escape sequence in string literal</dd>
</dl>
xkbcommon support the following escape sequences in string literals:
| Escape sequence | Corresponding character |
| --------------- | ----------------------------------- |
| `\b` | `U+0008` Backspace |
| `\t` | `U+0009` Character tabulation |
| `\n` | `U+000A` Line feed |
| `\v` | `U+000B` Vertical tabulation |
| `\f` | `U+000C` Form feed |
| `\r` | `U+000D` Carriage return |
| `\e` | `U+001B` Escape |
| `\\` | `U+005C` Backslash |
| `\NNN` | _Octal_ escape, from `\0` to `\777` |
### XKB-700 – Multiple groups at once {#XKB-700}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if a key defines multiple groups at once</dd>
</dl>
### XKB-769 – Invalid syntax {#XKB-769}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Error</dd>
<dt>Summary</dt><dd>The syntax is invalid and the file cannot be parsed</dd>
</dl>
### XKB-770 – Undefined keycode {#XKB-770}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd><span class="todo">TODO:</span> add description</dd>
</dl>
### XKB-800 – Conflicting modmap {#XKB-800}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if there are conflicting modmap definitions</dd>
</dl>
@todo detailed explanation and examples
### XKB-883 – Conflicting key action {#XKB-883}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if there are conflicting actions while merging keys</dd>
</dl>
### XKB-893 – Conflicting key type {#XKB-893}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if there are conflicting key types while merging groups</dd>
</dl>
### XKB-935 – Conflicting key fields {#XKB-935}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if there are conflicting fields while merging keys</dd>
</dl>
### XKB-965 – Unresolved keymap symbol {#XKB-965}
<dl>
<dt>Since</dt><dd>1.0.0</dd>
<dt>Type</dt><dd>Warning</dd>
<dt>Summary</dt><dd>Warn if using a symbol not defined in the keymap</dd>
</dl>
[XKB-034]: @ref XKB-034
[XKB-060]: @ref XKB-060
[XKB-107]: @ref XKB-107
[XKB-183]: @ref XKB-183
[XKB-237]: @ref XKB-237
[XKB-286]: @ref XKB-286
[XKB-305]: @ref XKB-305
[XKB-312]: @ref XKB-312
[XKB-461]: @ref XKB-461
[XKB-516]: @ref XKB-516
[XKB-578]: @ref XKB-578
[XKB-645]: @ref XKB-645
[XKB-700]: @ref XKB-700
[XKB-769]: @ref XKB-769
[XKB-770]: @ref XKB-770
[XKB-800]: @ref XKB-800
[XKB-883]: @ref XKB-883
[XKB-893]: @ref XKB-893
[XKB-935]: @ref XKB-935
[XKB-965]: @ref XKB-965