IntelliJ-EmmyLua
IntelliJ-EmmyLua copied to clipboard
Alias: No usages found in Project and Libraries
Environment(环境)
| name | version |
|---|---|
| IDEA version | 2023.1.2 |
| EmmyLua version | 1.4.3-IDEA231 |
| OS | MacOS Ventura 13.4 |
What are the steps to reproduce this issue?(重现步骤?)
- See Given Example Alias Class Structure Below
--- @class A
local A = {
methodA = function() end
}
--- @class B
local B = {
methodB = function() end
}
--- @alias AB A|B
What happens?(出现什么问题?)
--- @type AB
local o = {}
o.methodA()
o.methodB()
Main Bug:
- Mouse or cursor on
o.methodA()and use Go to Declaration or Usages (CMD + Click or CMD+B) on theo.methodA()- Result: Works as Expected
- Mouse or cursor on
o.methodB()and use Go to Declaration or Usages (CMD + Click or CMD+B) on theo.methodB()- Result: Renders "No usages found in Project and Libraries"
Alternate Event:
Switch alias to B occurring first before A
--- @alias AB B|A
Then Go to Declaration on o.methodA() no longer works and o.methodB() works because it's declared first on the alias. It seems that the "Go to Declaration or Usages" is only honoring the first alias and ignores all others.
- Mouse or cursor on
o.methodA()and use Go to Declaration or Usages (CMD + Click or CMD+B) on theo.methodA()- Result: Renders "No usages found in Project and Libraries"
- Mouse or cursor on
o.methodB()and use Go to Declaration or Usages (CMD + Click or CMD+B) on theo.methodB()- Result: Works as Expected
Any logs, error output, etc?(有没有什么log, error输出?)
- none
Any other comments?(其它说明)
…
Got the same problem, had to downgrade to IntelliJ-EmmyLua-1.3.11-IDEA231