magento / magento/magento2-phpstorm-plugin

Navigate to configuration (di.xml ) does not work correctly

Open
#1,248 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
463
Forks
98
Avg merge
1h 6m
Merged PRs (30d)
3

Description

**Describe the bug** (*)

List of di.xml configurations for a class displays all classes that are nested in the namespace of the desired class. This makes it difficult to find real places where the desired class is used.

**To Reproduce** (*)

Steps to reproduce the behavior:
1. Open the `\Magento\Customer\Model\Session` class
2. Click on the di.xml icon in the gutter
![image](https://user-images.githubusercontent.com/1055999/202496271-21565414-37e8-4be3-a1fd-26359a60cc5b.png)

3. The list opens
image

4. Click on different lines
5. This opens the place where this class is used
6. But this list also includes classes that start with the desired class
7. Here we got to the class
`Magento\Customer\Model\Session\Storage`
although we were looking for a class
`Magento\Customer\Model\Session`
![image](https://user-images.githubusercontent.com/1055999/202497319-543e3473-fe73-4766-8862-6455443f53cc.png)

**Expected behavior** (*)

In the di.xml configuration list only configurations for the class you are looking for must be displayed.

**Please complete the following information:** (*)

- OS: MacOS 12.6
- PhpStorm version: 2022.2.3
- Plugin Version: 4.4.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in PhpStorm from the Magento\Customer\Model\Session class by opening the di.xml gutter list and selecting entries. Trace the navigation behind this list, then verify that the results contain only the exact class and exclude Magento\Customer\Model\Session\Storage and other nested classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, php
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.