-
|
I was giving PHPantom a try on PHP Storm using lsp4ij plugin per the README.md instructions. Once I had the path properly pointing to the homebrew bin file it seems to have worked just fine. However I primarily work in Drupal and I'm getting conflicting information once PHPantom is being used, namely that a function doesn't exist. I suspect it is because these function exist inside of .module file in the project and PHPantom just isn't properly parsing that. Any tips or configuration changes I could make? My knowledge of LSPs is extremely surface level, so this might be a really easy fix that I'm just not aware of how to make. EDIT: Oh course after I wrote this I finally parsed the README about various indexing strategies and attempted the setup again with a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Mac or Linux?
It just not able to find it or is there conflicting information? Could you provide something that I can test this on? Even if this is an issue on all possible Drupal setups I would have to learn how to setup a Drupal project to see if I can replicate it. |
Beta Was this translation helpful? Give feedback.
-
|
MacOS. And apologies for not extrapolating on what I meant by "conflicting" information. Here is a screenshot of what I mean
You'll notice it says "Function not found" and yet it gives me all the information about the function. Maybe this is just some fallback behavior by PHPStorm? I can cmd+click on the function name and it will take me to the function definition as well. In trying to recreate this behavior in a test project I did discover that the error notification is seemingly temporary. If I open the .module file that holds the function definition and then go back to the tab where the error is displayed and make an arbitrary change (add a new line with The easiest way I know to test this kind of thing is to use DDEV and its CMS Quickstart instructions for Drupal (https://docs.ddev.com/en/stable/users/quickstart/#drupal). Once I had the DDEV environment started up I did the following steps, without PHPantom enabled:
This may be a bug, now that I've dug into it more. If you would like me to open an Issue please let me know and I'll do so. Screenshots of the terminal process below
|
Beta Was this translation helpful? Give feedback.



Arh I see, yeah this is sort of a known regression for 0.8.0, I'll try to solve it over the next few days.