-
Notifications
You must be signed in to change notification settings - Fork 34
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
Symbol’s function definition is void: auto-dark--check-and-set-dark-mode #70
Comments
This is on Emacs 29.4 on Fedora Workstation 40 FWIW. |
I'm having the same issue on Doom Emacs on NixOS unstable, Emacs 29.4 |
Thanks, same problem as #69. And now it happens on Linux also. I might've tested some cached version or something 🥹 I just reverted it to the last commit on master (while bumping the version to v0.13.2). It should be up on melpa in its next run. If you @threddast @mattiasb could please test it (the 0.13.2 version), while I try to figure out how we can implement @sellout improvements from #67 in a generic non-breaking way, it would be great 😄 |
Fixed for me now, thank you :) |
Sorry I keep breaking your project … I think the solution here is to add I tested #67 on a Mac, but only an Emacs that already had Auto-Dark loaded 🤦🏼 I’m wondering if you’d also be open to adding a test suite? I tend to use Eldev & buttercup for testing. And my personal project template uses a Nix flake that also adds CI to run the tests across multiple platforms. Here’s a PR against a different project that shows what my template adds (which is likely more than you’d want, but includes the Eldev & Nix flake) mishoo/elisp-reader.el#6. |
Nahhh, breaking is normal @sellout , no hard feelings 😄 Tests already came to mind before, but as the 'core' of the package is basically tweaking the OS for information (and man, OSs changes stuff, lol), I did not went that road. That said, for stuff like what just happened (breaking in a clean install), tests would've been a nice addition. I'm kind of short of time for this weekend so I'll probably have the time to play with auto-dark again next week (regarding patching the last commit with :initialize and testing it). |
I’ve got a fixed version of #67 now, and tests to show that it works. Not quite ready for a PR, but I’ll try to get it up this weekend. |
Yep. I'm on 0.13.2 now and the issue I posted is gone. :) |
With the latest version of
auto-dark
(0.13.1
) I get this message when starting Emacs:I believe the issue is that the setter for
auto-dark-themes
will run whencustom-set-variables
is run which in turn is very likely to happen beforeauto-dark
is loaded.I suspect that if you're bypassing
customize
and manually writesetq
/setopt
forms in your
init.el
you might not experience this.To reproduce
Add these files:
~/emacs-ad-test/early-init.el
:~/emacs-ad-test/init.el
:Then:
The text was updated successfully, but these errors were encountered: