Why does PyCharm's Bash run configuration ask about “project interpreter”, and does not recognize the one defined in Settings?

Answered

I am trying to configure a Bash run configuration in PyCharm 2019.1.3 CE (BTW, Bash run configurations become available only after installing the Bash plugin).

When filling in the data for the run configuration, there is a "Use project interpreter" checkbox. When I click on it, I get the message "No project interpreter configured".

I have two questions:

  1. Why does a Bash run configuration care about a project interpreter (I assume this to refer to a Python interpreter, which is unnecessary to run a Bash script)?
  2. Why doesn't it recognize the Python project environment that is indeed configured in my Settings?
0
4 comments

BashSupport plugin is a 3rd party one so we don't support it. It's better to report to the plugin vendor.

Have you tried using Shell Script run configuration instead? https://www.jetbrains.com/help/idea/shell-scripts.html

0

Thanks. I tried installing Shell Script but it would not show on the Plugin Marketplace dialog when I searched for "Shell Script". I went to the URL you provided and downloaded the file. The web page says this plugin is compatible to PyCharm Community but when I tried installing it from disk, I got a message saying it is incompatible with my PyCharm version. Any ideas?

I'm using
PyCharm 2019.1.3 (Community Edition)
Build #PC-191.7479.30, built on May 29, 2019
JRE: 11.0.2+9-b159.60 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

0

Sorry, I missed that you are using 2019.1.3 version. The plugin is indeed not compatible with that version.
Please update to the latest version (2019.3.1 at the moment). We bundle Shell Script plugin so you won't be needed to install it.

0

Perfect, thank you!

0

Please sign in to leave a comment.