ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.07k stars 57 forks source link

unfinished capture error #167

Closed drusmanbashir closed 2 years ago

drusmanbashir commented 2 years ago

Hi, This new error has been appearing for some days when I start calling a particular class method inside python. Ony happens when the class has more than one tuple as a default argument.

To reproduce, copy-paste below code and start creating an object of this class.

class T():
    def __init__(self, chs=(1, 64, 128, 256), num_class=1,o=(1,2)):
        super().__init__()
        pass

like so..

testing = T(chs=(

Screenshot 2022-02-19 15:27:08

ray-x commented 2 years ago

Failed to reproduce. What is you lsp, pyright, jedi, pylsp?

drusmanbashir commented 2 years ago

Hi the lsp is pyright.

ray-x commented 2 years ago

image

It looks good to me. Could you enable debug mode and capture logs for me?

 cfg = {
  debug = true, -- set to true to enable debug logging
  log_path = vim.fn.stdpath("cache") .. "/lsp_signature.log", -- log dir when debug is on
 }
require("lsp_signature").setup(cfg)

The log should be ~/.cache/nvim/lsp_signature.log

drusmanbashir commented 2 years ago

The error seems to be gone for me too! Thanks for looking into this.