brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Brackets for PHP5 #12038

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by Yeehoo Monday May 27, 2019 at 23:14 GMT Originally opened as https://github.com/adobe/brackets/issues/14802


Hello! I was getting error message for undefind php.exe. I read some issues and I write in brackets,json:

"php": {
        "enablePhpTooling": true,
        "executablePath": "D:\\xampp\\php\\php.exe",
        "memoryLimit": "4095M",
        "validateOnType": "false"
    }

Now I get error message when I run php file via Brackets.

image

But we at work use PHP5...

And Beautify-plugin don't work for php-files on Brackets 1.14 :(

core-ai-bot commented 3 years ago

Comment by shubhsnov Tuesday May 28, 2019 at 09:08 GMT


The language server we are using can only be run on PHP7 and not PHP5 as mentioned here: https://github.com/felixfbecker/php-language-server/issues/23

However, that said, the parser can parse both PHP5 and PHP7 files, so all you need to do is to download PHP7 from here: https://www.php.net/downloads.php

and give the path to the PHP7 executable in brackets.json. You should still be able to get the PHP5 support you need in terms of hints. Not sure about linting though.

As for beautify, the plugin is based on jsBeautify which currently only works for JS HTML and CSS. You're free to raise a feature request with them.

core-ai-bot commented 3 years ago

Comment by Yeehoo Wednesday May 29, 2019 at 21:36 GMT


shubhsnov Yes! It works! Thanks you! ^_^