Skip to content

4.2.3 ALPHA release #947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 184 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
f3a16b4
4.2.1-initial
bohdan-harniuk Nov 25, 2021
e88aff6
Bugfix-798: Fixed ArrayIndexOutOfBoundsException exception when used …
bohdan-harniuk Nov 25, 2021
51905cc
Merge pull request #808 from bohdan-harniuk/bugfix/798-ArrayIndexOutO…
andrewbess Nov 26, 2021
3766768
Bug-667: Fixed dialog disposition issue
bohdan-harniuk Nov 26, 2021
3e0d7be
Merge pull request #811 from bohdan-harniuk/bugfix/667-fix-dialog-win…
andrewbess Nov 29, 2021
0bb3c44
Bugfix-765: Code refactoring
bohdan-harniuk Nov 29, 2021
7d69766
Bugfix-765: Fixed bug for the PluginLineMarkerProvider
bohdan-harniuk Nov 29, 2021
1d17fa7
Bugfix-765: Code refactoring
bohdan-harniuk Nov 29, 2021
7df117b
Bugfix-765: Fixed bug for the PluginTargetLineMarkerProvider
bohdan-harniuk Nov 29, 2021
7293944
Bugfix-765: Code refactoring
bohdan-harniuk Nov 29, 2021
e90e77c
Bugfix-765: Fixed bug for the WebApiLineMarkerProvider
bohdan-harniuk Nov 29, 2021
ce56e41
Bugfix-765: Code refactoring
bohdan-harniuk Nov 29, 2021
504cbab
Bugfix-765: Code refactoring
bohdan-harniuk Nov 29, 2021
f452d79
Bugfix-765: Code refactoring
bohdan-harniuk Nov 29, 2021
7fd808b
Merge pull request #813 from bohdan-harniuk/bugfix/765-StackOverflowE…
andrewbess Nov 29, 2021
2381060
666: Fixed stub ids not found for key in index
bohdan-harniuk Nov 29, 2021
20d5e93
Merge pull request #814 from bohdan-harniuk/bugfix/666-stub-ids-not-f…
andrewbess Nov 30, 2021
2cff8f0
645: Code refactoring
bohdan-harniuk Nov 30, 2021
0918b7a
645: Fixed method could be final
bohdan-harniuk Nov 30, 2021
67e9fc7
645: Fixed local variable could be final
bohdan-harniuk Nov 30, 2021
58f32f9
645: Code refactoring
bohdan-harniuk Nov 30, 2021
b206366
645: Fixed LiteralsFirstInComparisons
bohdan-harniuk Nov 30, 2021
548359f
645: Code refactoring
bohdan-harniuk Nov 30, 2021
2492c26
645: Fixed bug
bohdan-harniuk Nov 30, 2021
8374386
645: Code refactoring
bohdan-harniuk Nov 30, 2021
caf1a28
Merge pull request #815 from bohdan-harniuk/bugfix/645-failed-to-buil…
andrewbess Nov 30, 2021
eb8e209
739: Fixed empty PSI elements must not be passed to createDescriptor
bohdan-harniuk Nov 30, 2021
100f04a
739: Code refactoring
bohdan-harniuk Nov 30, 2021
a625f4b
Merge pull request #816 from bohdan-harniuk/bugfix/739-empty-psi-elem…
bohdan-harniuk Nov 30, 2021
a32bf89
685: Code refactoring
bohdan-harniuk Nov 30, 2021
4dd5838
685: Fixed empty PSI elements must not be passed to createDescriptor …
bohdan-harniuk Nov 30, 2021
eac8b45
Merge pull request #817 from bohdan-harniuk/bugfix/685-empty-psi-elem…
andrewbess Nov 30, 2021
4491987
646: Fixed NullPointerException for the firstSortOrder.compareTo
bohdan-harniuk Nov 30, 2021
c1eeebb
Merge pull request #818 from bohdan-harniuk/bugfix/646-null-pointer-e…
andrewbess Nov 30, 2021
69c4277
626: Fixed Invalid column types provided exception during db_schema.x…
bohdan-harniuk Nov 30, 2021
ce0f04f
630: Code refactoring
bohdan-harniuk Dec 1, 2021
1b5eca5
Merge pull request #819 from bohdan-harniuk/bugfix/626-provided-inval…
andrewbess Dec 2, 2021
3fc2247
630: Added default values support for all types of plugins
bohdan-harniuk Dec 7, 2021
4fd849e
630: Fixed wrong array type for method arguments
bohdan-harniuk Dec 7, 2021
7e30ad3
Merge branch '4.2.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 7, 2021
6b7a9bf
630: Suppressed style checks
bohdan-harniuk Dec 7, 2021
1837c77
Merge pull request #830 from bohdan-harniuk/bugfix/630-method-designe…
andrewbess Dec 7, 2021
49295c2
Updated changelog for release 4.2.1
bohdan-harniuk Dec 7, 2021
3227aac
Merge branch '4.2.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 7, 2021
a171a18
Merge pull request #831 from bohdan-harniuk/preparing-release-4-2-1
andrewbess Dec 7, 2021
bf6dd12
Initial commit for 4.2.2-develop
bohdan-harniuk Dec 7, 2021
d80aba1
633: Fixed NoSuchElementException when creating new controller
Iamwade Dec 13, 2021
7ac6a61
797: plugin inspection null pointer exception
Iamwade Dec 15, 2021
852690e
797: fix import
Iamwade Dec 15, 2021
a2d1306
Merge pull request #849 from Iamwade/797-bug-report-plugin-inspection…
bohdan-harniuk Dec 15, 2021
2830e48
838: Fixed java.lang.NoClassDefFoundError for com.intellij.lang.jsgra…
bohdan-harniuk Dec 15, 2021
08894cf
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 15, 2021
0e43102
Merge pull request #850 from bohdan-harniuk/838-NoClassDefFoundError-…
andrewbess Dec 15, 2021
e582ca8
633: Added additional checks
bohdan-harniuk Dec 15, 2021
ebdfb29
Additional changes before 4.2.1 release
bohdan-harniuk Dec 15, 2021
e310977
Small changes
bohdan-harniuk Dec 15, 2021
1f37017
Merge pull request #851 from bohdan-harniuk/4.2.1-pre-release-updates
bohdan-harniuk Dec 15, 2021
41e1c4a
810: Fixed StringIndexOutOfBoundsException during UCT inspection via …
bohdan-harniuk Dec 15, 2021
495e428
Merge pull request #852 from bohdan-harniuk/810-fixed-StringIndexOutO…
andrewbess Dec 16, 2021
2f5cd44
837: Fixed wrong connection name
bohdan-harniuk Dec 16, 2021
3c95b7c
Merge pull request #854 from bohdan-harniuk/837-fix-wrong-rabbitmq-co…
andrewbess Dec 16, 2021
1f85fc6
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 16, 2021
99d8e4c
Merge pull request #844 from Iamwade/633-no-such-element-exception-wh…
bohdan-harniuk Dec 17, 2021
d449c76
825: Code refactoring
bohdan-harniuk Dec 17, 2021
1bc9f0b
825: Code refactoring
bohdan-harniuk Dec 17, 2021
e9a7447
825: Fixed null pointer exception
bohdan-harniuk Dec 17, 2021
a00d39a
858: error correction in case entered fields is zero
Iamwade Dec 17, 2021
b52643e
Merge pull request #856 from bohdan-harniuk/825-NullPointerException-…
andrewbess Dec 17, 2021
9ab192a
760: Code refactoring
bohdan-harniuk Dec 17, 2021
49afbf2
760: Fixed bug
bohdan-harniuk Dec 17, 2021
0bbc5fe
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 17, 2021
e5109ad
760: Eliminated code style check
bohdan-harniuk Dec 17, 2021
cd06a38
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 17, 2021
f712cfc
Merge pull request #859 from Iamwade/858-error-correction-in-case-ent…
bohdan-harniuk Dec 18, 2021
370596e
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 18, 2021
10718a0
Merge pull request #860 from bohdan-harniuk/760-fix-Throwable-when-IO…
andrewbess Dec 20, 2021
ed6d469
651: Fixed Slow operations are prohibited on EDT
bohdan-harniuk Dec 20, 2021
1aafc53
651: Code refactoring
bohdan-harniuk Dec 20, 2021
b537b45
Merge pull request #862 from bohdan-harniuk/651-slow-operations-are-p…
andrewbess Dec 20, 2021
cfd6273
864: Code refactoring
bohdan-harniuk Dec 20, 2021
6b1ff0e
864: Code refactoring
bohdan-harniuk Dec 20, 2021
a741849
864: Enhanced error outputting for new Magento 2 Block generation
bohdan-harniuk Dec 20, 2021
15d9974
867: Code refactoring
bohdan-harniuk Dec 20, 2021
0d85916
867: Enhanced error outputting for new Magento 2 Controller generation
bohdan-harniuk Dec 20, 2021
a6f19bc
868: Code refactoring
bohdan-harniuk Dec 20, 2021
36fc257
868: Code refactoring
bohdan-harniuk Dec 20, 2021
715575e
868: Enhanced error outputting for new Magento 2 Cron Job generation
bohdan-harniuk Dec 20, 2021
abb9b10
868: Enhanced error outputting for new Magento 2 Cron Job generation
bohdan-harniuk Dec 21, 2021
3ca91dc
868: Fixed code style check
bohdan-harniuk Dec 21, 2021
f80dbf2
869: Code refactoring
bohdan-harniuk Dec 21, 2021
e3301a9
869: Enhanced error outputting for new Magento 2 Cron Group generation
bohdan-harniuk Dec 21, 2021
7fee0e8
870: Code refactoring
bohdan-harniuk Dec 21, 2021
6592c20
870: Enhanced error outputting for new Magento 2 View Model generation
bohdan-harniuk Dec 21, 2021
a73037d
870: Code style fix
bohdan-harniuk Dec 21, 2021
0a56b32
871: Code refactoring
bohdan-harniuk Dec 21, 2021
0e5264e
871: Enhanced error outputting for new Magento 2 GraphQl Resolver gen…
bohdan-harniuk Dec 21, 2021
0f1f19b
870: Code style fix
bohdan-harniuk Dec 21, 2021
7f3b781
Merge branch '870-enhance-new-view-model-dialog-ux' into 871-enhance-…
bohdan-harniuk Dec 21, 2021
cd7bcd4
872: Code refactoring
bohdan-harniuk Dec 21, 2021
18a1b2b
872: Enhanced error outputting for new Magento 2 CLI Command generation
bohdan-harniuk Dec 21, 2021
a6ff7b3
871: Code style fix
bohdan-harniuk Dec 21, 2021
953ef3e
Merge branch '871-enhance-new-graphql-resolver-dialog-ux' into 872-en…
bohdan-harniuk Dec 21, 2021
6304129
Merge pull request #885 from bohdan-harniuk/872-enhance-new-cli-comma…
andrewbess Dec 21, 2021
3b0b191
873: Code refactoring
bohdan-harniuk Dec 21, 2021
8e92c63
873: Enhanced error outputting for new Magento 2 email template gener…
bohdan-harniuk Dec 21, 2021
457429a
874: Code refactoring
bohdan-harniuk Dec 21, 2021
e83ab09
874: Enhanced error outputting for new Magento 2 models generation
bohdan-harniuk Dec 21, 2021
58d6269
875: Code refactoring
bohdan-harniuk Dec 22, 2021
cc135f0
875: Enhanced error outputting for new Magento 2 data model generation
bohdan-harniuk Dec 22, 2021
533e98c
876: Code refactoring
bohdan-harniuk Dec 22, 2021
01738e9
876: Enhanced error outputting for new Magento 2 message queue genera…
bohdan-harniuk Dec 22, 2021
d890d83
877: Code refactoring
bohdan-harniuk Dec 23, 2021
63ef611
877: Enhanced error outputting for new Magento 2 db schema generation
bohdan-harniuk Dec 23, 2021
9495981
878: Code refactoring
bohdan-harniuk Dec 23, 2021
16d6c80
878: Enhanced error outputting for new Magento 2 UI Grid generation
bohdan-harniuk Dec 23, 2021
cb5454a
879: Code refactoring
bohdan-harniuk Dec 23, 2021
7c43b7f
879: Enhanced error outputting for new Magento 2 UI Form generation
bohdan-harniuk Dec 23, 2021
dc4b87d
Merge pull request #892 from bohdan-harniuk/879-enhance-new-ui-form-d…
andrewbess Dec 23, 2021
ee07294
857: fixed error when class already exists
Iamwade Dec 23, 2021
40192fb
Merge pull request #893 from Iamwade/857-fixed-error-when-class-alrea…
bohdan-harniuk Dec 23, 2021
40daf29
842: Incomplete trailing escape
Iamwade Dec 23, 2021
957f65c
842: Create new message queue
Iamwade Dec 23, 2021
703fc13
842: fixed code style
Iamwade Dec 23, 2021
4c93c3f
866: IndexNotReadyException while opening a context menu
Iamwade Dec 23, 2021
df337f4
Merge pull request #894 from Iamwade/842-incomplete-trailing-escape
bohdan-harniuk Dec 23, 2021
877df15
866: fixed pmd
Iamwade Dec 23, 2021
2f085d3
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
Iamwade Dec 23, 2021
b4fcdce
Merge pull request #896 from Iamwade/866-index-not-ready-exception-wh…
bohdan-harniuk Dec 23, 2021
f020efa
654: Code refactoring
bohdan-harniuk Dec 23, 2021
3596211
654: Fixed class cast exception
bohdan-harniuk Dec 23, 2021
67901f2
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 23, 2021
ea18fda
654: Fixed code style check
bohdan-harniuk Dec 23, 2021
1c8b1ab
654: Fixed code style check
bohdan-harniuk Dec 23, 2021
ba99c90
654: Code refactoring to fix tests
bohdan-harniuk Dec 24, 2021
9d30b65
834: Code refactoring
bohdan-harniuk Dec 24, 2021
1d84101
834: Fixed bug - wrong inspection for module name in registration.php
bohdan-harniuk Dec 24, 2021
6061963
Merge pull request #897 from bohdan-harniuk/654-fix-ClassCastExceptio…
andrewbess Dec 24, 2021
ce31639
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Dec 24, 2021
6745225
834: Added component registrar to the testing data to make it availab…
bohdan-harniuk Dec 24, 2021
6607841
Merge pull request #898 from bohdan-harniuk/834-module-name-declarati…
andrewbess Dec 24, 2021
ccef0d6
590: The plugin inspection does not work correctly
Iamwade Dec 24, 2021
067f651
Merge pull request #902 from Iamwade/590-the-plugin-inspection-does-n…
bohdan-harniuk Dec 24, 2021
e21135f
899: Changed realization for function checkAdd using of CheckUtil.
artemii-karkusha Jan 5, 2022
608017e
900: Fixed all issues from checkstyleCI.
artemii-karkusha Jan 6, 2022
9e4407a
899: Refactored of function setAttribute.
artemii-karkusha Jan 6, 2022
2dc9f3a
899: Code refactoring
bohdan-harniuk Jan 13, 2022
aea28dc
Merge pull request #909 from artemii-karkusha/899_LineMarkerXmlTagDec…
bohdan-harniuk Jan 13, 2022
f2f91f3
Merge branch '4.2.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Jan 13, 2022
e923ce0
900: Code refactoring
artemii-karkusha Jan 13, 2022
b8420c2
Merge pull request #917 from bohdan-harniuk/update-4-2-2-develop-from…
Jan 13, 2022
3c5f38c
Merge branch '4.2.2-develop' into 900_LineMarker
artemii-karkusha Jan 13, 2022
0bc74a8
Merge pull request #910 from artemii-karkusha/900_LineMarkerXmlTagDec…
bohdan-harniuk Jan 13, 2022
4a8b6c6
920: Added UCT support for version 2.4.4-beta4
bohdan-harniuk Jan 14, 2022
7e80a16
920: Added version state corruption checking and fixing
bohdan-harniuk Jan 14, 2022
541ffb9
Merge pull request #922 from bohdan-harniuk/920-add-new-magento-versi…
andrewbess Jan 14, 2022
20000f8
907: fix ClassCastException
doninAtwix Jan 21, 2022
3dfbd61
907: fix code style
doninAtwix Jan 21, 2022
4f2a8b7
Merge pull request #927 from doninAtwix/907-fix-ClassCastException
bohdan-harniuk Jan 21, 2022
8618d67
913: Fixed parse usage
Iamwade Jan 21, 2022
3d50b18
913: Fixed tests
Iamwade Jan 21, 2022
f0aeba6
Merge pull request #928 from Iamwade/913-eliminate-parse-usage
bohdan-harniuk Jan 21, 2022
290f7f7
619: Overriding layouts and templates allows to select an incompatibl…
Iamwade Jan 21, 2022
f4fcc48
619: fixed code after review
Iamwade Jan 21, 2022
3f3521a
Merge pull request #930 from Iamwade/overriding-layouts-and-templates…
bohdan-harniuk Jan 21, 2022
2066ce8
833: Added Open In Find Tool Window action to the Navigate to plugins…
bohdan-harniuk Jan 22, 2022
8835cdb
932: Fixed general exception while accessing phpIndex.getAnyByFQN(cla…
bohdan-harniuk Jan 22, 2022
1030afe
620: Introduced custom search scope to exclude test files from search
bohdan-harniuk Jan 23, 2022
94bc589
Merge pull request #933 from bohdan-harniuk/833-add-open-in-find-tool…
andrewbess Jan 23, 2022
0e89db7
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Jan 23, 2022
48f5dce
Merge pull request #934 from bohdan-harniuk/932-fix-general-exception
andrewbess Jan 23, 2022
b72fb51
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Jan 23, 2022
85b61b6
853: Code refactoring
bohdan-harniuk Jan 23, 2022
66052dd
853: Extended possible observer references fqns
bohdan-harniuk Jan 23, 2022
bfb3a63
Merge pull request #935 from bohdan-harniuk/620-exclude-test-files-fr…
andrewbess Jan 23, 2022
9460197
853: Extended possible observer references fqns
bohdan-harniuk Jan 23, 2022
1b44e22
Merge branch '4.2.2-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Jan 23, 2022
3e44c6e
Merge pull request #936 from bohdan-harniuk/853-fix-observer-action-v…
andrewbess Jan 23, 2022
8b8116c
276: Added uiComponent registration syntax highlighting as JSON
bohdan-harniuk Jan 24, 2022
c7d410a
Merge pull request #937 from bohdan-harniuk/276-ui-component-registra…
andrewbess Jan 25, 2022
63dc861
Updated changelog for release 4.2.2
bohdan-harniuk Jan 28, 2022
622117d
Merge pull request #939 from bohdan-harniuk/preparing-release-4-2-2
eduard13 Jan 28, 2022
6264138
Init 4.2.3 + trying to fix missed library
bohdan-harniuk Feb 1, 2022
33236a0
Fixed style check
bohdan-harniuk Feb 1, 2022
726fe8b
Merge pull request #948 from bohdan-harniuk/fix-style-check
coderimus Feb 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Run automated tests

on:
pull_request:
branches: [ master, 4.2.0-develop ]
branches: [ master, 4.2.3-develop ]

jobs:
build-linux:
Expand Down
68 changes: 68 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,74 @@ All notable changes to this project will be documented in this file.

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

## 4.2.3

## 4.2.2

### Added

- Added custom search scope to exclude test files from search [#read-more](https://github.com/magento/magento2-phpstorm-plugin/wiki/4.2.2-Release)
- Added the ability to open all plugins in the Find Tool Window [#read-more](https://github.com/magento/magento2-phpstorm-plugin/wiki/4.2.2-Release)
- Added uiComponent registration syntax highlighting as JSON [#read-more](https://github.com/magento/magento2-phpstorm-plugin/wiki/4.2.2-Release)
- Added new Magento version support (2.4.4-beta4) for the UCT feature in [#922](https://github.com/magento/magento2-phpstorm-plugin/pull/922)

### Changed

- Eliminated com.google.gson.JsonParser#parse usage in [#928](https://github.com/magento/magento2-phpstorm-plugin/pull/928)
- Eliminated LineMarkerXmlTagDecorator#checkDelete usage in [#910](https://github.com/magento/magento2-phpstorm-plugin/pull/910)
- Eliminated LineMarkerXmlTagDecorator#checkAdd usage in [#909](https://github.com/magento/magento2-phpstorm-plugin/pull/909)
- Enhanced errors showing for the new Magento 2 UI Component Form dialog window in [#892](https://github.com/magento/magento2-phpstorm-plugin/pull/892)
- Enhanced errors showing for the new Magento 2 UI Component Grid dialog window in [#891](https://github.com/magento/magento2-phpstorm-plugin/pull/891)
- Enhanced errors showing for the new Magento 2 DB Schema XML dialog window in [#890](https://github.com/magento/magento2-phpstorm-plugin/pull/890)
- Enhanced errors showing for the new Magento 2 Message Queue dialog window in [#889](https://github.com/magento/magento2-phpstorm-plugin/pull/889)
- Enhanced errors showing for the new Magento 2 Data Model dialog window in [#888](https://github.com/magento/magento2-phpstorm-plugin/pull/888)
- Enhanced errors showing for the new Magento 2 Models dialog window in [#887](https://github.com/magento/magento2-phpstorm-plugin/pull/887)
- Enhanced errors showing for the new Magento 2 Email Template dialog window in [#886](https://github.com/magento/magento2-phpstorm-plugin/pull/886)
- Enhanced errors showing for the new Magento 2 CLI Command dialog window in [#885](https://github.com/magento/magento2-phpstorm-plugin/pull/885)
- Enhanced errors showing for the new Magento 2 GraphQl Resolver dialog window in [#884](https://github.com/magento/magento2-phpstorm-plugin/pull/884)
- Enhanced errors showing for the new Magento 2 View Model dialog window in [#883](https://github.com/magento/magento2-phpstorm-plugin/pull/883)
- Enhanced errors showing for the new Magento 2 Cron Group dialog window in [#882](https://github.com/magento/magento2-phpstorm-plugin/pull/882)
- Enhanced errors showing for the new Magento 2 Cron Job dialog window in [#881](https://github.com/magento/magento2-phpstorm-plugin/pull/881)
- Enhanced errors showing for the new Magento 2 Controller dialog window in [#880](https://github.com/magento/magento2-phpstorm-plugin/pull/880)
- Enhanced errors showing for the new Magento 2 Block dialog window in [#865](https://github.com/magento/magento2-phpstorm-plugin/pull/865)

### Fixed

- Fixed overriding layouts and templates allows to select an incompatible theme in [#930](https://github.com/magento/magento2-phpstorm-plugin/pull/930)
- Fixed observer action visibility in [#936](https://github.com/magento/magento2-phpstorm-plugin/pull/936)
- Fixed general exception while accessing phpIndex.getAnyByFQN(classFQN) in [#934](https://github.com/magento/magento2-phpstorm-plugin/pull/934)
- Fixed ClassCastException for the GraphQlResolverIndex.getGraphQLUsages in [#927](https://github.com/magento/magento2-phpstorm-plugin/pull/927)
- Fixed plugin inspection does not work correctly in [#902](https://github.com/magento/magento2-phpstorm-plugin/pull/902)
- Fixed module name declaration inspection flags valid code in [#898](https://github.com/magento/magento2-phpstorm-plugin/pull/898)
- Fixed ClassCastException: PsiPlainTextFileImpl cannot be cast to class XmlFile in WebApiTypeIndex in [#897](https://github.com/magento/magento2-phpstorm-plugin/pull/897)
- Fixed IndexNotReadyException while opening a context menu in [#896](https://github.com/magento/magento2-phpstorm-plugin/pull/896)
- Fixed IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern in [#894](https://github.com/magento/magento2-phpstorm-plugin/pull/894)
- Fixed Throwable: AWT events are not allowed inside write action (UI Form) in [#893](https://github.com/magento/magento2-phpstorm-plugin/pull/893)
- Fixed Slow operations are prohibited on EDT when calling update method on the CreateAPluginAction in [#862](https://github.com/magento/magento2-phpstorm-plugin/pull/862)
- Fixed Throwable: when an IOException is thrown during new plugin generation in [#860](https://github.com/magento/magento2-phpstorm-plugin/pull/860)
- Fixed IndexOutOfBoundsException in case when entered no fields during ui form generation in [#859](https://github.com/magento/magento2-phpstorm-plugin/pull/859)
- Fixed NullPointerException when opening new cron job dialog for an invalid Magento 2 module in [#856](https://github.com/magento/magento2-phpstorm-plugin/pull/856)
- Fixed NoSuchElementException when creating new controller in [#844](https://github.com/magento/magento2-phpstorm-plugin/pull/844)
- Fixed Message Queue Connection does not match Naming Conventions in [#854](https://github.com/magento/magento2-phpstorm-plugin/pull/854)
- Fixed StringIndexOutOfBoundsException during UCT inspection via action execution in [852](https://github.com/magento/magento2-phpstorm-plugin/pull/852)
- Fixed NullPointerException in the PluginDeclarationInspection.fetchModuleNamesWhereSamePluginNameUsed (calling toString on null) in [#849](https://github.com/magento/magento2-phpstorm-plugin/pull/849)

## 4.2.1

### Fixed

- Fixed ArrayIndexOutOfBoundsException when used Copy Path/Reference action on the requirejs-config.js file in [#808](https://github.com/magento/magento2-phpstorm-plugin/pull/808)
- Fixed dialog disposition issue in [#811](https://github.com/magento/magento2-phpstorm-plugin/pull/811)
- Fixed stack overflow error for line-marker providers in [#813](https://github.com/magento/magento2-phpstorm-plugin/pull/813)
- Fixed stub ids not found for key in index in [#814](https://github.com/magento/magento2-phpstorm-plugin/pull/814)
- Fixed failed to build require-js index in [815](https://github.com/magento/magento2-phpstorm-plugin/pull/815)
- Fixed empty psi elements in the plugin inspections in [#816](https://github.com/magento/magento2-phpstorm-plugin/pull/816)
- Fixed empty psi element in module xml inspection in [#817](https://github.com/magento/magento2-phpstorm-plugin/pull/817)
- Fixed NullPointerException for the firstSortOrder.compareTo in [#818](https://github.com/magento/magento2-phpstorm-plugin/pull/818)
- Fixed invalid column types provided exception during db_schema.xml file generation in [#819](https://github.com/magento/magento2-phpstorm-plugin/pull/819)
- Fixed method designed for fully qualified names only in [#830](https://github.com/magento/magento2-phpstorm-plugin/pull/830)
- Fixed NoClassDefFoundError for com.intellij.lang.jsgraphql.GraphQLIcons in [#850](https://github.com/magento/magento2-phpstorm-plugin/pull/850)

## 4.2.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

1. Check out this repository
1. Open a folder with the project in the IntelliJ Ultimate using the `open` action button.
1. Make sure that you on the latest develop branch (e.g `4.2.0-develop`)
1. Make sure that you on the latest develop branch (e.g `4.2.3-develop`)
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)
1. Check if the right SDK version is used for the project.
- 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`
Expand Down
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
}

group 'com.magento.idea'
version '4.2.0'
version '4.2.3'

apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
Expand All @@ -41,7 +41,7 @@ intellij {
'properties',
'CSS',
'JavaScriptLanguage',
'com.intellij.lang.jsgraphql:3.0.0',
'com.intellij.lang.jsgraphql:3.1.2',
'platform-images',
'copyright'
]
Expand Down Expand Up @@ -69,7 +69,7 @@ sourceSets {
publishPlugin {
token = System.getenv("MAGENTO_PHPSTORM_intellijPublishToken")
if (Boolean.valueOf(System.getenv("MAGENTO_PHPSTORM_isAlpha"))) {
channels 'alpha'
channels = ['alpha']
version = version + "-alpha-" + getDate()
}
}
Expand Down Expand Up @@ -106,6 +106,7 @@ idea {

dependencies {
testImplementation 'junit:junit:4.13'
implementation 'org.json:json:20211205'
}

test {
Expand Down
7 changes: 6 additions & 1 deletion resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<idea-plugin require-restart="true">
<id>com.magento.idea.magento2plugin</id>
<name>Magento PhpStorm</name>
<version>4.2.0</version>
<version>4.2.3</version>
<vendor url="https://github.com/magento/magento2-phpstorm-plugin">Magento Inc.</vendor>

<description><![CDATA[
Expand Down Expand Up @@ -561,6 +561,11 @@
<errorHandler implementation="com.magento.idea.magento2plugin.project.diagnostic.DefaultErrorReportSubmitter"/>

<configurationType implementation="com.magento.idea.magento2uct.execution.configurations.UctRunConfigurationType"/>

<testSourcesFilter implementation="com.magento.idea.magento2plugin.lang.roots.MagentoTestSourceFilter"/>
<searchScopesProvider implementation="com.magento.idea.magento2plugin.lang.psi.search.MagentoSearchScopesProvider"/>

<multiHostInjector implementation="com.magento.idea.magento2plugin.lang.injection.UiComponentSyntaxInjector"/>
</extensions>

<extensions defaultExtensionNs="com.jetbrains.php">
Expand Down
3 changes: 3 additions & 0 deletions resources/magento2/validation.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
validator.notEmpty=The {0} field must not be empty
validator.box.notEmpty=The {0} field must contain a valid selection from the dropdown
validator.package.validPath=Please specify a valid Magento 2 installation path
validator.properties.notEmpty=The properties must not be empty
validator.alphaNumericCharacters=The {0} field must contain letters and numbers only
validator.alphaNumericAndUnderscoreCharacters={0} must contain letters, numbers and underscores only
validator.alphaAndPeriodCharacters=The {0} field must contain alphabets and periods only
Expand All @@ -22,6 +23,7 @@ validator.command.isNotValid=The {0} field does not contain a valid Magento 2 CL
validator.module.noSuchModule=No such module {0}
validator.file.alreadyExists={0} already exists
validator.file.cantBeCreated={0} can't be created
validator.file.cantBeCreatedWithException=The ''{0}'' cannot be created. Original message was: ''{1}''
validator.file.isNotWritable=%s file is binary or has no document associations
validator.file.noDocumentAssociations={0} file is binary or has no document associations
validator.class.alreadyDeclared={0} already declared in the target module
Expand All @@ -38,3 +40,4 @@ validator.db.invalidTableNameLength=Table name must contain up to 64 characters
validator.lowerSnakeCase=The {0} field must be of the lower snake case format
validator.menuIdentifierInvalid=The menu identifier is invalid
validator.someFieldsHaveErrors=Please, check the dialog. Some fields have errors
validator.dbSchema.invalidColumnType=Invalid ''{0}'' column type specified
Binary file modified resources/uct/api/indexes.API_COVERAGE.idc
Binary file not shown.
Binary file not shown.
Binary file modified resources/uct/existence/indexes.EXISTENCE.idc
Binary file not shown.
32 changes: 24 additions & 8 deletions src/com/magento/idea/magento2plugin/actions/CopyMagentoPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.jetbrains.annotations.Nullable;

public class CopyMagentoPath extends CopyPathProvider {

public static final String PHTML_EXTENSION = "phtml";
public static final String JS_EXTENSION = "js";
public static final String CSS_EXTENSION = "css";
Expand Down Expand Up @@ -56,23 +57,23 @@ private boolean isNotValidFile(final VirtualFile virtualFile) {
|| virtualFile != null && !acceptedTypes.contains(virtualFile.getExtension());
}

@Nullable
@Override
public String getPathToElement(
@NotNull final Project project,
@Nullable final VirtualFile virtualFile,
@Nullable final Editor editor
public @Nullable String getPathToElement(
final @NotNull Project project,
final @Nullable VirtualFile virtualFile,
final @Nullable Editor editor
) {
if (virtualFile == null) {
return null;
}
final PsiFile file
= PsiManager.getInstance(project).findFile(virtualFile);
final PsiFile file = PsiManager.getInstance(project).findFile(virtualFile);

if (file == null) {
return null;
}
final PsiDirectory directory = file.getContainingDirectory();
final String moduleName = GetModuleNameByDirectoryUtil.execute(directory, project);

if (moduleName == null) {
return null;
}
Expand All @@ -89,15 +90,30 @@ public String getPathToElement(
} else {
return fullPath.toString();
}
int endIndex;

final int endIndex = getIndexOf(paths, fullPath, paths[++index]);
try {
endIndex = getIndexOf(paths, fullPath, paths[++index]);
} catch (ArrayIndexOutOfBoundsException exception) {
// endIndex could not be found.
return "";
}
final int offset = paths[index].length();

fullPath.replace(0, endIndex + offset, "");

return moduleName + SEPARATOR + fullPath;
}

/**
* Get index where web|template path starts in the fullPath.
*
* @param paths String[]
* @param fullPath StringBuilder
* @param path String
*
* @return int
*/
private int getIndexOf(final String[] paths, final StringBuilder fullPath, final String path) {
return fullPath.lastIndexOf(path) == -1
? getIndexOf(paths, fullPath, paths[++index])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.jetbrains.annotations.NotNull;

public class CreateAPluginAction extends DumbAwareAction {

public static final String ACTION_NAME = "Create a new Plugin for this method";
public static final String ACTION_DESCRIPTION = "Create a new Magento 2 Plugin";
private final GetFirstClassOfFile getFirstClassOfFile;
Expand All @@ -47,10 +48,12 @@ public void update(final AnActionEvent event) {
targetClass = null;// NOPMD
targetMethod = null;// NOPMD
final Project project = event.getData(PlatformDataKeys.PROJECT);
if (Settings.isEnabled(project)) {

if (project != null && Settings.isEnabled(project)) {
final Pair<PsiFile, PhpClass> pair = this.findPhpClass(event);
final PsiFile psiFile = pair.getFirst();
final PhpClass phpClass = pair.getSecond();

if (phpClass == null
|| !(psiFile instanceof PhpFile)
|| phpClass.isFinal()
Expand All @@ -74,16 +77,21 @@ private void setStatus(final AnActionEvent event, final boolean status) {
}

@Override
public void actionPerformed(@NotNull final AnActionEvent event) {
CreateAPluginDialog.open(event.getProject(), this.targetMethod, this.targetClass);
public void actionPerformed(final @NotNull AnActionEvent event) {
final Project project = event.getProject();

if (project == null) {
return;
}
CreateAPluginDialog.open(project, this.targetMethod, this.targetClass);
}

@Override
public boolean isDumbAware() {
return false;
}

private Pair<PsiFile, PhpClass> findPhpClass(@NotNull final AnActionEvent event) {
private Pair<PsiFile, PhpClass> findPhpClass(final @NotNull AnActionEvent event) {
final PsiFile psiFile = event.getData(PlatformDataKeys.PSI_FILE);

PhpClass phpClass = null;
Expand All @@ -96,27 +104,31 @@ private Pair<PsiFile, PhpClass> findPhpClass(@NotNull final AnActionEvent event)
}

private void fetchTargetMethod(
@NotNull final AnActionEvent event,
final @NotNull AnActionEvent event,
final PsiFile psiFile,
final PhpClass phpClass
) {
final Caret caret = event.getData(PlatformDataKeys.CARET);

if (caret == null) {
return;
}
final int offset = caret.getOffset();
final PsiElement element = psiFile.findElementAt(offset);

if (element == null) {
return;
}
if (element instanceof Method && element.getParent()
== phpClass && IsPluginAllowedForMethodUtil.check((Method) element)) {

if (element instanceof Method && element.getParent().equals(phpClass)
&& IsPluginAllowedForMethodUtil.check((Method) element)) {
this.targetMethod = (Method) element;
return;
}
final PsiElement parent = element.getParent();
if (parent instanceof Method && parent.getParent()
== phpClass && IsPluginAllowedForMethodUtil.check((Method) parent)) {

if (parent instanceof Method && parent.getParent().equals(phpClass)
&& IsPluginAllowedForMethodUtil.check((Method) parent)) {
this.targetMethod = (Method) parent;
}
}
Expand Down
Loading