PHP eclipse not seeing autocomplete for javascript - php

I have recently taken the dive into eclipse environment from dreamweaver so I can have more control over my php with debugging etc. I decided to use Pulse to manage my extensions and start with a fresh Eclipse classic version and tailor it to my needs (I felt aptana was too bloated). The only problem I see is I create a new PHP projects and enable javascript and everything works fine but I am seeing PHP autocomplete to help with functions but it is not working for javascript syntax or html for autocomplete. Also I am curious about how jQuery will work in this environment also.
Also any other suggestions to use eclipse for web development would be awesome also. here is a listen of extensions I have installed:
Drupal for eclipse pdt
PHP development tools
Javascript development tools
Eclipse Web developer Tools

Related

How Setup PHP development environment to use Eclipse IDE, IIS,Team Foundation Server(TFS)

I am new to PHP scripting language. Basically I am a .Net guy, worked on various web applications using MVC, Razor, ASP.NET, C#...etc. I thought this the best time to practice on PHP and planning to start work on projects using PHP.
I am trying to setup PHP development environment in my local machine.
Please guide me in the following questions.
What are the available software’s I need to install in my machine to start PHP development (SQL, IIS, PHP scrip, TFS)?
In order to create team project I want to use Team Foundation Server (TFS) within the eclipse IDE. Pease tell me someone, how to connect TFS from eclipse IDE (or) any alternate ways?
How to configure IIS to server PHP web pages? Do I need to install additional software other than eclipse?
I have done the following steps,
I downloaded Java from java.com.
I downloaded eclipse from eclipse.org then installed to my machine and pointed to default workspace(C:/users/xxxx/workspace).
Installed add-on phpeclipse to eclipse IDE. This add-on downloaded from phpeclipse.com
Open Eclipse IDE=> help=> Install New Software=> Add.
Name: [PHPEclipse]
Location: [http://phpeclipse.sourceforge.net/update/stable/1.2.x/]
Ok=> followed instruction to complete installation.
After completing the above steps, I just created a new PHP project then wrote echo statement in .php page but it prompting me below error when I run my test project

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.

Working on a PHP web project from GitHub in Eclipse

I am collaborating on a PHP project with a colleague using GitHub. I want to work on the code in Eclipse, and test the web pages within Eclipse. I have installed eGit and PDK in Eclipse. I think I have imported the project into Eclipse properly. Now I want to test some of the pages in Eclipse so I can get an idea of whats going on. Do I have to install a web server on my machine, or is there something built in to Eclipse for this?
You seem to have the hots for Eclipse, but this is web development, not desktop development. If you want to properly test a web application, it is better to use the most popular browsers to test it in, such as IE, Firefox and Chrome.
You will need a web server, yes, here are a few :
http://en.wikipedia.org/wiki/Comparison_of_WAMPs
Note that those are for windows, but some of them are multi platform, such as XAMPP.
Also, for a web development IDE, I recommend PHPStorm, you can try it for free here :
http://www.jetbrains.com/phpstorm/
The PDT plugin of Eclipse doesn't include a web server with it, you can check the main PDT page where it instructs you to install a web server to run and debug your code.
Newer versions of PHP do include a a built in web server to run code so, technically you don't need a web server, but you should probably set up Apache/Nginx to mimic what your code would run on in a production environment for less deployment headaches.
A quick and easy web server would be XAMPP. XAMPP is easy to set up and run and comes with Apache, MySQL, PHP and some other stuff useful for setting up your development enviornment.

PHP GUI Editor (Eclipse)

Mostly I have worked with GWT so PHP for me is still new. I there something like a GUI editor for PHP? for Eclipse? Because with GWT there is a GUI editor to allow designers to develop web application UI graphically.
There is a version of Eclipse that goes with PHP. It is called PDT. Here is the download link. You should download xDebug seperately as well which is need to debug your php application where you can step into code. This is quite powerful.
Netbeans is another GUI that is popular with PHP developer.

Which Eclipse version to install on Linux for PHP development

I have Slackware 12.1 and wish to try out Eclipse for PHP/HTML/JavaScript development. However, it seems I'm facing myriad of possible options and I'd hate to miss the best thing and give up on Eclipse (I'm currently using Geany, but I'm missing some stuff like , for example, auto-complete for JavaScript)
I'm currently looking into just installing All-in-one PDT package version 1.0.3 from here:
http://www.eclipse.org/pdt/downloads/
However, that seems to be Eclipse 3.3. There's also Slackware package for 3.4 here:
http://repository.slacky.eu/slackware-12.1/development/eclipse/3.4/
But it says it a "Classic" version. I'm not sure how hard would be to add PHP, HTML, JavaScript support for it.
Note: I don't plan to run PHP through Eclipse's integrated web server or anything like that. I just want a powerful editor.
P.S. Also, recommendations for something better than Eclipse that is for Linux and free are also welcome. I already used Kate, SciTE, Geany, Emacs, Vi and Bluefish, so those are not interesting.
Important: whatever you recommend, please explain reasons why. Don't rush to be the fastest gun in the west, as I'll downvote such answers that only say "use this"
I second Aptana wholeheartedly. Since it is based very closely off of Eclipse, if you ever decide to do coding that Aptana will not cover, you are still used to the general interface of Eclipse.
I don't want to say it is cut down, because it is not. It just has what you need for the languages and technologies you will be using it for. You can still add other plugins to it as well for SVN, CVS, etc. The interface is a bit less crowded as well.
I don't do a whole lot of javascript coding, but man, that is where is stands out from the crowd. It does a fantastic job with Javascript.
Also, you don't have to use Aptana's built in Jetty server to run PHP; you can just tell it where you local Apache server is.
If you want auto-complete for JavaScript, in that case you should to use some plug-in for Eclipse such as Aptana Studio, but Aptana is more than auto-compete tool for javascript, it has included a lot of unnecessary things that you don't need for regular development.
I have the same problem to find the right solution for JavaScript in Eclipse, Aptana was ok, but I hate the additional features that Aptana includes, I didn't find any good tool which could be added to Eclipse, for JavaScript :( For script languages such as JSP, Eclipse is like a song...nice,sweet and smooth...;)
I would recommend to use Eclipse 3.3 with PHP Development Tools. The All-in-one package should work fine. The great thing about using Eclipse as a PHP IDE is that you have great integration for Zend Debugger/XDebug and you can use common Eclipse Extensions like Mylyn or Subclipse also for PHP.
Eclipse 3.4 isn't useful for PHP Development at the moment because the final version of PDT 2.0 got delayed.
You could also take a look at Aptana or the current Netbeans 6.5 Milestone which both support PHP. Until PDT 2.0 they both provide better JavaScript Support than the current Eclipse 3.3 based PDT. Aptana is also based upon Eclipse.
I'm still using Eclipse 3.3.2 and PDT 1.0.3, and I'm pretty happy with it. I tried upgrading to Eclipse 3.4, using a few recent builds of PDT 2.0, but it was buggy. It would hang for a long time in certain situations (like when I was copying text in a PHP editor). And it would keep re-parsing all my code every time I re-launched Eclipse, which took forever. These issues will probably get fixed eventually, but I'd hold on unless you really want Eclipse 3.4.
Aptana is a good choice, dedicated Eclipse clone for web development.
I personally use Krusader's editor, which is crippled version of Kate (KWrite). Fast, nice code highlight, and many useful shortcuts (like Ctrl+D to comment selection language wise).
Javascript with PDT Eclipse and the plugin jseclipse makes all your problems go away! :)
With jseclipse the regular "Goto function with F3 keyboard press" works.

Categories