How Install Upgrade compatibility Tool Magento and PhpStorm - magento2

How to Install Upgrade compatibility Tool Magento 2.4 and PhpStorm?
To magento 2.4
To PhpStorm

1. Install tool to Magento 2
composer create-project magento/upgrade-compatibility-tool uct
--repository https://repo.magento.com
sudo chmod +x ./uct/bin/uct
uct/bin/uct --help
Example:
uct/bin/uct upgrade:check app/code/Module/ -a 2.3.4 -c 2.4.5
2. Install Tool in PhpStorm Install plugin:
Click in: File / Settings… / Plugins / Click marketplace / install
Magento PhpStorm
After the installation, it is necessary to enable the integration with Magento:
Go to Settings > Frameworks.
Select the Enable Magento Integration checkbox. See Install PHPStorm plugin topic for more information.
You also need to provide:
Adobe Commerce or Magento Open Source installation path Adobe
Commerce or Magento Open Source version (for example, 2.4.4)
Default license name for new modules (by default, Proprietary)
3. Inspection code, visualize modules by severity and number of incompatibilities
Go to Settings > Editor > Code Style > Inspections
Click in > click in Duplicate
Add name profile: UTC default
Click in Reset in empty
Select UTC clic en check
Click to Apply and OK
4. Tool to use it
Click in: tools / Configure the upgrade compatibility Tool Select
current: Version: 2.3.3
Select coming: Version 2.4.4-beta4
Path to analyse: /root/project
Min issue level : WARNING
Click OK
5. More info:
https://developer.adobe.com/commerce/php/best-practices/phpstorm/install/
https://experienceleague.adobe.com/docs/commerce-learn/tutorials/upgrade/uct-phpstorm.html?lang=en

Related

NetBeans 8 PHPUnit

I have installed PHPUnit follows to their website instructions.
When I'm trying to generate test class
I got this message:
"D:\wamp\bin\php\php5.4.12\phpunit-skelgen.bat" "--ansi"
"generate-test" "main" "D:\Projects\tdd\main.php" "mainTest"
"D:\Projects\tdd\tests\mainTest.php"
The referenced parameter '--ansi' is not registered.
Done.
This is happening in Windows and Linux environment as well.
It happened the same to me. It seems that we were using the old phpunit-skelgen 1.2.1 version. Apparently, NetBeans 8.0.1 assumes you are using the newest version of phpunit-skelgen, that is 2.0.1.
download the new skelgen phar and update the batch file (windows) and you are good to go .
for visual guide follow these blog.
http://kevindaus.blogspot.com/2015/01/fix-netbeans-8-create-test-problem.html
You can install it via composer globally which will also currently give you v2.0.1:
composer global require "phpunit/phpunit-skeleton-generator=*"
Then put C:\Users\[username]\AppData\Roaming\Composer\vendor\bin\phpunit-skelgen.bat into Netbeans Tools > Options > PHP (tab) > Frameworks & Tools (tab) > PHPUnit section.

Install manually grails

I want to know how to install manual a grails plugin (2.0.3 version) in STS.
I found grails plugin here http://grails.org/download
I tried to install it by cliking on Help -> Install New Software -> Clicking ‘Add’ then I had this error "Could not find jar:....grails-2.0.3.zip!"
Thanks
In STS go to Window > preferences> groovy > grails and select a grails directory for a particular version.
Also you can download the latest release and compiler from Dashboard > Extensions.
In STS go to options like Window-->Preference-->Groovy..>Grails--> then click add button locate the Grails path which you located in your system

"Updates are not permitted" in Eclipse -bug or feature?

This is the situation: I am the admin of a shared installation of Eclipse, and I want regular users (who do not have write-permission to the installation directory) to be able to update existing plugins. If they try this now they get an error saying something like:
"Your original request has been modified.
[Plugin name] will be ignored because it is already installed, and updates are not permitted.
..."
It works perfectly well for users to install new plugins, just not update existing ones.
Steps to reproduce:
Install Eclipse (I've tried, among others, Eclipse Classic 3.6.2 and
3.7, in Linux SUSE Enterprise 10).
As an admin with write-permission to the installation directory, install a plugin, e.g. EGit 1.0 from
http://download.eclipse.org/egit/updates-1.0
As a user (without
write-permission), try to install a newer version of the plugin (e.g.
EGit 1.3 from http://download.eclipse.org/egit/updates-1.3).
Perhaps related: If a regular user opens "About Eclipse SDK --> Installation Details --> Installed Software", the "Update" and "Uninstall" buttons are greyed out for every item on the list, though they are not for the admin.
So my questions are: Is this on purpose? and: Can I do something to allow users to update plugins?
I just have the same error. I removed the plugin of the update configuration file (but it's not the best solution)
%eclipse_home%\configuration\org.eclipse.update\platform.xml
This error is easily reproducible, install a plugin directly into the main configuration directory, and do a manual plugin install, like :
%eclipse_home%\eclipse.exe -configuration %eclipse_home%\configuration
Install > New software ...
So, the update will not working if you do that.
To correctly install a plugin, you just have to drop it into the "dropins" dir, like :
%eclipse_home%\configuration\dropins\yourplugindir
Then, the user could use it, or do an update
(init configuration) %eclipse_home%\eclipse.exe -initialize
(refresh workspace) %eclipse_home%\eclipse.exe -clean
%eclipse_home%\eclipse.exe
Install > New software ...
The Eclipse runtime options
Best regards,

Installing ADT on Eclipse Indigo

On Eclipse Indigo 64-bit, I tried to install ADT (Android Development Tools) plugin ver 15.0. But I get this error :
Cannot complete the install because one or more required items could
not be found. Software currently installed: Shared profile
1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) Missing requirement: Shared profile 1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found
Do I need to install an eclipse dependency ?
I installed eclipse into /opt as root. I had this exact issue.
Seems that this has something to do with permissions (Yeah, great error message, I know).
I simply installed the plugins while running eclipse as root:
user#computer ~$ sudo eclipse &
Problem solved!
EDIT:
Instead of this, when you install it, you can change the ownership of the eclipse files so that you don't have to run as super user every time you want to install an addon.
user#computer /opt $ sudo chown -R user eclipse/
It's an Eclipse bug, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350645
You shouldn't need to be administrator to install additional plugins...
Alright... this solved my problem:
Open Eclipse
Go to Help > Install New Software > click on Available Software Sites.
Make sure that "http://download.eclipse.org/releases/indigo" is checked.
Then.. enable the "contact all update sites.." option on the Install new software page.
You should be all set!
Try to enable the "contact all update sites.." option on the Install new software page.
That said, ADT should not have a dependency on epp packages, unless you have some other software installed along with Eclipse. Please make sure you're using one of the following Eclipse versions:
Eclipse IDE for Java Developers
Eclipse Classic (versions 3.5.1 and higher)
Eclipse IDE for Java EE Developers
Follow instructions on http://developer.android.com/sdk/eclipse-adt.html thereafter.
Run Eclipse with administrator priviledges... If on Windows right click, and select run as admin
Try to download the SDK archive and follow these instructions, it worked for me.
http://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting
Download the ADT Plugin zip file (do not unpack it):
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog, click Archive.
Select the downloaded ADT-21.0.0.zip file and click OK.
Enter "ADT Plugin" for the name and click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
Lastly, when the installation completes, restart Eclipse.

How to install the Eclipse plugin for Symfony 2?

I want to install the Eclipse plugin for Symfony 2. But I'm stuck at the start.
I'm following the guide at http://pulse00.github.com/Symfony-2-Eclipse-Plugin/.
Prerequisites
At the current stage the Symfony Eclipse Plugin requires a nightly
build of the PHP Development Tools (PDT), as there have been some
changes to the way extenders can hook into PDT. This nightly build can
be downloaded as a build artifact from the eclipse continuous
integration site. You'll need to download a file called
pdt-Update-N[TIMESTAMP]>.zip by clicking the latest build in the build
history -> Build artifacts -> build/N[TIMESTAMP] .
So, I visited the "eclipse continuous integration site" at https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/ but I couldnt find the file they said: pdt-Update-N[TIMESTAMP].
I just can't find it there. I tried downloading some other files but don't know what to do with them.
#Tool no nightly-build of PDT is needed anymore, simply add the updatesite and install the plugin: http://symfony.dubture.com/installation/
I was running into the same issue. I found this link which is in french, but I was able to gleam the following steps:
Go here
Where it says "build / N0000000000000", click the N00000000000
Then look in the file list near the bottom for the archive.
I found this post was particularly helpful for me
http://www.symfony-zone.com/wordpress/2011/11/07/how-to-build-a-great-eclipse-environment-for-symfony2-development/
As noted in the installation instructions for the Symfony2 Eclipse plugin on Github
https://github.com/pulse00/Symfony-2-Eclipse-Plugin#readme
just add the update site to your available software sites (Help > Install new software > Add)
http://p2.dubture.com