Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command 'latex-workshop.onEnterKey' not found #2845

Closed
jemand771 opened this issue Aug 24, 2021 · 5 comments
Closed

command 'latex-workshop.onEnterKey' not found #2845

jemand771 opened this issue Aug 24, 2021 · 5 comments
Labels
external issue Issue with something else than LaTeX-Wokshop

Comments

@jemand771
Copy link

jemand771 commented Aug 24, 2021

Preliminary questions [Required]

Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]

You still see this issue: Yes

Make sure to visit the wiki FAQ before filling an issue.

You visited the wiki?: Yes

If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.

You can compile a TeX document manually?: Not applicable

Describe the bug [Required]

Pressing enter inside the editor for a .tex file does not create a new line but rather shows the warning command 'latex-workshop.onEnterKey' not found in the bottom right corner.

To Reproduce

Steps to reproduce the behavior:

  1. Install extension from openvsx.com
  2. create a new .tex file
  3. inside that file, press enter

Expected behavior

Enter key works as it should when typing normally

Logs [Required]

The TeX pane on the left is not visible, even when a .tex file is opened.

LaTeX Workshop Output [Required]

The TeX pane on the left is not visible, even when a .tex file is opened.

Developer Tools Console [Required]

The only extension-related log message I see is:

Activating extension 'James-Yu.latex-workshop' failed: Cannot find module '/home/gitpod/.gitpod-code/extensions/james-yu.latex-workshop-8.20.2/out/src/main.js'
Require stack:
- /ide/out/vs/loader.js
- /ide/out/bootstrap-amd.js
- /ide/out/bootstrap-fork.js.
$onExtensionActivationError @ mainThreadExtensionService.ts:95

However, that might be related to me reinstalling the extension a couple of times.

Screenshots

Just to add some color to this issue, here's the little warning window :)
image

Desktop [Required]

Please write exact version numbers. Please don't write latest instead of exact numbers.

  • OS: Ubuntu 20.04.2 LTS inside docker container (remote)
  • VS Code version: 1.58.2
  • Extension version: 8.20.2 (from openvsx)
  • TeX distribution version: None (custom setup w/ texlive inside docker, not really applicable)

Additional questions

Are you using VSCodium?

No

Are you using the Snap or Flatpack versions of VS Code?

No

Are you using LaTeX Workshop with VS Code Remote?

Not really - I don't have a local and remote vscode installation, it's kind of remote-only (vscode in browser)

Additional context

Since I can't see the TeX menu at all, this might be related to some other issues more important than pressing enter. Note that #961 / #903 are unrelated as I've disabled all other extensions. Also, #1193 and #2463 show the same error message but aren't a duplicate since they were windows-related.

This only started happening today, version 8.20.2 was released only a couple of hours ago to openvsx, so I suspect that broke something. Unfortunately, I can't find 8.20.1 anywhere and don't know which version I was using previously. I can say that the issue does not exist in 8.19.2.

I find it slightly strange that this release came much later than the git corresponding git tag, not sure if that's normal (I can't see any auto-release workflows, so it might be expected).

Another weird thing: I've compiled the extension myself (current master aswell as 8.20.2 tag) and the issue doesn't exist with either of those versions. I think something may be wrong with the openvsx release.

Lastly, I think the keyboard debug output would be helpful:

[2021-08-24 09:44:01.517] [window] [info] [KeybindingService]: / Received  keydown event - modifiers: [], code: NumpadEnter, keyCode: 13, key: Enter
[2021-08-24 09:44:01.522] [window] [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: NumpadEnter, keyCode: 3 ('Enter')
[2021-08-24 09:44:01.555] [window] [info] [KeybindingService]: | Resolving Enter
[2021-08-24 09:44:01.564] [window] [info] [KeybindingService]: \ From 25 keybinding entries, matched latex-workshop.onEnterKey, when: acceptSuggestionOnEnter && config.latex-workshop.bind.enter.key && editorTextFocus && !editorReadonly && !suggestWidgetVisible && !vim.active && editorLangId =~ /latex|rsweave|jlweave/, source: user extension James-Yu.latex-workshop.

For now, I can just disable config.latex-workshop.bind.enter.key or delete the shortcut entirely to get enter working again. However, that's more of a workaround than a fix.
(I don't use the TeX menu at all, so the fact that that's missing isn't a problem for me. I merely use LaTeX workshop for its syntax highlighting and pdf viewer)

@8hur
Copy link

8hur commented Aug 24, 2021

I have the same issue.

When reverting to version 8.19.2, the issue disappear. https://github.com/James-Yu/LaTeX-Workshop/wiki/FAQ#install-an-older-version-of-latex-workshop

Version : 1.59.1 (VSCodium)
Electron : 13.1.7
Chrome : 91.0.4472.124
Node.js : 14.16.0
V8 : 9.1.269.36-electron.0
OS : Linux x64 5.4.0-83-generic (Ubuntu 20.04, desktop/non-docker installation)

@hpiedcoq
Copy link

Same here :
command 'latex-workshop.build' not found

using codium, under ubuntu.

@jemand771
Copy link
Author

jemand771 commented Aug 24, 2021

@8hur can you please post some more info about your setup? I was worried that it's related to my remote setup (gitpod.io has previously been frowned upon by the latex-workshop maintainers, #2772 ).
Edit: oh hey looks like it's not gitpod's fault and other people are experiencing the same thing on host installations. Looks like other commands might be affected too.

@tamuratak
Copy link
Contributor

tamuratak commented Aug 24, 2021

Please report to https://github.com/open-vsx/publish-extensions/issues

The James-Yu.latex-workshop-8.20.2.vsix file at open-vsx does not include extension/out/src/main.js. The .vsix file is invalid. And, we don't publish the file at open-vsx. The admin of open-vsx publishes the file independently of us.

We don't support GitPod and VSCodium. We recommend you to use VS Code.

@tamuratak tamuratak added the external issue Issue with something else than LaTeX-Wokshop label Aug 24, 2021
Repository owner locked as resolved and limited conversation to collaborators Aug 24, 2021
@tamuratak
Copy link
Contributor

@tamuratak tamuratak changed the title command 'latex-workshop.onEnterKey' not found (again) command 'latex-workshop.onEnterKey' not found Aug 25, 2021
@tamuratak tamuratak pinned this issue Aug 25, 2021
@James-Yu James-Yu unpinned this issue Aug 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external issue Issue with something else than LaTeX-Wokshop
Projects
None yet
Development

No branches or pull requests

4 participants