PHP autocomplete doesn't work with latest Intelephense
See original GitHub issueDescribe the bug
Auto-completion is not working anymore/only working partially.
Che version
- latest
- nightly
- other: 7.15.0 (Che-Theia next https://github.com/eclipse/che-theia/commit/2f11124)
Steps to reproduce
- Set up a Symfony 5 project
- Use the latest Intelephense version (1.5.3, also reproduced with 1.4.0)
- Edit some PHP/SCSS files
- In a controller if I want to write
Response
as return type, there will be suggestions forR
, but if I typeRe
* or more the suggestions disappear. If I want to writeRediretResponse
there will be suggestions forR
, but not forRe
, but again forRed
and every following letter. Similar situation for CSS properties in a SCSS file. If I want to writedisplay
**, there are no suggestions at all, but afterdisplay: i
, there will be suggestions forinline-block
for example. I tried it in Gitpod and VS Code and there were no issues. See screenshots.
*This error message appears in the console after typing Re
(see above):
errors.ts:26 Uncaught Error: Cannot read property 'Deprecated' of undefined
TypeError: Cannot read property 'Deprecated' of undefined
at v (/tmp/vscode-unpacked/redhat.php-new.1.4.0.rinuousiea.vscode-intelephense-client-1.4.0.vsix/extension/lib/extension.js:1)
at /tmp/vscode-unpacked/redhat.php-new.1.4.0.rinuousiea.vscode-intelephense-client-1.4.0.vsix/extension/lib/extension.js:1
at R (/tmp/vscode-unpacked/redhat.php-new.1.4.0.rinuousiea.vscode-intelephense-client-1.4.0.vsix/extension/lib/extension.js:1)
at Array.map (<anonymous>)
at asCompletionResult (/tmp/vscode-unpacked/redhat.php-new.1.4.0.rinuousiea.vscode-intelephense-client-1.4.0.vsix/extension/lib/extension.js:1)
at errors.ts:26
**This error message appears in the console when trying to type display
in a SCSS file (see above):
errors.ts:26 Uncaught Error: Cannot read property 'Deprecated' of undefined
TypeError: Cannot read property 'Deprecated' of undefined
at y (/default-theia-plugins/vscode-builtin-css-language-features/extension/client/dist/cssMain.js:1)
at /default-theia-plugins/vscode-builtin-css-language-features/extension/client/dist/cssMain.js:1
at C (/default-theia-plugins/vscode-builtin-css-language-features/extension/client/dist/cssMain.js:1)
at Array.map (<anonymous>)
at asCompletionResult (/default-theia-plugins/vscode-builtin-css-language-features/extension/client/dist/cssMain.js:1)
at errors.ts:26
Expected behavior
Suggestions and auto-completion should always work
Runtime
- kubernetes (include output of
kubectl version
) - Openshift (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Screenshots
Installation method
- chectl
- provide a full command that was used to deploy Eclipse Che (including the output)
- provide an output of
chectl version
command
- OperatorHub
- I don’t know
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
PHP auto complete in vs code doesn't work - Stack Overflow
You can try PHP Intelephense: https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client.
Read more >PHP namespace autocomplete not working right #544 - GitHub
Hello,. I used to have both PHP Intellisene and Intelephense for some reason but i uninstalled Intellisense and cleared cache. My collegue never ......
Read more >PHP intelephense autocomplete not working in VS Code
I have PHP intelephense and all configuration settings that are needed for laravel development environment, it's working perfectly fine last day, ...
Read more >[vscode-intelephense] php autocomplete - YouTube
How to Fix - bash: python: command not found error solution? - coder website | Problem solved | git. Coder Website. Coder Website....
Read more >PHP Programming with Visual Studio Code
Visual Studio Code is a great editor for PHP development. ... Set this if the PHP executable is not on the system path....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ericwill as the devfile and project are work related I can’t share them, but I’ll try to set something simple up to reproduce it.
Thanks for taking a look @ericwill I tested it with Gitpod and it works fine there, they are using Intelephense 1.4.0 so I assume it might be something else. But I would be happy if you could check updating it to 1.5.3. Also, the css issue should be unrelated to the Intelephense version.