xterm.dart
xterm.dart copied to clipboard
Xterm input_map file produces an error when building android application
Since I added the xterm plugin to my app, it produces an error when building the input_map.dart file:
`../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:5:22: Error: Member not found: 'none'. LogicalKeyboardKey.none.keyId: TerminalKey.none, ^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:11:22: Error: Member not found: 'turbo'. LogicalKeyboardKey.turbo.keyId: TerminalKey.turbo, ^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:12:22: Error: Member not found: 'privacyScreenToggle'. LogicalKeyboardKey.privacyScreenToggle.keyId: TerminalKey.privacyScreenToggle, ^^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:15:22: Error: Member not found: 'displayToggleIntExt'. LogicalKeyboardKey.displayToggleIntExt.keyId: TerminalKey.displayToggleIntExt, ^^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:16:22: Error: Member not found: 'usbReserved'. LogicalKeyboardKey.usbReserved.keyId: TerminalKey.usbReserved, ^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:17:22: Error: Member not found: 'usbErrorRollOver'. LogicalKeyboardKey.usbErrorRollOver.keyId: TerminalKey.usbErrorRollOver, ^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:18:22: Error: Member not found: 'usbPostFail'. LogicalKeyboardKey.usbPostFail.keyId: TerminalKey.usbPostFail, ^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:19:22: Error: Member not found: 'usbErrorUndefined'. LogicalKeyboardKey.usbErrorUndefined.keyId: TerminalKey.usbErrorUndefined, ^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:158:22: Error: Member not found: 'numpadBackspace'. LogicalKeyboardKey.numpadBackspace.keyId: TerminalKey.numpadBackspace, ^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:159:22: Error: Member not found: 'numpadMemoryStore'. LogicalKeyboardKey.numpadMemoryStore.keyId: TerminalKey.numpadMemoryStore, ^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:160:22: Error: Member not found: 'numpadMemoryRecall'. LogicalKeyboardKey.numpadMemoryRecall.keyId: TerminalKey.numpadMemoryRecall, ^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:161:22: Error: Member not found: 'numpadMemoryClear'. LogicalKeyboardKey.numpadMemoryClear.keyId: TerminalKey.numpadMemoryClear, ^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:162:22: Error: Member not found: 'numpadMemoryAdd'. LogicalKeyboardKey.numpadMemoryAdd.keyId: TerminalKey.numpadMemoryAdd, ^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:163:22: Error: Member not found: 'numpadMemorySubtract'. LogicalKeyboardKey.numpadMemorySubtract.keyId: ^^^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:165:22: Error: Member not found: 'numpadSignChange'. LogicalKeyboardKey.numpadSignChange.keyId: TerminalKey.numpadSignChange, ^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:166:22: Error: Member not found: 'numpadClear'. LogicalKeyboardKey.numpadClear.keyId: TerminalKey.numpadClear, ^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:167:22: Error: Member not found: 'numpadClearEntry'. LogicalKeyboardKey.numpadClearEntry.keyId: TerminalKey.numpadClearEntry, ^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:180:22: Error: Member not found: 'brightnessToggle'. LogicalKeyboardKey.brightnessToggle.keyId: TerminalKey.brightnessToggle, ^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:181:22: Error: Member not found: 'brightnessMinimum'. LogicalKeyboardKey.brightnessMinimum.keyId: TerminalKey.brightnessMinimum, ^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:182:22: Error: Member not found: 'brightnessMaximum'. LogicalKeyboardKey.brightnessMaximum.keyId: TerminalKey.brightnessMaximum, ^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:183:22: Error: Member not found: 'brightnessAuto'. LogicalKeyboardKey.brightnessAuto.keyId: TerminalKey.brightnessAuto, ^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:186:22: Error: Member not found: 'programGuide'. LogicalKeyboardKey.programGuide.keyId: TerminalKey.programGuide, ^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:201:22: Error: Member not found: 'bassBoost'. LogicalKeyboardKey.bassBoost.keyId: TerminalKey.bassBoost, ^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:202:22: Error: Member not found: 'mediaSelect'. LogicalKeyboardKey.mediaSelect.keyId: TerminalKey.mediaSelect, ^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:208:22: Error: Member not found: 'launchApp2'. LogicalKeyboardKey.launchApp2.keyId: TerminalKey.launchApp2, ^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:209:22: Error: Member not found: 'launchApp1'. LogicalKeyboardKey.launchApp1.keyId: TerminalKey.launchApp1, ^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:210:22: Error: Member not found: 'launchInternetBrowser'. LogicalKeyboardKey.launchInternetBrowser.keyId: ^^^^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:213:22: Error: Member not found: 'lockScreen'. LogicalKeyboardKey.lockScreen.keyId: TerminalKey.lockScreen, ^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:215:22: Error: Member not found: 'selectTask'. LogicalKeyboardKey.selectTask.keyId: TerminalKey.selectTask, ^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:216:22: Error: Member not found: 'launchDocuments'. LogicalKeyboardKey.launchDocuments.keyId: TerminalKey.launchDocuments, ^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:218:22: Error: Member not found: 'launchKeyboardLayout'. LogicalKeyboardKey.launchKeyboardLayout.keyId: ^^^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:222:22: Error: Member not found: 'launchAudioBrowser'. LogicalKeyboardKey.launchAudioBrowser.keyId: TerminalKey.launchAudioBrowser, ^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:241:22: Error: Member not found: 'keyboardLayoutSelect'. LogicalKeyboardKey.keyboardLayoutSelect.keyId: ^^^^^^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/xterm-2.0.0/lib/frontend/input_map.dart:243:22: Error: Member not found: 'showAllWindows'. LogicalKeyboardKey.showAllWindows.keyId: TerminalKey.showAllWindows, ^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
-
Where: Script '/home/lecomte/snap/flutter/common/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1100
-
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/home/lecomte/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 35s Exception: Gradle task assembleDebug failed with exit code 1`
In addition, I check this file on Github, and I see that this is not the same version.
Do you have a solution ?
Same problem here. It seems that xterm.dart is try to map the logical key ID to the terminal key ID. But not all the logic key IDs are supported. A quick-and-dirty fix is to comment out these lines.
I am not very familiar with dart to find a fix.