Use of unknown class: ..
Hi guys, After installing a plugin ( Tale Repeater ) and Uninstall the Plugin all my Classes shown as unknown! the Dashboard panel works without any problem btw.
anybody knows what causes that and how can I fix it? it's annoying
Solution:Jump to solution
Solved: it's not related to Filament plugin or it self! a new version of an extension named: PHP ( from DEVSENSE - all -in-one ) causes the warnings, i just disabled it and the warning is gone!
19 Replies
try to restart vscode. is it solved? sometimes i do composer i or composer update and then my vscode doesnt detect the classes
i restarted the IDE and did composer install, composer dump-autoload, clear cash but i still have the same problem!
so if u uninstall the plugin it still happens?
actually i got a lot of errors, after uninstalling the Plugin, because of that, i had to install the plugin again, so basically the errors appears after uninstalling the plugin not installing it! :squint:
im getting confused xd. at this point not sure how can i help u :/
This looks like "warning" instead of "error" probably cause by some extensions.. Is this VScode? if yes, then what VS code extensions you installed?
yeah but they say it happened after installing a filament plugin, i supose before that, all was ok
Yes is VScode but i didn't install any extension, before install and uninstalling the plugin was all good without any warning
if u hover the warnings what it says?
for example: Use of unknown class: 'Forms\Components\TextInput'PHP(PHP0413)
but i imported it: use Forms\Components\TextInput;
okay, so if restarting doesnt work, i would try to install this extension - https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
and follow the installation steps (actually u just need step 1)
not sure if can solve the issue u r having but this is what id try π€·ββοΈ
but the weird thing is that before the installation of the plugin it didnt warn u and now yes π€
I edit the Title! after install the plugin i had no warning but after unistall the plugin i got warn !
u tried this @Baby Yoda ?
actualy i install a new project and i got same warning all of my project! so it must be an extention problem let see
oh okay, then yeah is not related to the filament plugin u installed
ping me if u try this
Solution
Solved: it's not related to Filament plugin or it self! a new version of an extension named: PHP ( from DEVSENSE - all -in-one ) causes the warnings, i just disabled it and the warning is gone!
thought u didnt have any extension installed xd
well, nice u solved it!
Thank you for your concern! That's very nice of you π