Y
Y
Yuri Velmesov2020-01-20 14:34:38
Visual Studio Code
Yuri Velmesov, 2020-01-20 14:34:38

VS Code - How to specify a new project folder so that there is no error?

Who can tell me how to solve this error?
Unable to open "ArgvInput.php": Failed to read file (Error: File not found (/var/www/project_old.local/vendor/...)).
Because of this, when clicking on a class, it does not go to the desired file in the project.
Previously, the project was on the path: /var/www/project_old/...
Now on the new one: /var/www/project_new/...
As I understand it, vscode just cached the paths somewhere and is trying to access the old folder, although the project has long been in the new one.
How to let him know that the whole project is now in a new folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Velmesov, 2020-01-22
@yury-gubsky

As I expected, it was stored in the cache.
1. In the home folder of the user under which you are logged in, find the .phpls folder and remove all the contents of this folder.
Either through the Nautilus file manager
Or through the console: rm -rfv ~/.phpls/*
2. Reopen the folder of the project we were working on.
I warn you right away, you will have to wait a while (if the project is huge) until VS Code scans the folder again. In my case, the project is one and a half giga.
It may be worth looking for a similar folder on the :C drive, also in the user's folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question