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.1k stars 51 forks source link

Errors with WSL2 containers #112

Open jd4u opened 3 weeks ago

jd4u commented 3 weeks ago

Intellisense stops working after giving errors every few seconds.

The container name "dev-laravel.test-1" is wrong.

"Laravel Extra Intellisense" is calculated container name based on local development. Using WSL2, the local folder was soft-linked with different name - "lirt". So the sail created container with name "lirt-laravel.test-1".

Suggestion: While using remote workspace, use the remote directory name instead of local directory name as prefix for container name calculation.

Request: Please release this change in next update soon. I see many related errors. The suggestion implementation will solve few of them.

Local Path: D:\lirt\dev\
WSL2 Path: /home/jd/lirt/

image

jd4u commented 3 weeks ago

Workaround for above issue: keep local and wsl2 folders having same names.

Another issue: After renaming my local folder from "dev" to "lirt" the above error is gone. Though now the new error is coming multiple times every seconds... "Do not show this" button was clicked to avoid error alert, but in output window, the error is continuous...

PHP Parse error:  Unclosed '(' in Command line code on line 1

image

Please suggest....