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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex mode freeze #14342

Closed
vikke1234 opened this issue Feb 2, 2021 · 7 comments
Closed

Latex mode freeze #14342

vikke1234 opened this issue Feb 2, 2021 · 7 comments
Labels
Language Server Protocol LaTeX stale marked as a stale issue/pr (usually by a bot)

Comments

@vikke1234
Copy link

Description :octocat:

Freezing with latex layer and texlab

Reproduction guide 馃

  • Start Emacs
  • open tex file (texlab in PATH)
  • spend ~5 seconds in it

Observed behaviour: 馃憖 馃挃
Completely freezes not willing to close without task manager

NOTE: it doesn't freeze if you don't have texlab in PATH which means it has something to do with it.

Expected behaviour: 鉂わ笍 馃槃
Freezes completely

System Info 馃捇

  • OS: windows-nt
  • Emacs: 27.1
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. a65497b)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(html autohotkey
      (javascript :variables javascript-import-tool 'import-js javascript-backend 'lsp javascript-fmt-tool 'prettier)
      react python windows-scripts restclient emacs-lisp
      (auto-completion :variables auto-completion-enable-snippets-in-popup t)
      (cmake :variables cmake-backend 'lsp cmake-enable-cmake-ide-support t)
      (tabs :variables centaur-tabs-style "rounded")
      git helm lsp
      (markdown :variables markdown-live-preview-engine 'vmd)
      multiple-cursors org latex asm
      (c-c++ :variables c-c++-enable-clang-support t c-c++-enable-organize-includes-on-save t c-c++-backend 'lsp-clangd)
      (shell :variables shell-default-height 30 shell-default-position 'bottom)
      syntax-checking version-control
      (treemacs :variables treemacs-filewatch-mode t))
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP

Backtrace 馃惥

N/A since it just freezes...

@FilMarini
Copy link

Happens to me as well only with lsp as backend. Its impossible to use.

I'm using Ubuntu 18.04

@lebensterben
Copy link
Collaborator

lebensterben commented Feb 11, 2021

LSP doesn't work well with some unicode symbols.
For example, in any mode with LSP enabled, if you also enabled ligatures, it freezes indefinitely.

So first we need to make sure the observed behavior is not caused by unicode.

@alexey0308
Copy link

Probably relevant ROCKTAKEY/lsp-latex#19 latex-lsp/texlab#284

@arifer612
Copy link
Contributor

I found a very relevant issue upstream that seems to explain the gruesome detail as to why this may be the case for my situation using Emacs 29.0.50. I believe that the necessary fixes seem to have been implemented and I can comfortably say that my massive Python projects can be worked on with full ligatures without the jerky freezes anymore with the latest updates.

If you want ligatures to work in Emacs, I suggest updating it to at least 28.1 and try to see if there's a significant improvement in the response.

@lebensterben
Copy link
Collaborator

@arifer612

Do you mean it's been fixed in Emacs (28.1) ?

@arifer612
Copy link
Contributor

My bad, I can't say anything about 28.1, I'm still on 29.0.50 but the package recommends 28+ so I believe it should be tested for at least that.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label May 16, 2023
@github-actions github-actions bot closed this as completed Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Server Protocol LaTeX stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

5 participants