Reputation: 51
I'm running ubuntu 18.04 and trying to develop a php project using Brackets text editor. But i getting error:
PHP runtime not found.
Then I installed the php7 runtime and update "executablePath"
in PHP preferences appropriately. I tried to configured Brackets using custom setting in brackets.json But now i am getting:
"Error Reading Preferences" Your preferences is not valid JSON
I am using XAMPP
Upvotes: 4
Views: 14196
Reputation: 61
Based on the issue that appear in here : https://github.com/adobe/brackets/issues/14783
you just have to open your brackets.json file from the Debug tab then open preferences file, and add these following syntax to your brackets.json :
"php": {
"executablePath": "C:\\xampp\\php\\php.exe"
}
so for me, it will became like this :
{
"brackets-eslint.gutterMarks": true,
"brackets-eslint.useLocalESLint": false,
"fonts.fontSize": "12px",
"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
"themes.theme": "dark-theme",
"php": {
"executablePath": "C:\\xampp\\php\\php.exe"
}
}
then restart your brackets, hope it'll work
Upvotes: 5