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 when opening ansi-term in zsh #5256

Closed
domi91c opened this issue Feb 26, 2016 · 17 comments
Closed

Error when opening ansi-term in zsh #5256

domi91c opened this issue Feb 26, 2016 · 17 comments

Comments

@domi91c
Copy link

domi91c commented Feb 26, 2016

Description

When I open ansi-term, I get these errors:
error in process filter: face-attribute: Invalid face: unspecified
error in process filter: Invalid face: unspecified

Instead of my zsh prompt, I see some random letters and I'm unable to type anything. It was working at one point in terminal Emacs, but now it's not working in either the GUI or the terminal.

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: master (rev. 6689699)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(themes-megapack react better-defaults github
                 (version-control :variables version-control-diff-tool 'git-gutter  version-control-global-margin t)
                 osx markdown
                 (vinegar :variables vinegar-reuse-dired-buffer t)
                 org prodigy search-engine
                 (syntax-checking :variables syntax-checking-enable-by-default nil)
                 (spell-checking :variables spell-checking-enable-by-default nil)
                 yaml
                 (ruby :variables ruby-version-manager 'rvm)
                 ruby-on-rails python lua html command-log javascript emacs-lisp common-lisp
                 (clojure :variables clojure-enable-fancify-symbols t)
                 ranger gtags
                 (spacemacs-layouts :variables layouts-enable-autosave t layouts-autosave-delay 300)
                 eyebrowse colors
                 (git :variables git-magit-status-fullscreen t magit-push-always-verify nil magit-save-repository-buffers 'dontask magit-revert-buffers 'silent magit-refs-show-commit-count 'all magit-revision-show-gravatars nil)
                 (ibuffer :variables ibuffer-group-buffers-by 'projects)
                 (c-c   :variables c-c  -default-mode-for-headers 'c  -mode)
                 auto-completion
                 (shell :variables shell-default-position 'full shell-default-shell 'ansi-term shell-default-term-shell "/bin/zsh"))
@sooheon
Copy link

sooheon commented Feb 26, 2016

Seeing the same thing with fish. Bash works.

@domi91c
Copy link
Author

domi91c commented Mar 7, 2016

What reproduction steps are needed for this?

@StreakyCobra
Copy link
Contributor

What command do you use for running the ansi-term, and your ZSH prompt, or a fish config… something allowing to reproduce, because even with zsh and the agnoster prompt I can't reproduce :-(

@sooheon
Copy link

sooheon commented Mar 7, 2016

I have found the source of the problem, at least for me. Some of the themes installed by themes-megapack must touch custom-set-faces, there were various term/ansi-term colors set in there which caused the errors. Deleting these customizations resolved the issue for me.

@syohex
Copy link
Contributor

syohex commented Mar 7, 2016

This issue is similar to bbatsov/zenburn-emacs#87. Your theme has same issue same as it(zenburn already fixed).

@portOdin Which theme did you use ?

@t3chnoboy
Copy link
Contributor

t3chnoboy commented May 8, 2016

I have the same issue with fish. It was working before.
Now I get those errors in terminal and gui emacs regardless of the emacs and fish theme 😞

error in process filter: Invalid face: \#282a2e

@brenogil
Copy link

Im on 0.200.4@25.1.1 and I get error in process filter: face-attribute: Invalid face: unspecified error in process filter: Invalid face: unspecified when opening ansi-term.
Nothing new has changed over my side.
Everything was fine a couple of days ago

@erebe
Copy link

erebe commented Nov 2, 2016

Same as @brenogil. ansi-term was working fine with zsh previously, but after an update I cannot open it anymore

@brenogil
Copy link

brenogil commented Nov 2, 2016

After being unable to find/craft a solution after some poking around, I deleted my .spacemacs and started another from scratch. All is fine now.

@erebe
Copy link

erebe commented Nov 2, 2016

@brenogil I can confirm
I upgraded all packages (SPC T m -> options -> manage packages -> U -> x) and now I can spawn a zsh shell correctly

@d12frosted
Copy link
Contributor

Ok, so it looks like you just need to update all packages (might be upstream issue with theme or anything else) and Spacemacs.

Closing this for now. Let us know if it's and issue.

@asok
Copy link
Contributor

asok commented Dec 7, 2016

I had the same issue. What I did I commented out a line in spacemacs file that was setting variable ansi-term-color-vector:

;; Do not write anything past this comment. This is where Emacs will
;; auto-generate custom variable definitions.
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ansi-color-faces-vector
   [default bold shadow italic underline bold bold-italic bold])
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; '(ansi-term-color-vector
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;   [unspecified "#FFFFFF" "#d15120" "#5f9411" "#d2ad00" "#6b82a7" "#a66bab" "#6b82a7" "#505050"] t)

This is auto generated by custom so I'm not sure if after some time this setting will be added again.

In the meantime this seems like a related problem: tinted-theming/base16-emacs#4

@t3chnoboy
Copy link
Contributor

@asok Thank you!!!
It resolved the issue for me ☺️

@Lord-Guckavin

This comment has been minimized.

@JAremko
Copy link
Collaborator

JAremko commented May 17, 2019

@Lord-Guckavin Sorry but we aren't a dating portal.

@asok
Copy link
Contributor

asok commented May 20, 2019

@Lord-Guckavin I'd prefer if you just buy a beer.

@vv111y
Copy link

vv111y commented Feb 28, 2020

I had this problem this week; not resolved. Thanks @asok

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

No branches or pull requests