amir9480 / vscode-laravel-extra-intellisense

This extension adds extra autocompletion for laravel projects to VSCode.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.laravel-extra-intellisense
MIT License
3.44k stars 54 forks source link

Laravel Extra Intellisense Error #109

Open paker-studio opened 7 months ago

paker-studio commented 7 months ago

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 commented 7 months ago

happens to me too

paker-studio commented 7 months ago

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 commented 6 months ago

Same issue

Rizal-203040067 commented 5 months ago

same error

cyb3rsalih commented 5 months ago

same error still

c0h1b4 commented 5 months ago

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 commented 4 months ago

Same error

codename-12 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

same issue.

mrtawil commented 4 months ago

+1

Nicolascanala commented 4 months ago

Same issue here.

syrus83 commented 4 months ago

Same Issue here

javier-tecla commented 3 months ago

I have the same problem....

AhambaliJ commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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

dao-s33k3r commented 2 months ago

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 commented 1 month ago

This is how I fixed the error.

Add: ${workspaceFolder}

image

Ahmedraza-fyntune commented 1 month ago

__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