Skip to content

Commit 1bd5944

Browse files
author
Serhiy Zhovnir
committed
Merge branch '3.2.0-develop' of github.com:magento/magento2-phpstorm-plugin into feature/issue-179
# Conflicts: # resources/magento2/common.properties
2 parents 2709820 + 264c5ef commit 1bd5944

File tree

389 files changed

+12607
-1331
lines changed

Some content is hidden

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

389 files changed

+12607
-1331
lines changed

.github/workflows/gradle.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ name: Run automated tests
55

66
on:
77
pull_request:
8-
branches: [ master, 2.0.1-develop, 2.1.0-develop ]
8+
branches: [ master, 3.2.0-develop ]
99

1010
jobs:
1111
build-linux:
1212
runs-on: ubuntu-latest
1313

1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
16+
- name: Set up JDK 11
1717
uses: actions/setup-java@v1
1818
with:
19-
java-version: 1.8
19+
java-version: 11
2020
- uses: actions/cache@v2
2121
with:
2222
path: |
@@ -37,10 +37,10 @@ jobs:
3737

3838
steps:
3939
- uses: actions/checkout@v2
40-
- name: Set up JDK 1.8
40+
- name: Set up JDK 11
4141
uses: actions/setup-java@v1
4242
with:
43-
java-version: 1.8
43+
java-version: 11
4444
- uses: actions/cache@v2
4545
with:
4646
path: |
@@ -61,10 +61,10 @@ jobs:
6161

6262
steps:
6363
- uses: actions/checkout@v2
64-
- name: Set up JDK 1.8
64+
- name: Set up JDK 11
6565
uses: actions/setup-java@v1
6666
with:
67-
java-version: 1.8
67+
java-version: 11
6868
- uses: actions/cache@v2
6969
with:
7070
path: |
@@ -85,10 +85,10 @@ jobs:
8585

8686
steps:
8787
- uses: actions/checkout@v2
88-
- name: Set up JDK 1.8
88+
- name: Set up JDK 11
8989
uses: actions/setup-java@v1
9090
with:
91-
java-version: 1.8
91+
java-version: 11
9292
- uses: actions/cache@v2
9393
with:
9494
path: |

.github/workflows/gradlepublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
16+
- name: Set up JDK 11
1717
uses: actions/setup-java@v1
1818
with:
19-
java-version: 1.8
19+
java-version: 11
2020
- name: Gradle wrapper
2121
run: gradle wrapper
2222
- name: Grant execute permission for gradlew

.github/workflows/gradlepublishalpha.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Set up JDK 1.8
17+
- name: Set up JDK 11
1818
uses: actions/setup-java@v1
1919
with:
20-
java-version: 1.8
20+
java-version: 11
2121
- name: Gradle wrapper
2222
run: gradle wrapper
2323
- name: Grant execute permission for gradlew

