lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

There's some issue with 3rd party annotations since 3.5.1

Open flrgh opened this issue 3 years ago • 0 comments

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Linux

What is the issue affecting?

Annotations, Hover

Expected Behaviour

#!/usr/bin/env resty

local isarray = require "table.isarray

if isarray({}) then
  print("array")
end

My environment uses ${3rd}/OpenResty. Hover for isarray should show the doc/annotations for table.isarray.

Here is how it looks in 3.5.0:

Screenshot from 2022-08-03 11-25-52

Actual Behaviour

In 3.5.1 and 3.5.2, isarray is detected as unknown: image

Reproduction steps

  1. Go to '...'
  2. Click '...'
  3. See error '...'

Additional Notes

Runtime path still works for ${3rd}/OpenResty/library, because I get a completion result for it, but no annotations:

image

Log File

350.log 352.log

flrgh avatar Aug 03 '22 18:08 flrgh