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

Error: ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon #5

Open
toby1984 opened this issue Aug 29, 2024 · 6 comments

Comments

@toby1984
Copy link

Hi,

Seems the plugin needs to be updated ; IntelliJ 2024.2.0.2 shows the following error:

2024-08-22 14:59:00,652 [ 964886] SEVERE - #DuplicateLines - `ActionUpdateThread.OLD_EDT` is deprecated and going to be   removed soon. 'DuplicateLines' must override `getActionUpdateThread()` and chose EDT or BGT. See ActionUpdateThread   javadoc. [Plugin: DuplicateLines]
com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon.   'DuplicateLines' must override `getActionUpdateThread()` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin:   DuplicateLines]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:201) 
@jonnypowell
Copy link

Seems @toby1984 just beat me to it! I'm seeing the same error each time I use it in IJ 2024.2.0.2, MacOS, MBP M1

@toby1984
Copy link
Author

Seems @toby1984 just beat me to it! I'm seeing the same error each time I use it in IJ 2024.2.0.2, MacOS, MBP M1

Though I have to admit I just found out that IntelliJ also has "Edit->Duplicate Line" feature (not sure that was the case many years ago when I installed this plugin) so I just uninstalled the plugin and am now using the built-in feature.

@jonnypowell
Copy link

Having come from Eclipse many, many years ago, it's the ability to duplicate both up & down that I still find convenient. As far as I know, the built-in function only duplicates down.

@HaLo1701
Copy link

HaLo1701 commented Sep 2, 2024

Correct, the build-in function only duplicates down.
I am coming from NetBeans and there you can duplicate in both directions too and it is very useful.

grgrzybek added a commit to grgrzybek/duplicate-lines-intellij-plugin-fork that referenced this issue Oct 4, 2024
@grgrzybek
Copy link

#6 works for me, but I don't know how to proceed from there (publish to IDEA marketplace)...
Is there a chance @xusoo you publish fixed version?

@toby1984
Copy link
Author

toby1984 commented Oct 9, 2024

@xusoo Any chance you could publish the fix by @grgrzybek ?

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

4 participants