It does seem to be detecting packages, but nothing in my app's namespaces
"Auto-Import Namespace" not detecting App/* classes
I have a model called Channel in App\Models\Channel
that should be popping up
May I ask if there isn't an error in View
-> Output
, PHP Language Server
?
Is the file with your model included in VS Code's workspace?
No errors from PHP Language Server output. The files are available in the workspace.
I will note this is a vscode remote devcontainer I'm working in
its indexing the right directory too
[Info - 3:41:50 PM] PHP Language Server Started (PID: ###)
[Info - 3:41:50 PM] Indexing /var/www/html (*.php; *.phtml)
[Info - 3:41:52 PM] Loaded 201 package(s) from cache in 00:00:01.5166761.
[Info - 3:41:54 PM] Processing packages in /var/www/html/vendor/composer/installed.json ...
[Info - 3:41:54 PM] Processing done in 00:00:00.3826519.
CraigBetterly thank you,
Isn't there a spinning wheel in the status bar?
nothing spinning
Any news on this? I tried a pre-release and I'm still getting issues with this. It seems it's also not working with packages now.
https://files.nurdism.dev/u/a5hity.mp4 video demonstrating my vscode not functioning
(note to admin, please keep video private)
CraigBetterly Thank you for reminding me.
We couldn't replicate the issue yet. Please try to force re-index packages with the VSCode command:
PHP Tools: Clear /vendor/ cache.
clear cache is producing the same results
I removed all extensions and started a fresh Laravel app and I'm still having the same results
https://files.nurdism.dev/u/udikDj.mp4
Note: I am using WSL for this, I'm on windows.
I have been able to replicate this behavior on another Windows PC in opening a project in WSL. Still see the same behavior as above.
going from 1.48.15635 to 1.49.15720 seems to be causing this issue
on 1.48 I get this https://i.imgur.com/h8BZQfJ.png
on 1.49 I got no options to fix
Thank you for the update, and for the screenshot. We'll try WSL asap.