You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
M.gopls= {
cmd= { "gopls", "serve", "-debug=localhost:8098" },
filetypes= { "go", "gomod" },
root_dir=util.root_pattern("go.work", "go.mod", ".git"),
settings= {
gopls= {
symbolStyle="Full", -- Full| Dynamic | Package---------------------------------------------------- Analyses Setting------------------------------------------------analyses= {
unusedparams=true,
unreachable=true,
fillstruct=true,
},
---------------------------------------------------- Complete Setting------------------------------------------------usePlaceholders=true, -- placeholders enables placeholders for function parameters or struct fields in completion responses.-- completionBudget = "0ms", -- completionBudget is the soft latency goal for completion requestsmatcher="Fuzzy", -- matcher sets the algorithm that is used when calculating completion candidates. CaseInsensitive | CaseSensitive | FuzzycompleteUnimported=true,
deepCompletion=true, -- If true, this turns on the ability to return completions from deep inside relevant entities, rather than just the locally accessible ones.-- experimentalWatchedFileDelay = "10ms"---------------------------------------------------- Inlayhint------------------------------------------------hints= {
assignVariableTypes=true, -- i/* int*/, j/* int*/ := 0, len(r)-1compositeLiteralFields=true, -- {/*in: */"Hello, world", /*want: */"dlrow ,olleH"}compositeLiteralTypes=true, -- /*struct{ in string; want string }*/{"Hello, world", "dlrow ,olleH"},constantValues=true, -- KindNone Kind = iota/* = 0*/functionTypeParameters=true, -- myFoo/*[int, string]*/(1, "hello")parameterNames=true, -- parseInt(/* str: */ "123", /* radix: */ 8)rangeVariableTypes=true, -- for k/* int*/, v/* string*/ := range []string{} {
},
},
},
single_file_support=true,
}
Logs
[ERROR][2023-06-16 17:32:21] ...lsp/handlers.lua:535 "2023/06/16 17:32:21 no signature help: cannot find an enclosing function\n\tposition=21:0\n"
[ERROR][2023-06-16 17:45:43] ...lsp/handlers.lua:535 "2023/06/16 17:45:43 no signature help: cannot find an enclosing function\n\tposition=24:0\n"
[ERROR][2023-06-16 17:45:43] ...lsp/handlers.lua:535 "2023/06/16 17:45:43 no signature help: cannot find an enclosing function\n\tposition=21:0\n"
[ERROR][2023-06-16 17:45:45] ...lsp/handlers.lua:535 "2023/06/16 17:45:45 no signature help: cannot find an enclosing function\n\tposition=183:21\n"
[ERROR][2023-06-16 17:45:45] ...lsp/handlers.lua:535 "2023/06/16 17:45:45 no signature help: cannot find an enclosing function\n\tposition=183:21\n"
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Jun 16, 2023
3Xpl0it3r
changed the title
x/tools/gopls: Cannot jump to definitions in vendor
x/tools/gopls: Cannot jump to definitions in k8s stage dir
Jun 16, 2023
gopls cannot work well in vendor dir; it cannot jump to definitions when trace source go in vendor.
gopls version
➜ vendor git:(master) ✗ gopls version golang.org/x/tools/gopls v0.12.1 golang.org/x/tools/gopls@(devel)
go env
Editor and settings
Logs
[ERROR][2023-06-16 17:32:21] ...lsp/handlers.lua:535 "2023/06/16 17:32:21 no signature help: cannot find an enclosing function\n\tposition=21:0\n"
[ERROR][2023-06-16 17:45:43] ...lsp/handlers.lua:535 "2023/06/16 17:45:43 no signature help: cannot find an enclosing function\n\tposition=24:0\n"
[ERROR][2023-06-16 17:45:43] ...lsp/handlers.lua:535 "2023/06/16 17:45:43 no signature help: cannot find an enclosing function\n\tposition=21:0\n"
[ERROR][2023-06-16 17:45:45] ...lsp/handlers.lua:535 "2023/06/16 17:45:45 no signature help: cannot find an enclosing function\n\tposition=183:21\n"
[ERROR][2023-06-16 17:45:45] ...lsp/handlers.lua:535 "2023/06/16 17:45:45 no signature help: cannot find an enclosing function\n\tposition=183:21\n"
The text was updated successfully, but these errors were encountered: