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

dap-ui-locals window keeps collapsing after every 'next' #811

Open
obelhe opened this issue Oct 9, 2024 · 5 comments
Open

dap-ui-locals window keeps collapsing after every 'next' #811

obelhe opened this issue Oct 9, 2024 · 5 comments

Comments

@obelhe
Copy link

obelhe commented Oct 9, 2024

Hey there,

Trying to use dap mode with golang, I'm hitting a wall where everytime I go to the next statement the locals window collapses, so I have to navigate to that buffer and expand it

Screenshot 2024-10-09 at 19 20 18

I tried creating my own function that expands the locals window after going to the next statement. But that didn't work

(defun next-expand ()
  (interactive)
  (dap--step "next" (dap--cur-session))

  (lsp-treemacs-render (dap-ui-locals-get-data) " Locals " dap-ui-locals-expand-depth dap-ui--locals-buffer)
  )

not sure if this is a dap thing or lsp-treemacs thing?

@edhilgendorf
Copy link

I'm having the same issue, @obelhe did you figure something out?

@obelhe
Copy link
Author

obelhe commented Oct 25, 2024

@edhilgendorf nope, i just gave up after trying multiple things that didn't work out. Went back to the good ol fmt.Println

@edhilgendorf
Copy link

@obelhe I tried the following but I get an error "No current debug session", do you know if there's another way to call these one after another?

(defun my-next-locals ()
  "Debug 'next' followed by expanding ui locals"
  (interactive)
  (dap-next) 
  (dap-ui-locals))

@edhilgendorf
Copy link

@yyoncho this seems to be broken again: #317

@nmaupu
Copy link

nmaupu commented Dec 3, 2024

Same here, desperately trying to make it work correctly as well...

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

3 participants