Running Shell Script in built-in terminal window
Answered
heya!
i have a shell script that i want to use as a run configuration. works no problem when i set interpreter to git bash.
but that opens an external window
how can i use the built-in terminal window? that should be possible, right?
Please sign in to leave a comment.
What is your OS? Can you show screenshots (of run configuration and the results)?
sure! :)
Win10x64
Run Config:

Result:
What Shell path do you have set in Settings (Preferences on macOS) | Tools | Terminal? Does it work if set it to git bash?
Shell path is "cmd.exe"
Changing it to git bash doesn't work (just opens the bash window without doing anything).
I then tried changing the Interpreter of my configuration to windows/system32/cmd.exe, but that (of course) didn't work either, because it can't read .sh files.
If i leave the Interpreter field empty (which i would have expected to "just use default built-in terminal") opens the .sh in VSCode
This can't be such an exotic thing to do... right? :D
Thanks for details. This is not supported currently. Please vote and follow this created issue: https://youtrack.jetbrains.com/issue/IDEA-230529
I had this issue. When you use a *.sh file, it runs in the Git executable, because cmd.exe can't run *.sh files.
I changed mine to a *.bat file and now it runs properly
Hi!
Maybe i will say a few things apart from the topic of this thread, but at least is a bit related.
I had docker-compose as interpreter for a python library in Pycharm. It deploy a database and the library use it on tests. In order to take a clean database to run the tests, I must to take a new container for the database on each run. Apparently, Pycharm does not understand a few docke-compose up flags, like --force-recreate. So i made a run config to launch on terminal `docker-compose down` as follows:
When I launch this as is its works perfectly.
But when I set this run as a previous run on a pytest run it fails.
Just in case, the little part in spanish says "th system ca not find the specified file"
Afo Uyi
The issue you are running into sounds like https://youtrack.jetbrains.com/issue/IDEA-277486
I linked your comment to it so that the dev can see it. You can also upvote it.