pdt
pdt copied to clipboard
No PHP syntax validation on projects created with "Create Remote Project"
Describe the bug PHP syntax validating is not being done on projects created with "Create Remote Project" but HTML syntax validating is being done. PHP syntax validating is working for projects created with "Import Project".
Describe the eclipse environment Eclipse Version (ex. 2020-03), PDT version (Eclipse PDT 7.2.0.202005271851) and installed additional plugins (DevStyle, Oomph, WTP)
Describe your system
- OS: Windows 10 64-bit Professional
- Version 4.1.6
- PHP Version 7.4
- Webserver Version Apache 2.4
- Utilis (composer, php unit, Xdebug etc...)
To Reproduce Steps to reproduce the behavior:
- Open RSE
- Right click the root folder of a project and chose "Create Remote Project"
- Open Project explorer
- Right click the root folder and choose "validate"
Result:
- HTML Syntax Validator (for PHP files) runs.
- PHP sytax validator does not run.
If I import a project from the github repository explorer, the PHP is automatically validated.
Expected behavior Automatic and manual PHP syntax validation on projects created using "Create Remote Project"
Additional context I have not done any customization of the project. The problem project fails out of the box and the "Import Project" projects work out of the box.
Interesting. I was sure everybody forgot about RSE since is no longer really maintained and delivered with PHP package.
For now only way to enable PHP validation is via project -> configure.
Interesting. I was sure everybody forgot about RSE since is no longer really maintained and delivered with PHP package.
For now only way to enable PHP validation is via project -> configure.
My dev and production environments are both on an external server. I wasn't aware of an alternative yet to RSE, so I need it like it was air. When I click on the "Project" menu item at the top, there is no "configure" item. Am I looking in the wrong place?
OK, I think I figured it out. I had to Right-click the project then go to Properties->Project Natures and add PHP Properties and Remove Wikitext Natures. Its indexing and validating now so we will see if that resolves the issue. Is there a reason why, during project import, it doesn't think this is a PHP project like it does when I'm importing a github branch?
@zulus manually adding the project nature fixed the problem. Can the "Create Remote Project" feature be modified to add these natures automatically?