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

Laravel Extra Intellisense Error #109

Open
paker-studio opened this issue Apr 22, 2024 · 21 comments
Open

Laravel Extra Intellisense Error #109

paker-studio opened this issue Apr 22, 2024 · 21 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@paker-studio
Copy link

System: Linux/Zorin
Desc.: After the last update of the add-on, autocomplete stopped working and errors began to appear when starting the program.

2024-04-22 11:34:40.645 [error] Laravel Extra Intellisense Error:
Application Models

/bin/sh: linia 1: php: nie znaleziono polecenia

2024-04-22 11:34:40.646 [error] Laravel Extra Intellisense Error:
Auth Data

@Bosphoramus
Copy link

happens to me too

@paker-studio
Copy link
Author

happens to me too

It seems that the error was related to the VS Code version. I installed the versions from https://snapcraft.io/code (and all the add-ons from scratch :/), but the auto-complete came back...

@DEV7163
Copy link

DEV7163 commented May 17, 2024

Same issue

@amir9480 amir9480 added bug Something isn't working help wanted Extra attention is needed labels May 23, 2024
@Rizal-203040067
Copy link

same error

@cyb3rsalih
Copy link

same error still

@c0h1b4
Copy link

c0h1b4 commented Jul 2, 2024

Same here

I'm using sail, btw.


2024-07-02 11:02:24.425 [error] Laravel Extra Intellisense Error:
 Application Models


Warning: require_once(/home/user/project/vendor/autoload.php): Failed to open stream: No such file or directory in Command line code on line 1

Fatal error: Uncaught Error: Failed opening required '/home/user/project/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1

@drex7001
Copy link

drex7001 commented Jul 3, 2024

Same error

@codename-12
Copy link

codename-12 commented Jul 3, 2024

same error. any one trying to change environment variable?

`[info] Laravel Extra Intellisense command started: Auth Data
[error] Laravel Extra Intellisense Error:
Application Models

'php' is not recognized as an internal or external command,
operable program or batch file.`

@BajanGt
Copy link

BajanGt commented Jul 3, 2024

how did you resolve the error? mine started happening after i changed my time zone. unable to run php artisan serve

2024-07-03 19:05:40.900 [error] Laravel Extra Intellisense Error:
In Auth.php line 92:

Call to a member function providerIsLoaded() on null

2024-07-03 19:08:30.539 [error] Laravel Extra Intellisense Error:
Auth Data

In Auth.php line 92:

Call to a member function providerIsLoaded() on null

@itr-sheerazabbas
Copy link

same issue.

@mrtawil
Copy link

mrtawil commented Jul 19, 2024

+1

@Nicolascanala
Copy link

Same issue here.

@syrus83
Copy link

syrus83 commented Jul 28, 2024

Same Issue here

@javier-tecla
Copy link

javier-tecla commented Aug 5, 2024

I have the same problem....

@AhambaliJ
Copy link

I have the same issue on Linux because I used the vscode installed from the software manager that was using flatpak.
Resolved the issue by uninstalling the flatpak version and installed the official .deb package from official website : https://code.visualstudio.com/

@janickd2g
Copy link

I got this error because I am running my project in Docker containers. It was trying to load the autoload.php from the host. Changing the setting Laravel Extra Intellisense: Base Path For Code to the project root inside the Docker container fixed it for me.

E.g., on the host, my project is in ~/project and inside the Docker container my project is located at /var/www/html. By default the extension uses the ~/project directory, which I changed to /var/www/html to get it to work.

@KeremArdicli
Copy link

php command cannot be found in a docker container. that causes the issue.

@dao-s33k3r
Copy link

I got this error because I am running my project in Docker containers. It was trying to load the autoload.php from the host. Changing the setting Laravel Extra Intellisense: Base Path For Code to the project root inside the Docker container fixed it for me.

E.g., on the host, my project is in ~/project and inside the Docker container my project is located at /var/www/html. By default the extension uses the ~/project directory, which I changed to /var/www/html to get it to work.

solved it for me too. I've set this on the workspace level and stopped having the erros.
image

@vkarampinis
Copy link

This is how I fixed the error.

Add: ${workspaceFolder}

image

@Ahmedraza-fyntune
Copy link

Ahmedraza-fyntune commented Oct 29, 2024

VSCODE_LARAVEL_EXTRA_INSTELLISENSE_OUTPUT_
Symfony\Component\ErrorHandler\Error\FatalError

Cannot declare class XML2Array, because the name is already in use

at app\helpers.php:461

its an helper file and no more discription getting from error log
and i had not declared these class multiple

@aligfx786
Copy link

aligfx786 commented Dec 7, 2024

How can I solve this i am using ddev + docker in Ubuntu os for my laravel project my PHP version is above 8.0 , I tried to give these paths one by one but I cannot solved it

"php.validate.executablePath":

/usr/local/bin/php

/usr/bin/php

Here my screenshot attached
My Laravel extra intellisense error was solved when I used base path as suggested above, but I cannot fix the PHP executable paths error
Anyone here can guide me please, thank you

Screenshot from 2024-12-07 09-36-42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests