EmmyLua / IntelliJ-EmmyLua

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

Cannot Refactor Table-Namespaced Functions #579

Open SeattleRex opened 6 months ago

SeattleRex commented 6 months ago

Environment(环境)

name version
IDEA version 222.4554.10
EmmyLua version 1.3.7.2-IDEA222
OS MacOS 13.4.1

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

Where file contains table 'rex' ie: rex = {}

Refactor

function activateGroup(groupname)

to

function rex.activateGroup(groupname)

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

Get message "Inserted identifier is not valid", and no refactor is performed.

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

Refactor to be performed.

Any logs, error output, etc?(有没有什么log, error输出?)

Message: "Inserted identifier is not valid"

Any other comments?(其它说明)

Unsure if issue is with plugin or IntelliJ itself?

CppCXY commented 6 months ago

maybe intellij self