PHP syntax errors highlights

CodeLite installation/troubleshooting forum
McSeem
CodeLite Curious
Posts: 1
Joined: Sun Feb 02, 2020 12:24 pm
Genuine User: Yes
IDE Question: C++
Contact:

PHP syntax errors highlights

Post by McSeem »

CodeLite 13.0.7 doesn't highlight syntax errors in PHP projects. PHP linter is enabled and it's check configured on file save event. I use Ubuntu 18.04.3 with KDE desktop environment manually installed. But in GNOME Shell (pre-installed in Ubuntu 18.04.3) errors highlight doesn't work also.
On my another machine (Kubuntu 18.04.3) it work fine. What's the problem?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: PHP syntax errors highlights

Post by eranif »

IIRC, the errors are maked using phplint
Make sure its install and configured in CodeLite properly:

From the menu bar:
PHP -> Settings -> General -> PHP executable : make sure you have a working PHP here

From the menu bar:
Plugins -> PHP Linter -> Settings
Make sure that 'Lint on file' save is enabled
Make sure you have read the HOW TO POST thread
kur-ka
CodeLite Curious
Posts: 5
Joined: Sun Jul 19, 2020 7:58 pm
Genuine User: Yes
IDE Question: jsc
Contact:

Re: PHP syntax errors highlights

Post by kur-ka »

Does not work either on 14.0.0.
eranif wrote: Sun Feb 02, 2020 11:15 pm PHP -> Settings -> General -> PHP executable : make sure you have a working PHP here
Make sure that 'Lint on file' save is enabled
Both above are enabled. Lint current source does not make anything happen.

What are paths "Mess detector", "Sniffer", "Stan" for?

--
Update
Only auto-check on save/load works: a red arrow with an error description appears in the line-numbers bar.
Post Reply