Description
Extension Version
0.1.12
PHP Binary
Valet
Operating System
macOS
What happened?
When I start my ide the extension reports a failure immediately and stops working.
2025-01-13 22:49:44.499 [info] Activating Laravel Extension...
2025-01-13 22:49:44.499 [info] Started
2025-01-13 22:49:44.499 [error] Error:
Paths
/bin/sh: php: command not found
2025-01-13 22:49:44.499 [error] php -r "
error_reporting(E_ERROR | E_PARSE);
define('LARAVEL_START', microtime(true));
require_once '/Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/autoload.php';
$app = require_once '/Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/bootstrap/app.php';
class VsCodeLaravel extends \Illuminate\Support\ServiceProvider
{
public function register()
{
}
public function boot()
{
if (method_exists(\$this->app['log'], 'setHandlers')) {
\$this->app['log']->setHandlers([new \Monolog\Handler\ProcessHandler()]);
}
}
}
$app->register(new VsCodeLaravel($app));
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
echo 'VSCODE_LARAVEL_START_OUTPUT';
echo json_encode([ [ 'key' => 'base_path', 'path' => base_path(), ], [ 'key' => 'resource_path', 'path' => resource_path(), ], [ 'key' => 'config_path', 'path' => config_path(), ], [ 'key' => 'app_path', 'path' => app_path(), ], [ 'key' => 'database_path', 'path' => database_path(), ], [ 'key' => 'lang_path', 'path' => lang_path(), ], [ 'key' => 'public_path', 'path' => public_path(), ], [ 'key' => 'storage_path', 'path' => storage_path(), ], ]); ;
echo 'VSCODE_LARAVEL_END_OUTPUT';
exit(0);
"
2025-01-13 22:49:44.500 [error]
error_reporting(E_ERROR | E_PARSE);
define('LARAVEL_START', microtime(true));
require_once '/Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/autoload.php';
$app = require_once '/Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/bootstrap/app.php';
class VsCodeLaravel extends \Illuminate\Support\ServiceProvider
{
public function register()
{
}
public function boot()
{
if (method_exists($this->app['log'], 'setHandlers')) {
$this->app['log']->setHandlers([new \Monolog\Handler\ProcessHandler()]);
}
}
}
Mimimal Code Sample
No response