EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.72k stars 285 forks source link

只能调试一个lua文件 #558

Open waryard opened 10 months ago

waryard commented 10 months ago

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

CppCXY commented 10 months ago

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

waryard commented 10 months ago

chunkname在哪里修改呢?

CppCXY commented 10 months ago

chunkname在哪里修改呢?

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