Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a key to a global array in another file doesn't register the value type #577

Open
Shinzuh opened this issue Feb 17, 2024 · 3 comments

Comments

@Shinzuh
Copy link

Shinzuh commented Feb 17, 2024

Environment(环境)

name version
IDEA version Latest
EmmyLua version Latest
OS Windows 11

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

  1. Create a global with an array and a key containing an array, for exemple :
TEST = {}
TEST.firstKey = {}
  1. Go in another file and set a key to "firstKey" array :
    TEST.firstKey.secondKey = "cool"
  2. In the same second file (and any others) the secondKey will not give the string type
    image

It would be a cool feature to have since I'm forced to work with this amount of keys.

Love your work

@CppCXY
Copy link
Member

CppCXY commented Feb 18, 2024

This is the latest emmylua bug, I don't know when it will be fixed, the author cut a lot of normal features to fix the crush problem, and I don't know when it will be fixed.

@Shinzuh
Copy link
Author

Shinzuh commented Feb 18, 2024

So if I understand correctly this was working someday. Do you know what commit caused the regression ? I'm exploring the project but I struggle a bit, this would be a precious information

@CppCXY
Copy link
Member

CppCXY commented Feb 19, 2024

This is a problem with the entire design. JetBrains does not allow certain computations during indexing, which can lead to freezes. To solve the freezing issue, EmmyLua can only cut off these contents. A more thorough solution is to not use IntelliJ's plugin mechanism but to use an independent backend to analyze the code, just like the CLion Nova.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants