https://bugs.kde.org/show_bug.cgi?id=447949
--- Comment #4 from Adam Jimerson <vend...@gmail.com> --- (In reply to Waqar Ahmed from comment #3) > They would with slight changes assuming that a path such as > > /home/$USER/go/bin is a common path for go to live in, we can provide a > config that will automatically search for gopls in this directory. See for > example rust's configuration. That sounds good, quick question though, would $HOME be better than /home/$USER I'm trying to think of OSes, like FreeBSD, where the user's home directory is actually /usr/home/$USER (Of course there could be a symlink between /home/$USER and /usr/home/$USER) or something different. > > That'd be great, however so far no one has been able to come up with a PHP > LSP that is good and open source. We have an open issue on the repo > regarding PHP LSP, perhaps you can comment there Yeah I could probably chime in there with my opinion. > > The output unfortunately isn't very helpful. Does the configuration match > with what you have in VIM? Perhaps we can find an answer there. Generally > the diagnostic errors occur when the server isn't able to locate included > files or referenced libraries due to some misconfiguration. I'll have to check how it gets called using [coc-go](https://github.com/josa42/coc-go) to see if it's doing anything differently, but I do know it works in VIM with coc.nvim using the following configurations ``` "languageserver": { "golang": { "command": "gopls", "rootPatterns": ["go.mod"], "filetypes": ["go"] } } ``` - or - ``` "languageserver": { "golang": { "command": "gopls", "args": ["serve", "-debug", "0.0.0.0:8484", "-rpc.trace"], "rootPatterns": ["go.mod"], "filetypes": ["go"] } } ``` -- You are receiving this mail because: You are watching all bug changes.