emacsclient -t not work with 'emacs --daemon' #5219

Closed
baobb opened this Issue Feb 24, 2016 · 9 comments

Comments

Projects
None yet
9 participants
@baobb

baobb commented Feb 24, 2016

Description

emacsclient -t does not work

Reproduction guide

  • Start Emacs with --daemon
  • emacsclient -t

Observed behaviour:
The console flash and exit
Expected behaviour:
The console stay in emacs

System Info

  • OS: gnu/linux
  • Emacs: 25.0.90.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: master (rev. 93e55bb)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(emacs-lisp)

Backtrace

BACKTRACE IF RELEVANT
@syl20bnr

This comment has been minimized.

Show comment
Hide comment
@syl20bnr

syl20bnr Feb 24, 2016

Owner

I cannot reproduce it with 24.5 on OS X.

Anyone can reproduce it on Linux or with 25 ?

Owner

syl20bnr commented Feb 24, 2016

I cannot reproduce it with 24.5 on OS X.

Anyone can reproduce it on Linux or with 25 ?

@d12frosted

This comment has been minimized.

Show comment
Hide comment
@d12frosted

d12frosted Feb 24, 2016

Collaborator

On Emacs 25. emacsclient -t works, but still have strange behaviour - sometimes it's like stuck. Also emacsclient leads to endless 'waiting for Emacs...`. I am going to upgrade Emacs tomorrow to see if it fixes the problem.

Collaborator

d12frosted commented Feb 24, 2016

On Emacs 25. emacsclient -t works, but still have strange behaviour - sometimes it's like stuck. Also emacsclient leads to endless 'waiting for Emacs...`. I am going to upgrade Emacs tomorrow to see if it fixes the problem.

@izahn

This comment has been minimized.

Show comment
Hide comment
@izahn

izahn Feb 24, 2016

Contributor

It works fine for me on Linux with Emacs 24.5.1

On Wed, Feb 24, 2016 at 4:42 PM, Boris notifications@github.com wrote:

On Emacs 25. emacsclient -t works, but still have strange behaviour -
sometimes it's like stuck. Also emacsclient leads to endless 'waiting for
Emacs...`. I am going to upgrade Emacs tomorrow to see if it fixes the
problem.


Reply to this email directly or view it on GitHub
#5219 (comment)
.

Contributor

izahn commented Feb 24, 2016

It works fine for me on Linux with Emacs 24.5.1

On Wed, Feb 24, 2016 at 4:42 PM, Boris notifications@github.com wrote:

On Emacs 25. emacsclient -t works, but still have strange behaviour -
sometimes it's like stuck. Also emacsclient leads to endless 'waiting for
Emacs...`. I am going to upgrade Emacs tomorrow to see if it fixes the
problem.


Reply to this email directly or view it on GitHub
#5219 (comment)
.

@a13ph

This comment has been minimized.

Show comment
Hide comment
@a13ph

a13ph Feb 24, 2016

I just recently gave up on emacsclient for now because of this, but I thought it was my fault somehow 😯

System Info

  • OS: gnu/linux (Ubuntu)
  • Emacs: 25.1.50.2
  • Spacemacs: 0.105.11
  • Spacemacs branch: develop (rev. 5cf6ef8)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(javascript colors deft fasd emoji erc clojure auto-completion better-defaults emacs-lisp git markdown org shell ranger)

a13ph commented Feb 24, 2016

I just recently gave up on emacsclient for now because of this, but I thought it was my fault somehow 😯

System Info

  • OS: gnu/linux (Ubuntu)
  • Emacs: 25.1.50.2
  • Spacemacs: 0.105.11
  • Spacemacs branch: develop (rev. 5cf6ef8)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(javascript colors deft fasd emoji erc clojure auto-completion better-defaults emacs-lisp git markdown org shell ranger)
@squireg

This comment has been minimized.

Show comment
Hide comment
@squireg

squireg Feb 24, 2016

