Sublime Forum

Finding php detector addon / extension

#1

Hello There ,
I am new here and i see a amazing php error detector on sublime text 3 maybe by extension .
I am not sure if the bellow image is showed . If you can see the image here you will see a red bullet on left line number 14. It’s slightly happen real time php code error .

Please let me know , if someone know this extension name and how to install it .

I am so existed :slight_smile:

0 Likes

#2

It’s called linting (grammar check). Probably from https://packagecontrol.io/packages/SublimeLinter-php or a PHP language server.

1 Like

#3

Hi Jfcherng,
I have install this also but no luck :frowning:

Also can you tell me please which theme or color shime use on this editor layout ?

As i see gray background on this editor ? how i can also ?

0 Likes

#4

Forget to mention that you have to install https://packagecontrol.io/packages/SublimeLinter first.

If SublimeLinter-php is still not working after you install SublimeLinter and restart Sublime Text, continue the following reading.


According to http://www.sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable,

You have 2 options:

  1. make your php executable (php.exe, assuming you are on Windows) in the PATH environment.
  2. add the directory of php.exe to SublimeLinter’s paths settings.
0 Likes

#5

Absolutely , i have install the packagecontrol first but no luck .
Can you please knock me on Skype : wpsafar
I will highly appreciate for your help .

0 Likes

#6

I am not going to help people privately here.


The first 2 things to check are

  • Have you installed PHP on your machine? I mean, is php.exe available on your machine?
  • What’s the output if you type php.exe in your Windows command line (i.e., cmd)?
0 Likes

#7

Hi there ,
Okay .

I have not install php on my machine bit i use xammp server .
Here is my cmd output :

0 Likes

#8

php.exe must be somewhere on your machine. You have to find out where it is. You may go your installation directory of xammp and search php.exe. After that, add the directory of php.exe in to your PATH environment.

0 Likes

#9

Thank you .
I got php.exe . I am sorry can you please make a comment little bit more step step what’s the next .

0 Likes

#10

You need to add the path to php.exe to your %PATH% variable.

0 Likes

#11

To be more clear, add C:\xampp\php into your PATH variable.

You could click on the address bar and copy the directory path.

0 Likes

#12

Than i got it : C:\xampp\php

Now where i should past please …

0 Likes

#13

If you think the link provided by @rwols is not clear to you. You may visit https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/, which provided more detailed screenshots.

0 Likes

#14

Ahh thanks for sharing . Try it :slight_smile:

0 Likes

#15

I have make the path change correct !
But now cmd is not working still :

0 Likes

#16

It’s working. Now you just need to restart you Sublime Text. May be need to reboot your machine as well (I am not sure).

0 Likes

#17

I have restart my laptop also but didn’t works :

Is there anything else may i can try for this please

0 Likes

#18
  1. turn on the SublimeLinter debug mode (it can be configured in SublimeLinter settings)
  2. return Sublime Text
  3. press Ctrl+`(backtick) to open Sublime Text’s console
  4. copy all console log and paste here
0 Likes

#19

Anything there i need to add :

km

0 Likes

#20

Not Sublime Text settings. I mean SublimeLinter settings.

Gonna sleep. May help you tomorrow or other people may help.

0 Likes