all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* eglot: "Feature provided by other file: "project"
@ 2024-08-12 18:18 c.buhtz
  2024-08-12 18:43 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: c.buhtz @ 2024-08-12 18:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I do get the long error and debug output you can see at the end of this
file. I don't know what else to do.
According to some comments in the internet it seems to be a dependency
conflict. Not sure what it is. I also tried to load "project" before
loading "eglot" With this lines.

(use-package project
  :ensure t
  :defer nil
  )  

But the error seems to be the same.

I do not need "project" package. I don't use it myself.


Debugger entered--Lisp error: (error "Feature provided by other file:
project") error("Feature provided by other file: %S" project)
  require-with-check(project)
  mapc(require-with-check (project flymake xref jsonrpc
external-completion))
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\210\300\312\313\314#\210\300\315!\210\300\316!\210..."
[require imenu cl-lib url-parse url-util pcase compile warnings
filenotify ert text-property-search nil t diff-mode diff fboundp
require-with-check #f(compiled-function (feature &rest _) #<bytecode
0xe7454d06d3b1d5f>) eldoc reload seq mapc (project flymake xref jsonrpc
0xe7454d06d3b1d5f>external-completion) make-obsolete-variable
0xe7454d06d3b1d5f>eglot--managed-mode-hook eglot-managed-mode-hook
0xe7454d06d3b1d5f>"1.6" defvaralias
0xe7454d06d3b1d5f>eglot-confirm-server-initiated-edits
0xe7454d06d3b1d5f>eglot-confirm-server-edits (saved-value
0xe7454d06d3b1d5f>saved-variable-comment) put "1.16"
0xe7454d06d3b1d5f>eglot-events-buffer-size eglot-events-buffer-config
0xe7454d06d3b1d5f>defalias eglot--uri-to-path eglot-uri-to-path
0xe7454d06d3b1d5f>make-obsolete eglot--path-to-uri eglot-path-to-uri
0xe7454d06d3b1d5f>eglot--range-region eglot-range-region
0xe7454d06d3b1d5f>eglot--server-capable eglot-server-capable
0xe7454d06d3b1d5f>eglot--server-capable-or-lose
0xe7454d06d3b1d5f>eglot-server-capable-or-lose eglot-lsp-abiding-column
0xe7454d06d3b1d5f>eglot-utf-16-linepos "1.12" ...] 8) require(eglot nil
0xe7454d06d3b1d5f>t) (not (require 'eglot nil t)) (if (not (require
0xe7454d06d3b1d5f>'eglot nil t)) (display-warning 'use-package (format
0xe7454d06d3b1d5f>"Cannot load %s" 'eglot) :error)) (progn (let
0xe7454d06d3b1d5f>((custom--inhibit-theme-enable nil)) (if (memq
0xe7454d06d3b1d5f>'use-package custom-known-themes) nil
0xe7454d06d3b1d5f>(custom-declare-theme 'use-package 'use-package-theme
0xe7454d06d3b1d5f>nil) (enable-theme 'use-package) (setq
0xe7454d06d3b1d5f>custom-enabled-themes (remq 'use-package
0xe7454d06d3b1d5f>custom-enabled-themes))) (custom-theme-set-variables
0xe7454d06d3b1d5f>'use-package '(eglot-autoshutdown t nil nil
0xe7454d06d3b1d5f>"Customized with use-package eglot")
0xe7454d06d3b1d5f>'(flymake-no-changes-timeout 5 nil nil "Customized
0xe7454d06d3b1d5f>with use-package eglot"))) (if (not (require 'eglot
0xe7454d06d3b1d5f>nil t)) (display-warning 'use-package (format "Cannot
0xe7454d06d3b1d5f>load %s" 'eglot) :error)) (if (boundp
0xe7454d06d3b1d5f>'eglot-mode-map) (let* ((name "C-c a r") (key "\3ar")
0xe7454d06d3b1d5f>(kmap (or (if (and eglot-mode-map ...) (symbol-value
0xe7454d06d3b1d5f>eglot-mode-map) eglot-mode-map) global-map)) (kdesc
0xe7454d06d3b1d5f>(cons (if (stringp name) name (key-description name))
0xe7454d06d3b1d5f>(if (symbolp eglot-mode-map) eglot-mode-map
0xe7454d06d3b1d5f>'eglot-mode-map))) (binding (lookup-key kmap key)))
0xe7454d06d3b1d5f>(let ((entry (assoc kdesc personal-keybindings))
0xe7454d06d3b1d5f>(details (list #'eglot-rename (if ... nil binding))))
0xe7454d06d3b1d5f>(if entry (setcdr entry details) (add-to-list
0xe7454d06d3b1d5f>'personal-keybindings (cons kdesc details))))
0xe7454d06d3b1d5f>(define-key kmap key #'eglot-rename))
0xe7454d06d3b1d5f>(eval-after-load 'eglot #'(lambda nil (let* ((name
0xe7454d06d3b1d5f>"C-c a r") (key "\3ar") (kmap ...) (kdesc ...)
0xe7454d06d3b1d5f>(binding ...)) (let (... ...) (if entry ... ...))
0xe7454d06d3b1d5f>(define-key kmap key #'eglot-rename))))))
0xe7454d06d3b1d5f>(condition-case err (progn (let
0xe7454d06d3b1d5f>((custom--inhibit-theme-enable nil)) (if (memq
0xe7454d06d3b1d5f>'use-package custom-known-themes) nil
0xe7454d06d3b1d5f>(custom-declare-theme 'use-package 'use-package-theme
0xe7454d06d3b1d5f>nil) (enable-theme 'use-package) (setq
0xe7454d06d3b1d5f>custom-enabled-themes (remq 'use-package
0xe7454d06d3b1d5f>custom-enabled-themes))) (custom-theme-set-variables
0xe7454d06d3b1d5f>'use-package '(eglot-autoshutdown t nil nil
0xe7454d06d3b1d5f>"Customized with use-package eglot")
0xe7454d06d3b1d5f>'(flymake-no-changes-timeout 5 nil nil "Customized
0xe7454d06d3b1d5f>with use-package eglot"))) (if (not (require 'eglot
0xe7454d06d3b1d5f>nil t)) (display-warning 'use-package (format "Cannot
0xe7454d06d3b1d5f>load %s" 'eglot) :error)) (if (boundp
0xe7454d06d3b1d5f>'eglot-mode-map) (let* ((name "C-c a r") (key "\3ar")
0xe7454d06d3b1d5f>(kmap (or (if ... ... eglot-mode-map) global-map))
0xe7454d06d3b1d5f>(kdesc (cons (if ... name ...) (if ... eglot-mode-map
0xe7454d06d3b1d5f>...))) (binding (lookup-key kmap key))) (let ((entry
0xe7454d06d3b1d5f>(assoc kdesc personal-keybindings)) (details (list
0xe7454d06d3b1d5f>... ...))) (if entry (setcdr entry details)
0xe7454d06d3b1d5f>(add-to-list 'personal-keybindings (cons kdesc
0xe7454d06d3b1d5f>details)))) (define-key kmap key #'eglot-rename))
0xe7454d06d3b1d5f>(eval-after-load 'eglot #'(lambda nil (let* (... ...
0xe7454d06d3b1d5f>... ... ...) (let ... ...) (define-key kmap key
0xe7454d06d3b1d5f>...)))))) ((debug error) (funcall
0xe7454d06d3b1d5f>use-package--warning30 :catch err)))
  load-with-code-conversion("/home/user/.emacs.d/init.el"
"/home/user/.emacs.d/init.el" t t) load("/home/user/.emacs.d/init"
noerror nomessage) startup--load-user-init-file(#f(compiled-function ()
#<bytecode 0xd44b3a6361331ce>) #f(compiled-function () #<bytecode
-0x1f3c686ddc0cdc35>) t) command-line() normal-top-level()



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: eglot: "Feature provided by other file: "project"
  2024-08-12 18:18 eglot: "Feature provided by other file: "project" c.buhtz
@ 2024-08-12 18:43 ` Eli Zaretskii
  2024-08-12 19:14   ` c.buhtz
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-08-12 18:43 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Mon, 12 Aug 2024 18:18:30 +0000
> From: <c.buhtz@posteo.jp>
> 
> I do get the long error and debug output you can see at the end of this
> file. I don't know what else to do.
> According to some comments in the internet it seems to be a dependency
> conflict.

No, it means that somehow your customizations changed load-path, such
that Emacs now sees project.el in some other directory than it saw at
startup.  You need to look at your customizations.

> I do not need "project" package. I don't use it myself.

But Eglot does.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: eglot: "Feature provided by other file: "project"
  2024-08-12 18:43 ` Eli Zaretskii
@ 2024-08-12 19:14   ` c.buhtz
  0 siblings, 0 replies; 3+ messages in thread
From: c.buhtz @ 2024-08-12 19:14 UTC (permalink / raw)
  To: Help gnu emacs

Hello Eli,
thank you very much. Your hint solved the problem.

I searched the filesystem for "project.el" and discovered there are more 
then one Emacs versions in the system.
Cleaning this situation solved this and all other errors.

Background: I do use Debian 12 (stable) offering Emacs 28. I discovered 
that Emacs 29 is offered from the backports repo. So I activated that 
and installed it. But "emacs" is a meta package and causing some other 
problems when you don't know what is going on behind it.
Before all this I need to deinstall not "emacs" but "emacs*".

Thanks in advance,
Christian



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-12 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 18:18 eglot: "Feature provided by other file: "project" c.buhtz
2024-08-12 18:43 ` Eli Zaretskii
2024-08-12 19:14   ` c.buhtz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.