How to prevent 'Cannot resolve file' pop-up?

In other editors, a simple squiggly underline or color change indicates a file that can't be resolved, but in PHPStorm, a pop-up appears when I hover over it... this is undesireable as it not only obscures things but interrupts a click on that area.

I'm unable to find it in settings to disable (the file already resolves when the script is run, so it's not an actual problem), and I don't want to disable validations, just stop the pop-up.

I need a stop-up for these pop-ups...

Screenshot: 

0

Can someone please comment on how to deal with this? It's super-annoying and in the way.

0

Andriy, the link you left is about the pop-ups in general; I'm asking specifically on this post how to disable the specific validation I mentioned in the title...

Do you have any knowledge of where that validation/pop-up is located in Settings so I can disable it? If I search for it, it doesn't show.

I'm kind of baffled when I see that certain validation messages are not found when I search for them in the validation settings...

0

That's the same popup -- it shows details for the error/warning produced by some inspection.

I may only suggest to disable that particular inspection.

0

If you OK with disabling that inspection: https://www.jetbrains.com/help/phpstorm/suppressing-inspections.html "Suppressing inspections in the editor" section. Just choose "Disable inspection" (or "Edit inspection profile..." if you wish to see what that inspection is and what options it may provide) instead of suppressing.

You may also disable any particular inspection on per file/folder basis (via custom Scope).

0

Andriy, the pop-up in that other post says "Unreachable statement", based on something in a variable array... this one says "Cannot resolve file", based on a path in an HTML tag; they're two different contexts, how can they be the same validation?

You say to disable that particular inspection, but I've already said I can't find it... again, searching for it doesn't show what I'm looking for, it shows a bunch of others and I can't tell if they're the right ones! Please try to find it yourself...

I know how to disable inspections... again, that's not the issue here. I need to find THIS particular inspection to disable. Which one is it? Screenshot would be helpful.

If I try your suggestion of Alt+Enter, it doesn't behave the way you're describing, I don't know how to describe it without 10 more screenshots, please just give me a step-by-step of how you find this particular validation and disable it, that instructions link is not effective enough either.

0

>Andriy, the pop-up in that other post says "Unreachable statement", based on something in a variable array... this one says "Cannot resolve file", based on a path in an HTML tag; they're two different contexts, how can they be the same validation?

I was referring to the same mechanism -- to the popup itself, which is shown then you hover over ANY warning/error produced by ANY inspection.

>You say to disable that particular inspection, but I've already said I can't find it

>I know how to disable inspections... again, that's not the issue here. I need to find THIS particular inspection to disable. Which one is it? Screenshot would be helpful.

But you do not have to search for it -- you can disable it (the inspection) right from the Alt+Enter menu by choosing "Disable inspection" option. If you choose "Edit inspection profile..." option there (in Alt+Enter menu) you will be able to see what inspection that is (IDE will open all inspections Settings page in separate window where you will be able to see what the inspection is).

This is Alt+Enter menu: red -- "edit inspection", green -- disable it straight away

If I choose "Edit inspection..." option, I will see this (where I can see what that inspection is (it's pre-selected by default) and can disable it there)

0

OK thank you for the more clear description, I got that to work.

However I did find one problem with it, I have to actually *click* on the thing that's being inspected for Alt+Enter to show the correct pop-up for that particular chunk of code... Alt+Enter only works on wherever the cursor is, not where I'm hovering, which is counter-intuitive.

As much as I love PHPStorm, this inspection/validation/pop-up thing is my #1 source of problems and complications by far... I really wish they would make things more intuitive or just let us disable the hover pop-ups like Eclipse does but still leave validations and the colored underlines and lines on the right (again like Eclipse does). I really see no reason to not make this more user-friendly.

0

>However I did find one problem with it, I have to actually *click* on the thing that's being inspected for Alt+Enter to show the correct pop-up for that particular chunk of code... Alt+Enter only works on wherever the cursor is, not where I'm hovering, which is counter-intuitive.

Quite opposite -- it makes perfect sense if you use keyboard only. But yes -- it looks a bit unexpected for mouse-driven person at first glance (need to be aware and get used to it).

In any case -- it's described in the documentation (the link I gave definitely has this moment).

>As much as I love PHPStorm, this inspection/validation/pop-up thing is my #1 source of problems and complications by far... I really wish they would make things more intuitive or just let us disable the hover pop-ups like Eclipse does but still leave validations and the colored underlines and lines on the right (again like Eclipse does). I really see no reason to not make this more user-friendly.

I'm perfectly fine with these popups -- for me they are expected and do not bother me at all. They provide more detailed description just on hoover without the need to run full file Inspection to go through detailed description.

At the same time I agree that having an option to disable them for people who do not like them would be good to have.

0

Andriy, I'm afraid you didn't understand my statement. If I'm hovering over something that shows a pop-up of a validation I need to find or disable, hitting Alt+Enter won't show that pop-up's options unless the cursor is on the same section of text as the hover... that means if I go to click or highlight something, and I see the pop-up or it gets in the way, hitting Alt+Enter before I've clicked on the text shows the inspection options for something else (whatever the cursor is on). That's what's counter-intuitive. Hitting Alt+Enter while the pop-up is visible should show the options for that pop-up, not a section of text where the cursor is, which could be anywhere else.

The documentation in the link basically described what your screenshots did, but the disconnect was me hitting Alt+Enter showed something odd, which was the options where the cursor was, which I did not know at the time.

I'm glad you're OK with the obnoxious in-the-way pop-ups Andriy, but myself and many other people don't use the editor the way you do, and it seems like the way you use it requires more clicks than is intuitive for an average user. I can try to use it that way, but it becomes more cumbersome. I keep stating Eclipse because it was far more intuitive with hover pop-ups, and my guess is you weren't using Eclipse before PHPStorm, hence why you consider this weird cumbersome behavior to be desireable.

0

@ Dace C

It's better to leave a feedback in a comments section of https://youtrack.jetbrains.com/issue/IDEA-114803 - this way you'll be heard by corresponding developers. Proving your point of view on a forum rarely brings desired result in terms of changing how the software behaves.

0

请先登录再写评论。