IntelliJ-EmmyLua icon indicating copy to clipboard operation
IntelliJ-EmmyLua copied to clipboard

只能调试一个lua文件

Open waryard opened this issue 2 years ago • 3 comments

Environment(环境)

name version
IDEA version 2022.2.1
EmmyLua version 1.3.7.2
OS OSX 12.6.7,

What are the steps to reproduce this issue?(重现步骤?)

  1. 已经配置了.lua识别,可以跳转
  2. package.cpath dbg.tcpListen('localhost', 9966)已添加
  3. 只可以调试已添加dbg.tcpListen的lua文件,其他的lua文件不可以调试

What happens?(出现什么问题?)

只能调试一个lua文件

What were you expecting to happen?(期望?)

可以调试项目内所有的lua文件

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?(其它说明)

waryard avatar Aug 18 '23 07:08 waryard

chunkname问题, 可能你的chunkname(chunkname不是modname, modname的标准形式是AAA.BBB.CCC)不符合标准的 AAAA/BBB/CCC的形式, 你可能需要在custom loader中修改chunkname

CppCXY avatar Aug 18 '23 09:08 CppCXY

chunkname在哪里修改呢?

waryard avatar Aug 22 '23 06:08 waryard

chunkname在哪里修改呢?

前面回答过了, 如果是xlua这样的就在custom loader, 如果不是需要自己去查代码, 比如lua_loadbuffer这样的接口

CppCXY avatar Aug 22 '23 06:08 CppCXY