apple / pkl-intellij

JetBrains editor plugins providing Pkl language support
https://pkl-lang.org/intellij/current/index.html
Apache License 2.0
49 stars 10 forks source link

Fix runtime crash from `PklCreateProjectAction` in 2024.1+ #22

Closed WarningImHack3r closed 4 months ago

WarningImHack3r commented 5 months ago

Fix a runtime crash happening in IDEA 2024.1+:

com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'org.pkl.intellij.action.PklCreateProjectAction' must override `getActionUpdateThread` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: org.pkl]

As its update function doesn't perform any EDT-specific action, BGT works fine for this case.

translatenix commented 4 months ago

Can this please be reviewed/merged?