Eclipse Oxygen does not mark occurrences - How to fix? - php
I have set up Eclipse Oxygen.1 4.7.1 (Build 20170914-1200) to work on a Symfony based PHP project.
Everything works fine but the highlight of occurrences (e.g. local variables, methods, etc.).
public function someMethod($paramA) {
doSomething($paramA);
...
$var = $paramA;
}
When I place the cursor within $paramA in the method signature, I would expect, that the occurrences of $paramA within the method body are highlighted. This was definitely the case when using Ecplise Mars some time ago. Any idea why this does not work?
I already checked Preferences/PHP/Editor/Mark/Occurrences where all options are checked/activated.
Preferences/General/Editors/Text Editors/Annotations/Occurrences seems to be setup correct as well (Vertical ruler: No, Overview ruler: Yes, Text as Highlight, Color: Grey, Includ in next/previous navigation: No)
Are there any other preferences which need to be checked?
This is the list of installed software:
Eclipse GitHub integration with task focused interface 4.8.0.201706111038-r org.eclipse.mylyn.github.feature.feature.group Eclipse EGit
Eclipse IDE for PHP Developers 4.7.1.20170914-1200 epp.package.php Eclipse Packaging Project
Eclipse Platform 4.7.1.v20170906-1700 org.eclipse.platform.feature.group Eclipse.org
Eclipse RCP 4.7.1.v20170906-1700 org.eclipse.rcp.feature.group Eclipse.org
Eclipse XML Editors and Tools 3.9.1.v201707252002 org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform
Git integration for Eclipse 4.8.0.201706111038-r org.eclipse.egit.feature.group Eclipse EGit
Git integration for Eclipse - Gitflow support 4.8.0.201706111038-r org.eclipse.egit.gitflow.feature.feature.group Eclipse EGit
Git integration for Eclipse - Task focused interface 4.8.0.201706111038-r org.eclipse.egit.mylyn.feature.group Eclipse EGit
JavaScript Development Tools 2.1.0.v201706011953 org.eclipse.wst.jsdt.feature.feature.group Eclipse Web Tools Platform
Mylyn Context Connector: Eclipse IDE 3.23.0.v20170411-2108 org.eclipse.mylyn.ide_feature.feature.group Eclipse Mylyn
Mylyn Task List 3.23.1.v20170623-0008 org.eclipse.mylyn_feature.feature.group Eclipse Mylyn
Mylyn Task-Focused Interface 3.23.0.v20170414-0629 org.eclipse.mylyn.context_feature.feature.group Eclipse Mylyn
Mylyn Tasks Connector: Bugzilla 3.23.1.v20170623-0008 org.eclipse.mylyn.bugzilla_feature.feature.group Eclipse Mylyn
Mylyn WikiText 3.0.6.201703111926 org.eclipse.mylyn.wikitext_feature.feature.group Eclipse Mylyn
Oomph Setup 1.9.0.v20170706-0615 org.eclipse.oomph.setup.feature.group Eclipse Oomph Project
PDT Extensions 0.23.1.201707041945 org.pdtextensions.feature.feature.group http://pdt-extensions.org
PHP CodeSniffer 1.3.0.R20111119000000 org.phpsrc.eclipse.pti.tools.codesniffer.feature.group Sven Kiera
PHP Copy/Paste Detection 0.2.2.R20100414000000 org.phpsrc.eclipse.pti.tools.phpcpd.feature.group Sven Kiera
PHP Depend 0.3.3.R20110627000000 org.phpsrc.eclipse.pti.tools.phpdepend.feature.group Sven Kiera
PHP Development Tools (PDT) 5.2.0.201709191002 org.eclipse.php.feature.group Eclipse PDT
PHP Development Tools (PDT) Composer Support 5.2.0.201709191002 org.eclipse.php.composer.feature.group Eclipse PDT
PHP Development Tools (PDT) Mylyn Integration 5.2.0.201709191002 org.eclipse.php.mylyn.feature.group Eclipse PDT
PHP Development Tools (PDT) PHPUnit Support 5.2.0.201709191002 org.eclipse.php.phpunit.feature.feature.group Eclipse PDT
PHP Development Tools (PDT) Remote Project Synchronization Support 5.2.0.201709191002 org.eclipse.php.rdt.sync.feature.group Eclipse PDT
PHP Development Tools (PDT) Zend Profiler Support 5.2.0.201709191002 org.eclipse.php.profiler.feature.group Eclipse PDT
PHP Mess Detector 0.1.0.R20110628000000 org.phpsrc.eclipse.pti.tools.phpmd.feature.group Dejan Spasic
PHP Tool Integration Core 1.6.0.R20111119000000 org.phpsrc.eclipse.pti.core.feature.group Sven Kiera
PHPUnit 0.8.0.R20111119000000 org.phpsrc.eclipse.pti.tools.phpunit.feature.group Sven Kiera
Remote System Explorer End-User Runtime 3.7.3.201704251225 org.eclipse.rse.feature.group Eclipse TM Project
Smarty Feature 0.10.0.201707132003 org.eclipse.php.smarty_feature.feature.group null
TM Terminal 4.3.0.201706140544 org.eclipse.tm.terminal.feature.feature.group Eclipse.org - Target Management
Twig Editor Feature 2.1.1.201707041935 com.dubture.twig.feature.feature.group https://github.com/pulse00
YEdit Feature 1.0.20.201509041456-RELEASE org.dadacoalition.yedit.feature.feature.group YEdit Project
I had the same problem at the beginning. Maybe it's your folder or project structure?
Mark concurrency does not work with me if the script was added via "Open Projects from File System ...".
Try to create "PHP Project" in Eclipse with the same name as your project. Then drag your scripts or even the whole folder structure into the newly created project, update with "Refresh" and the highlighting should work.
Related
Difference in Eclipse Mars and Eclipse MARS PHP instance
I have Eclipse Mars installed and I wish to try some PHP. I know there is a PHP add on for Eclipse in the Market place but also have found what appears to be a specific Eclipse for PHP instance that can be downloaded from the Eclipse website. My question is should I install the PHP plugin to my current Eclipse Mars install or install the specific Eclipse for PHP instance?
GUI tool for php web development
Like visual studio where we have two section source and design for web programming, is there any tool in linux where we can perform php web development which gives GUI+Source section for designing? Something like drag and drop adjustment for GUI part.
PDT for eclipse maybe an option for you. Eclipse runs on PC, Linux, and Mac. Aptana studio has built in support for php and is also available for linux, last but not least netbeans has php dev tools also, Jetbrains WebStorm (its not free), but Aptana is also based on Eclipse but is specifically geared towards web development and has built in support for debugging and as well as built in support for git if that matters to you. I personally don't use netbeans.
How to configure Eclipse for Phpcloud
I am looking for a guidline for step by step configuration Eclipse with PHPcloud. phpcloud have got a quick start guideline covering zend studio, Netbeans and PHP storm. I am using Eclipse for PHP Developers , Version: 3.0.2 PHPcould: https://my.phpcloud.com
Installing Aptana and Eclipse PDT - what should be main and what as a plugin
I would like to use an IDE for PHP Development using Zend framework & jQuery. I decided to use Aptana Studio. There is no PHP support in [Studio 2][2], so I have to use Eclipse PDT. My question is should I install Eclipse PDT first and the use Aptana as plugin? or install Aptana Studio and then install Eclipse PDT as a plugin? What are pros & cons of each method if any?
Install the Eclipse PDT first & use Aptana Studio as a plugin. You will benefit immensely from this, as there is very good support of auto-information for each & every method & class / object, along with its properties. One thing you need to take care is that you must need to create a Project for each & every work / project, otherwise it (support for auto-information feature) will not work, because Eclipse will search for the main definitions of classes. This good information support is not that much prevalent in Aptana Studio if you install it. So it's best to use it as a plugin with Eclipse PDT. Also you will be able to upload files & use the File Manager with Eclipse PDT, when you have installed the Aptana Studio as a plugin. Eclipse PDT also has a nice debugging feature, along with other useful features (which I've not yet used). Hope it helps.
here a step by step tutorial to install Eclipse PHP with aptana plugin or aptana studio with pdt plugin: http://aptanaandpdt.blogspot.com
1 - Eclipse 2 - Aptana as plugin As Aptana2 did not support php .... i thick will be better to use it as plugin
Aptana 3.0, still in beta, has support for PHP too (and Ruby on Rails and Python) http://aptana.org/products/studio3
No more in beta stage. 3.6.1 is available. http://www.aptana.com/products/studio3/download.html
How to install a PHP IDE plugin for Eclipse directly from the Eclipse environment?
I have a clean Eclipse Java SDK. I would like to make it suitable for developing PHP applications. So I need a PHP IDE plugin (or something like that). How could I install it from the Eclipse environment?
Easy as pie: Open Eclipse and go to Help-> Software Updates-> Find and Install Select "Search for new features to install" and click "Next" Create a New Remote Site with the following details: Name: PDT URL: http://download.eclipse.org/tools/pdt/updates/4.0.1 Get the latest above mentioned URLfrom - http://www.eclipse.org/pdt/index.html#download Check the PDT box and click "Next" to start the installation Hope it helps
To install PDT (PHP Development Tools) for PHP development environment is better in Eclipse. The following are the steps to install PDT in Eclipse (I'm considering version 3.7 (Indigo)): Open Eclipse (in my case Eclipse Indigo). Go to Help --> Install New Software... Expand the "Work with" drop down and select "Indigo - http://download.eclipse.org/releases/indigo". Expand "Programming Languages" from the list. Check PHP Development Tools (PDT) SDK Feature. Click "Next >" at the bottom and follow the further instruction of Eclipse. After successful installation of PDT: Go to Window --> Preferences and see the list as PHP at left panel.
Open up eclipse, go to "Help -> Install New Software". Enter: http://download.eclipse.org/releases/juno entry from the "Work with" dropdown. Under the "Web, XML, Java EE and OSGi Enterprise Developmet" category, select "PHP Development Tools (PDT) SDK Feature 3.1.1.201209101312".
The new URL for the repository is now http://download.eclipse.org/tools/pdt/updates/release. In Eclipse: open Help -> install new sofware -> add. Then paste this URL in the location. Mark the check boxes you want and click next.
Help --> Install New Software In work with select box , only I have selected Kepler - http://download.eclipse.org/releases/kepler And then under Programming language category you can find PHP Development tool. fyi :I have ubuntu
The best solution would be to go to http://projects.eclipse.org/projects/tools.pdt/downloads where you will find the URL to the most updated PDT, as most of the URLS listed above are hitting a 404. Then pasting the URL to eclipse.
Easiest Way To install PDT Run eclipse Click on "Help", "Install New Software" “Choose all available sites”, in search box type "php"(takes a while to load) => “programming languages” => "PHP Development Tools", => PhP Development Tools (PDT) SDK Feature. Restart eclipse File new => other => php . Should be able to follow from their
The URL which worked for me is http://download.eclipse.org/tools/pdt/updates/2.0/interim/. See also Stack Overflow question Installing PDT in Eclipse - No runtime option .. only SDK.
Eclipse for PHP Developers Package Looking for the Eclipse for PHP Developers Package? Due to lack of a package maintainer for the Indigo release there will be no PHP (PDT) package. If you would like to install PDT into your Eclipse installtion you can do so by using the Install New Software feature from the Help Menu and installing the PHP Development Tools (PDT) SDK Feature from the Eclipse Indigo Repo >> http://download.eclipse.org/releases/indigo Text grabbed from page: http://www.eclipse.org/downloads/php_package.php
Updated for 2019: As previously suggested, in the latest Eclipse, go to "Install New Software" in the Help Menu and click the "add" button with this URL http://download.eclipse.org/tools/pdt/updates/latest/ that should show the latest release of PHP Development Tools (PDT). You might need to search for "php" or "pdt". For Nightly releases you can use http://download.eclipse.org/tools/pdt/updates/latest-nightly/.