svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
448 stars 25 forks source link

dape buffer completion #77

Closed ipyffor closed 5 months ago

ipyffor commented 5 months ago
  1. 请问dape怎么开启补全呢,例如python的repl, gdb的命令窗口等,用的lsp-bridge,按照dape主页“ And with (setq dape-buffer-window-arrangement 'gud) + corfu as completion-in-region-function”设置完,lspbridge的补全也出问题了.
  2. 怎么快速将当前配置保存下来,比如一些参数,cwd,compile命令,断点记录,下次可以直接启动
svaante commented 5 months ago

Sorry I ran this through google translate but I am still not sure what you issue is. Can you find some way to translate this into English?

dalugm commented 5 months ago

Hi svaante, here is the translation:

  1. 请问dape怎么开启补全呢,例如python的repl, gdb的命令窗口等,用的lsp-bridge,按照dape主页“ And with (setq dape-buffer-window-arrangement 'gud) + corfu as completion-in-region-function”设置完,lspbridge的补全也出问题了.
  2. 怎么快速将当前配置保存下来,比如一些参数,cwd,compile命令,断点记录,下次可以直接启动
  1. I'm using lsp-bridge, how to enable dape's completion in buffers like python-repl or gdb? I had followed the instruction in dape's README And with (setq dape-buffer-window-arrangement 'gud) + corfu as completion-in-region-function. After using that config, lsp-bridge's completion cannot work.
  2. How to save current config quickly? Such as some args, cwd, compile-command and breakpoint record so I can use them directly next time.

  1. 没法解决,lsp-bridge 用的自己的补全框架 acm,跟 capf 不兼容,同时使用两者就会出现问题
  2. 可以用 .dir-locals.el 持久化变量的值,断点记录可以使用 dape-breakpoint-{save,load}

  3. Not dape's problem. Lsp-bridge uses its own completion framework acm, which is not compatible with capf. Problems will arise when you use both at the same time.
  4. Use .dir-locals.el to remember the value. For the breakpoint record, you can use dape-breakpoint-{save,load}.
svaante commented 5 months ago

Thank you for the help @dalugm Seams like I can close this issue?

dalugm commented 5 months ago

Thank you for the help @dalugm Seams like I can close this issue?

You're welcome, I think we can close this now :)