Intellij adds old Python Kivy run configuration to every new project

Answered

I did some tests with the Python plugin for Intellij and Kivy about four years ago.

The plugin and Kivy.app have since long been uninstalled, but for some reason Intellij keeps trying to add a Kivy-Python Run Configuration to every new Java project, which is marked as a "broken configuration":

I can delete it, but that won't stop Intellij from adding it to the next project. 

I can't find any option in any of the File ->  New Project Settings dialogs to get rid of it. After creating a new Java project I can see this Python/Kivy related component listed in .idea/misc.xml: 

<component name="PyConsoleOptionsProvider">
<option name="myPythonConsoleState">
<console-settings sdk-home="/Applications/Kivy.app/Contents/Resources/venv/bin/python">
<option name="mySdkHome" value="/Applications/Kivy.app/Contents/Resources/venv/bin/python" />
</console-settings>
</option>
</component>

and these two configurations in .idea/misc.xml: 

   ...
<component name="RunManager">
<configuration ...
<configuration default="true" type="PythonConfigurationType" factoryName="Python">
<option name="INTERPRETER_OPTIONS" value="" />
...
</configuration>
...
<configuration default="false" name="Run Kivy-Python" type="PythonConfigurationType" factoryName="Python">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
...
</configuration>
...

I'd love to know how I can get rid of this, any help appreciated!

Lúthien

IntelliJ Ultimate 2020.3 @ Mac OS 11.1 (20C69), Java 11.0.5 

0
3 comments

Hi Lúthien,

Do you have any Python/Kivy related items in the Project Structure | SDKs and Project Structure | Global Libraries dialogs?

Does it help if you temporarily disable all downloaded plugins (File | Settings | Plugins | Installed) and restart the IDE using the File | Invalidate Caches & Restart menu option?

1
Avatar
Permanently deleted user

hi Arina!

Thanks for your answer. I double-checked, but there aren't any Python/Kivy related items in either Project Structure | SDKs or Project Structure | Global Libraries.

I also tried disabling all downloaded plugins (not the included ones for now) and restarted with the invalidate Caches option and then created a new Java project, but the ? Unknown -> Run Kivy/Python is still there :( - it looks as if it has dug itself in quite well.

I'll scan the Library directories for some clues as well; I've been using IntelliJ for about 6 years and I remember seeing some changes in the way settings were stored there. Maybe it's some lingering configuration file in an otherwise abandoned directory that still gets read somehow - just a wild guess, but it won't hurt. 

0

You can also do File | Manage IDE Settings | Restore Default Settings...
IDEA will back up your current config before resetting so you'll be able to import it back.

Has it helped?

0

Please sign in to leave a comment.