Open core-ai-bot opened 3 years ago
Comment by NYC-Jim Friday Dec 18, 2020 at 15:33 GMT
Me too! I changed my brackets.json file to point to the PHP identified by the "which php" command, but that did not change the error. What am I doing wrong? Is Brackets not intended ro run on MacOS? { "brackets-eslint.gutterMarks": true, "brackets-eslint.useLocalESLint": false, "fonts.fontSize": "15px", "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace", "healthData.healthDataTracking": false, "linting.JSLint.collapsed": false, "externalApplications": { "jpg": "Preview", "jpeg": "Preview", "png": "Preview", "svg": "Brackets", "psd": "Adobe Photoshop 2021", "ai": "Adobe Photoshop 2021" }, "linting.collapsed": true, "php": { "enablePhpTooling": true, "executablePath": "/usr/bin/php", "memoryLimit": "4095M", "validateOnType": "false" } }
Comment by billb037 Monday Dec 21, 2020 at 21:11 GMT
@
NYC-Jim I added the same thing as you did and the error was gone after restarting Brackets
@
enricotedoldi add the php block that NYC Jim shows in his example to brackets.json, restart Brackets and see if the error disappears
Comment by enricotedoldi Tuesday Dec 22, 2020 at 08:45 GMT
Done, but it gives me the same error I posted
Comment by billb037 Tuesday Dec 22, 2020 at 19:39 GMT
@
enricotedoldi - yeah, same here. it was fine for the first restart and then came back the next time I opened it. back to square 1 I guess.
Comment by sidelux Tuesday Dec 29, 2020 at 10:48 GMT
Ok temporary gone after using@
NYC-Jim solution but with:
"enablePhpTooling": false,
And restarting.
Comment by billb037 Tuesday Dec 29, 2020 at 21:39 GMT
@
sidelux yeah, changing that value and the error is gone now. Thanks.
Comment by enricotedoldi Sunday Jan 03, 2021 at 18:00 GMT
ok, but if that is set to "false" you won't have any of these: Code Hints, Parameter Hints, Linting, Jump To Definition, Find References, Find Document/Project Symbols features. Am I wrong?
Comment by asako08 Thursday Jan 07, 2021 at 12:41 GMT
I'm getting the same error. Is it due to updating macOS to Big Sur? I want to know a better solution.
Comment by sidelux Thursday Jan 07, 2021 at 13:17 GMT
@
enricotedoldi Exactly.
@
asako08 Probably yes, i think a definitive solution will be available on official update...
Comment by asako08 Saturday Jan 09, 2021 at 13:44 GMT
I was able to resolve it by adding executablePath to brackets.json.
Comment by theanorak-keith Friday Jan 15, 2021 at 12:09 GMT
@
asako08 You were? I've tried adding the executablePath '/usr/bin/php' to brackets.json (as@
NYC-Jim did) but it hasn't solved the error. Did you specifically install PHP separately?
Comment by asako08 Saturday Jan 16, 2021 at 06:02 GMT
@
theanorak-keith I use MAMP. So I specified the php in MAMP as executablePath.I think executablePath will be different depending on the environment.
I think the following page will be helpful. https://github.com/adobe/brackets/wiki/PHP-Support-in-Brackets
Comment by efhkapp Saturday Jan 16, 2021 at 08:17 GMT
Finally I get it works again by installing another version of PHP, for who wish to tackle it out:
1) install php 7.3 with brew
brew tap shivammathur/php
brew install shivammathur/php/php@7.3
2) After installed, run
brew link shivammathur/php/php@7.3
If error, run brew doctor
, fix one by one
3) Then
which php
to get a new PHP path, it would like /usr/local/bin/php, copy it and replace in "executablePath" in brackets.json in@
NYC-Jim 's solution.
4) Confirm there is "enablePhpTooling": true setting in brackets.json
5) Restart Brackets, it should not have any errors, and all the Code Hints, Parameter Hints, Linting, Jump To Definition, Find References, Find Document/Project Symbols features were back
Hope this help. :)
Comment by sidelux Saturday Jan 16, 2021 at 10:35 GMT
Seems like@
efhkapp's solution works.
I have installed php version 7.4 and my executablePath is /usr/local/bin/php.
Comment by fakerybakery Thursday Mar 04, 2021 at 21:56 GMT
I doubt that Brackets will fix this - they haven't updated it in ages and are now deprecating the project.
Comment by fakerybakery Thursday Mar 04, 2021 at 23:27 GMT
I noticed that PHP tooling does not work on PHP files, but when I write in HTML files, it does! So strange! I started typing fop
and it tooltipped: fopen
which is TOTALLY PHP. Wierd!
Comment by nicolaslule Friday Apr 30, 2021 at 15:47 GMT
Issued fixed with@
NYC-Jim solution. I had to change the value enablePhpTooling": false as recommend by@
sidelux. Thanks.
Issue by enricotedoldi Thursday Dec 17, 2020 at 13:49 GMT Originally opened as https://github.com/adobe/brackets/issues/15291
Description
As soon as I open any of my PHP files I receive this error message
Versions
OS: macOS BigSur 11.1 Brackets: Release 1.14 build di rilascio 1.14.2-17770 (release-1.14.2 f71f00acc) build timestamp: Tue Mar 31 2020 00:41:05 GMT-0700