Skip to content

Commit

Permalink
Fix PluginException in StackTaskConfigurationType
Browse files Browse the repository at this point in the history
com.intellij.diagnostic.PluginException: The default implementation of method 'getId' is deprecated, you need to override it in 'class com.haskforce.run.stack.task.StackTaskConfigurationType$$anon$1'. The default implementation delegates to 'getName' which may be localized, but return value of this method must not depend on current localization. [Plugin: com.haskforce]
  • Loading branch information
carymrobbins committed Jul 17, 2022
1 parent f7eb6e9 commit e0e3ff0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/com/haskforce/run/stack/task/StackTaskConfigurationType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ import com.haskforce.HaskellIcons
import com.intellij.execution.configurations.{ConfigurationFactory, ConfigurationTypeBase, RunConfiguration}
import com.intellij.openapi.project.Project

class StackTaskConfigurationType extends ConfigurationTypeBase("Stack Task Configuration", "Haskell Stack Task", "Execute a `stack` task.", HaskellIcons.FILE) {
class StackTaskConfigurationType extends ConfigurationTypeBase(
"Stack Task Configuration",
"Haskell Stack Task",
"Execute a `stack` task.",
HaskellIcons.FILE
) {

addFactory(new ConfigurationFactory(this) {

override def getId: String = "haskell-stack-task"

addFactory(new ConfigurationFactory(this){
override def createTemplateConfiguration(project: Project): RunConfiguration = {
new StackTaskConfiguration(project, this)
}
Expand Down

0 comments on commit e0e3ff0

Please sign in to comment.