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

Can't auto indexing when downloaded composer package #2213

Closed
sarukomine opened this issue Apr 22, 2022 · 7 comments
Closed

Can't auto indexing when downloaded composer package #2213

sarukomine opened this issue Apr 22, 2022 · 7 comments
Labels
Milestone

Comments

@sarukomine
Copy link

sarukomine commented Apr 22, 2022

Visual Studio Code can't auto indexing files when downloaded composer package.

Before I downloading Laravel package, the intelephense said Undefined type 'XXX\XXX\XXX', it is normal.
But I downloaded the package, and the intelephense still said same message, seems it won't indexing files in vendor folder. I have to re-open Visual Studio Code to indexing again, and that message is gone.

I want to know how to make it auto indexing? Because I have to re-open Visual Studio Code after I downloaded new package, it is too trouble and inconvenient...

@yaegassy
Copy link
Contributor

Try run "Intelephense: Index workspace".

  • Command panel > Intelephense: Index workspace

@sarukomine
Copy link
Author

sarukomine commented Apr 22, 2022

Try run "Intelephense: Index workspace".

  • Command panel > Intelephense: Index workspace

Thanks @yaegassy, it is working, but still need to manually run it after installed package~ Any way to make it auto index?

@tianyiw2013
Copy link

#1898 Maybe we need to add an index button to the status bar.

@sarukomine
Copy link
Author

#1898 Maybe we need to add an index button to the status bar.

@tianyiw2013 this is great, when will be an index button released?

@negentropicdev
Copy link

negentropicdev commented Feb 5, 2023

Just ran into this, indexing workspace fixed it. Is there a way to have a watcher on the composer file and automatically index when that file changes?

@kimhaak
Copy link

kimhaak commented May 22, 2023

Same problem but indexing does not fix it - Both remote ssh and locally.

I require the autoload.php from the vendor folder and i get red lines that my classes are undefined.

Trying to use Twig - and i installed composer package before opening folder with project in VSCODE.

Same problem across computers when testing.

@pasqual-artif
Copy link

I just ran into the same problem.

not working locally, nor with an samba share. but connecting it with ssh (Connect to host) and installing Intelephense afterwards "install on remote host" immediately resolved the issue.

but thats more like a workaround, since it shouldn't be edited over ssh because git doesn't like it (dubious ownership since smb =/= ssh)

@bmewburn bmewburn added this to the 1.10.0 milestone Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants