EN Source: Install PHP7 runtime for enabling PHP-related tooling such as Code Hints, Parameter Hints, Jump to Definition and more.
Actual Translation: コードヒント、パラメーターヒント、定義にジャンプなどの PHP 関連のツールを有効化するために、PHP7 ランタイムをインストールします。
Expected Translation: コードヒント、パラメーターヒント、定義にジャンプなどの PHP 関連のツールを有効化するために、PHP7 ランタイムをインストールしてください。
EN Screen:
JP Screen:
I dont quite understand the use of the warning. It opens settings, but not really what to do. There is also no more info given on how to solve this. Probably i need to find out how to install php 7 orso
@schroef It's just there to inform the user that PHP features will not work if we're unable to find the php7 executable.
We prompt the user to install php7 but in case we're unable to pick up the path on our own, the user can search for PHP related settings in the default preferences and override them with his own. You can give a custom php7 executable path there.
So I have been trying to modify the path but no luck the message keeps showing up.
What I am doing wrong?
My code on the default preferences page:
"php": {
// Default: true
"enablePhpTooling": true,
// Default: php
// I tried with C:/xampp/php/php.exe
"executablePath": "C://xampp//php//php.exe",
// Default: 4095M
"memoryLimit": "4095M",
// Default: false
"validateOnType": "false"
}
@RockStartCrazy
Go to Debug > Open Preferences File
Copy over the php settings from defaultPreferences.json to brackets.json
Remove the comments since a valid brackets.json can't have comments. This is important.
Replace the defaults with your own settings. In case of any performance issues, try increasing the default memory limit as per your need.
Also, the path in Win should have \\ instead of /, so in your case it would be:
"php": {
"enablePhpTooling": true,
"executablePath": "C:\\xampp\\php\\php.exe",
"memoryLimit": "4095M",
"validateOnType": "false"
}
Do let us know in case this doesn't solve your problem.
Oh I see thank you very much that fixed my problem
I tried to change it to "executablePath":"C:\\xampp\\php\\php.exe", but I always get the Error Message and it changed back to "executablePath": "php"
@Tagehar
Please give some more information so that we can try replicating the issue on our end.
I feel you might be changing it directly in defaultPreferences.json rather than brackets.json.
That won't work.
Also, do make sure that the php executable path you provide is of php 7 and not php 5.
Yes that was my mistake.
Good day with everyone.
I have read all of your directions above several times, but I do not understand what I am doing wrong. I have entered the code as it indicates that the preferences file does not have the indicated format.
The full code of backets.json is:
{
"brackets-eslint.gutterMarks": true,
"brackets-eslint.useLocalESLint": false,
"fonts.fontSize": "12px",
"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
"useTabChar": false,
"themes.theme": "dark-theme"
}
"php": {
"enablePhpTooling": true,
"executablePath": "C:\AppServ\php7\php.exe",
"memoryLimit": "4095M",
"validateOnType": "false"
}
Please help me.
Edit: SOLVED - The correct code is:
{
"brackets-eslint.gutterMarks": true,
"brackets-eslint.useLocalESLint": false,
"fonts.fontSize": "12px",
"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
"useTabChar": false,
"themes.theme": "dark-theme",
"php": {
"enablePhpTooling": true,
"executablePath": "C:\\AppServ\\php7\\php.exe",
"memoryLimit": "4095M",
"validateOnType": "false"
}
}
Most helpful comment
Oh I see thank you very much that fixed my problem