doomemacs / doomemacs

An Emacs framework for the stubborn martian hacker
MIT License
18.88k stars 3.03k forks source link

Terminals and repls don't get added to the workspace #3468

Open tprk77 opened 4 years ago

tprk77 commented 4 years ago

What did you expect to happen?

When I open a terminal (C-c o T / +term/here) with workspaces enabled, I would expect that buffer to be immediately added to the workspace buffer list, so for example it would be accesible by C-x b / +ivy/switch-workspace-buffer.

Somewhat strangely, if I switch to the terminal with C-x B / switch-buffer, then it is added to the workspace buffer list, and then is accessible via +ivy/switch-workspace-buffer.

I'm new to Doom Emacs. I looked through the docs, and have found no mention of this behavior. So I'm assuming it's a bug.

(BTW, Doom has been really cool so far. Thanks for working on it!)

What actually happened?

The new buffer is created, but not added to the workspace.

Additional details:

Steps to reproduce:

  1. Enable workspaces.
  2. Do +term/here
  3. Do +ivy/switch-workspace-buffer to any other buffer.
  4. Do +ivy/switch-workspace-buffer to get back to the buffer, but...
  5. Bug: buffer is not in the workspace.

System information:

emacs   version    28.0.50
        features   XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 GMP
        build      Jun 19, 2020
        buildopts  (--build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=-snapshot --with-modules=yes --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-snapshot-BdptoU/emacs-snapshot-100477=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro')
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      grafted, HEAD -> develop, origin/develop, origin/HEAD 0443eeb 2020-06-24 20:09:17 -0400
        dir        ~/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /bin/bash
        uname      Linux 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64
        path       (~/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu)
config  envfile    nil
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline ophints (popup +defaults) vc-gutter vi-tilde-fringe workspaces :editor file-templates fold snippets :emacs dired electric undo vc :term term :checkers syntax spell :tools (eval +overlay) lookup lsp magit :lang (cc +lsp) common-lisp data emacs-lisp json lua markdown org python sh web yaml :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (n/a)
        elpa       (n/a)
kepler471 commented 1 year ago

Hi, are there any updates or workarounds for this issue? I believe I have the same problem when opening an ESS R REPL (iESS), through run-ess-r or ess-switch-to-inferior-or-script-buffer from an R script when no R REPL is already open.

generated  Jan 04, 2023 00:28:19
system     MacOS 12.6 Darwin 21.6.0 arm64 mac
emacs      28.2 ~/.emacs.d/
doom       3.0.0-pre PROFILE=_@0 grafted, HEAD -> master, origin/master, origin/HEAD
           d5ccac5 2022-12-02 00:36:06 +0100 ~/.doom.d/
shell      /opt/homebrew/bin/bash
features   ACL GMP GNUTLS JSON LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER
           THREADS TOOLKIT_SCROLL_BARS XIM ZLIB
traits     gui server-running envvar-file custom-file
custom     custom-safe-themes
modules    :config use-package :completion company (vertico +icons) :ui doom
           doom-dashboard hl-todo modeline ophints (popup +defaults) treemacs
           (vc-gutter +pretty) vi-tilde-fringe workspaces zen :editor file-templates
           fold format multiple-cursors snippets word-wrap :emacs (dired +icons)
           electric undo vc :term vterm :checkers syntax :tools ein (eval +overlay)
           lookup lsp magit pdf :os macos tty :lang data emacs-lisp ess (fsharp + lsp)
           (go +lsp) latex markdown org (python +lsp +pyenv) (rust +lsp) sh yaml :app
           calendar :config (default +bindings +smartparens)
packages   (move-lines :recipe (:host github :repo targzeta/move-lines)) (rotate)
           (info-colors) (speed-type) (calibredb :pin) (nov :pin) (calctex :recipe
           (:host github :repo johnbcoughlin/calctex :files (*.el calctex/*.el
           calctex-contrib/*.el org-calctex/*.el vendor))) (ess-view-data)