I have the same behaviour on Linux with Emacs 25. Running emacsclient -t causes the console to flash and return to the prompt.

It only appears to happen when starting with "emacs -daemon". If I start emacs normally and start the server, then "emacsclient -t" works as expected.

  • OS: gnu/linux (ubuntu 14.04.4)
  • Emacs: 25.1.50.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: master (rev. 93e55bb)
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
    (auto-completion better-defaults clojure dockerfile emacs-lisp git github haskell html java javascript latex lua markdown org puppet python restclient shell shell-scripts spell-checking sql syntax-checking yaml)

squireg commented Feb 24, 2016

I have the same behaviour on Linux with Emacs 25. Running emacsclient -t causes the console to flash and return to the prompt.

It only appears to happen when starting with "emacs -daemon". If I start emacs normally and start the server, then "emacsclient -t" works as expected.

  • OS: gnu/linux (ubuntu 14.04.4)
  • Emacs: 25.1.50.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: master (rev. 93e55bb)
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
    (auto-completion better-defaults clojure dockerfile emacs-lisp git github haskell html java javascript latex lua markdown org puppet python restclient shell shell-scripts spell-checking sql syntax-checking yaml)
@d12frosted

This comment has been minimized.

Show comment
Hide comment
@d12frosted

d12frosted Feb 25, 2016

Collaborator

Just reinstalled Emacs 25 (with --use-git-head option) and everything works fine. But keep in mind that I am on OS X.

Just incase you are interested in SPC h d s:

System Info

  • OS: darwin
  • Emacs: 25.1.50.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: develop (rev. 8355671)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
