Going to definition on the require target and on mypkg.greeting do not work. The default package.path used for lookups includes the pattern $base/?/init.lua which EmmyLua does not seem to consider.
Replacing test.lua with the following works but should not be necessary:
local mypkg = require "mypkg.init"
-- ...
What were you expecting to happen?(期望?)
EmmyLua should be aware of the init.lua lookup pattern and code intelligence features should look for this file.
Environment(环境)
What are the steps to reproduce this issue?(重现步骤?)
init.lua
file under the directoryFor instance, consider the following directory structure:
In mypkg/init.lua, let's say we have the following:
What happens?(出现什么问题?)
Going to definition on the
require
target and onmypkg.greeting
do not work. The defaultpackage.path
used for lookups includes the pattern$base/?/init.lua
which EmmyLua does not seem to consider.Replacing test.lua with the following works but should not be necessary:
What were you expecting to happen?(期望?)
EmmyLua should be aware of the init.lua lookup pattern and code intelligence features should look for this file.
Any logs, error output, etc?(有没有什么log, error输出?)
(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)
Any other comments?(其它说明)
Thank you for building a great product! …