Code_sniffer and wsl
I use phpstorm on windows 10 and have php/apache on wsl Ubuntu. I have installed code sniffer on wsl and configure php cli interpreter on phpstorm (detect well php 7.2) and configure code sniffer (detect well code sniffer 3.5.2). I configure too inspection Quality tools. But when I run "inspect code", I have no result, just an error log "no response from xxxx/xxxxx/phpcs". Is it possible to use code sniffer from wsl or I should install it on windows?
Please sign in to leave a comment.
Just tried to configure PHP Code Sniffer with WSL (Ubuntu) and got somewhat similar results. An interesting moment though, running inspection manually leads to "No results" (and no errors though), however, errors are highlighted online in the editor:
Log snippet to prove that it is really working:
2019-11-29 21:40:15,443 [17627300] DEBUG - lity.QualityToolProcessCreator - Running quality tool from working dir: null
/usr/bin/phpcs /mnt/c/Users/Vasiliy.Yur/AppData/Local/Temp/phpcs_temp.tmp891/fd.php --standard=Squiz --encoding=utf-8 --report=xml --extensions=php,js,css,inc
2019-11-29 21:40:15,448 [17627305] INFO - m.pty4j.windows.WindowsVersion - Windows version: 10.0.18362
2019-11-29 21:40:16,816 [17628673] DEBUG - QualityToolXmlMessageProcessor - '<?xml version="1.0" encoding="UTF-8"?>...
Do you have any inspection error highlightning in the editor? Could you please show a full error message?
You are right. I did not pay attention but the errors are highlighted. But I have nothing in the inspection results window
I suppose it's gonna be fixed soon as the fix doesn't seem all that complicated. Please vote:
https://youtrack.jetbrains.com/issue/WI-49415