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
Broken with use-package #558
Comments
Can you try
Edit: Disregard this comment, I will do deeper analysis. |
(use-package lsp I didn't mention I use |
I was thinking about this but I am a bit concerned about breaking lsp-mode users configuration, I tried the following, and it seems to work with emacs -q (condition-case nil
(require 'use-package)
(file-error
(require 'package)
(package-initialize)
(package-refresh-contents)
(package-install 'use-package)
(require 'use-package)))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(use-package lsp-mode :ensure t)
(use-package lsp
:commands 'lsp
:ensure nil
:config
(message "Called...")) |
Do you want to advertise such constructs?
|
Since this repo is still named (def-package! lsp-mode
:load-path "~/Dev/Emacs/lsp-mode"
:commands lsp
:init
(setq lsp-auto-guess-root t)
) |
ok, PR at #563 . Hopefully, we won't break a lot of configurations. |
When
lsp-mode
is used withuse-package
, its:config
is not executed whenlsp
function is called.My guess:
lsp
autoloads lsp.el, but not lsp-mode.el.With the code below, when I visit .ex file I get:
Unable to find client(s) handling elixir-mode. Make sure you have required lsp-clients.el or proper extension.
Noticed on commit
5651535
and for sure it worked when I was onc5ea1f26
.After recent reorganisations shouldn't the content of lsp.el landed in lsp-mode.el, and, if for some backward compatibility you still need to have lsp.el existed, just to require lsp-mode from it, and not vice versa?
The text was updated successfully, but these errors were encountered: