Netbeans PHP CS Fixer issue - netbeans

I'm trying to install the useful plugin PHP CS Fixer on Netbeans 8.2.
I got used to have it on Netbeans 8 and it worked well and I wish I could not go back to that version just for that.
Note that the CodeSniffer has been successfully set up.
When I try to install the plugin 0.53 it says that I need additional plugin which I really don't have a clue of what they are.
Following the errors
The plugin org.netbeans.modules.projectuiapi.base is requested in version 1.83.1.9. The following plugin is affected:       PHP CS Fixer
Some plugins require plugin org.openide.filesystems.nb to be installed.
The plugin org.openide.filesystems.nb is requested in version 9.6.1. The following plugin is affected:       PHP CS Fixer
Some plugins require plugin org.openide.util.ui to be installed.
The plugin org.openide.util.ui is requested in version 9.3.1. The following plugin is affected:       PHP CS Fixer Some plugins not installed to avoid potential installation problems.
Any suggestions?
Thanks

NetBeans 8.2 natively includes the plugin.
All you have to do is to navigate to the Options window and setup the path where the PHP CS Fixer .phar file is located in the appropriate tab. Of course if you don't have the .phar file you have to go and download it first, by clicking "Install now" from the official PHP CS Fixer website.
Since one picture speaks more than 1000 words, here is a screenshot:
Last but not least: in order to use PHP CS Fixer in NetBeans 8.2 you must use the obscure menu: Source > Inspect...
Having it nice and quick on the context menu like in the past, was too easy and practical ;)
Took me 2 hours to figure this "detail" out.

To anyone else who found this page and is still having difficuly, please take in to account that on modern versions of php-cs-fixer, you cannot use the level option.
Instead, under custom options, set something like:
--rules=#Symfony

Related

Is there a proper step by step guide to installing and using PhoneGap?

Is it just me or the documentation for PhoneGap installation is ridiculous? The steps are all over the place and no clear path to installing and using it. I found a couple of decent guides for use on MAC but nothing that is clear for Windows.
Got frustrated and uninstalled everything, eclipse, cordova, ant, android.
I want to just restart fresh with a clean install. Can anyone show me to a guide which has a step by step guide to windows. Or maybe you could guide me to exactly which are the stuff I need to install for phoneGap to work? For example is ant(apache) even needed? Not every guide mentions it.
I believe over all, the steps includes 2 parts. 1 is installing the various components such as eclipse and so on. 2nd is to interlink all these various components.
Not exaggerating but I've been at this for a week plus now and have looked around for a clear instruction and found nothing. Please help.
PS: If PhoneGap can be installed and linked with NetBeans, it would be great to know exactly how. Tnks.
You have only java, javafx in netbeans because you installed netbeans java edition.
Cordova is in the HTML5 package which is included in other editions like java EE edition or php edition.
In your netbeans version, you have to install the plugin:
Tools->Plugins-Available plugins, check HTML5 and click install.
Then you should be able to use the New project->HTML5->Cordova application.
You will still need cordova, android, ant... but the difference is that netbeans should setup everything for you.
Sorry I can't confirm as I have installed everything before netbeans.

code completion do not work in Nodeclipse 0.4

Are there something that I messed up, when installing Nodeclipse 0.4 so I can not do code completion since my code is worked.
EDIT:
as you can see at picture,
- the red one is Node mode in Eclipse Kepler which enable after Nodeclipse installed
- the blue one is Java EE IDE in Eclipse which I use as to installed Nodeclipse
- the yellow one is Node code in Eclipse which default exist if I chose the example
- the green is Node code class representative.
if I press CTRL+Space in console., there is not any code completion showed up which should showed up cause I already have JsHint v. 0.9.6
if I follow instructions of installation.. then..
I got this list.. (note: the disables means I already installed it.)
then.. I got this message..
ANOTHER ADDITIONAL EDIT:
as the comment of Nodeclipse developer,
if I reproduced but to installed JSHint alone then it goes with this message..
Thanks,
Ahmad
There is work in progress on content assist for Node.js modules
Content assist for Eclipse JSDT based Editor
fork with work in progress:
https://github.com/Enide/nodeclipse-1/compare/Nodeclipse:master...master
(source: nodeclipse.org)
Code completion is depending on what code you have. Could you please share your snippet?
Version 0.4 has Eclipse JSDT standard functions. Node.js specific libraries support is not yet implemented.
Opened issue for new feature is #50 support for node.js style module definitions
console is defined inside node.js, and as such is not yet supported.
For second part of the question (about installation using Enide .p2f file):
if I follow instructions of installation.. then..
some update sites like StartExplore are not stable and often unavailable
So if there is problem installiing, The recommendation would be to install less plugins in one time (only 1 at a time, for example)
(Then there is way to know what exact plugin update site is unavailable at this time)
For nodeclipse itself latest Eclipse (Like 4.2.2 IDE for Java EE Developers) is recommended & enough.

Eclipse, how to combine 2 editions

I'm using the PHP edition of Eclipse, but was told that I also need the Java EE edition. I'd like to install them both in the same install (single launch) and not have to open 2 editions in parallel. Is there a way to easily get this done? I'm new to eclipse, so detailed instructions are welcome.
I would do it the other way around: first install Eclipse IDE for Java EE developers and then add the PHP Development Tools (PDT) from the update site (instructions here).
This should be pretty straightforward. Download one edition, then have it install the plugins comprising the other. This is done via Install New Software in the Help menu; first time out you will need to hit the Add button and tell it about the update site URL for the plugin set you want to install. You can find the update site URLs via the main Eclipse website.
It looks like the Java EE version is a superset of the PHP one, at least for things mentioned in this chart...
http://www.eclipse.org/downloads/packages/compare-packages
So, I would start with Java EE. Check the plugins and features and use the Help->Install dialog to add any new plugins you want.
In your case, I would start with the "Eclipse IDE for Java Developers" and then add those plugins needed for PHP. From this chart, it looks like you'll need to add Webtools and the PDT.

Installing eclipse Web Tools Platform (WTP) - update site does not work?

I'm trying to install the WTP (web platform tools) to my Eclipse installation so I can get the XSL transformations working. The base Eclipse they installed for me here was the plain Java IDE (the splash screen says "Ganymede" if that means anything). Looking at this site, the URL to get the download should be here: http://download.eclipse.org/webtools/updates/ ...But when I give that URL to the Eclipse update manager, I get an error telling me: "No repository found at http://download.eclipse.org/webtools/updates/"
Anyone else had this problem? Anyone know what might be up? Anyone know how to get the xsl-transform plugin installed?
EDIT:
I should have mentioned before that I want to find a way to do this without installing any new instances of Eclipse. This process will eventually be sent to several other developers who already have Eclipse (same version that I'm testing with) and I'd rather just do an in-place upgrade rather than have everyone go and install a new product.
UPDATE:
I found another plugin, Xcarecrows 4 XML which can also do XSL transforms. The interface is ugly and seems more than a little quirky, but it's also a small download, and at least it runs and transforms. Unless I can find an easy way to get WTP working, I'll probably just stick with this.
You can try and install WTP through the main Ganymede update site:
http://download.eclipse.org/releases/ganymede/
Or you can download the latest Java EE bundle and use that instead of your current Eclipse
(do NOT unpack it on top of your current Eclipse, but unpack it elsewhere, to test that second installation: it will come with WTP inside)
Note: check then "How do I start Eclipse" to point to your existing workspace in order to see all your previous project in your new Eclipse installation.
As mentioned in your link, XSL Tools is now part of WTP (for Eclipse 3.5 Galileo), and that may explain why your Eclipse Ganymede (3.4) might not interpret correctly the P2 update site for WTP (P2 being the new Eclipse provisioning mechanism introduced late in the 3.4 release cycle)
For Eclipse 3.5, you have an XSL Tools installation illustrated here:
But Eclipse3.4 is more likely to be compatible with XSLT0.5 and you will need a separate installation, because "XSL Tools" wasn't yet part of WTP.
I am not sure, however, where to find such an installation package within the Eclipse projects.
Use the following update site :
For Juno :
http://download.eclipse.org/webtools/repository/juno/
For Indigo :
http://download.eclipse.org/webtools/repository/indigo/
I'm assuming you don't have any firewall exceptions for Eclipse right?
The site for the WTP update is indeed the one you've listed. Maybe post a screenshot? You've added it specifically to your remote update site list?
Either way try a manual update which should be more reliable and get you up and running for now.
All-In-One Update (Eclipse IDE included):
Go to the Eclipse Download site.
Grab the all-in-one package: Eclipse IDE for Java EE Developers
Install, have a coffee and enjoy. (WTP is included)
Manual Update your existing installation of Eclipse:
Download the applicable WTP source package to your desktop
Shutdown Eclipse
Extract the package to your Eclipse installation directory
Startup Eclipse. (WTP is now available)
Follow the steps in the FAQ at http://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F .
Are you behind a proxy? If so, you need to make sure you configure your proxy settings in Eclipse.
Window > Preferences
General > Network Connections
Ok, I can probably get it working if I do a clean install of Eclipse. I can do that on my machine, but not the other team members' machines (at least not without going through many emails and paper work) so I'm going to say that XCarecrows 4 XML is the solution. It is able to do XSL transformations in Eclipse 3.4 and doesn't require anything else to be installed. Since XSLT is all I need, the plugin will do.
you can use the marketplace:
https://marketplace.eclipse.org/content/eclipse-java-ee-developer-tools-0
like the site says:
Drag to Install!Drag to your running Eclipse Workspace.

Setting up Eclipse for Java and PHP

I have already installed Eclipse for Java development. I'd also like to install Plugins for PHP, CSS/HTML and Javascript, but all the sites that I've checked only offer a 'All in one' package, so I could either download an all-in-one Java package or an all-in-one PHP package, but not both at the same time.
How do I set up my existing installation to also support PHP files?
I use PHPEclipse which can be installed as a regular Eclipse software update
The PDT can also be installed as an update.
For HTML/CSS etc, the WTP can be installed in a similar fashion.
If you already have Eclipse installed, follow the instructions at PDT Installation to install the PDT (PHP Development Tools). This will include the Web Tools Project (WTP), which brings editors and tools for HTML and CSS.
This issue made me nuts 2. First i downloaded the PDT eclipse, which would not take google plugins or apache ant. Then I downloaded the Eclipse SDK to use java ant GWT and could not load php onto it.
If you ask me, this program sucks. I like the idea, however the updates hardly ever work, and it does not support multiple coding languages like it says it does. Also the web site is shocking as it gives you 100 options to download.
Coulnt the have just made the one platform and then provided links to the plugins ???
Correct me if i am wrong guys, but trying to get PHP and Java working in eclipse is torture. Ive been stuck for 3 days now, installing and uinstalling.
One final rant, the download speeds of the eclipse servers are below 10kb, and take about half a day to install one update.
My prob is, I have to use it as the project i am working was archived with Eclipse.
Did you follow the steps presented on this installation page? There is a From update site section in which they describe how to install it from the Software Updates menu.
I had this problem recently.
I started with the J2EE Ganymede setup and added the PDT tools (via Update) afterwards.
Then I added Subclipse afterwards.
G.
(I wish they wouldn't change the eclipse pages all the time...)
Look for "runtime" on the downloads page for PDT (http://www.eclipse.org/pdt/downloads/)
Why do you want JDT and PDT in one installation? I usually set up different installations for different things. It just so easy, since you don't really need to install anything. I have two setups for PDT and at least 5 for JDT.
Install Aptana Studio plugin. In my experience it is much better then either PHPEclipse or PDT. However, YMMV.