intuit / intuit/DockDockBuild

Conflict with Makefile support plugin

Open
#30 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Kotlin
Stars
48
Forks
20
PR merge metrics
No merged PRs in 30d

Description

**Is this a bug report, or a feature request?** Bug report

**What is the current behavior?**
Causing whole Android Studio to do nothing like a useless program and causing freezing when trying to open settings

```
com.intellij.diagnostic.PluginException: Trying to override already registered file type Makefile [Plugin: name.kropp.intellij.makefile]
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.loadFileTypeBeans(FileTypeManagerImpl.java:422)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.initStandardFileTypes(FileTypeManagerImpl.java:310)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.(FileTypeManagerImpl.java:222)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:48)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:660)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:54)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:41)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:115)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:69)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:62)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$future$1.run(ComponentManagerImpl.kt:802)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:193)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
```

**If the current behavior is a bug, please provide the steps to reproduce.**
Install both DockDockBuild and Makefile support plugins https://plugins.jetbrains.com/plugin/9333-makefile-support (Some time Android Studio ask to install DockDockBuild and Makefile when you open .mk file)
restart Android Studio
Open any Android projects

**What is the expected behavior?**
Let Android Studio run fine

**Please provide all relevant details.**
There is an issue reported on Makefile page https://github.com/kropp/intellij-makefile/issues/191
Either DockDockBuild or makefile should at least handle this conflict with a warning because i'm sure some users have both Makefile support and DockDockBuild installed even they don't know and they will get stuck with this issue for too long time
It had took me an hour to help my friend solve this problem with Android Studio

To fix it:
There is an error on the down-right corner. Click on it and disable Makefile plugin and restart

![image](https://user-images.githubusercontent.com/61142621/98532308-d08d9f80-2281-11eb-8438-1245219d3879.png)

Now you can either disable or uninstall Makefile support or DockDockBuild

![image](https://user-images.githubusercontent.com/61142621/98532431-f7e46c80-2281-11eb-8d25-83b78d29e9f6.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.