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: Invalid face, nano-modeline-active-name #7

Open
Zilong-Li opened this issue Aug 9, 2023 · 12 comments
Open

error: Invalid face, nano-modeline-active-name #7

Zilong-Li opened this issue Aug 9, 2023 · 12 comments

Comments

@Zilong-Li
Copy link

Hi, rougier

Thanks for sharing this repo. I tried to install many times on different machines. When the installation was finished, there is always this error error: Invalid face, nano-modeline-active-name.

@rougier
Copy link
Owner

rougier commented Aug 24, 2023

Can you try to install nano-modeline and check if it works?

@Zilong-Li
Copy link
Author

I tried to install nano-modeline. it didn't work. it's pity that have to abandon the nano-modeline in my configuration.

@rougier
Copy link
Owner

rougier commented Sep 11, 2023

What do you mean it didn't work ? Note that with the new version, you need to activate dfor any mode you like and/or setup a default modeline.

@lbenet
Copy link

lbenet commented Oct 3, 2023

Hi! First, thanks for the great org file, not just from the literate configuration part, but also from the philosophy, including the esthetics! i truly like it and I'm learning a lot from it.

I run into the same issue: error: Invalid face, nano-modeline-active-name. I am using Emacs 29.1, which I guess is worth saying.

Following the suggestion (in the Warnings buffer), I loaded emacs in debug mode; this is what I get:

Debugger entered--Lisp error: (error "Invalid face" nano-modeline-active-name)
  internal-set-lisp-face-attribute(nano-modeline-active-name :foreground "black" 0)
  set-face-attribute(nano-modeline-active-name nil :foreground "black" :inherit (nano-modeline-active nano-strong))
  eval-buffer(#<buffer  *load*> nil "/Users/benet/.emacs.d/init.el" nil t)  ; Reading at buffer position 44274
  load-with-code-conversion("/Users/benet/.emacs.d/init.el" "/Users/benet/.emacs.d/init.el" t t)
  load("/Users/benet/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x155f566d6d9d85>) #f(compiled-function () #<bytecode -0x1f3c61addc0da035>) t)
  command-line()
  normal-top-level()

I went further commenting all lines with nano-modeline-active-name (as well as those nano-modeline-inactive-name, and others similar); lines 2197 till 2225. Now the error is Symbol's function definition is void: nano-modeline-mode, and the corresponding output from --debug-init is:

Debugger entered--Lisp error: (void-function nano-modeline-mode)
  (nano-modeline-mode 1)
  eval-buffer(#<buffer  *load*> nil "/Users/benet/.emacs.d/init.el" nil t)  ; Reading at buffer position 46623
  load-with-code-conversion("/Users/benet/.emacs.d/init.el" "/Users/benet/.emacs.d/init.el" t t)
  load("/Users/benet/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x155f566d6d9d85>) #f(compiled-function () #<bytecode -0x1f3c61addc0da035>) t)
  command-line()
  normal-top-level()

Any ideas of what to do?

@rougier
Copy link
Owner

rougier commented Oct 13, 2023

With the newest version of the nano-modeline, there is no mode generic nano-modeline-mode. Instead, you need to activate it for any mode you want (including all modes at once). Have a look at documentation here

@alphanhp
Copy link

Hello Rougier, I'm suffering the same as above mentioned(and the same backtrace in debug-init). And I've activated nano-modeline-mode as document( add all the hook listed), but still as before.

I'm pretty love the "nano emacs". And I'm laypeople(or rookie) to programming, could I get some advice?
besides, whether OS(Windows)is a element to produce these?

@alphanhp
Copy link

and emacs is 29.1 @rougier

@rougier
Copy link
Owner

rougier commented Jan 9, 2024

@alphanhp Can you open an issue at https://github.com/rougier/nano-modeline. It will be easier for me to debug.

@Safenein
Copy link

Hi rougier,

Same issue on fresh install.

Is there any update ?

@rougier
Copy link
Owner

rougier commented May 27, 2024

With the newer nano-modeline you mean?

@Safenein
Copy link

Safenein commented May 27, 2024

I'm not sure, but I can reproduce this bug:

git clone https://github.com/rougier/dotemacs.git
mkdir ~/.emacs.org
emacs dotemacs/dotemacs

I hit <C-c><C-v>t to tangle.

Then:

ln -s ~/.emacs.org ~/.emacs.d
emacs

I wait for everything to download and compile. I restart and I get the error of this issue.

Maybe this dotfile is out-of-date because nano-modeline works fine when I use it in my personal config. It is also more than 1 year of inactivity in this repo, so maybe your configuration changed to adapt to updates but not on Github.

@rougier
Copy link
Owner

rougier commented Jun 24, 2024

Ok, I'll need to update my dotemacs since I've moved back to regular configurtation (no litterate)

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

5 participants