-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension stopped working #8
Comments
Could you post the output of It could be that TCP sockets aren't supported, or some other issue (failing to be non-blockinh, not working as intended due to fork(), etc. |
What OS and OS version are you using. What repo did you use for downloading PHP binaries and extensions? |
Also, what version of VS Code are you using? I'm using php 7.2.2 with VS Code 1.20.0. "Help > Toggle Developer Tools" might bring up useful information or the debugging logs in the console (Similar to Google Chrome developer tools for javascript) (e.g. Right click and "Save as" and copy that to a gist) Unlikely: If you're running php in docker or a virtualized environment, it wouldn't work. |
Hey, sorry, should've put all my version info before. OS: Fedora 27 php-config:
php -m
|
https://ask.fedoraproject.org/en/question/9294/apache-php-sockets-not-working/ I've also seen turning off SELinux as a suggestion for fedora. Maybe PHP can't connect to arbitrary localhost TCP ports? Will work on re-enabling the option to use stdin in the extension and adding a quick script to check if PHP cli can create and use sockets asynchronously |
Also, mentioned earlier:
Other possible causes:
|
It seems that was the issue! stdin works, the sockets don't. Flipping the option between on/off reproduces it. I have SELinux off, so that shouldn't be the issue. I wonder if the firewall is blocking even locally... |
Tried disabling firewalld and same issue... I can try to keep digging in to see if errors crop up anywhere. Will report back here if I find anything in the future. |
After the analyze on save branch being merged in, it doesn't seem to be working. I tried enabling debugging in the settings, but it's no longer showing in the extension Output tab. In the processlist it's showing up, though. When I run Phan manually it works.
This commit works for me just fine: 12b8bdd
After that it's broken.
In master this is what shows up for "phan" in my processlist:
php /home/ddecarmine/.vscode/extensions/TysonAndre.php-phan-0.0.9/vendor/phan/phan/phan --language-server-verbose --language-server-analyze-only-on-save --use-fallback-parser --language-server-tcp-connect=127.0.0.1:34873
Not sure how to help debug this. =\
The text was updated successfully, but these errors were encountered: