Skip to content

Commit c295277

Browse files
author
Vitaliy Boyko
committed
Merge branch '4.0.0-develop' of github.com:magento/magento2-phpstorm-plugin into forwardport3_2_2->4_0_0
� Conflicts: � .github/workflows/gradle.yml � CHANGELOG.md � build.gradle � resources/META-INF/plugin.xml � resources/META-INF/pluginIcon.svg
2 parents c17aa3d + dc5041f commit c295277

File tree

106 files changed

+2516
-136
lines changed

Some content is hidden

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

106 files changed

+2516
-136
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.2-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.2
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.2'
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: 36 additions & 16 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.2</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"
@@ -150,57 +153,72 @@
150153
<directoryProjectConfigurator implementation="com.magento.idea.magento2plugin.project.ProjectDetector"/>
151154

152155
<localInspection language="PHP" groupPath="PHP"
153-
shortName="PluginInspection" displayName="Inspection for the Plugin declaration"
154-
groupName="Magento 2"
156+
shortName="PluginInspection"
157+
bundle="magento2.inspection" key="inspection.displayName.PluginInspection"
158+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
155159
enabledByDefault="true"
156160
level="ERROR"
157161
implementationClass="com.magento.idea.magento2plugin.inspections.php.PluginInspection"/>
158162

159163
<localInspection language="PHP" groupPath="PHP"
160164
shortName="ModuleDeclarationInRegistrationPhpInspection"
161-
displayName="Inspection for the Module declaration in the `registration.php` file"
162-
groupName="Magento 2"
165+
bundle="magento2.inspection" key="inspection.displayName.ModuleDeclarationInRegistrationPhpInspection"
166+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
163167
enabledByDefault="true"
164168
level="ERROR"
165169
implementationClass="com.magento.idea.magento2plugin.inspections.php.ModuleDeclarationInRegistrationPhpInspection"/>
166170

167171
<localInspection language="XML" groupPath="XML"
168172
shortName="ObserverDeclarationInspection"
169-
displayName="Duplicated Observer Usage in events XML"
170-
groupName="Magento 2"
173+
bundle="magento2.inspection" key="inspection.displayName.ObserverDeclarationInspection"
174+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
171175
enabledByDefault="true"
172176
level="WARNING"
173177
implementationClass="com.magento.idea.magento2plugin.inspections.xml.ObserverDeclarationInspection"/>
174178

175179
<localInspection language="XML" groupPath="XML"
176180
shortName="PluginDeclarationInspection"
177-
displayName="Duplicated Plugin Usage in di XML"
178-
groupName="Magento 2"
181+
bundle="magento2.inspection" key="inspection.displayName.PluginDeclarationInspection"
182+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
179183
enabledByDefault="true"
180184
level="WARNING"
181185
implementationClass="com.magento.idea.magento2plugin.inspections.xml.PluginDeclarationInspection"/>
182186

183187
<localInspection language="XML" groupPath="XML"
184188
shortName="CacheableFalseInDefaultLayoutInspection"
185-
displayName="Inspection for disabled cache site-wide"
186-
groupName="Magento 2"
189+
bundle="magento2.inspection" key="inspection.displayName.CacheableFalseInDefaultLayoutInspection"
190+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
187191
enabledByDefault="true" level="WARNING"
188192
implementationClass="com.magento.idea.magento2plugin.inspections.xml.CacheableFalseInDefaultLayoutInspection"/>
189193

190194
<localInspection language="XML" groupPath="XML"
191195
shortName="ModuleDeclarationInModuleXmlInspection"
192-
displayName="Inspection for the Module declaration in the `etc/module.xml` file"
193-
groupName="Magento 2"
196+
bundle="magento2.inspection" key="inspection.displayName.ModuleDeclarationInModuleXmlInspection"
197+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
194198
enabledByDefault="true" level="ERROR"
195199
implementationClass="com.magento.idea.magento2plugin.inspections.xml.ModuleDeclarationInModuleXmlInspection"/>
196200

197201
<localInspection language="XML" groupPath="XML"
198202
shortName="AclResourceXmlInspection"
199-
displayName="Inspection for the Title XML required attribute in the `etc/acl.xml` file"
200-
groupName="Magento 2"
203+
bundle="magento2.inspection" key="inspection.displayName.AclResourceXmlInspection"
204+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
201205
enabledByDefault="true" level="ERROR"
202206
implementationClass="com.magento.idea.magento2plugin.inspections.xml.AclResourceXmlInspection"/>
203207

208+
<localInspection language="XML" groupPath="XML"
209+
shortName="WebApiServiceInspection"
210+
bundle="magento2.inspection" key="inspection.displayName.WebApiServiceInspection"
211+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
212+
enabledByDefault="true" level="WARNING"
213+
implementationClass="com.magento.idea.magento2plugin.inspections.xml.WebApiServiceInspection"/>
214+
215+
<localInspection language="XML" groupPath="XML"
216+
shortName="InvalidDiTypeInspection"
217+
bundle="magento2.inspection" key="inspection.displayName.InvalidDiTypeInspection"
218+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
219+
enabledByDefault="true" level="WARNING"
220+
implementationClass="com.magento.idea.magento2plugin.inspections.xml.InvalidDependencyInjectionTypeInspection"/>
221+
204222
<internalFileTemplate name="Magento Composer JSON"/>
205223
<internalFileTemplate name="Magento Registration PHP"/>
206224
<internalFileTemplate name="Magento Module XML"/>
@@ -246,6 +264,8 @@
246264
<defaultLiveTemplates file="/liveTemplates/MagentoPWA.xml"/>
247265

248266
<postStartupActivity implementation="com.magento.idea.magento2plugin.project.startup.CheckIfMagentoPathIsValidActivity"/>
267+
268+
<errorHandler implementation="com.magento.idea.magento2plugin.project.diagnostic.DefaultErrorReportSubmitter"/>
249269
</extensions>
250270

251271
<extensions defaultExtensionNs="com.jetbrains.php">
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>

resources/fileTemplates/code/Magento Web Api Declaration.xml.html

Whitespace-only changes.

0 commit comments

Comments
 (0)