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

"Lua additional sources root" setting not working on PyCharm 2023.1 CE #534

Open
USSX-Hares opened this issue Apr 18, 2023 · 11 comments
Open

Comments

@USSX-Hares
Copy link

Environment


name version
IDEA version PC-231.8109.197
EmmyLua version 1.3.20-IDEA231
OS Windows 10 Pro Version 21H2 Build 19044.2846

Details:

PyCharm 2023.1 (Community Edition)
Build #PC-231.8109.197, built on March 29, 2023
Runtime version: 17.0.6+10-b829.5 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 20
Non-Bundled Plugins:
    com.jetbrains.plugins.ini4idea (231.8109.217)
    net.sjrx.intellij.plugins.systemdunitfiles (223.230322.126)
    Batch Scripts Support (1.0.13)
    org.jetbrains.plugins.hocon (2023.1.0)
    org.sylfra.idea.plugins.linessorter (1.0.1)
    com.intellij.plugin.adernov.powershell (2.0.10)
    com.intellij.plugins.visualstudiokeymap (231.8109.91)
    org.rust.lang (0.4.192.5324-231)
    com.tang (1.3.20-IDEA231)
    pro.bashsupport (3.2.2.231)
    ru.meanmail.plugin.requirements (2022.4.1)
    mobi.hsz.idea.gitignore (4.5.0)
    org.jetbrains.settingsRepository (231.8109.91)

What are the steps to reproduce this issue?


  1. Open Settings -> Languages & Frameworks -> EmmyLua
  2. Add directories to "Lua additional sources root"
  3. Apply -> OK
  4. Restart IDE

What happens?


No additional sources are listed in "External Libraries"

image

What were you expecting to happen?


  • Additional sources are listed in "External Libraries"
  • Code completion works for the classes from the sources from the selected directories
@CppCXY
Copy link
Member

CppCXY commented Apr 18, 2023

this setting has not been very useful. If you want to add an external library, it is best to add the zip as a library in Project Structure.

@CppCXY
Copy link
Member

CppCXY commented Apr 18, 2023

by the way, version 1.3.20 has many bugs. It is recommended to download version 1.4.41 from GitHub actions.

@USSX-Hares
Copy link
Author

That's the latest version in my plugin manager.

@CppCXY
Copy link
Member

CppCXY commented Apr 20, 2023

the fix version is not release yet, please download from https://github.com/EmmyLua/IntelliJ-EmmyLua/actions/runs/4659438554

@USSX-Hares
Copy link
Author

@CppCXY that version was basically unusable. The plugin crushed each time I tried to type anything.

@CppCXY
Copy link
Member

CppCXY commented Apr 25, 2023

then I recommend go back to version 2022.3 first, the 2023.1 upgrade caused many things in Emmylua to not work

@USSX-Hares
Copy link
Author

USSX-Hares commented Apr 25, 2023

Also, I've found something really strange. I have classes defined in docstrings, classes have methods defined with .method syntax (not :method), and EmmyLua SOMETIMES counts these methods as class members and SOMETIMES doesn't. I can't tell how and when it happens, I could share some code if you need it.

@CppCXY
Copy link
Member

CppCXY commented Apr 25, 2023

the version 1.4.41 refactor indexing, but it has many bugs

@USSX-Hares
Copy link
Author

the version 1.4.41 refactor indexing, but it has many bugs

This happens on both 1.3 and 1.4 versions.

@CppCXY
Copy link
Member

CppCXY commented Apr 25, 2023

emmylua had a lot of bugs a long time ago. on the one hand, the idea itself is constantly changing its own mechanism, on the other hand, plugin authors rarely maintain it.
if you want to get a better Lua development experience, it is recommended that you use VSCODE's Lua plugin.
I am also one of it related maintainers. or VSCODE Emmylua is also available.

@USSX-Hares
Copy link
Author

USSX-Hares commented Jun 5, 2023

@CppCXY unfortunately, I find VSCode IDE pretty much unusable.

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