CHANGELOG.md

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,99 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
6+
7+
## 3.2.0
8+
9+
## 3.1.0
10+
11+
### Added
12+
13+
- Extended `.phpstorm.meta.php` for more convenient autocomplete [#467](https://github.com/magento/magento2-phpstorm-plugin/pull/467)
14+
- Code generation for message queue in [#411](https://github.com/magento/magento2-phpstorm-plugin/pull/411)
15+
- Code generation for declarative schema [#453](https://github.com/magento/magento2-phpstorm-plugin/pull/453)
16+
- Inspection warning for disabled observer [#432](https://github.com/magento/magento2-phpstorm-plugin/pull/432)
17+
- The action item to the context menu to copy file path in the Magento format [#451](https://github.com/magento/magento2-phpstorm-plugin/pull/451)
18+
19+
### Fixed
20+
21+
- The null pointer exception on the Create Module Dialog
22+
23+
## 3.0.4
24+
25+
### Fixed
26+
27+
- Overriding the interface that generates invalid php code
28+
- Overriding a template from the base area
29+
- Disabled the ability to create a plugin for a class that implements `\Magento\Framework\ObjectManager\NoninterceptableInterface`
30+
31+
### Added
32+
33+
- `NoninterceptableInterface` case warning to the plugin inspection
34+
35+
## 3.0.3
36+
37+
### Fixed
38+
39+
- Fixed model generation with same names
40+
- Fixed NPTR exception in theme directory view model action
41+
- Fixed observer name validator
42+
- Fixed plugin name validator
43+
44+
## 3.0.2
45+
46+
### Fixed
47+
48+
- Fixed the Inject a View Model dialog
49+
50+
## 3.0.1
51+
52+
### Fixed
53+
54+
- Skipped IDEA include tag causing error
55+
- Fixed StringIndexOutOfBoundsException on PluginInspection
56+
57+
## 3.0.0
58+
59+
### Added
60+
61+
- Description for "Magento Routes XML" code template in [#349](https://github.com/magento/magento2-phpstorm-plugin/pull/349)
62+
- Code completion and reference navigation for table names and column names in `db_schema.xml` file in [#351](https://github.com/magento/magento2-phpstorm-plugin/pull/351)
63+
- Code completion and reference navigation for UI Component names in layout XMLs in [#354](https://github.com/magento/magento2-phpstorm-plugin/pull/354)
64+
- Description for "Magento Layout XML" code template in [#365](https://github.com/magento/magento2-phpstorm-plugin/pull/365)
65+
- Reference navigation for disabled plugins in `di.xml` in [#373](https://github.com/magento/magento2-phpstorm-plugin/pull/373)
66+
- Code completion and reference navigation for Magento module names in `config.php` in [#374](https://github.com/magento/magento2-phpstorm-plugin/pull/374)
67+
- Inspection warning when disabling a nonexistent plugin in `di.xml` in [#382](https://github.com/magento/magento2-phpstorm-plugin/pull/382)
68+
- Description for "Magento Form Button Block Class" code template in [#383](https://github.com/magento/magento2-phpstorm-plugin/pull/383)
69+
- Code generation for database models (model, resource model, and collection) in [#392](https://github.com/magento/magento2-phpstorm-plugin/pull/392)
70+
- Code generation for data models (data interface and its implementation) in [#399](https://github.com/magento/magento2-phpstorm-plugin/pull/399)
71+
- QuickFix for a missing GraphQL resolver defined in the the `schema.graphqls` file in [#399](https://github.com/magento/magento2-phpstorm-plugin/pull/399)
72+
73+
### Fixed
74+
75+
- Inability to save PhpStorm plugin settings after disabling the plugin with invalid field content in [#317](https://github.com/magento/magento2-phpstorm-plugin/pull/317)
76+
- Field statuses in PhpStorm plugin settings not disabling if plugin is disabled in [#320](https://github.com/magento/magento2-phpstorm-plugin/pull/320)
77+
- Missing linemarker for plugins to interface methods in [#328](https://github.com/magento/magento2-phpstorm-plugin/pull/328)
78+
- Incorrect code completion for MFTF tags (stories, title, and description) in [#364](https://github.com/magento/magento2-phpstorm-plugin/pull/364)
79+
- Argument name for types in `di.xml` not allowing underscores in [#370](https://github.com/magento/magento2-phpstorm-plugin/pull/370)
80+
- Incorrect sort order validation in 'Create a New Plugin' code generation dialog in [#389](https://github.com/magento/magento2-phpstorm-plugin/pull/389)
81+
82+
### Changed
83+
84+
- Code generation dialog titles in [#363](https://github.com/magento/magento2-phpstorm-plugin/pull/363)
85+
86+
## 2.0.2
87+
88+
### Added
89+
90+
- PWA pure function Live Template
91+
92+
### Fixed
93+
94+
- Library root for object manager autocomplete
95+
- Line marker for interface plugin target
96+
- Allowed theme override of non-magento composer themes
97+
- Issue with `Magento Module Ui Grid Collection Data Provider Php`
698

799
## 2.0.1
8100

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
1+
<p align="center">
2+
<a href="https://magento.com">
3+
<img src="https://static.magento.com/sites/all/themes/magento/logo.svg" width="300px" alt="Magento Commerce" />
4+
</a>
5+
</p>
6+
17
# PhpStorm Magento 2 Plugin
28

39
[![Version](http://phpstorm.espend.de/badge/8024/version)](https://plugins.jetbrains.com/plugin/8024)
410
[![Downloads](http://phpstorm.espend.de/badge/8024/downloads)](https://plugins.jetbrains.com/plugin/8024)
5-
[![Downloads last month](http://phpstorm.espend.de/badge/8024/last-month)](https://plugins.jetbrains.com/plugin/8024)
11+
![merge-chance-badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fmerge-chance.info%2Fbadge%3Frepo%3Dmagento/magento2-phpstorm-plugin)
12+
[![Made With Love](https://img.shields.io/badge/Made%20With-Love-orange.svg)](https://magento.com)
613

7-
This is a plugin for Magento 2 development in the PhpStorm IDE. It is available via the [JetBrains Plugin Repository](https://plugins.jetbrains.com/plugin/8024)
814
## Installation
915

1016
1. Go to `Settings > Preferences` in the PhpStorm IDE
1117
2. Navigate to `Plugins`
1218
3. Click the `Browse repositories...` button and search for "Magento PhpStorm"
1319
4. Install the plugin and restart PhpStorm
1420
5. Go to `Settings > Preferences > Languages & Frameworks > PHP > Frameworks > Magento` in the PhpStorm IDE
15-
6. Check `Enable` and `OK` button.
21+
6. Check `Enable` and click the `OK` button
1622

1723
## Works with
18-
* PhpStorm >= 2020.1.1
19-
* JRE >= 1.8
24+
25+
* PhpStorm >= 2020.3
26+
* JRE >= 11
2027

2128
## Features
2229

@@ -37,8 +44,8 @@ This is a plugin for Magento 2 development in the PhpStorm IDE. It is available
3744
1. Check out this repository
3845
1. Open a folder with the project in the IntelliJ Ultimate using the `open` action button.
3946
1. Make sure that you on the latest develop branch (e.g `1.0.0-develop`)
40-
1. Right-click on the `build.gradle` file, choose "Import Gradle project"
41-
1. When the Gradle sections appeared in the right bar, navigate there and right-click `magento-2-php-storm-plguin > Tasks -> Intellij -> runIde`
47+
1. Right-click on the `build.gradle` file, choose "Import Gradle project" (you need to have Gradle plugin installed)
48+
1. When the Gradle sections appeared in the right bar, navigate there and right-click `magento-2-php-storm-plugin > Tasks -> Intellij -> runIde`
4249
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.
4350

4451
## How to contribute
@@ -48,11 +55,12 @@ This is a plugin for Magento 2 development in the PhpStorm IDE. It is available
4855
- **Enhancement** - Know how to improve existing functionality? Open an issue describe how to enhance the plugin.
4956
- **New feature proposal** - Know how to make a killer feature? Do not hesitate to submit your proposal.
5057
3) The issue will appear in the `Ready for Grooming` column of the [Community Backlog](https://github.com/magento/magento2-phpstorm-plugin/projects/2). Once it will be discussed and approved the issue will be ready for development.
58+
4) Refer to the [Contributing Guide](https://github.com/magento/magento2-phpstorm-plugin/blob/2.1.0-develop/.github/CONTRIBUTING.md) for more information on how to contribute.
5159

52-
### <img src="https://upload.wikimedia.org/wikipedia/commons/7/76/Slack_Icon.png" width="20"> Join [#phpstorm-plugin](https://magentocommeng.slack.com/archives/C010C2LUCEA) Slack channel for more details.
53-
60+
### <img src="https://upload.wikimedia.org/wikipedia/commons/7/76/Slack_Icon.png" width="20"> Join the [#phpstorm-plugin](https://magentocommeng.slack.com/archives/C010C2LUCEA) Slack channel to get more involved
5461

5562
## License
63+
5664
Each Magento source file included in this distribution is licensed under OSL-3.0 license.
5765

58-
Please see [LICENSE.txt](https://github.com/magento/magento2-phpstorm-plugin/blob/master/LICENSE.txt) for the full text of the [Open Software License v. 3.0 (OSL-3.0)](http://opensource.org/licenses/osl-3.0.php).
66+
Please read the [LICENSE.txt](https://github.com/magento/magento2-phpstorm-plugin/blob/master/LICENSE.txt) for the full text of the [Open Software License v. 3.0 (OSL-3.0)](http://opensource.org/licenses/osl-3.0.php).

build.gradle

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
plugins {
7-
id 'org.jetbrains.intellij' version '0.4.22'
7+
id 'org.jetbrains.intellij' version '0.6.5'
88
id 'checkstyle'
99
id 'pmd'
1010
id 'org.jetbrains.changelog' version '0.6.2'
@@ -15,16 +15,17 @@ repositories {
1515
}
1616

1717
group 'com.magento.idea'
18-
version '2.1.0'
18+
version '3.2.0'
1919

2020
apply plugin: 'org.jetbrains.intellij'
2121
apply plugin: 'java'
22+
apply plugin: 'idea'
2223
apply plugin: 'groovy'
2324
apply plugin: 'org.jetbrains.changelog'
2425

25-
def phpPluginVersion = System.getProperty("phpPluginVersion", "201.7223.91")
26-
def ideaVersion = System.getProperty("ideaVersion", "2020.1.1")
27-
def javaVersion = 1.8
26+
def phpPluginVersion = System.getProperty("phpPluginVersion", "203.5981.175")
27+
def ideaVersion = System.getProperty("ideaVersion", "2020.3")
28+
def javaVersion = 11
2829

2930
sourceCompatibility = javaVersion
3031
targetCompatibility = javaVersion
@@ -40,7 +41,7 @@ intellij {
4041
'properties',
4142
'CSS',
4243
'JavaScriptLanguage',
43-
'com.intellij.lang.jsgraphql:2.3.0',
44+
'com.intellij.lang.jsgraphql:2.7.0',
4445
'platform-images',
4546
'copyright'
4647
]
@@ -91,3 +92,24 @@ changelog {
9192
unreleasedTerm = "[Unreleased]"
9293
groups = ["Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"]
9394
}
95+
96+
idea {
97+
project {
98+
jdkName = javaVersion
99+
languageLevel = javaVersion
100+
}
101+
102+
module {
103+
generatedSourceDirs += file('gen')
104+
}
105+
}
106+
107+
dependencies {
108+
testImplementation 'junit:junit:4.13'
109+
}
110+
111+
test {
112+
useJUnit()
113+
114+
maxHeapSize = '1G'
115+
}

gradle-tasks/pmd/ruleset.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
</rule>
3838
<exclude-pattern>.*/resources/.*</exclude-pattern>
3939
<exclude-pattern>.*/testData/.*</exclude-pattern>
40-
<rule ref="category/java/multithreading.xml"/>
40+
<rule ref="category/java/multithreading.xml">
41+
<exclude name="UseConcurrentHashMap" />
42+
</rule>
4143
<rule ref="category/java/performance.xml"/>
4244
<rule ref="category/java/security.xml" />
4345
</ruleset>

0 commit comments

Comments
 (0)