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

Broke my IntelliJ

Open G0dC0der opened this issue 4 years ago • 14 comments

Installed EmmyLua, restarted IntelliJ and now crashes while I try to open it.

Environment

name version
IDEA version 2020.3(Can't check exact version since it's broken!)
EmmyLua version Latest I guess?
OS MacOS 11.3 (20E232)

What are the steps to reproduce this issue?

Just install it.

What happens?

When I try to open IntelliJ, I get an error message and then shuts down.

Any logs, error output, etc?

Pic of stacktrace(couldn't copy the text. Whenever I tried I got a new modal in my face with a NPE error) https://ibb.co/w679QmZ

G0dC0der avatar Apr 29 '21 21:04 G0dC0der

Question: How do I manually uninstall it?

G0dC0der avatar Apr 29 '21 21:04 G0dC0der

lua plugin conflict.

CppCXY avatar Apr 30 '21 02:04 CppCXY

I never installed any lua plugin before.

G0dC0der avatar Apr 30 '21 22:04 G0dC0der

The most recent IntelliJ IDEA Update (cannot see the actual version as it it always freezing before I'm able to do so) is indexing the EmmyLua jar file and is never coming back then: https://i.imgur.com/IyAL71c.png

The only workaround is to end the task of IntelliJ IDEA via the task manager, and then manually delete the EmmyLua files mentioned at the screenshot so the indexing is not trying to crawl them.

After that you can check the IntelliJ IDEA version: IntelliJ IDEA 2021.1.1 (Ultimate Edition) Build #IU-211.7142.45, built on April 30, 2021 VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0

Baertram avatar May 02 '21 16:05 Baertram

I experience the same issue in GoLand @Baertram. Is there any solution that would leave EmmyLua functional?

astrolemonade avatar May 27 '21 14:05 astrolemonade

Building the plugin from source does not fix the issue

astrolemonade avatar May 27 '21 15:05 astrolemonade

I was somehow able to fix this via uninstalling the plugin, deleting the compete folders of he plugin and caches created in IntelliJ folders (c:\users...\ e.g. AppData etc. as well), invalidating caches within IntelliJ IDEA UI and restarting it again. Re-installing the plugin then fixed it for me after 3 tries. Not sure WHAT exactly was fixing it but since then it did not happen anymore.

But I get several errors now related to EmmyLUA as well if I try to index many files from local subfolders. Everything else though seems to work.

Baertram avatar May 27 '21 18:05 Baertram

What do you think @tangzx ?

astrolemonade avatar May 30 '21 15:05 astrolemonade

Similar happened here on macOS 11.2.3 (Big Sur). Installed lua and luarocks using Homebrew, then installed the EmmyLua plugin via IDEA Marketplace.

Message at the bottom of the gui shows "Indexing Lua 5...", with the IDEA gui then locking up completely (beach ball) and never coming back (waited ~20 mins).

Had to kill -9 the main IDEA gui process. Restarted IDEA, and it immediately starting "Indexing Lua 5" again... locking up the gui. kill -9 again.

My workaround was to brew uninstall lua luarocks (then delete the left over config files), then start IDEA again (with the intention to remove EmmyLua). But, before I uninstalled the plugin, I decided to try installing Lua and Luarocks a second time.

Now, the weird hang of IDEA isn't happening. It seems to all be working. No idea how to investigate the problem though, but this above info might be useful for figuring out something useful. :smile:

As reference info, this is the IDEA version this happened with:

IntelliJ IDEA 2021.1.1 (Ultimate Edition)
Build #IU-211.7142.45, built on April 30, 2021
Runtime version: 11.0.10+9-b1341.41 x86_64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
macOS 11.2.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Non-Bundled Plugins: com.tang (1.3.6.215-IDEA211), org.jetbrains.plugins.go (211.7142.36)
Kotlin: 211-1.4.32-release-IJ7142.27

jc-dgit avatar Jun 01 '21 07:06 jc-dgit

Looking through the reported issues, both #50 and #414 could be the same as this too.

jc-dgit avatar Jun 01 '21 07:06 jc-dgit

Can affirm the same issue has been occurring on my end.

CDAGaming avatar Jun 11 '21 04:06 CDAGaming

One month later, still occuring on latest version. Definitely won't be recommending this software in the future. Best of luck.

CDAGaming avatar Jul 10 '21 19:07 CDAGaming

You could always check if the Luanalysis fork has the same issue.

adriweb avatar Jul 10 '21 20:07 adriweb

One month later, still occuring on latest version. Definitely won't be recommending this software in the future. Best of luck.

Same. Just deleted it and moved on personally.

jc-dgit avatar Jul 11 '21 01:07 jc-dgit

It actually breaks all IDEA based IDE's Pycharm broke when I tried to use the plugin same with Rider, Webstorm and CLion

frowcallaway avatar Sep 23 '22 08:09 frowcallaway

It actually breaks all IDEA based IDE's Pycharm broke when I tried to use the plugin same with Rider, Webstorm and CLion

check first if there are other lua plugins installed, if then only one can be retained. then rebuild the index: File>Invalid Caches

CppCXY avatar Sep 23 '22 09:09 CppCXY

It actually breaks all IDEA based IDE's Pycharm broke when I tried to use the plugin same with Rider, Webstorm and CLion

Works fine for me with EmmyLua 1.3.7.2-IDEA222 installed, on IntelliJ IDEA 2022.2.2. !>But I'm not using Pycharm nor Rider, Webstorm and CLion

As CppCXY said try to remove other LUA plugins and invalidate teh caches and indices. https://i.imgur.com/cJYJNcU.png

Baertram avatar Sep 23 '22 13:09 Baertram

Idea had a simple syntax highlighting for Lua files before I installed (and uninstalled) the plugin. Any ideas on how to make my IDE go back to normal? I tried invalidating caches already, didn't work.

andres-canva avatar Jan 20 '23 03:01 andres-canva

Please upgrade to 2022.3 and install emmylua 1.3.8

CppCXY avatar Jan 20 '23 04:01 CppCXY

Not an option for me to upgrade my IDEA version. I just found the solution:

  1. Go to Settings -> Editor -> File Types
  2. Remove the *.lua pattern from the Text file type.

I guess the plugin's uninstall process didn't clean that configuration up.

andres-canva avatar Jan 20 '23 04:01 andres-canva