((auto-completion :disabled-for org)
 better-defaults colors emoji eyebrowse
 (git :variables git-magit-status-fullscreen t)
 github
 (org :variables org-enable-github-support t org-bullets-bullet-list
      '("" "" "" "" ""))
 pandoc ranger restclient syntax-checking spacemacs-layouts spacemacs-helm spell-checking
 (shell :variables shell-default-term-shell "/usr/local/bin/fish")
 version-control no-dots
 (elfeed :variables elfeed-feeds d12/elfeed-feeds rmh-elfeed-org-files 'nil)
 (csharp :variables omnisharp-server-executable-path "~/Developer/Other/omnisharp-roslyn/artifacts/build/omnisharp/omnisharp")
 emacs-lisp erlang
 (haskell :variables haskell-enable-ghc-mod-support t haskell-enable-hindent-style "chris-done" haskell-tags-on-save nil haskell-process-log t haskell-process-reload-with-fbytecode nil haskell-process-use-presentation-mode t haskell-interactive-mode-include-file-name nil haskell-interactive-mode-eval-pretty nil haskell-process-suggest-haskell-docs-imports nil)
 (html :variables web-mode-markup-indent-offset 2 web-mode-attr-indent-offset 2 web-mode-code-indent-offset 2 web-mode-css-indent-offset 2 web-mode-sql-indent-offset 2 css-indent-offset 2)
 (javascript :variables js-indent-level 2 js2-basic-offset 2)
 lua markdown python ruby shell-scripts yaml react)
Collaborator

d12frosted commented Feb 25, 2016

Just reinstalled Emacs 25 (with --use-git-head option) and everything works fine. But keep in mind that I am on OS X.

Just incase you are interested in SPC h d s:

System Info

  • OS: darwin
  • Emacs: 25.1.50.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: develop (rev. 8355671)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
((auto-completion :disabled-for org)
 better-defaults colors emoji eyebrowse
 (git :variables git-magit-status-fullscreen t)
 github
 (org :variables org-enable-github-support t org-bullets-bullet-list
      '("" "" "" "" ""))
 pandoc ranger restclient syntax-checking spacemacs-layouts spacemacs-helm spell-checking
 (shell :variables shell-default-term-shell "/usr/local/bin/fish")
 version-control no-dots
 (elfeed :variables elfeed-feeds d12/elfeed-feeds rmh-elfeed-org-files 'nil)
 (csharp :variables omnisharp-server-executable-path "~/Developer/Other/omnisharp-roslyn/artifacts/build/omnisharp/omnisharp")
 emacs-lisp erlang
 (haskell :variables haskell-enable-ghc-mod-support t haskell-enable-hindent-style "chris-done" haskell-tags-on-save nil haskell-process-log t haskell-process-reload-with-fbytecode nil haskell-process-use-presentation-mode t haskell-interactive-mode-include-file-name nil haskell-interactive-mode-eval-pretty nil haskell-process-suggest-haskell-docs-imports nil)
 (html :variables web-mode-markup-indent-offset 2 web-mode-attr-indent-offset 2 web-mode-code-indent-offset 2 web-mode-css-indent-offset 2 web-mode-sql-indent-offset 2 css-indent-offset 2)
 (javascript :variables js-indent-level 2 js2-basic-offset 2)
 lua markdown python ruby shell-scripts yaml react)
@Bad-ptr

This comment has been minimized.

Show comment
Hide comment
@Bad-ptr

Bad-ptr Feb 26, 2016

Very well) I have a longstanding bug report here Bad-ptr/persp-mode.el#25 .
But for some reason no one seems to be interested to catch this bug, despite the fact that I gave a detailed instructions of how to debug it.
The algorithm described here Bad-ptr/persp-mode.el#25 (comment) , must work for every issue with creating frames (the emacsclient command tries to create a frame).

So, I repeat the instructions here, and maybe some who have this error will do it and we will have more information about this issue:

If you can not create an emacs frame -- check the before-make-frame-hook and the after-make-frame-functions lists. Just remove functions from these lists one by one: emacsclient --eval '(pop after-make-frame-functions)' and see after which removed function you can create a frame. After the frame is created -- M-x toggle-debug-on-error RET and try to execute the last removed function manually(with eval-expression M-:) (You can run a function from the before-make-frame-hook list without arguments, but to run a function from the after-make-frame-functions you must pass the (selected-frame) as an argument).

if something is not clear, feel free to ask questions.

Bad-ptr commented Feb 26, 2016

Very well) I have a longstanding bug report here Bad-ptr/persp-mode.el#25 .
But for some reason no one seems to be interested to catch this bug, despite the fact that I gave a detailed instructions of how to debug it.
The algorithm described here Bad-ptr/persp-mode.el#25 (comment) , must work for every issue with creating frames (the emacsclient command tries to create a frame).

So, I repeat the instructions here, and maybe some who have this error will do it and we will have more information about this issue:

If you can not create an emacs frame -- check the before-make-frame-hook and the after-make-frame-functions lists. Just remove functions from these lists one by one: emacsclient --eval '(pop after-make-frame-functions)' and see after which removed function you can create a frame. After the frame is created -- M-x toggle-debug-on-error RET and try to execute the last removed function manually(with eval-expression M-:) (You can run a function from the before-make-frame-hook list without arguments, but to run a function from the after-make-frame-functions you must pass the (selected-frame) as an argument).

if something is not clear, feel free to ask questions.

@aaronjensen

This comment has been minimized.

Show comment
Hide comment
@aaronjensen

aaronjensen Mar 24, 2016

Contributor

The car of after-make-frame-functions is self. If I pop that, emacsclient works fine, but persp-mode can no longer create layouts. because *persp-hash* is nil

Contributor

aaronjensen commented Mar 24, 2016

The car of after-make-frame-functions is self. If I pop that, emacsclient works fine, but persp-mode can no longer create layouts. because *persp-hash* is nil

@aaronjensen

This comment has been minimized.

Show comment
Hide comment
@aaronjensen

aaronjensen May 4, 2016

Contributor

This is fixed upstream @syl20bnr so this can be closed imo

Contributor

aaronjensen commented May 4, 2016

This is fixed upstream @syl20bnr so this can be closed imo

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