Drowneed I was looking for some help getting this very same issue solved and ended up here. Facing exactly the same thing as you. Also no solution so far.

I went to great lengths at resolving this, I even rebuilt my dev-env with no luck. However I noticed that this only happens with NginX as webserver; it does not happen on Apache.

    15 days later

    MrSuddenJoy Thank you for the information.

    This won't be related to the web server itself;

    Do you use VSCode's Remote Workspace, WSL, or any 3rd party extension to open the remote server?

      18 days later

      Apologies for the late reply, I had put the extension in 1.47 and completly forgot about it

      Issue is still present in 1.49

      On my side we are just connecting to our server as it's on the same network and opening the project from there never had any issues before

      Here's the result of my output PHP Language Server :

      [Info  - 5:00:37 PM] PHP Language Server Started (PID: 28468)
      [Info  - 5:00:37 PM] Indexing 10.16.19.25/docker-data/dev_php8_1/dev/spa-avenue/hadrien (*.php; *.phtml; *.module; *.inc; *.theme)

      Let me know if I can provide you with anything else

        2 months later

        @JakubMisek Confirmed this is still happening as of 1.51.16078. Last working version was 1.47.15512

        The Symfony project is on a remote computer's file storage, accessed over Windows File Share (SMB).

          WilliamSmithEdward Thank you for the update. I will need to think about what we need in order to fix it ..

            Does the VSCode status bar keep displaying "Indexing ..." ?

            EDIT: nevermind, it wouldn't underline unknown classes if it would be saying "Indexing ..."

              3 months later

              Hi! I know this is free software so I don't mean to pester and I appreciate the devs :) This is still a problem for me, and I would love to be able to keep up with the updates. If there's any additional information I can provide please let me know.

                WilliamSmithEdward Hello William, please pester :) we appreciate good feedback, and anything we can improve.

                I'm sorry this issue persists - may I ask for additional information?

                • are you on the latest version? 1.54-ish (I guess you are)
                • is the problem fixed by running VSCode Command from Command Palette: > Clear /vendor/ Cache ... ?
                • are there errors in View -> Output -> "PHP Language Server" ?

                Thanks!

                  a month later

                  Ok sorry for the double post, I dont know if and how my problem was related but i got it sorted out and replied to the other topic

                    Write a Reply...