unknown errors
abhyudayasrinet opened this issue · 4 comments
I am continuously getting these errors in the output panel for the extension
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense Started...
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: HTTP Routes
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: Views paths
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: Configs
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: Translation namespaces
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: Middlewares
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: Eloquent Attributes and Relations
2024-04-15 18:57:30.870 [info] Laravel Extra Intellisense command started: Custom Blade Directives
2024-04-15 18:57:30.901 [error] Laravel Extra Intellisense Error:
Middlewares
) was unexpected at this time.
2024-04-15 18:57:32.051 [error] Laravel Extra Intellisense Error:
Views paths
) was unexpected at this time.
2024-04-15 18:57:32.061 [error] Laravel Extra Intellisense Error:
Translation namespaces
) was unexpected at this time.
2024-04-15 18:57:32.063 [error] Laravel Extra Intellisense Error:
Custom Blade Directives
) was unexpected at this time.
2024-04-15 18:57:32.064 [error] Laravel Extra Intellisense Error:
Configs
) was unexpected at this time.
2024-04-15 18:57:32.065 [error] Laravel Extra Intellisense Error:
Eloquent Attributes and Relations
) was unexpected at this time.
2024-04-15 18:57:32.066 [error] Laravel Extra Intellisense Error:
HTTP Routes
) was unexpected at this time.
2024-04-15 18:58:00.601 [info] Laravel Extra Intellisense command started: HTTP Routes
2024-04-15 18:58:00.629 [error] Laravel Extra Intellisense Error:
HTTP Routes
) was unexpected at this time.
2024-04-15 18:59:15.441 [info] Laravel Extra Intellisense command started: HTTP Routes
2024-04-15 18:59:15.469 [error] Laravel Extra Intellisense Error:
HTTP Routes
) was unexpected at this time.
not sure why, this was working perfectly until a few days ago. Let me know if I can provide more info
It's a new feature to shows an error when the Laravel Extra Intellisense fails to load your application data to provide autocomplete. Did you changed any default configuration of Laravel Extra Intellisense, it look like can not run PHP command to load data.
I see. The new update does keep bombarding me with this popup that the extension failed.
after some time the autocompletions and import commands stop working as well, although they work for a when the vscode instance starts initially.
I am using laravel herd to use different PHP versions for different laravel projects and I changed the default PHP command to include herd
i.e. herd php -r "{code}"
I tried downgrading to the previous version and that at least stops the popups from coming and keeps the extension functional.
I'll also try switching to the default extension settings
switching the command back to php -r "{code}"
does seem to fix the problem, although I'm not sure if the correct PHP version is being used here. I assume it's picking the PHP executable on the system path which could be incorrect for some projects.
I'm using PHP 7.4 and PHP 8.3
@abhyudayasrinet
I guess the extension can not find the command, maybe using the absolute path of Herd (like /something/path/herd
) may solve the issue.
Please check the command yourself in vs code's terminal like herd php -r "echo 'hello world';"