question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PHP autocomplete doesn't work with latest Intelephense

See original GitHub issue

Describe the bug

Auto-completion is not working anymore/only working partially.

Che version

Steps to reproduce

  1. Set up a Symfony 5 project
  2. Use the latest Intelephense version (1.5.3, also reproduced with 1.4.0)
  3. Edit some PHP/SCSS files
  4. In a controller if I want to write Response as return type, there will be suggestions for R, but if I type Re* or more the suggestions disappear. If I want to write RediretResponse there will be suggestions for R, but not for Re, but again for Red and every following letter. Similar situation for CSS properties in a SCSS file. If I want to write display**, there are no suggestions at all, but after display: i, there will be suggestions for inline-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 and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

image

image

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:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
danidoedelcommented, Aug 12, 2020

@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.

1reaction
danidoedelcommented, Jul 27, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found