Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal will not open in Visual Studio Code

OS is linux.

Opening the terminal produces this error:

The terminal process failed to launch: Path to shell executable "bash" is not a file of a symlink.

The path to bash is correct in settings.json and the $PATH variable.

This is Visual Studio Code version 1.57.1. rolling back to an earlier version fixes the issue, so I made a bug report.

like image 503
Ben Alan Avatar asked Feb 06 '26 19:02

Ben Alan


2 Answers

As jebeaudet said in his comment, edit the file

~/.config/Code/User/settings.json

and add this line

"terminal.integrated.profiles.linux": {"bash": {"path": "/bin/bash"}},

(in my case has occurs when upgrading from v1.55 to v1.60)

like image 143
Pico12 Avatar answered Feb 09 '26 11:02

Pico12


In my case, terminal.integrated.shell.linux wasn't set in settings.json which was causing the issue

like image 32
Ben Alan Avatar answered Feb 09 '26 10:02

Ben Alan