Ben Alan
Ben Alan

Reputation: 1685

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.

Upvotes: 3

Views: 2752

Answers (3)

Pico12
Pico12

Reputation: 1279

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)

Upvotes: 10

Alfagulf
Alfagulf

Reputation: 1

I noticed the same problem since I upgraded to 1.57.1. The problem shows up when I launch VSCODE from Gnome desktop or from the terminal without following the command code with a dot. However if I enter "code ." then there is no problem.

I could not find "terminal.integrated.shell.linux" in the settings to set the path to the shell bash command.

Upvotes: 0

Ben Alan
Ben Alan

Reputation: 1685

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

Upvotes: 1

Related Questions