Osx-mac Sublime text3 php error prompt plugin PHP code sniffer after installation, unable to display PHP error

Source: Internet
Author: User
Keywords Php osx
Tags erro goto php error

After installing the sublime Text3 under the

Mac, some plugins have been installed, including PHP code sniffer, which is referred to as phpcs. Used to prompt for PHP syntax errors. After installation, cannot display, I according to the official website prompt, installs the phpcs need some plug-ins, including: PHP-CS-FIXER,PHPCBF,PHPMD. And the Phpcs file is still not prompt.
Attach configuration file:
\ Start Here
{

Plugin settings//Turn The debug output on/Off "Show_debug": true,//which file types (file extensions), do you want the Plugin to//execute for "extensions_to_execute": ["PHP"],//does we need to blacklist all sub extensions from Extensions_to_ execute//An example would is ["twig.php"] "extensions_to_blacklist": ["twig.php"],//Execute the sniffer on file save "PHPC S_execute_on_save ": false,//Show the Error List after save." Phpcs_show_errors_on_save ": true,//show the errors in the gutter" Phpcs_show_gutter_marks ": true,//Show outline for error S "phpcs_outline_for_errors": true,//show the errors in the status bar "Phpcs_show_errors_in_status": true,//show The Erro RS in the ' Quick panel so ' can then goto line ' Phpcs_show_quick_panel ': true,//the path to the PHP executable.//Needed For Windows, or anyone who doesn ' t/can ' t make phars//executable. Avoid Setting this if @ all possible "Phpcs_php_prefix_path": "",//Options include://-sniffer//-fixer//-Mess Detect or////this would PREpend the application with the path to php//Needed for Windows, or anyone who doesn ' t/can ' t make phars//executable. Avoid Setting this if @ all possible ' phpcs_commands_to_php_prefix ': [],//what color to stylise the icon//https://www.su Blimetext.com/docs/3/api_reference.html#sublime. view//add_regsions "Phpcs_icon_scope_color": "Comment",
// PHP_CodeSniffer settings// Do you want to run the phpcs checker?"phpcs_sniffer_run": true,// Execute the sniffer on file save"phpcs_command_on_save": true,// It seems python/sublime cannot always find the phpcs application// If empty, then use PATH version of phpcs, else use the set value"phpcs_executable_path": "/usr/local/bin/phpcs",// Additional arguments you can specify into the application//// Example:// {//     "--standard": "PEAR",//     "-n"// }

"Phpcs_additional_args": {

"--standard": "PSR2", "--config-set": "show_warnings 0","-n": "","-l":""

},

// PHP-CS-Fixer settings// Fix the issues on save"php_cs_fixer_on_save": false,// Show the quick panel"php_cs_fixer_show_quick_panel": true,// Path to where you have the php-cs-fixer installed"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",// Additional arguments you can specify into the application"php_cs_fixer_additional_args": {     "--level": "all"},
// phpcbf settings// Fix the issues on save"phpcbf_on_save": true,// Show the quick panel"phpcbf_show_quick_panel": true,// Path to where you have the phpcbf installed"phpcbf_executable_path": "/usr/local/bin/phpcbf",// Additional arguments you can specify into the application//// Example:// {//     "--level": "all"// }"phpcbf_additional_args": {    "--standard": "PSR2",    "-n": ""},
 //php Linter settings//is we going to run php-l over the file? "  Phpcs_linter_run ": true,//Execute the Linter on file Save" Phpcs_linter_command_on_save ": true,//It seems python/sublime Cannot always find the PHP application//If empty and then use PATH version of PHP, else use the set value "Phpcs_php_path": "",//What's the regex for the Linter? Have to provide a named match for ' message ' and ' line ' "Phpcs_linter_regex": "(? P 
   
    . *) on the line (? P 
    
      \\d+) ", 
     
     
 //php Mess Detector settings//Execute PHPMD "phpmd_run": true,//Execute The PHPMD on file Save ' phpmd_command_on_save ': true,//It seems python/sublime cannot always find the PHPMD application// If empty, then use PATH version of PHPMD, else use the set value "Phpmd_executable_path": "/USR/LOCAL/BIN/PHPMD",//Additio NAL arguments you can specify into the application////example://{//"Codesize,unusedcode"//} "Phpmd_additional_args" : {"codesize,unusedcode,naming": ""},  
// PHP Scheck settings// Execute scheck"scheck_run": false,// Execute the scheck on file save"scheck_command_on_save": false,// It seems python/sublime cannot always find the scheck application// If empty, then use PATH version of scheck, else use the set value"scheck_executable_path": "",// Additional arguments you can specify into the application////Example://{//  "-php_stdlib" : "/path/to/pfff",//  "-strict" : ""//}"scheck_additional_args": {    "-strict" : ""}

}
Over here.

