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

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

Open USSX-Hares opened 1 year ago

USSX-Hares commented 1 year ago

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?


CppCXY commented 1 year ago

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 commented 1 year ago

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

USSX-Hares commented 1 year ago

That's the latest version in my plugin manager.

CppCXY commented 1 year ago

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

USSX-Hares commented 1 year ago

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

CppCXY commented 1 year ago

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

USSX-Hares commented 1 year ago

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 commented 1 year ago

the version 1.4.41 refactor indexing, but it has many bugs

USSX-Hares commented 1 year ago

the version 1.4.41 refactor indexing, but it has many bugs

This happens on both 1.3 and 1.4 versions.

CppCXY commented 1 year ago

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 commented 1 year ago

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