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

error on use-package #9

Closed
mazhe1988 opened this issue Sep 23, 2021 · 6 comments
Closed

error on use-package #9

mazhe1988 opened this issue Sep 23, 2021 · 6 comments
Labels
invalid This doesn't seem right

Comments

@mazhe1988
Copy link

mazhe1988 commented Sep 23, 2021

Error (use-package): lsp-ltex/:catch: Symbol’s function definition is void: lsp-ltex--current-version

@jcs090218 jcs090218 added the invalid This doesn't seem right label Sep 24, 2021
@jcs090218
Copy link
Member

Can you share portion of your configuration here? Thanks!

@mazhe1988
Copy link
Author

(add-to-list 'load-path "/data/data/com.termux/files/home/.emacs.d/lisp")
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
(setq langtool-language-tool-jar "/data/data/com.termux/files/home/LanguageTool-5.4-stable/languagetool-commandline.jar")
(require 'langtool)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(lsp-latex lsp-mode use-package)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(use-package lsp-ltex
:ensure t
:hook (text-mode . (lambda ()
(require 'lsp-ltex)
(lsp)))) ; or lsp-deferred

@jcs090218
Copy link
Member

Oh, you are using MelpaStable. Let me bump a version since the loading bug didn't apply to the previous version 0.2.0.

Can you install the latest version 0.2.1 and see if that work?

@mazhe1988
Copy link
Author

It is working now. But I only see the highlight on word. Is there should be a popup to show the suggestion about how to correct it?

@mazhe1988
Copy link
Author

I have another question: how the
(setq lsp-ltex-latex-commands '( )) work?
what content should I put in the '( ), in order to make it pass to the LTeX setting.
According to their website, the example showing the method for VS code not emacs.

@jcs090218
Copy link
Member

I have replied in #5. Close this for now since the original issue has been resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants