Skip to content

[Bug]: “Permission denied” when using Laravel VS Code extension with Herd PHP path #473

@Uhasith

Description

@Uhasith

Extension Version

1.2.0

PHP Binary

Herd

Operating System

macOS

What happened?

When configuring the Laravel VS Code extension to use Herd as the PHP environment, the extension fails to execute PHP commands because the PHP path contains a space (Application Support) and isn’t properly quoted by the extension.

2025-10-07 09:25:47.363 [error] /Users/username/Library/Application Support/Herd/bin//php "/Users/username/Sites/project-name/vendor/_laravel_ide/discover-f6c2bb05e77ee582c501379f6998f2c4.php"
2025-10-07 09:25:47.363 [error] /bin/sh: /Users/username/Library/Application: Permission denied
Image

Mimimal Code Sample

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions