jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.38k stars 260 forks source link

Treemacs window is left in erred state after dap-debug is ran. #986

Closed simurgh9 closed 1 year ago

simurgh9 commented 2 years ago

Steps to reproduce,

  1. Put test.el in the current working directory.

    (package-initialize)
    (require 'use-package)
    (use-package treemacs)
    (use-package lsp-mode)
    (use-package dap-mode
    :custom
    (dap-auto-configure-features '(sessions locals controls tooltip repl))
    :config
    (use-package dap-python
      :after python
      :custom
        (dap-auto-configure-mode t)
        (dap-python-debugger 'debugpy) ; pip3 install debugpy
        (dap-python-executable python-shell-interpreter))
    :hook
    (python-mode . dap-ui-mode)
    (python-mode . dap-mode))
  2. Run emacs -Q --load test.el.

  3. Run M-x dap-debug (dap-python) and choose the file option.

  4. Interact with one of the Treemacs windows spawned by dap-debug (this is important).

  5. Let the debugger finish.

  6. Toggle the Treemacs window by M-x treemacs treemacs.

Here is a gif,

treemacs-bug

Other information,

Link to the Dap mode's Github repository

simurgh9 commented 1 year ago

Just realised that I'd opened this issue in the wrong repository... chef's kiss. Please delete this if possible.