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

0

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.

0

Sure! Here's the Upload id: 2025_06_16_T6fYykABXN8MbWpKWhbvtV (file: idea-logs-20250617-00430610511321711205803344.zip)

0

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.

0

请先登录再写评论。