Here is the installation, the error is still not prompted.


Have friends used this plugin, help AH!!!

Reply content:

After installing sublime Text3 under Mac, some plugins have been installed, including PHP code sniffer, which is referred to as phpcs. Used to prompt for PHP syntax errors. After installation, cannot display, I according to the official website prompt, installs the phpcs need some plug-ins, including: PHP-CS-FIXER,PHPCBF,PHPMD. And the Phpcs file is still not prompt.
Attach the configuration file:
\ Start Here
{

Plugin settings//Turn The debug output on/Off "Show_debug": true,//which file types (file extensions), do you want the Plugin to//execute for "extensions_to_execute": ["PHP"],//does we need to blacklist all sub extensions from Extensions_to_ execute//An example would is ["twig.php"] "extensions_to_blacklist": ["twig.php"],//Execute the sniffer on file save "PHPC S_execute_on_save ": false,//Show the Error List after save." Phpcs_show_errors_on_save ": true,//show the errors in the gutter" Phpcs_show_gutter_marks ": true,//Show outline for error S "phpcs_outline_for_errors": true,//show the errors in the status bar "Phpcs_show_errors_in_status": true,//show The Erro RS in the ' Quick panel so ' can then goto line ' Phpcs_show_quick_panel ': true,//the path to the PHP executable.//Needed For Windows, or anyone who doesn ' t/can ' t make phars//executable. Avoid Setting this if @ all possible "Phpcs_php_prefix_path": "",//Options include://-sniffer//-fixer//-Mess Detect or////this would PREpend the application with the path to php//Needed for Windows, or anyone who doesn ' t/can ' t make phars//executable. Avoid Setting this if @ all possible ' phpcs_commands_to_php_prefix ': [],//what color to stylise the icon//https://www.su Blimetext.com/docs/3/api_reference.html#sublime. view//add_regsions "Phpcs_icon_scope_color": "Comment",
// PHP_CodeSniffer settings// Do you want to run the phpcs checker?"phpcs_sniffer_run": true,// Execute the sniffer on file save"phpcs_command_on_save": true,// It seems python/sublime cannot always find the phpcs application// If empty, then use PATH version of phpcs, else use the set value"phpcs_executable_path": "/usr/local/bin/phpcs",// Additional arguments you can specify into the application//// Example:// {//     "--standard": "PEAR",//     "-n"// }

"Phpcs_additional_args": {

"--standard": "PSR2", "--config-set": "show_warnings 0","-n": "","-l":""

},

// PHP-CS-Fixer settings// Fix the issues on save"php_cs_fixer_on_save": false,// Show the quick panel"php_cs_fixer_show_quick_panel": true,// Path to where you have the php-cs-fixer installed"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",// Additional arguments you can specify into the application"php_cs_fixer_additional_args": {     "--level": "all"},
// phpcbf settings// Fix the issues on save"phpcbf_on_save": true,// Show the quick panel"phpcbf_show_quick_panel": true,// Path to where you have the phpcbf installed"phpcbf_executable_path": "/usr/local/bin/phpcbf",// Additional arguments you can specify into the application//// Example:// {//     "--level": "all"// }"phpcbf_additional_args": {    "--standard": "PSR2",    "-n": ""},
 //php Linter settings//is we going to run php-l over the file? "  Phpcs_linter_run ": true,//Execute the Linter on file Save" Phpcs_linter_command_on_save ": true,//It seems python/sublime Cannot always find the PHP application//If empty and then use PATH version of PHP, else use the set value "Phpcs_php_path": "",//What's the regex for the Linter? Have to provide a named match for ' message ' and ' line ' "Phpcs_linter_regex": "(? P 
   
    . *) on the line (? P 
    
      \\d+) ", 
     
     
 //php Mess Detector settings//Execute PHPMD "phpmd_run": true,//Execute The PHPMD on file Save ' phpmd_command_on_save ': true,//It seems python/sublime cannot always find the PHPMD application// If empty, then use PATH version of PHPMD, else use the set value "Phpmd_executable_path": "/USR/LOCAL/BIN/PHPMD",//Additio NAL arguments you can specify into the application////example://{//"Codesize,unusedcode"//} "Phpmd_additional_args" : {"codesize,unusedcode,naming": ""},  
// PHP Scheck settings// Execute scheck"scheck_run": false,// Execute the scheck on file save"scheck_command_on_save": false,// It seems python/sublime cannot always find the scheck application// If empty, then use PATH version of scheck, else use the set value"scheck_executable_path": "",// Additional arguments you can specify into the application////Example://{//  "-php_stdlib" : "/path/to/pfff",//  "-strict" : ""//}"scheck_additional_args": {    "-strict" : ""}

}
Over here.

Here is the installation, the error is still not prompted.


Have friends used this plugin, help AH!!!

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.