Closed InnovativeInventor closed 3 years ago
Opening a .rs
file and typing something, doesn't hang Emacs for me, in either Linux or Windows.
Tested with this example project: https://github.com/rust-starter/rust-starter/releases/tag/live
Downloaded and extracted: Source code (zip)
#### System Info :computer: - OS: gnu/linux - Emacs: 27.1 - Spacemacs: 0.300.0 - Spacemacs branch: develop (rev. a9fc0d5fc) - Graphic display: t - Distribution: spacemacs - Editing style: vim - Completion: helm - Layers: ```elisp (emacs-lisp git helm lsp multiple-cursors org rust spell-checking syntax-checking version-control treemacs) ``` - System configuration features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP
#### System Info :computer: - OS: windows-nt - Emacs: 27.1 - Spacemacs: 0.300.0 - Spacemacs branch: develop (rev. a9fc0d5fc) - Graphic display: t - Distribution: spacemacs - Editing style: vim - Completion: helm - Layers: ```elisp (autohotkey emacs-lisp git helm javascript lsp multiple-cursors org python rust spell-checking syntax-checking version-control treemacs) ``` - 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
@duianto thanks for trying! I figured out the cause and fixed the issue. The problem was when I installed rls
:
rustup component add rls
Uninstalling rls
fixed it for me:
rustup component remove rls
Description :octocat:
Opening an empty Rust file (as well as normal Rust files) leads to spacemacs hanging.
Reproduction guide :beetle:
rustup component add rls
).rs
file)Observed behaviour: :eyes: :broken_heart: Spacemacs hangs after a few keypresses and starts using 100% of the CPU.
Expected behaviour: :heart: :smile: Normal modal editing.
Config