Giter Site home page Giter Site logo

Comments (3)

manateelazycat avatar manateelazycat commented on May 23, 2024

2022-05-31 23-53-13 的屏幕截图
我可以呀。

请检查

(when (cl-every (lambda (pred)
这里的每个函数,看看是不是有失败的函数?

from lsp-bridge.

ginqi7 avatar ginqi7 commented on May 23, 2024
(when (cl-every (lambda (pred)
 (if (functionp pred) (funcall pred) t))
 lsp-bridge-completion-popup-predicates) 
(lsp-bridge-update-candidates))

lsp-bridge-completion-popup-predicates 里的几个断言都是通过了,直接运行上述代码是可以弹出补全窗口的。

看来是 python 代码,没有调用 lsp-bridge-record-completion-items 这个代码。
看 lsp-bridge 的日志,我这边,只有没有输入任何字母时,lsp 有返回 Completion items。当有输入了某个前缀,例如 he Completion items 返回是 0

--- Completion items number: 48  //当不输入字母前缀,或者输入 '.' 等特殊符号,有items
--- Completion items number: 0 // 当输入普通字母,如 'he' 没有补全 items

不知道是不是 gopls 是不是有问题。

from lsp-bridge.

ginqi7 avatar ginqi7 commented on May 23, 2024

打开,(setq lsp-bridge-enable-log t)
定位到问题:
image
应该是 gopls 的使用问题。需要首先创建一个 go module 才能正常的进行代码补全。

go mod init example.com/hello

image

from lsp-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.