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

Errors with WSL2 containers #112

Open
jd4u opened this issue Apr 28, 2024 · 2 comments
Open

Errors with WSL2 containers #112

jd4u opened this issue Apr 28, 2024 · 2 comments

Comments

@jd4u
Copy link

jd4u commented Apr 28, 2024

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
Copy link
Author

jd4u commented Apr 28, 2024

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....

@amir9480
Copy link
Owner

amir9480 commented May 23, 2024

@jd4u

The extension does nothing to WSL or docker, It simply runs a command and gets JSON data from your project in the stdout.

You may change the default configuration to work on your project:

https://github.com/amir9480/vscode-laravel-extra-intellisense#laravelextraintellisensebasepath

https://github.com/amir9480/vscode-laravel-extra-intellisense#sample-config-to-use-docker

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