-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Extension fails on start #197
Comments
If you update the extension to v0.1.17 is this still happening? |
Still happening. I tried to create a new fresh profile and only install the extension, same problem still. The project is L11 maybe that's the issue? It seems to look for the old code architecture. |
Just to clarify, this is the exact error you're still getting?
|
That's the first error in the trace but the trace is too long to post here |
Hm, the traces should be much more concise in v0.1.17, you're still getting long traces after updating the extension to the latest version? |
2025-01-14 22:23:41.225 [info] Activating Laravel Extension... Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.242 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-429f9ff5c7861376486e71f5f734f335.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.247 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.247 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-4014d3d831186439ca0f0d0b49fb8940.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-db99257bdb9b3093562bd2d168807720.php 2025-01-14 22:23:41.248 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-d8714f80f88ebfac0089cfe8b4bc8d45.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-7ce65824a0f5756326f6d8470b9b4814.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.248 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-e6ed03e84a7e56c2b0f65d30270ea14c.php 2025-01-14 22:23:41.250 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.250 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-042f384716179032bba26bc0fbf2f868.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.259 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.259 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-a461f29fa785b53bb9be742297d19965.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.259 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.259 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-555b8064cee53d11542165d1be49984c.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.260 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.260 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-9b5570eff338a790a0f9b3391151f10c.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.264 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-14 22:23:41.264 [error] php -r /Users/lasselarsen/Developer/clients/GPJ/lighthouse-api/vendor/_laravel_ide/discover-ada1d2cd558959162d249635a133adc4.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 |
I don't if it's the same problem causing an error to me, but I get the following output after starting the extension in a fairly Laravel Statamic project. I am on Windows with Laravel Herd, PHP 8.3.15 on this project and Laravel Extension v0.1.17 in Visual Studio Code. 2025-01-15 22:03:33.180 [info] Checking herd PHP installation: herd which-php
2025-01-15 22:03:33.180 [info] Checking valet PHP installation: valet which-php
2025-01-15 22:03:33.180 [info] Checking local PHP installation: php -r 'echo PHP_BINARY;'
2025-01-15 22:03:33.180 [info] Checking sail PHP installation: ./vendor/bin/sail ps
2025-01-15 22:03:33.180 [info] Falling back to system PHP installation
2025-01-15 22:03:33.180 [info] Activating Laravel Extension...
2025-01-15 22:03:33.180 [info] Started
2025-01-15 22:03:38.838 [error] [{"type":"methodCall","methodName":"statamic","className":"Illuminate\\Support\\Facades\\Route","arguments":{"type":"arguments","autocompletingIndex":3,"children":[{"type":"argument","name":null,"children":[{"type":"string","value":"\/feed\/articles","start":{"line":9,"column":16},"end":{"line":9,"column":30}}]},{"type":"argument","name":null,"children":[{"type":"string","value":"feed\/feed","start":{"line":9,"column":34},"end":{"line":9,"column":43}}]},{"type":"argument","name":null,"children":[{"type":"array","children":[{"type":"array_item","key":{"type":"string","value":"layout","start":{"line":10,"column":4},"end":{"line":10,"column":10}},"value":null},{"type":"array_item","key":{"type":"string","value":"content_type","start":{"line":11,"column":4},"end":{"line":11,"column":16}},"value":{"type":"string","value":"application\/xml","start":{"line":11,"column":22},"end":{"line":11,"column":37}}}]}]}]}},{"type":"methodCall","methodName":"get","className":"Illuminate\\Support\\Facades\\Route","arguments":{"type":"arguments","autocompletingIndex":2,"children":[{"type":"argument","name":null,"children":[{"type":"methodCall","methodName":"class","className":"App\\Http\\Controllers\\Controller","arguments":{"type":"arguments","autocompletingIndex":0,"children":[]},"children":[]}]},{"type":"argument","name":null,"children":[{"type":"string","value":"show","start":{"line":14,"column":30},"end":{"line":14,"column":34}}]}]}}]
2025-01-15 22:07:55.969 [info] Stopped
2025-01-15 22:08:05.419 [info] Checking herd PHP installation: herd which-php
2025-01-15 22:08:05.420 [info] Using herd PHP installation: Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe
2025-01-15 22:08:05.420 [error] Error:
Paths
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-ada1d2cd558959162d249635a133adc4.php"
2025-01-15 22:08:05.420 [error] Paths
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
Eloquent Attributes and Relations
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-9b5570eff338a790a0f9b3391151f10c.php"
2025-01-15 22:08:05.420 [error] Eloquent Attributes and Relations
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
Translation namespaces
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-042f384716179032bba26bc0fbf2f868.php"
2025-01-15 22:08:05.420 [error] Translation namespaces
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
Middlewares
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-a461f29fa785b53bb9be742297d19965.php"
2025-01-15 22:08:05.420 [error] Middlewares
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
HTTP Routes
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-555b8064cee53d11542165d1be49984c.php"
2025-01-15 22:08:05.420 [error] HTTP Routes
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
Configs
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-7ce65824a0f5756326f6d8470b9b4814.php"
2025-01-15 22:08:05.420 [error] Configs
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
Auth Data
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-d8714f80f88ebfac0089cfe8b4bc8d45.php"
2025-01-15 22:08:05.420 [error] Auth Data
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
App Bindings
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-4014d3d831186439ca0f0d0b49fb8940.php"
2025-01-15 22:08:05.420 [error] App Bindings
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
Custom Blade Directives
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-429f9ff5c7861376486e71f5f734f335.php"
2025-01-15 22:08:05.420 [error] Custom Blade Directives
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-db99257bdb9b3093562bd2d168807720.php"
2025-01-15 22:08:05.420 [error] La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] Error:
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [error] "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0
C:/Users/anael/.config/herd/bin/php83/php.exe" "c:\Users\anael\Herd\brindzik\vendor\_laravel_ide\discover-e6ed03e84a7e56c2b0f65d30270ea14c.php"
2025-01-15 22:08:05.420 [error] La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte.
2025-01-15 22:08:05.420 [info] Activating Laravel Extension...
2025-01-15 22:08:05.420 [info] Started The error "La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte." meaning "Incorrect file, directory or volume name syntax.". |
I'm getting all these errors now 2025-01-16 17:57:17.571 [info] Activating Laravel Extension... Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-4014d3d831186439ca0f0d0b49fb8940.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-429f9ff5c7861376486e71f5f734f335.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-db99257bdb9b3093562bd2d168807720.php 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-e6ed03e84a7e56c2b0f65d30270ea14c.php 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-042f384716179032bba26bc0fbf2f868.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-9b5570eff338a790a0f9b3391151f10c.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-ada1d2cd558959162d249635a133adc4.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-a461f29fa785b53bb9be742297d19965.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-555b8064cee53d11542165d1be49984c.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-d8714f80f88ebfac0089cfe8b4bc8d45.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] Error: Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 2025-01-16 17:57:17.571 [error] php -r /Users/lasselarsen/Developer/clients/Brightview/telematics/vendor/_laravel_ide/discover-7ce65824a0f5756326f6d8470b9b4814.php Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1 |
I've done some digging, and it looks like the issue is caused by the extension itself. In the laravel_ide folder all the errors occur in the discover-* files. I've cloned the extension, built and installed v 0.1.18 to make sure I had all the latest code. |
Having the same error with the discover-* files as well |
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()
{
}
}
$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()
{
}
}
Mimimal Code Sample
No response
The text was updated successfully, but these errors were encountered: