Enter key not working in Latex Workshop extension usage
#6,408 创建于 2019年10月17日
描述
Description
I encounter an issue where the enter key does not work inside the editor while using the Latex Workshop vscode extension, v8.2.0.
Reproduction Steps
Launch Theia browser example
Load the plugin via the Deploy plugin by id command as described in the footnote here.
Open a .tex file in the editor
Type some text, e.g. \documentclass{article}
Press enter, and observe lack of new line (and after some time, the error listed below in the server)
OS and Theia version: Theia source 0.11.0 5cd87b Theia backend: Ubuntu 18.04 LTS Theia frontend: Windows 10, Chrome 77.0.3865.120,
Diagnostics:
The following error is printed repeatedly, some time after attempting to make a new line in the editor while a .tex file is open, by pressing enter:
root ERROR [hosted-plugin: 11730] Promise rejection not handled in one second: Error: The command 'type' cannot be executed. There are no active handlers available for the command. (args: [{"source":"keyboard","text":"\n"}])
root ERROR [hosted-plugin: 11730] With stack trace: Error: The command 'type' cannot be executed. There are no active handlers available for the command. (args: [{"source":"keyboard","text":"\n"}])
at CommandRegistry.<anonymous> (https://mydomainname.com/bundle.js:112917:31)
at step (https://mydomainname.com/bundle.js:112693:23)
at Object.next (https://mydomainname.com/bundle.js:112674:53)
at fulfilled (https://mydomainname/bundle.js:112665:58)
Prior to that the following printed while loading the plugin:
root INFO unzipping the VS Code extension 'James_Yu_latex_workshop.vsix' to directory: /tmp/vscode-unpacked/James_Yu_latex_workshop.vsix
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/vscode-unpacked/James_Yu_latex_workshop.vsix
root INFO Resolved "vscode:extension/James-Yu.latex-workshop" to a VS Code extension "latex-workshop@8.2.0" with engines: { vscode: '^1.34.0' }
root INFO Deploying backend plugin "latex-workshop@8.2.0" from "/tmp/vscode-unpacked/James_Yu_latex_workshop.vsix/extension/out/src/main.js"
root INFO [hosted-plugin: 11730] PLUGIN_HOST(11730) starting instance
root INFO [f1fc959e-b059-4c14-97a3-5e386b82060b] Sync of 1 plugin took: 58.330000028945506 ms
root WARN Error: 'cpp' language is remapped from 'source.cpp' to 'source.cpp.embedded.latex' scope
at TextmateRegistry.push.../../packages/monaco/lib/browser/textmate/textmate-registry.js.TextmateRegistry.mapLanguageIdToTextmateGrammar (https://mydomainname.com/35.bundle.js:815:26)
at https://mydomainname.com/89.bundle.js:8506:125
at pushContribution (https://mydomainname.com/89.bundle.js:8381:32)
at _loop_3 (https:/mydomainname.com/89.bundle.js:8506:21)
at PluginContributionHandler.push.../../packages/plugin-ext/lib/main/browser/plugin-contribution-handler.js.PluginContributionHandler.handleContributions (https://mydomainname.com/89.bundle.js:8517:21)
at _loop_2 (https://mydomainname.com/89.bundle.js:1797:63)
at HostedPluginSupport.push.../../packages/plugin-ext/lib/hosted/browser/hosted-plugin.js.HostedPluginSupport.loadContributions (https://mydomainname.com/89.bundle.js:1818:17)
at HostedPluginSupport.<anonymous> (https://mydomainname.com/89.bundle.js:1667:52)
at step (https://mydomainname.com/89.bundle.js:1502:23)
at Object.next (https://mydomainname.com/89.bundle.js:1483:53)
root WARN Could not register keybinding:
{"command":"latex-workshop.shortcut.textsubscript","keybinding":"ctrl+l ctrl+oem_minus"}
Error: Unrecognized key 'oem_minus' in 'ctrl+oem_minus'
root INFO [f1fc959e-b059-4c14-97a3-5e386b82060b][james-yu.latex-workshop]: Loaded contributions.
root INFO [f1fc959e-b059-4c14-97a3-5e386b82060b] Load contributions of 1 plugin took: 228.7550000473857 ms
root WARN Invalid embedded language found at scope source.asymptote: <<0>>
root WARN Invalid embedded language found at scope source.dot: <<0>>
root WARN Invalid embedded language found at scope source.gnuplot: <<0>>
root WARN Invalid embedded language found at scope source.js: <<0>>
root WARN Invalid embedded language found at scope source.scala: <<0>>
root WARN Invalid embedded language found at scope text.xtml: <<0>>
root WARN Invalid embedded language found at scope source.yaml: <<0>>
root INFO [hosted-plugin: 11730] PLUGIN_HOST(11730): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 11730] PLUGIN_HOST(11730): initializing(latex-workshop@8.2.0 with /home/project/theia/packages/plugin-ext-vscode/lib/node/plugin-vscode-init.js)
root INFO [hosted-plugin: 11730] PLUGIN_HOST(11730): PluginManagerExtImpl/loadPlugin(/tmp/vscode-unpacked/James_Yu_latex_workshop.vsix/extension/out/src/main.js)
root INFO [f1fc959e-b059-4c14-97a3-5e386b82060b][james-yu.latex-workshop]: Started plugin.
root INFO [f1fc959e-b059-4c14-97a3-5e386b82060b] Start of 1 plugin took: 1010.939999949187 ms