Interpreter not found when making a new Shell script configuration
已回答
Hello, maybe it's something wrong from my part, but when I try to make a new Run configuration with a shell script in IntelliJ iDEA, it tell me at the bottom “Error: Interpreter not found”

The only way I found to make it work is to specify the whole “powershell.exe” path (C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe) in the Interpreter path.

A way to do the above step automatically, is to specify the path directly in the settings, and it works. But I wonder why iDEA cannot find powershell.exe directly?

Of course, the powershell command is reachable in cmd.
I did try to add “C:\Windows\SysWOW64\WindowsPowerShell\v1.0” to the system Path, but no change (I did reboot the system).
OS: Windows 11 Pro
请先登录再写评论。
Hi, Marco!
Thank you for reaching out to us!
Could you please send us your application logs? You can do so by following these steps:
1. Go to Help | Collect Logs and Diagnostic Data;
2. Attach the file shown to this ticket;
3. If the file is too big, please upload it here: https://uploads.jetbrains.com/ (make sure to share the UploadID);
Let me know if you have any questions on the way.
Sure! Here's the Upload id: 2025_06_16_T6fYykABXN8MbWpKWhbvtV (file: idea-logs-20250617-00430610511321711205803344.zip)
Hi, Marco!
Thanks for getting back with the logs.
I have now just checked your logs, and here are some updates:
IntelliJ IDEA automatically detects your shell path if the shell is installed in the default path.
I can see that your shell is installed in C:\Windows\SysWOW64\WindowsPowerShell\v1.0, while the IDE expects it to be like C:\\System32\WindowsPowerShell\, therefore it wasn't automatically detected.
This is not uncommon, depending on the particular specifications/configurations of your Windows installation, so you can manually add the shell path just like you did already.
Let me know if you have any questions.
I had the same problem, even though powershell was in the default Windows location of C:\windows\System32\WindowsPowerShell\
If IntelliJ is indeed looking for it in the specific location of C:\System32\WindowsPowerShell that is just incredibly stupid. Why is it looking for a specific location in the first place? That's what the PATH environment variable was invented for…
And how come the Terminal panel can find all of my system's available terminals, including the default powershell, but a run configuation can't?
@Johan The mentioned path “C:\System32\WindowsPowerShell” might be a typo. For shell scripts if the script has a shebang (
#!), that shebang interpreter is used. In case you specify a shell path in the terminal, it is used as a default.I see there might be a problem with inheriting the path, so I have created a bug report IJPL-240528 .