Skip to content

Commit 65abeeb

Browse files
author
Vitaliy Boyko
committed
Merge branch '4.0.0-develop' of github.com:magento/magento2-phpstorm-plugin into 3.2.1->4.0.0-forwardport
� Conflicts: � .github/workflows/gradle.yml � CHANGELOG.md � build.gradle � resources/META-INF/plugin.xml � src/com/magento/idea/magento2plugin/actions/generation/dialog/validator/rule/PhpDirectoryRule.java
2 parents 21de645 + 861a74d commit 65abeeb

File tree

71 files changed

+1557
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1557
-104
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Run automated tests
55

66
on:
77
pull_request:
8-
branches: [ master, 3.2.1-develop ]
8+
branches: [ master, 4.0.0-develop ]
99

1010
jobs:
1111
build-linux:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
66

7+
## 4.0.0
8+
79
## 3.2.1
810

911
### Fixed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
## Works with
2424

25-
* PhpStorm >= 2020.3
25+
* PhpStorm >= 2021.1
2626
* JRE >= 11
2727

2828
## Features
@@ -43,8 +43,11 @@
4343

4444
1. Check out this repository
4545
1. Open a folder with the project in the IntelliJ Ultimate using the `open` action button.
46-
1. Make sure that you on the latest develop branch (e.g `1.0.0-develop`)
47-
1. Right-click on the `build.gradle` file, choose "Import Gradle project" (you need to have Gradle plugin installed)
46+
1. Make sure that you on the latest develop branch (e.g `4.0.0-develop`)
47+
1. Right-click on the `build.gradle` file, choose "Import Gradle project" (if this is not exist look for "Build module '<root folder name>'") (you need to have Gradle plugin installed)
48+
1. Check if the right SDK version is used for the project.
49+
- Current Java version for the project is **java 11**, so you should additionally download **SDK 11** and choose it in the module settings: `Right click by the project root > Open Module Settings > Project Settings > Project > Project SDK`
50+
- Check if right SDK version is used for the Gradle plugin: `Intellij IDEA > Preferences... > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM` and choose your JDK.
4851
1. When the Gradle sections appeared in the right bar, navigate there and right-click `magento-2-php-storm-plugin > Tasks -> Intellij -> runIde`
4952
1. Click `Run "magento-2-php-storm-plugin"` to run the plugin. You should see a new instance of IntelliJ launched with the plugin installed. Make sure the plugin is enabled in IntelliJ settings and indexing is finished. Plugin features should be accessible at this point.
5053

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ repositories {
1515
}
1616

1717
group 'com.magento.idea'
18-
version '3.2.1'
18+
version '4.0.0'
1919

2020
apply plugin: 'org.jetbrains.intellij'
2121
apply plugin: 'java'
2222
apply plugin: 'idea'
2323
apply plugin: 'groovy'
2424
apply plugin: 'org.jetbrains.changelog'
2525

26-
def phpPluginVersion = System.getProperty("phpPluginVersion", "203.5981.175")
27-
def ideaVersion = System.getProperty("ideaVersion", "2020.3")
26+
def phpPluginVersion = System.getProperty("phpPluginVersion", "211.6693.111")
27+
def ideaVersion = System.getProperty("ideaVersion", "2021.1")
2828
def javaVersion = 11
2929

3030
sourceCompatibility = javaVersion
@@ -41,7 +41,7 @@ intellij {
4141
'properties',
4242
'CSS',
4343
'JavaScriptLanguage',
44-
'com.intellij.lang.jsgraphql:2.7.0',
44+
'com.intellij.lang.jsgraphql:2.9.1',
4545
'platform-images',
4646
'copyright'
4747
]

gradle-tasks/checkstyle/checkstyle.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,8 @@
330330
</module>
331331
</module>
332332
<module name="SuppressWarningsFilter"/>
333+
<module name="RegexpHeader">
334+
<property name="header" value="^\/\*\n \* Copyright © Magento, Inc."/>
335+
<property name="fileExtensions" value="java"/>
336+
</module>
333337
</module>

resources/META-INF/plugin.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<idea-plugin require-restart="true">
88
<id>com.magento.idea.magento2plugin</id>
99
<name>Magento PhpStorm</name>
10-
<version>3.2.1</version>
10+
<version>4.0.0</version>
1111
<vendor url="https://github.com/magento/magento2-phpstorm-plugin">Magento Inc.</vendor>
1212

1313
<description><![CDATA[
@@ -24,7 +24,7 @@
2424
</change-notes>
2525

2626
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
27-
<idea-version since-build="203.5981.155"/>
27+
<idea-version since-build="211.6693.111"/>
2828

2929
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products
3030
on how to target different products -->
@@ -96,6 +96,9 @@
9696
<action id="OverrideInTheme.Menu" class="com.magento.idea.magento2plugin.actions.generation.OverrideInThemeAction">
9797
<add-to-group group-id="ProjectViewPopupMenu"/>
9898
</action>
99+
<action id="MagentoCreateAWebApiDeclaration.Menu" class="com.magento.idea.magento2plugin.actions.generation.NewWebApiDeclarationAction">
100+
<add-to-group group-id="EditorPopupMenu"/>
101+
</action>
99102

100103
<action id="CopyMagentoPath"
101104
class="com.magento.idea.magento2plugin.actions.CopyMagentoPath"
@@ -246,6 +249,8 @@
246249
<defaultLiveTemplates file="/liveTemplates/MagentoPWA.xml"/>
247250

248251
<postStartupActivity implementation="com.magento.idea.magento2plugin.project.startup.CheckIfMagentoPathIsValidActivity"/>
252+
253+
<errorHandler implementation="com.magento.idea.magento2plugin.project.diagnostic.DefaultErrorReportSubmitter"/>
249254
</extensions>
250255

251256
<extensions defaultExtensionNs="com.jetbrains.php">

resources/META-INF/pluginIcon.svg

Lines changed: 41 additions & 1 deletion
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
**Describe the bug** (*)
2+
3+
${BUG_DESCRIPTION}
4+
5+
```
6+
${STACK_TRACE}
7+
```
8+
9+
**To Reproduce** (*)
10+
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior** (*)
18+
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots**
22+
23+
If applicable, add screenshots to help explain your problem.
24+
25+
**Please complete the following information:** (*)
26+
27+
- OS: [e.g. MacOS or Ubuntu Linux 20.04]
28+
- PhpStorm/Intellij version: [e.g. 2019.3.3]
29+
- Plugin Version: [e.g. 1.0.0]
30+
31+
**Additional context**
32+
33+
Add any other context about the problem here.

resources/fileTemplates/code/GitHub New Bug Issue Body Template.txt.html

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<route url="/V1/${ROUTE}" method="${METHOD}">
2+
<service class="${SERVICE}" method="${SERVICE_METHOD}"/>
3+
<resources>
4+
<resource ref="${RESOURCE}"/>
5+
</resources>
6+
</route>

0 commit comments

Comments
 (0)