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

The default implementation of method 'getId' is deprecated #782

Open
smucode opened this issue Feb 19, 2022 · 14 comments
Open

The default implementation of method 'getId' is deprecated #782

smucode opened this issue Feb 19, 2022 · 14 comments

Comments

@smucode
Copy link

smucode commented Feb 19, 2022

After installing the latest intellij community edition for apple silicon i'm getting this warning from time to time. Things seem to work, just a bit annoying.

com.intellij.diagnostic.PluginException: The default implementation of method 'getId' is deprecated, you need to override it in 'class org.elm.ide.test.run.ElmTestConfigurationFactory'. The default implementation delegates to 'getName' which may be localized, but return value of this method must not depend on current localization. [Plugin: org.elm.klazuka]
	at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:290)
	at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12)
	at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:83)
	at com.intellij.diagnostic.PluginException.reportDeprecatedDefault(PluginException.java:110)
	at com.intellij.execution.configurations.ConfigurationFactory.getId(ConfigurationFactory.java:75)
	at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.getName(RunnerAndConfigurationSettingsImpl.kt:154)
	at com.intellij.execution.impl.RunConfigurationSchemeManager.getSchemeKey(RunConfigurationSchemeManager.kt:37)
	at com.intellij.execution.impl.RunConfigurationSchemeManager.getSchemeKey(RunConfigurationSchemeManager.kt:21)
	at com.intellij.configurationStore.schemeManager.SchemeManagerImpl.isRenamed(SchemeManagerImpl.kt:531)
	at com.intellij.configurationStore.schemeManager.SchemeManagerImpl.save(SchemeManagerImpl.kt:327)
	at com.intellij.configurationStore.Scheme_implKt.save(scheme-impl.kt:164)
	at com.intellij.execution.impl.RunManagerImpl.getState(RunManagerImpl.kt:625)
	at com.intellij.execution.impl.RunManagerImpl.getState(RunManagerImpl.kt:69)
	at com.intellij.configurationStore.ComponentStoreImpl.commitComponent(ComponentStoreImpl.kt:332)
	at com.intellij.configurationStore.ComponentStoreImpl.commitComponents$intellij_platform_configurationStore_impl(ComponentStoreImpl.kt:238)
	at com.intellij.configurationStore.ComponentStoreWithExtraComponents.commitComponents$intellij_platform_configurationStore_impl(ComponentStoreWithExtraComponents.kt:95)
	at com.intellij.configurationStore.ComponentStoreImpl$commitComponentsOnEdt$$inlined$withEdtContext$intellij_platform_configurationStore_impl$1.invokeSuspend(ComponentStoreImpl.kt:719)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at com.intellij.openapi.application.constraints.BaseConstrainedExecution$Companion$scheduleWithinConstraints$1.invoke(BaseConstrainedExecution.kt:68)
	at com.intellij.openapi.application.constraints.BaseConstrainedExecution$Companion.scheduleWithinConstraints(BaseConstrainedExecution.kt:71)
	at com.intellij.openapi.application.constraints.BaseConstrainedExecution.scheduleWithinConstraints(BaseConstrainedExecution.kt:38)
	at com.intellij.openapi.application.impl.BaseExpirableExecutorMixinImpl.access$scheduleWithinConstraints$s1153900543(BaseExpirableExecutorMixinImpl.kt:12)
	at com.intellij.openapi.application.impl.BaseExpirableExecutorMixinImpl$scheduleWithinConstraints$$inlined$Runnable$1.run(Runnable.kt:19)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214)
	at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:348)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:131)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:187)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
@naimdjon
Copy link

This is really annoying and made me switch to VS code. Is there a fix for this which can be manually applied?

@smucode
Copy link
Author

smucode commented Mar 15, 2022

Looks like it's fixed, just need to wait for the release 83e20f0

@denizdogan
Copy link

Anything stopping this fix from being released? It's quite annoying.

@naimdjon
Copy link

naimdjon commented Mar 17, 2022

Any plans for a release @klazuka ?

@denizdogan
Copy link

Looks like there's a massive overhaul of the entire plugin in the works based on recent commits :)

@ShebangDog
Copy link

@naimdjon
@denizdogan
If you want to use the modified plugin, you can do so by following these steps

  1. Clone this project and build it to obtain a jar file.
    Gradle -> Elm Intellij -> Tasks -> build -> build(select and run gradle task)
    image

and then, Gradle build jar file
image

  1. You can then apply this plugin to IntellijIdea to use the modified plugin
    Preferences -> Plugin -> Setting (Setting Icon) -> install plugin from disk
    and then, select your built jar file (hogehoge-elm-plugin.jar)
    image

@jackgene
Copy link

jackgene commented Apr 15, 2022

@naimdjon @denizdogan If you want to use the modified plugin, you can do so by following these steps

  1. Clone this project and build it to obtain a jar file.
    Gradle -> Elm Intellij -> Tasks -> build -> build(select and run gradle task)
    image

and then, Gradle build jar file image

  1. You can then apply this plugin to IntellijIdea to use the modified plugin
    Preferences -> Plugin -> Setting (Setting Icon) -> install plugin from disk
    and then, select your built jar file (hogehoge-elm-plugin.jar)
    image

Thank you for this. I wanted to mention that for IDEA 2022.1, I had to update gradle.properties, replacing:

pluginUntilBuild = 213.*

With:

pluginUntilBuild = 221.*

@kamil7x
Copy link

kamil7x commented Apr 28, 2022

@klazuka could you release fixed version, please?

@raphaelpereira
Copy link

+1

Please @klazuka could you create a release? This problem is very annoying and the work around requires a full local build.

@marperia
Copy link

marperia commented Feb 1, 2023

Seriously, it's been awhile since problem occurred. I still have it in 2023...
@klazuka we need u <3

@boxed
Copy link

boxed commented Feb 1, 2023

Maybe you could enable someone else to make a release?

@imor
Copy link

imor commented Feb 10, 2023

@klazuka could you please make a release with the fix.

@frontmesh
Copy link

frontmesh commented Mar 20, 2023

it is currently not compatible with the latest version of IntellijIdea community edition. :/

@naimdjon @denizdogan If you want to use the modified plugin, you can do so by following these steps

  1. Clone this project and build it to obtain a jar file.
    Gradle -> Elm Intellij -> Tasks -> build -> build(select and run gradle task)
    image

and then, Gradle build jar file image

  1. You can then apply this plugin to IntellijIdea to use the modified plugin
    Preferences -> Plugin -> Setting (Setting Icon) -> install plugin from disk
    and then, select your built jar file (hogehoge-elm-plugin.jar)
    image

@cies
Copy link
Contributor

cies commented Apr 15, 2024

The releases distributed on Github should fix this issue. See them here (5.0.0-betaX and newer): https://github.com/intellij-elm/intellij-elm/releases

Could someone confirm this fixed the issue, so we can close this...

We're still working to get a new Elm plugin on the Marketplace (last open problem preventing it to land in the Marketplace can be found in #813)

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