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

Fail to launch mu4e #14

Open
jvillasante opened this issue Dec 13, 2024 · 8 comments
Open

Fail to launch mu4e #14

jvillasante opened this issue Dec 13, 2024 · 8 comments

Comments

@jvillasante
Copy link

Hello, I'm using the following configuration:

(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
(require 'mu4e)

(use-package mu4easy
    :vc (:url "[email protected]:danielfleischer/mu4easy.git"
              :rev :newest)
    :demand t
    :config (mu4easy-mode)
    :custom (mu4easy-contexts
             '((mu4easy-context
                :c-name  "Google"
                :maildir "MyMailDir"
                :mail    "MyEmail"
                :smtp    "smtp.gmail.com"
                :sent-action delete)
               (mu4easy-context
                :c-name  "Apple"
                :maildir "MyMailDir"
                :mail    "MyEmail"
                :smtp    "smtp.mail.me.com"))))

I get the following warning when starting Emacs:

.../emacs/elisp/my-init-mail.el: Warning:
    reference to free variable ‘mu4e~context-current’

And the following error when doing M-x mu4e

apply: Symbol’s value as variable is void: mu4e~context-current
@danielfleischer
Copy link
Owner

Hi, what mu4e version?

@jvillasante
Copy link
Author

jvillasante commented Dec 13, 2024

I'm new to mu4e, just configure it today. I'm on Emacs30 on Fedora but I'm not sure where to find what version of mu4e I'm using. Do you know how? There's a M-x mu4e-about but it does not shows the version. If mu4e comes with mu then here it is:

$ mu --version
version 1.12.1

@danielfleischer
Copy link
Owner

danielfleischer commented Dec 13, 2024

My package, nor mu4e 1.12.1+ don't have a variable called mu4e~context-current. Check out your installation. It is currently called mu4e--context-current, renamed from v1.6 to v1.8 which means you have a very old installation. It's best to build from source, very easy.

@jvillasante
Copy link
Author

jvillasante commented Dec 13, 2024

I seriously don't know what you are talking about, I guess I'll figure it out eventually!

  • I installed your package both from melpa and from github and get the problem
  • According to this https://github.com/djcb/mu/releases, mu/mu4e is on v1.12.7 and I'm on v1.12.1 which comes right from Fedora package, not sure what you mean by v1.6 or v1.8

I compiled the latest mu (version 1.12.7) and still having the same issue...

@danielfleischer
Copy link
Owner

Trying to help you by searching a variable called mu4e~context-current showed it was refactored out of mu4e a couple of years ago. There's some issue in your mu4e installation.

@jvillasante
Copy link
Author

Here's the thing, if I disable your package, everything works!
Not sure, I'll figure it out eventually...

@jvillasante
Copy link
Author

May it be that your package installs mu4e-alert that has https://github.com/search?q=repo%3Aiqbalansari%2Fmu4e-alert%20context-current&type=code?

@danielfleischer
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants