Skip to content
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

unknown errors #105

Open
abhyudayasrinet opened this issue Apr 16, 2024 · 4 comments
Open

unknown errors #105

abhyudayasrinet opened this issue Apr 16, 2024 · 4 comments

Comments

@abhyudayasrinet
Copy link

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

@amir9480
Copy link
Owner

Hi @abhyudayasrinet

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.

@abhyudayasrinet
Copy link
Author

I see. The new update does keep bombarding me with this popup that the extension failed.
image

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}"

image

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

@abhyudayasrinet
Copy link
Author

abhyudayasrinet commented Apr 16, 2024

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

@amir9480
Copy link
Owner

@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';"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants