linrongbin16/fzfx.nvim

It reports 'attempt to get length of local line (a nil value)' when I searching outgoing calls sometimes

Closed this issue · 1 comments

I have replicated the issue using a public repository watermill.
You can apply the command FzfLspOutgoingCalls to the method at this location: https://github.com/ThreeDotsLabs/watermill/blob/e4a10805785a5ad2196f10275e0c8d327e79c82b/pubsub/gochannel/pubsub.go#L343.

Here is my log:

2024-04-25 11:32:55,587280 [@/Users/stong/.local/share/nvim/lazy/fzfx.nvim/lua/fzfx/cfg/_lsp_locations.lua:475] ERROR: |_make_lsp_call_hierarchy_provider| method:"callHierarchy/outgoingCalls", lsp_hi_item:{
fromRanges = { {
["end"] = {
character = 16,
line = 359
},
start = {
character = 12,
line = 359
}
} },
to = {
detail = "github.com/ThreeDotsLabs/watermill • log.go",
kind = 12,
name = "Info",
range = {
["end"] = {
character = 5,
line = 44
},
start = {
character = 1,
line = 44
}
},
selectionRange = {
["end"] = {
character = 5,
line = 44
},
start = {
character = 1,
line = 44
}
},
uri = "file:///Users/stong/Project/Github/github.com/ThreeDotsLabs/watermill/log.go"
}
}, hi_item:{
detail = "github.com/ThreeDotsLabs/watermill • log.go",
kind = 12,
name = "Info",
range = {
["end"] = {
character = 5,
line = 44
},
start = {
character = 1,
line = 44
}
},
selectionRange = {
["end"] = {
character = 5,
line = 44
},
start = {
character = 1,
line = 44
}
},
uri = "file:///Users/stong/Project/Github/github.com/ThreeDotsLabs/watermill/log.go"
}, from_ranges:{ {
["end"] = {
character = 16,
line = 359
},
start = {
character = 12,
line = 359
}
} }

It will locate the log.go file, but line 359 does not exist.