PHP Pydev Eclipse (Linux or Mac)

Source: Internet
Author: User
Tags gtk using git

For development, it is important to get a good command of the IDE. Although I am also the Vim party, but when the project becomes large, the advantage of vim is difficult to embody. For a single file, Vim is efficient, but for engineering, it's better for the IDE. Links to the Eclipse website and Pydev.

Php

First download eclipse. Here at Eclipse. Can be based on development needs. Here we choose the Eclipse of PHP. Inside help us to configure the PHP plugin. Of course, the premise is that the system has PHP installed.

Python

In addition we need to download Pydev this plugin, for Python development, this is a very good plug-in. Here I saved the content of the download, Pydev download After the installation is also very simple (temporarily is the latest, but must also have the old version of the day it). Unzip, there will be 2 directories, the features and plugin corresponding directories are lost in your eclipse's home directory under the corresponding features and plugin inside. Restart Eclipse, create a new project, you should be able to see the project category of Pydev, select it.

Eclipse Project Properties Configuration

Then, start creating a new project, and if you need to import code from somewhere else into the project, there may be some false positives. The performance is that some packages and classes are right, but Eclipse does give them a red line, looks cool, and the team's code is not able to jump code. This problem is solved in this way. Open the Property menu and go inside the pydev-pythonpath. Set the source folder inside. Add the main code directories, then refresh the project catalog, and the red lines should disappear. Should be the plugin team the entire project is not scanned complete, and the root cause is that you do not have to set the plug-in required several variables bar (personal guess ...) )。


KDE Eclipse Flash Back

There is also a problem that I have encountered, that is, under Linux, I am the KDE desktop, eclipse often crashes. This problem has been bothering me for a long time, and I felt a little frustrated that Linux was incapable of development. The reason behind the eclipse Flash-back is the GTK problem. You can change it to gnome. It can be run on KDE as well. It's not really a big problem. So, with Linux development is possible, but we are not enough to understand. The original post is here. I changed gtk2theme from OXGEN-GTK to Gnome's default, and I never saw crash again.


The only problem now is that I have imported the project and cannot be identified. The package cannot be parsed. When importing other projects, you should create a project and then import something else. Direct import of entire filesystem instead of existing projects there is no problem now, so far, everything is good. Thank Ecipse for importing the project.

Note the Eclipse version
Another problem is that eclipse cannot parse the path of the PHP project and cannot jump between the lines. I put my project into the recent, I found that eclipse is not very good analysis, the problem is that PHP is not able to parse the path. I suspect the PHP version of the problem, found that the version of PHP interpreter in Eclipse is still 5.3, but I would like to set to 5.5 is not optional, suspect that this eclipse plug-in has a problem, originally this eclipse is I downloaded 1 years ago version, of course, older , and then went to download a new one, sure enough, to solve the problem.

At this point, all of the eclipse issues are taken care of, I am accustomed to using git,eclipse to git support is also very good, do not need me to find git eclipse plugin, at present, eclipse everything is good.

PHP Pydev Eclipse (Linux or Mac)

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.