I'm trying to get my intern setup with PHP tools. He is unable to get Intellisense to work even though we have the same config.json for workspace and for user.

Here is his Intellisense.

And here is mine.

As for Composer.
Here is his language server.

And here is mine.

What troubleshooting methods can I use to get this resolved?

...

Some more background information.
The project is on a remote server.
I map the network drive root directory to access my files as an administrator ( \IPHERE\c$)
He is sandboxed to one of the development folders which is a folder at the root directory so he only has that one folder mapped (\IPHERE\sharename).

    haskellmcravin1 Thank you for the question, and sorry for the trouble!

    It seems that the language server (LS) does not even see the composer.json file.

    • Does your intern open the entire folder (File -> Open Folder...), or is he opening files separately?
    • Are there any errors (red ones) in Developer Console (Help -> Toggle Developer Tools -> Console)
    • If none of the above helps, can we have a screenshot of the entire VS Code?

    Thanks!

      He is opening the entire folder. Also when he copies the entire folder from the share to his desktop the Intellisense works.
      The errors he has in the console are very similar to mine and my setup works.

      workbench.desktop.main.js:sourcemap:651  INFO Started local extension host with pid 12988.
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Invalid properties dropped from payload Array(0)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] Preparing PHP Language Server ...
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Invalid properties dropped from payload Array(0)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Invalid properties dropped from payload Array(0)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] composer bin: 'C:\Users\Braden.Reiff\AppData\Roaming\Composer\latest.phar'
      workbench.desktop.main.js:sourcemap:148 [Extension Host] Starting PHP Language Server ...
      workbench.desktop.main.js:sourcemap:148 [Extension Host] Initializing PHP Language Server ...
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1)
      workbench.desktop.main.js:sourcemap:651  INFO [perf] Render performance baseline is 49ms
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Invalid properties dropped from payload Array(0)
      workbench.desktop.main.js:sourcemap:651   ERR [Extension Host] Received response message without id. No further error information provided.
      workbench.desktop.main.js:sourcemap:148 [Extension Host] Received response message without id. No further error information provided.
      p @ workbench.desktop.main.js:sourcemap:148
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Sender Array(1)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Sender Array(1)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Sender Array(1)
      workbench.desktop.main.js:sourcemap:148 [Extension Host] ApplicationInsights:Sender Array(1)
      workbench.desktop.main.js:sourcemap:651   ERR [Extension Host] Received response message without id. No further error information provided.
      workbench.desktop.main.js:sourcemap:148 [Extension Host] Received response message without id. No further error information provided.
      p @ workbench.desktop.main.js:sourcemap:148

        So it seems like... the problem is that the codebase was on C:
        I am an administrator and the intern is obviously not. Even though the permissions were set properly for them to do their work composer never worked for them and neither did PHP Tools.

        Moving to a separate drive solved the issue. Sorry for the unrelated problem, but maybe it will help with issues from other users in the future.

          haskellmcravin1 good you have found that out. Maybe we should check/report insufficient permission to avoid similar problems in the future.

            No, the permissions are correct and have been correct. The problem is that if the share is at the root level of a drive it works. If the share is at the folder level where the project is it does not work.

              haskellmcravin1 Ok, maybe the extension tries to lookup to the parent folder for some reason and fails; I'll check that.

                10 days later

                I just want to again confirm that when the share was at the same level as the project, neither the PHP Tools nor the Composer extensions worked. Meaning the share was at the root directory of the project.
                This makes it so that you can't just use a share to setup a user with restricted access directly at the project location.

                I had to hide everything at the root level of the drive and then pick the folder the user needed as full access. The user needed access at the root level of the drive. Obviously this is much easier on a drive other than C: where our OS is installed.

                It is quite possible that putting the project inside another folder and treating this parent folder as the project root would have worked, but I didn't test this.

                  haskellmcravin1 Thank you for the update - we'll have to try to repro the issue, and add more logging to be aware of it.

                    Write a Reply...