I am experiencing a strange behaviour, I am developing a plugin and while I need to open a file located in the plugin directory I get : Slow operations are prohibited on EDT
I am wondering if this is the right way of doing it :
The plugin works, I do not get that error a lot, it’s from time to time.
I tried without the ApplicationManager.getApplication().runReadAction(() -> { but the same, I am running out of options (I tried the invokeLater too) because this is needed to be run on EDT at the end.
I would really appreciate any kind of help
Thank you
2025-03-24 11:00:55,627 [ 43703] SEVERE - #c.i.u.SlowOperations - IntelliJ IDEA 2023.3.8 Build #IC-233.15619.7
2025-03-24 11:00:55,627 [ 43703] SEVERE - #c.i.u.SlowOperations - JDK: 17.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2025-03-24 11:00:55,627 [ 43703] SEVERE - #c.i.u.SlowOperations - OS: Mac OS X
But still get the error pointing (mostly when starting the project and the first time I invoke the code, it does not appear to do that later. Maybe because it does not have enough ressource ?