-
Notifications
You must be signed in to change notification settings - Fork 90
Cannot open file 'HasOneOrMany.php': File not found #298
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
Comments
Deleting your cache directory should do it: |
What is the cache directory? ~/.vscode? |
Depends. Please see the link above how it's determined. |
I've found it: ~/.phpls/ Should I delete it? |
Yes |
It worked! |
Happened to me too, very annoying, is this related to felixfbecker/php-language-server#513? |
me too |
Issue Type: Bug
Note: VS Code contributor told me to post the issue here: microsoft/vscode#48687 (comment)
The whole message is this:
No se puede abrir 'HasOneOrMany.php': Archivo no encontrado (file:///opt/lampp/htdocs/saberapp-voyager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php).
I had a project named "saberapp-voyager". I deleted it. I created a new one called saberapp-admin in the same directory. Now, when I try to go to the definition of a function or class, this error happens. I use PHP Intellisense from Felix Becker.
I disabled and enabled, uninstalled and installed the extension but It didn't work. I also deleted recent files and folders.
This is what the log shows:
[2018-04-25 11:26:23.083] [renderer1] [error] Archivo no encontrado (file:///opt/lampp/htdocs/saberapp-voyager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php): Error: Archivo no encontrado (file:///opt/lampp/htdocs/saberapp-voyager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php)
at new t (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:1256:806)
at file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2885:812
at /usr/share/code/resources/app/node_modules.asar/graceful-fs/graceful-fs.js:241:16
at FSReqWrap.oncomplete (original-fs.js:114:15)
VS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:34:44.222Z)
OS version: Linux x64 4.13.0-39-generic
System Info
Extensions (43)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: