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

It doesn't seem possible to add entries to _G directly

Open adriweb opened this issue 3 years ago • 1 comments

Environment

name version
IDEA version Intellij IDEA 2020.3.1 ; #IC-203.6682.168
Luanalysis version v1.2.2
OS Linux Ubuntu 20.10

What are the steps to reproduce this issue?

  1. Write _G.log = loggerInstance

What happens?

Error: No such member 'log' found on type '_G'

What were you expecting to happen?

No such error, and even more importantly, the variable recognized as a shared/global one in the project.

adriweb avatar Jan 15 '21 16:01 adriweb

It looks like global only works when _G. is not used. Not sure where this should be solved in the plugin source though.

pouwelsjochem avatar Mar 02 '21 10:03 pouwelsjochem