Skip to content

PHP Code Intelligence not installing #3168

Open

Description

@rik020257

Describe the bug

Whenever I open a php file I get an error stating 'Could not set up php support' and a new log file isproduced.

Reproduction

No response

Expected behavior

No response

OS, Browser and Phoenix versions

Release 5.2 build 5.2.5-23290

logs or debug stack trace if any

0 verbose cli C:\Users\richa\AppData\Local\Phoenix Code\phnode.exe C:\Users\richa\AppData\Local\Phoenix Code\src-node\node_modules\npm\bin\npm-cli.js
1 info using npm@11.8.0
2 info using node@v24.19.0
3 silly config load:file:C:\Users\richa\AppData\Local\Phoenix Code\src-node\node_modules\npm\npmrc
4 silly config load:file:C:\Users\richa\AppData\Local\io.phcode\lspServers\intelephense\.npmrc
5 silly config load:file:C:\Users\richa\.npmrc
6 silly config load:file:C:\Users\richa\AppData\Local\Phoenix Code\etc\npmrc
7 verbose title npm install C:\Users\richa\AppData\Local\io.phcode\lspServers\intelephense\
8 verbose argv "install" "C:\\Users\\richa\\AppData\\Local\\io.phcode\\lspServers\\intelephense\\"
9 verbose logfile logs-max:10 dir:C:\Users\richa\AppData\Local\npm-cache\_logs\2026-09-02T18_40_57_955Z-
10 verbose logfile C:\Users\richa\AppData\Local\npm-cache\_logs\2026-09-02T18_40_57_955Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 verbose stack ReferenceError: minipass is not defined
12 verbose stack     at Object.<anonymous> (C:\Users\richa\AppData\Local\Phoenix Code\src-node\node_modules\npm\node_modules\minipass-collect\index.js:4:23)
12 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1872:14)
12 verbose stack     at Object..js (node:internal/modules/cjs/loader:2003:10)
12 verbose stack     at Module.load (node:internal/modules/cjs/loader:1594:32)
12 verbose stack     at Module._load (node:internal/modules/cjs/loader:1396:12)
12 verbose stack     at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
12 verbose stack     at Module.require (node:internal/modules/cjs/loader:1617:12)
12 verbose stack     at require (node:internal/modules/helpers:153:16)
12 verbose stack     at Object.<anonymous> (C:\Users\richa\AppData\Local\Phoenix Code\src-node\node_modules\npm\node_modules\cacache\lib\get.js:3:17)
12 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1872:14)
13 error minipass is not defined
14 verbose cwd C:\Users\richa\AppData\Local\io.phcode\lspServers\intelephense
15 verbose os Windows_NT 10.0.19045
16 verbose node v24.19.0
17 verbose npm  v11.8.0
18 verbose exit 1
19 verbose code 1
20 error A complete log of this run can be found in: C:\Users\richa\AppData\Local\npm-cache\_logs\2026-09-02T18_40_57_955Z-debug-0.log

Additional context

No response

Activity

  1. devvaannsh commented on Sep 3, 2026

    @devvaannsh
    Member

    Hey @rik020257, it looks like your PHP Intelephense got corrupted during installation.

    To fix it, please uninstall and then reinstall Phoenix Code.
    Make sure you delete this folder: C:\Users\richa\AppData\Local\io.phcode\lspServers\intelephense. This will allow PHP Intelephense to perform a fresh installation.

    Alternatively, if you don't want the code intelligence features and just want to stop seeing that toast message, you can add this line to your preferences file: "codeIntelligence.php": false

    For more details, see the documentation

  2. abose commented on Sep 28, 2026

    @abose
    Member

    Hi @rik020257, we were able to root cause this issue. It happens when Node.js isn’t installed on the system - our PHP code intelligence depends on Node, and all our test runners had it installed, so we missed this case.

    This is now fixed and should be available in the next release, likely within a week. We’ve also added testing that forces no system Node.js to make sure this doesn’t happen again.

    Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions