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

[Bug]: IDE Internal Errors: ID 'MaterialTheme.ThemeChooser.Dark' is already taken by action 'Dark Themes ()' (Plugin: Material Theme UI Lite). #164

Open
davidstelter opened this issue Mar 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@davidstelter
Copy link

Describe the bug

I just upgraded IntelliJ, which caused the Material Themes welcome/configure wizard to run. After completing the wizard I was greeted with the following:

com.intellij.diagnostic.PluginException: ID 'MaterialTheme.ThemeChooser.Dark' is already taken by action 'Dark Themes ()' (class com.intellij.openapi.actionSystem.impl.ChameleonAction) (Plugin: Material Theme UI Lite). Action 'null (null)' (class com.intellij.openapi.actionSystem.ActionGroupStub) cannot use the same ID com.chrisrm.idea.MaterialThemeUI [Plugin: com.chrisrm.idea.MaterialThemeUI]

In the process of reporting this, I realized it looks like I've got Material Theme UI Lite installed & enabled too, causing a conflict.

So seems like having just one at a time is reasonable, however the error condition handling is not. Would be a much smoother user experience if the plugins could detect each other in some way and explain the situation rather than producing this noisy error on IDE startup.

To Reproduce

  1. Install Material Theme UI Lite plugin
  2. Install Material Theme UI plugin
  3. Restart IntelliJ
  4. Complete Material Theme UI config wizard
  5. Observe noisy error dialog with stack traces

Note this is guesswork for now, I was greeted with the error following an IntelliJ update which I believe cleared the "disable plugin" setting I'd enabled for Material Theme UI after the last time this happened, at my previous IntelliJ update.

Expected behavior

Material Theme UI config wizard should detect if Material Theme UI Lite is present, alert the user and give them options of steps to take, such as disabling/removing one plugin or the other.

Material Theme Version

8.4.1

IDE

IntelliJ IDEA

System Info

IntelliJ IDEA 2022.3.1 (Ultimate Edition)
Build #IU-223.8214.52, built on December 20, 2022
Licensed to <redacted>
Subscription is active until <redacted>.
Runtime version: 17.0.5+1-b653.23 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.4
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
    ide.intellij.laf.enable.animation=true
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true
    ide.balloon.shadow.size=0
    editor.minimap.enabled=true

Non-Bundled Plugins:
    com.mallowigi.idea (20.0.0)
    com.ajaaibu.pitch.dark (1.3)
    monokai-pro (1.10)
    IdeaVIM (2.1.0)
    org.jetbrains.plugins.go-template (223.7571.203)
    github.cweijan.test-theme (1.6)
    Key Promoter X (2022.3)
    com.github.eig114.darkburn (0.1.3)
    com.intellij.kubernetes (223.8214.33)
    com.intellij.spring.websocket (223.7571.182)
    com.github.dinbtechit.vscodetheme (1.7.7)
    com.mallowigi (85.1.0)
    mobi.hsz.idea.gitignore (4.4.4)
    io.github.mishkun.ideavimsneak (1.2.0)

Kotlin: 223-1.7.21-release-272-IJ8214.52

Logs/Screenshots

No response

@davidstelter davidstelter added the bug Something isn't working label Mar 29, 2023
@mallowigi
Copy link
Collaborator

This needs to be implemented in the Material Theme Lite plugin.

I'll leave it for later

@mallowigi mallowigi reopened this Sep 22, 2023
@mallowigi mallowigi transferred this issue from AtomMaterialUI/material-theme-issues Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants